Skip to main content

Introduction

It is widely known that there are quite a few holes in MongoDB’s default configuration settings. This fact, combined with abundant lazy system administrators and developers, has led to what the press has called the MongoDB apocalypse.

mongoaudit not only detects misconfigurations, known vulnerabilities and bugs but also gives you advice on how to fix them, recommends best practices and teaches you how to DevOp like a pro!

Supported tests

  • MongoDB listens on a port different to default one

  • Server only accepts connections from whitelisted hosts / networks

  • MongoDB HTTP status interface is not accessible on port 28017

  • MongoDB is not exposing its version number

  • MongoDB version is newer than 2.4

  • TLS/SSL encryption is available

  • TLS/SSL encryption is enabled

  • TLS/SSL certificate is valid (not self-signed)

  • Authentication is enabled

  • SCRAM-SHA-1 authentication method is enabled

  • Server-side Javascript is forbidden *

  • Roles granted to the user only permit CRUD operations *

  • The user has permissions over a single database *

  • Security bug CVE-2015-7882

  • Security bug CVE-2015-2705

  • Security bug CVE-2014-8964

  • Security bug CVE-2015-1609

  • Security bug CVE-2014-3971

  • Security bug CVE-2014-2917

  • Security bug CVE-2013-4650

  • Security bug CVE-2013-3969

  • Security bug CVE-2012-6619

  • Security bug CVE-2013-1892

  • Security bug CVE-2013-2132

Tests marked with an asterisk (*) require valid authentication credentials.

How can I best secure my MongoDB?

Once you run any of the test suites provided by mongoaudit, it will offer you to receive a fully detailed report via email. This personalized report links to a series of useful guides on how to fix every specific issue and how to harden your MongoDB deployments.

For your convenience, we have also published the mongoaudit guides in our Medium publication .

Contributing

We’re happy you want to contribute! You can help us in different ways:

  • Open an issue in GitHub with suggestions for improvements and errors you’re facing.

  • Fork the repository and submit a pull request.

  • Improve the documentation.

To submit a pull request, fork the mongoaudit repository and then clone your fork.

git clone git@github.com:<your-name>/mongoaudit.git

Make your suggested changes, git push and then submit a pull request.

Metadata

Release files for mongoaudit 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mongoaudit 0.1.1
File Size Uploaded
mongoaudit-0.1.1.tar.gz 27.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for mongoaudit 0.1.1
File Interpreter ABI Platform
mongoaudit-0.1.1-py3.8.egg Legacy Egg format - - Details
mongoaudit-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 113.8 kB

Release files / mongoaudit-0.1.1.tar.gz

Download URL mongoaudit-0.1.1.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a6a67a9fd624f748cbe0282defc58c476f28cfbed1bf50c6512dd6a770e169eb
BLAKE2b-256 checksum
How to use checksums
c4db3f762500cbfb71558536c8dd633002f6fea50987bb41542a7366f27b3fb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release files / mongoaudit-0.1.1-py3.8.egg

Download URL mongoaudit-0.1.1-py3.8.egg
Size 58.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
3fbb47662f6035f7a2249e3ac04ab06e01e9e7bc811cde8006871b9beb00fe8a
BLAKE2b-256 checksum
How to use checksums
4c086cb8963c86578831fe8c16256fa571c27c7f01b909d014beaddf84488f8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release files / mongoaudit-0.1.1-py3-none-any.whl

Download URL mongoaudit-0.1.1-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3010566b5b55972955391c403b26d607ee4d1d080f9910708e8a5cedbb671735
BLAKE2b-256 checksum
How to use checksums
3b2c0a22562f96915a7629cb1f39691641a232183732cf27763062bcb8c619ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.1.1 This release

3 release files

0.1.0

1 release file

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page