Check provider logo

Organization requires API operations to originate from an IP address on the API access list

organizations_api_access_list_required

Severityhigh
by Prowler

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.
Run this check with Prowler CLI

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

CLI

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}'

Terraform
Other
  1. In the MongoDB Atlas UI, open the target organization and go to Organization Settings
  2. Toggle "Require IP Access List for the Atlas Administration API" to On
  3. Click Save

Source Code

Resource Type

NotDefined

References