turbot/tailpipe-mod-gcp-audit-log-detections

Detection: Monitoring Alert Policy Deleted

Overview

Detect when a monitoring alert policy was deleted in GCP. Alert policies are critical for detecting and responding to performance issues or security incidents, and their deletion can lead to missed alerts and delayed responses. Monitoring these events ensures the continuity of alerting workflows and prevents unauthorized or accidental removal of critical policies.

References:

Usage

Run the detection in your terminal:

powerpipe detection run gcp_audit_log_detections.detection.monitoring_alert_policy_deleted

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe detection run gcp_audit_log_detections.detection.monitoring_alert_policy_deleted --share

SQL

This detection uses a named query:

select
tp_timestamp as timestamp,
method_name as operation,
resource_name as resource,
authentication_info.principal_email as actor,
tp_source_ip as source_ip,
tp_index as project,
tp_id as source_id,
-- Create new aliases to preserve original row data
*
from
gcp_audit_log
where
method_name ilike 'google.monitoring.v%.alertpolicyservice.deletealertpolicy'
and severity != 'Error'
-- TODO: Do we need to check operation?
-- and (operation_src is null or operation_src.last = true)
order by
timestamp desc;

Tags