Organization requires API operations to originate from an IP address on the API access list
organizations_api_access_list_required
MongoDB Atlas organizations can require Atlas Administration API requests to originate only from IPs or CIDRs listed in the organization's API access list (apiAccessListRequired).
Risk
Without IP allowlisting, the Atlas Administration API is reachable from any network. A leaked token can be used from arbitrary hosts to:
- change org/project settings and users
- create, modify, or delete clusters This undermines integrity and availability and expands the blast radius of credential compromise.
prowler mongodbatlas --checks organizations_api_access_list_required
Recommendation
Require the org API access list and restrict it to trusted, fixed egress IPs/CIDRs. Enforce least privilege on service accounts, prefer short-lived tokens, rotate secrets, and review entries regularly. Pair with MFA/SSO and monitoring for defense in depth.
Remediation
curl --digest -u "<PUBLIC_KEY>:<PRIVATE_KEY>" -H "Content-Type: application/json" -X PATCH "https://cloud.mongodb.com/api/atlas/v2/orgs/<ORG_ID>/settings" -d '{"apiAccessListRequired":true}'
- In the MongoDB Atlas UI, open the target organization and go to Organization Settings
- Toggle "Require IP Access List for the Atlas Administration API" to On
- Click Save
Source Code
Resource Type
NotDefined
References
- https://www.mongodb.com/docs/atlas/access/orgs-create-view-edit-delete/
- https://www.mongodb.com/docs/atlas/configure-api-access/
- https://www.mongodb.com/docs/atlas/configure-api-access-mult-org/
- https://www.mongodb.com/docs/atlas/tutorial/manage-organizations/
- https://www.mongodb.com/docs/atlas/security/ip-access-list/