Detection: SQL Database TDE Created or Updated
Overview
Detect when Transparent Data Encryption (TDE) setting in an Azure SQL database was created or updated. TDE protects data at rest by encrypting database files, and changes to these settings can impact data security and compliance. Monitoring these updates ensures encryption policies are consistently enforced and prevents unauthorized modifications.
References:
Usage
Run the detection in your terminal:
powerpipe detection run azure_activity_log_detections.detection.sql_database_tde_created_or_updated
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe detection run azure_activity_log_detections.detection.sql_database_tde_created_or_updated --share
SQL
This detection uses a named query:
select tp_timestamp as timestamp,operation_name as operation,resource_id as resource,caller as actor,tp_index::varchar as subscription_id,resource_group_name as resource_group,tp_id as source_id,status as event_status,*
from azure_activity_logwhere operation_name = 'Microsoft.Sql/servers/databases/encryptionProtector/write' and status = 'Succeeded'
order by timestamp desc;