Prerequisites
Before you begin, make sure you have:- A MongoDB Atlas organization with API Access enabled.
- An Organization ID (24-character hex string).
- An API Key pair (public and private keys) with appropriate permissions:
- Organization Read Only: Provides read-only access to everything in the organization, including all projects in the organization. This permission is sufficient for most security checks.
- Organization Owner: Required to audit the Auditing configuration for projects. Database auditing tracks database operations and security events, including authentication attempts, data definition language (DDL) changes, user and role modifications, and privilege grants. This configuration is essential for security monitoring, forensics, and compliance. Without Organization Owner permission, the
projects_auditing_enabledcheck cannot retrieve the audit configuration status.
- Prowler App access (cloud or self-hosted) or the Prowler CLI (
pip install prowler).
Prowler Cloud
Onboard MongoDB Atlas using Prowler Cloud
Prowler CLI
Onboard MongoDB Atlas using Prowler CLI
Prowler Cloud
Added in: 5.15.0
Step 1: Add the provider
- Navigate to Cloud Providers and click Add Cloud Provider.

- Select MongoDB Atlas from the provider list.
- Enter your Organization ID (24 hex characters). This value is visible in the Atlas UI under Organization Settings.

- (Optional) Add a friendly alias to identify this organization in dashboards.
Step 2: Provide API credentials
- Click Next to open the credentials form.
- Paste the Atlas Public Key and Atlas Private Key generated in the Atlas console.

Step 3: Test the connection and start scanning
- Click Test connection to ensure Prowler App can reach the Atlas API.
- Save the credentials. The provider will appear in the list with its current connection status.
- Launch a scan from the provider row or from the Scans page.

Prowler CLI
Added in: 5.12.0
You can also run MongoDB Atlas assessments directly from the CLI. Both command-line flags and environment variables are supported.
Step 1: Select an authentication method
Choose one of the following authentication methods:Command-line arguments
Environment variables
Step 2: Run the first scan
Scan all projects and clusters
Scan a specific project
Add the--atlas-project-id flag when you only want to assess one project:
Additional tips
- Combine flags (for example,
--checksor--services) just like with other providers. - Use
--output-modesto export findings in JSON, CSV, ASFF, etc. - Rotate API keys regularly and update the stored credentials in Prowler App to maintain connectivity.

