π Azure Cosmos DB Account Virtual Network Filter is not enabled π’
- Contextual name: π Virtual Network Filter is not enabled π’
- ID:
/ce/ca/azure/cosmos-db/virtual-network-filter
- Located in: π Azure Cosmos DB
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-46a83a30
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-46a83a30 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Limiting your Cosmos DB to only communicate on whitelisted networks lowers its attack footprint.
Rationaleβ
Selecting certain networks for your Cosmos DB to communicate restricts the number of networks including the internet that can interact with what is stored within the database.
Impactβ
WARNING: Failure to whitelist the correct networks will result in a connection loss.
WARNING: Changes to Cosmos DB firewalls may take up to 15 minutes to apply. Ensure that sufficient time is planned for remediation or changes to avoid disruption.
Auditβ
From Azure Portalβ
- Open the portal menu.
- Select the Azure Cosmos DB blade.
- Select a Cosmos DB to audit.
- Select
Networking
.- Under
Public network access
, ensureSelected networks
is selected.- Under
Virtual networks
, ensure appropriate virtual networks are configured.From Azure CLIβ
Retrieve a list of all CosmosDB database names:
az cosmosdb list
For each database listed, run the following command:
az cosmosdb show <database id>
... [see more](description.md)
Remediationβ
Remediationβ
From Azure Portalβ
Open the portal menu.
Select the Azure Cosmos DB blade.
Select a Cosmos DB account to audit.
Select
Networking
.Under
Public network access
, selectSelected networks
.Under
Virtual networks
, select+ Add existing virtual network
or+ Add a new virtual network
.For existing networks, select subscription, virtual network, subnet and click
Add
.For new networks, provide a name, update the default values if required, and click
Create
.Click
Save
.