Detection: IAM Role Assignment Created or Updated
Overview
Detect when a role assignment in Azure IAM was created or updated. Role assignment changes can modify access permissions, potentially granting or revoking critical resource access. Monitoring these updates helps ensure proper governance and prevents unauthorized access to sensitive resources.
References:
Usage
Run the detection in your terminal:
powerpipe detection run azure_activity_log_detections.detection.iam_role_assignment_created_or_updated
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe detection run azure_activity_log_detections.detection.iam_role_assignment_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.Authorization/roleAssignments/write' and status = 'Succeeded'
order by timestamp desc;