turbot/tailpipe-mod-aws-cloudtrail-log-detections

Detection: EventBridge Rule Disabled

Overview

Detect when an Amazon EventBridge rule was disabled in a region. Disabling an EventBridge rule can disrupt event delivery, delay automated actions, or prevent critical workflows from executing. This increases the risk of operational inefficiencies and may allow unauthorized activities to go undetected. Monitoring for a disabled rule ensures workflows remain operational and protected.

References:

Usage

Run the detection in your terminal:

powerpipe detection run aws_cloudtrail_log_detections.detection.eventbridge_rule_disabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe detection run aws_cloudtrail_log_detections.detection.eventbridge_rule_disabled --share

SQL

This detection uses a named query:

select
tp_timestamp as timestamp,
string_split(event_source, '.')[1] || ':' || event_name as operation,
request_parameters ->> 'name' as resource,
user_identity.arn as actor,
tp_source_ip as source_ip,
tp_index as account_id,
aws_region as region,
tp_id as source_id,
*
from
aws_cloudtrail_log
where
event_source = 'events.amazonaws.com'
and event_name = 'DisableRule'
and error_code is null
order by
event_time desc;

Tags