turbot/steampipe-mod-azure-compliance

Control: 2.1.16 Ensure that Auto provisioning of 'Microsoft Defender for Containers components' is Set to 'On'

Description

Enable automatic provisioning of the Microsoft Defender for Containers components.

As with any compute resource, Container environments require hardening and run-time protection to ensure safe operations and detection of threats and vulnerabilities.

Remediation

From Azure Portal

  1. From the Azure Portal Home page, select Microsoft Defender for Cloud.
  2. Under Management, select Environment Settings.
  3. Select a subscription.
  4. Set Containers to On.

Repeat the above for any additional subscriptions.

Default Value

By default, Microsoft Defender for Containers is disabled. If Defender for Containers is enabled from the Microsoft Defender for Cloud portal, auto provisioning will be enabled.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.cis_v210_2_1_16

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
sub_pricing.id as resource,
case
when pricing_tier = 'Standard' then 'ok'
else 'alarm'
end as status,
case
when pricing_tier = 'Standard' then 'Azure Defender on for Containers.'
else 'Azure Defender off for Containers.'
end as reason
, sub.display_name as subscription
from
azure_security_center_subscription_pricing sub_pricing
right join azure_subscription sub on sub_pricing.subscription_id = sub.subscription_id
where
name = 'Containers';

Tags