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

Detection: Event Hub Namespace Rule Authorized

Overview

Detect when an Azure Event Hub rule was updated. Authorization rules control access to Event Hubs, and changes to these rules can impact data ingestion or security. Monitoring these updates ensures proper access control and helps prevent unauthorized access or disruptions to event streaming.

References:

Usage

Run the detection in your terminal:

powerpipe detection run azure_activity_log_detections.detection.event_hub_namespace_rule_authorized

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe detection run azure_activity_log_detections.detection.event_hub_namespace_rule_authorized --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.EventHub/namespaces/authorizationRules/write'
and status = 'Succeeded'
order by
timestamp desc;

Tags