MongoDB - Allow access from anywhere (rule) #1199
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Goal
Detect when 0.0.0.0 is added to the project's IP access list, which allows access from anywhere.
Categorization
https://attack.mitre.org/techniques/T1021/
Strategy Abstract
Atlas only allows client connections to the database deployment from entries in the project's IP access list. Detect when 0.0.0.0 is added to that list, which allows access from anywhere.
Technical Context
Allow access to project from anywhere to generate relevant logs.
Blind Spots and Assumptions
Assumes proper MongoDB Atlas logging.
False Positives
Could be legitimate administrator activity for specific project.
Validation
Allow access to project from anywhere to trigger alerts.
Priority
Medium
Response
Check if this activity was legitimate. If not, delete 0.0.0.0 from the list of allowed ips.
Additional Resources
https://www.mongodb.com/docs/atlas/security/ip-access-list/