turbot/steampipe-mod-azure-compliance

Control: Synapse workspaces should have data exfiltration protection enabled

Description

This control checks whether Synapse workspace has data exfiltration protection enabled.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.synapse_workspace_data_exfiltration_protection_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
s.id as resource,
case
when managed_virtual_network_settings ->> 'preventDataExfiltration' = 'true' then 'ok'
else 'alarm'
end as status,
case
when managed_virtual_network_settings ->> 'preventDataExfiltration' = 'true' then s.title || ' data exfiltration protection enabled.'
else s.title || ' data exfiltration protection disabled.'
end as reason
, s.resource_group as resource_group
, sub.display_name as subscription
from
azure_synapse_workspace as s,
azure_subscription as sub
where
sub.subscription_id = s.subscription_id;

Tags