turbot/tailpipe-mod-azure-activity-log-detections

Detection: Key Vault Access Policy Created or Updated

Overview

Detect when an access policy in Azure Key Vault was created or updated. Access policies define permissions for managing secrets, certificates, and keys, and changes to these policies can impact security and access control. Monitoring these updates helps prevent unauthorized access and ensures proper governance of sensitive resources.

References:

Usage

Run the detection in your terminal:

powerpipe detection run azure_activity_log_detections.detection.key_vault_access_policy_created_or_updated

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe detection run azure_activity_log_detections.detection.key_vault_access_policy_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_log
where
operation_name = 'Microsoft.KeyVault/vaults/accessPolicies/write'
and status = 'Succeeded'
order by
timestamp desc;

Tags