https://github.com/stampery/mongoaudit

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d2af8f17-67d7-4791-83e9-ac6339e44ac3/github-header.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f1d67327-0ff7-4e8f-981a-37ab9f515777/68747470733a2f2f7472617669732d63692e6f72672f7374616d706572792f6d6f6e676f61756469742e7376673f6272616e63683d6d6173746572

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e7df623d-7f59-4bee-9999-0930b03b01db/68747470733a2f2f6c616e6473636170652e696f2f6769746875622f7374616d706572792f6d6f6e676f61756469742f6d61737465722f6c616e6473636170652e7376673f7374796c653d666c6174

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b374dc72-344a-4b65-a317-3ab5ceff1e6d/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3538386636316637313765346665323462383030343666362f6261646765732f65643639316361313635356330656238613461352f6770612e737667

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9cf8e3bd-2896-403a-a35f-2f2ff556d9ad/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3538386636316637313765346665323462383030343666362f6261646765732f65643639316361313635356330656238613461352f69737375655f636f756e742e737667

mongoaudit is a CLI tool for auditing MongoDB servers, detecting poor security settings and performing automated penetration testing.

Installing with pip

This is the recommended installation method in case you have python and pip.

pip install mongoaudit

Alternative installer

Use this if and only if python and pip are not available on your platform.

curl -s <https://mongoaud.it/install> | bash

works on Mac OS X, GNU/Linux and Bash for Windows 10

If you are serious about security you should always use the PIP installer or, better yet, follow best security practices: clone this repository, check the source code and only then run it with python mongoaudit.

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!