Back to controls

Ensure Private Endpoints Are Used To Access Cosmos DB Accounts

Private endpoints limit network traffic to approved sources.

Category

Controls

Medium

Applies to

Microsoft Azure

Coverage

1 queries

Asset types

1 covered

Overview

Private endpoints limit network traffic to approved sources.

Rationale

For sensitive data, private endpoints allow granular control of which services can communicate with Cosmos DB and ensure that this network traffic is private. You set this up on a case by case basis for each service you wish to be connected.

Impact

Only whitelisted services will have access to communicate with the Cosmos DB.

Default Value

By default, Cosmos DB does not have private endpoints.

Remediation guidance

Remediate from Azure Portal

  1. Open the Cosmos DB account using the Open in Azure button.
  2. Select Networking.
  3. Select Private access.
  4. Click + Private Endpoint.
  5. Provide a Name.
  6. Click Next.
  7. From the Resource type drop down, select Microsoft.AzureCosmosDB/databaseAccounts.
  8. From the Resource drop down, select the Cosmos DB account.
  9. Click Next.
  10. Provide appropriate Virtual Network details.
  11. Click Next.
  12. Provide appropriate DNS details.
  13. Click Next.
  14. Optionally provide Tags.
  15. Click Next : Review + create.
  16. Click Create.

Service-wide remediation

Recommended when many resources are affected: fix the platform baseline first so new resources inherit the secure setting, then remediate the existing flagged resources in batches.

Azure

Use management group or subscription Azure Policy assignments, remediation tasks where supported, landing-zone standards, and IaC modules so drift is prevented at scale.

Operational rollout

  1. Fix the baseline first at the account, subscription, project, cluster, or tenant scope that owns this control.
  2. Remediate the currently affected resources in batches, starting with internet-exposed and production assets.
  3. Re-scan and track approved exceptions with an owner and expiry date.

Query logic

These are the stored checks tied to this control.

Azure Cosmos DB accounts without private endpoints

Connectors

Microsoft Azure

Covered asset types

CosmosDBAccount

Expected check: eq []

{
  cosmosDbAccounts(where: { privateEndpoints_SOME: null }) {
    ...AssetFragment
  }
}
Cyscale Logo
Cyscale is an agentless cloud-native application protection platform (CNAPP) that automates the contextual analysis of cloud misconfigurations, vulnerabilities, access, and data, to provide an accurate and actionable assessment of risk.

Stay connected

Receive new blog posts and product updates from Cyscale

By clicking Subscribe, I agree to Cyscale’s Privacy Policy


© 2026 Cyscale Limited

LinkedIn icon
Twitter icon
Facebook icon
crunch base icon
angel icon