turbot/azure_compliance

Control: 2.1.9 Ensure That Microsoft Defender for Cosmos DB Is Set To 'On'

Description

Microsoft Defender for Cosmos DB scans all incoming network requests for changes to your virtual machine.

In scanning Cosmos DB requests within a subscription, requests are compared to a heuristic list of potential security threats. These threats could be a result of a security breach within your services, thus scanning for them could prevent a potential security threat from being introduced.

Remediation

From Azure Portal

  1. Go to Microsoft Defender for Cloud
  2. Select Environment Settings blade
  3. Click on the subscription name
  4. Select the Defender plans
  5. On the Database row click on Select types >
  6. In the list of databases determine set the Cosmos DB radio button is to On.

From Azure CLI

Run the following command:

az security pricing create -n 'CosmosDbs' --tier 'standard'

From Powershell

Use the below command to enable Standard pricing tier for Cosmos DB

Set-AzSecurityPricing -Name 'CosmosDbs' -PricingTier 'Standard

Default Value

By default, Microsoft Defender for Cosmos DB is not enabled.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.cis_v150_2_1_9

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run azure_compliance.control.cis_v150_2_1_9 --share

SQL

This control uses a named query:

securitycenter_azure_defender_on_for_cosmosdb

Tags