{"id":13528187,"url":"https://github.com/stampery/mongoaudit","last_synced_at":"2025-05-15T11:09:20.727Z","repository":{"id":51380486,"uuid":"74681612","full_name":"stampery/mongoaudit","owner":"stampery","description":"🔥 A powerful MongoDB auditing and pentesting tool 🔥","archived":false,"fork":false,"pushed_at":"2023-04-17T17:18:28.000Z","size":502,"stargazers_count":1324,"open_issues_count":15,"forks_count":134,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-14T19:58:15.494Z","etag":null,"topics":["authentication","cli","database","encryption","hardening","infosec","mongodb","pentesting"],"latest_commit_sha":null,"homepage":"https://mongoaud.it","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stampery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-24T14:43:31.000Z","updated_at":"2025-04-14T07:42:41.000Z","dependencies_parsed_at":"2024-09-20T17:41:17.910Z","dependency_job_id":null,"html_url":"https://github.com/stampery/mongoaudit","commit_stats":{"total_commits":193,"total_committers":6,"mean_commits":"32.166666666666664","dds":0.5129533678756477,"last_synced_commit":"70b83e8d1d1a18dc82aa45bc30e1136855d18f33"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stampery%2Fmongoaudit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stampery%2Fmongoaudit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stampery%2Fmongoaudit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stampery%2Fmongoaudit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stampery","download_url":"https://codeload.github.com/stampery/mongoaudit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328386,"owners_count":22052632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","cli","database","encryption","hardening","infosec","mongodb","pentesting"],"created_at":"2024-08-01T06:02:17.039Z","updated_at":"2025-05-15T11:09:20.691Z","avatar_url":"https://github.com/stampery.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"969212c047f97652ceb9c789e4d8dae5\"\u003e\u003c/a\u003e数据库\u0026\u0026SQL攻击\u0026\u0026SQL注入","Python","cli"],"sub_categories":["\u003ca id=\"ca6f4bd198f3712db7f24383e8544dfd\"\u003e\u003c/a\u003eNoSQL"],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003e\u003ca href=\"https://mongoaud.it\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/stampery/mongoaudit/master/rsc/github-header.png\" alt=\"mongoaudit\"/\u003e\u003c/a\u003e\u003c/h1\u003e\n    \u003ca href=\"https://travis-ci.org/stampery/mongoaudit\"\u003e\u003cimg src=\"https://travis-ci.org/stampery/mongoaudit.svg?branch=master\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://landscape.io/github/stampery/mongoaudit/master\"\u003e\u003cimg alt=\"Code Health\" src=\"https://landscape.io/github/stampery/mongoaudit/master/landscape.svg?style=flat\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://codeclimate.com/repos/588f61f717e4fe24b80046f6/feed\"\u003e\u003cimg alt=\"Code Climate\" src=\"https://codeclimate.com/repos/588f61f717e4fe24b80046f6/badges/ed691ca1655c0eb8a4a5/gpa.svg\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://codeclimate.com/repos/588f61f717e4fe24b80046f6/feed\"\u003e\u003cimg alt=\"Issue Count\" src=\"https://codeclimate.com/repos/588f61f717e4fe24b80046f6/badges/ed691ca1655c0eb8a4a5/issue_count.svg\" /\u003e\u003c/a\u003e\n    \u003cbr/\u003e\u003cbr/\u003e\n    \u003cp\u003e\u003cstrong\u003emongoaudit\u003c/strong\u003e is a CLI tool for auditing MongoDB servers, detecting poor security settings and performing automated penetration testing.\u003c/p\u003e\n\u003c/div\u003e\n\n\u003ch2 align=\"center\"\u003eInstalling\u003c/h2\u003e\n\nClone this repository and run the setup:\n\n```bash\n\u003e git clone https://github.com/stampery/mongoaudit.git\n\u003e cd mongoaudit\n\u003e python setup.py install\n\u003e mongoaudit\n```\n\n\u003ch2 align=\"center\"\u003eIntroduction\u003c/h2\u003e\n\u003cp\u003eIt 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 \u003ca href=\"http://thenextweb.com/insider/2017/01/08/mongodb-ransomware-exists-people-bad-security/\"\u003e\u003ci\u003eMongoDB apocalypse\u003c/i\u003e\u003c/a\u003e.\u003c/p\u003e\n\n\u003cp\u003e\u003cstrong\u003emongoaudit\u003c/strong\u003e 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! \u003c/p\u003e\n\n\u003cp\u003eThis is how the actual app looks like:\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/stampery/mongoaudit/master/rsc/screenshot.png\" alt=\"mongoaudit screenshot\"/\u003e\n    \u003cbr /\u003e\u003ci\u003eYep, that's material design on a console line interface. (Powered by \u003ca href=\"https://github.com/urwid/urwid\"\u003eurwid\u003c/a\u003e)\u003c/i\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003eSupported tests\u003c/h2\u003e\n\n* MongoDB listens on a port different to default one\n* Server only accepts connections from whitelisted hosts / networks\n* MongoDB HTTP status interface is not accessible on port 28017\n* MongoDB is not exposing its version number\n* MongoDB version is newer than 2.4\n* TLS/SSL encryption is enabled\n* Authentication is enabled\n* SCRAM-SHA-1 authentication method is enabled\n* Server-side Javascript is forbidden *\n* Roles granted to the user only permit CRUD operations *\n* The user has permissions over a single database *\n* Security bug [CVE-2015-7882](https://jira.mongodb.org/browse/SERVER-20691)\n* Security bug [CVE-2015-2705](https://jira.mongodb.org/browse/SERVER-17521)\n* Security bug [CVE-2014-8964](https://jira.mongodb.org/browse/SERVER-17252)\n* Security bug [CVE-2015-1609](https://jira.mongodb.org/browse/SERVER-17264)\n* Security bug [CVE-2014-3971](https://jira.mongodb.org/browse/SERVER-13753)\n* Security bug [CVE-2014-2917](https://jira.mongodb.org/browse/SERVER-13644)\n* Security bug [CVE-2013-4650](https://jira.mongodb.org/browse/SERVER-9983)\n* Security bug [CVE-2013-3969](https://jira.mongodb.org/browse/SERVER-9878)\n* Security bug [CVE-2012-6619](https://www.cvedetails.com/cve/CVE-2012-6619/)\n* Security bug [CVE-2013-1892](https://www.cvedetails.com/cve/CVE-2013-1892/)\n* Security bug [CVE-2013-2132](https://www.cvedetails.com/cve/CVE-2013-2132/)\n\n\n_Tests marked with an asterisk (`*`) require valid authentication credentials._\n\n\n\u003ch2 align=\"center\"\u003eHow can I best secure my MongoDB?\u003c/h2\u003e\n\nOnce 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.\n\nFor your convenience, we have also published the __mongoaudit__ guides in our [Medium publication](https://medium.com/mongoaudit).\n\n\u003ch2 align=\"center\"\u003eContributing\u003c/h2\u003e\n\nWe're happy you want to contribute! You can help us in different ways:\n\n* Open an issue with suggestions for improvements and errors you're facing.\n* Fork this repository and submit a pull request.\n* Improve the documentation.\n\nTo submit a pull request, fork the mongoaudit repository and then clone your fork:\n\n```bash\ngit clone git@github.com:\u003cyour-name\u003e/mongoaudit.git\n```\n\nMake your suggested changes, `git push` and then submit a pull request.\n\n\u003ch2 align=\"center\"\u003eLegal\u003c/h2\u003e\n\n\u003ch3\u003eLicense\u003c/h3\u003e\n\u003cstrong\u003emongoaudit\u003c/strong\u003e is released under the [MIT License](https://github.com/stampery/mongoaudit/blob/master/LICENSE).\n\n\u003ch3\u003eDisclaimer\u003c/h3\u003e\n\n    \"With great power comes great responsibility\"\n\n* Never use this tool on servers you don't own. Unauthorized access to strangers' computer systems is a crime in many countries.\n* 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.\n* Don't be evil! :trollface:\n\n\u003ch3\u003eSuport and trademarks\u003c/h3\u003e\n\u003ci\u003eThis 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.\u003c/i\u003e\n\n[\u003cimg style=\"width:100%;\" src=\"https://raw.githubusercontent.com/trailbot/vault/master/dist/img/footer.png\"\u003e](https://stampery.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstampery%2Fmongoaudit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstampery%2Fmongoaudit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstampery%2Fmongoaudit/lists"}