Control: 3.1.4.2 Ensure that 'Agentless discovery for Kubernetes' component status 'On'
Description
Enable automatic discovery and configuration scanning of the Microsoft Kubernetes clusters.
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
- From the Azure Portal
Homepage, selectMicrosoft Defender for Cloud. - Under
ManagementselectEnvironment Settings. - Select a subscription.
- Under
Settings>Defender Plans, clickSettings & monitoring. - Locate the row for
Agentless discovery for Kubernetes. - Select
On. - Click
Continuein the top left.
Repeat the above for any additional subscriptions.
Default Value
By default, Microsoft Defender for Containers is Off.
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_v300_3_1_4_2Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v300_3_1_4_2 --shareSQL
This control uses a named query:
select id as resource, 'info' as status, 'Manual verification required.' as reason, display_name as subscriptionfrom azure_subscription;