An automated pentesting tool that lets you know if your MongoDB instances are properly secured
Project description
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.
Legal
License
mongoaudit is released under the MIT License .
Disclaimer
"With great power comes great responsibility"
Never use this tool on servers you don’t own. Unauthorized access to strangers’ computer systems is a crime in many countries.
Please use this tool is at your own risk. We will accept no liability for any loss or damage which you may incur no matter how caused.
Don’t be evil!
Suport and trademarks
This software is not supported or endorsed in any way by MongoDB Inc., Compose Inc., ObjectsLab Corporation nor other products or services providers it interoperates with. It neither tries to mimic or replace any software originally conceived by the owners of those products and services. In the same manner, any third party’s trademark or intellectual property that may appear in this software must be understood as a strictly illustrative reference to the service provider it represents, and is never used in any way that may lead to confusion, so no abuse is intended.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file mongoaudit-0.1.1.tar.gz
.
File metadata
- Download URL: mongoaudit-0.1.1.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6a67a9fd624f748cbe0282defc58c476f28cfbed1bf50c6512dd6a770e169eb |
|
MD5 | e0dacdac018bf90a35ea5d2ab311eec1 |
|
BLAKE2b-256 | c4db3f762500cbfb71558536c8dd633002f6fea50987bb41542a7366f27b3fb4 |
File details
Details for the file mongoaudit-0.1.1-py3.8.egg
.
File metadata
- Download URL: mongoaudit-0.1.1-py3.8.egg
- Upload date:
- Size: 58.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fbb47662f6035f7a2249e3ac04ab06e01e9e7bc811cde8006871b9beb00fe8a |
|
MD5 | 69ab82b28f16a4fefabaead3599a06c2 |
|
BLAKE2b-256 | 4c086cb8963c86578831fe8c16256fa571c27c7f01b909d014beaddf84488f8e |
File details
Details for the file mongoaudit-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: mongoaudit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3010566b5b55972955391c403b26d607ee4d1d080f9910708e8a5cedbb671735 |
|
MD5 | 0bf78d3e60309a4f7f7cdf56239ca6dd |
|
BLAKE2b-256 | 3b2c0a22562f96915a7629cb1f39691641a232183732cf27763062bcb8c619ee |