33 Coverage Operations Pack Catalog Observed Firing Audit
Query
// REVIEW ONLY - AWS Security Operations Workbook Visual Query
// Tab: CoverageOperations | Panel: pack-catalog-observed-firing-audit | Visualization: table | Mode: All
// Security Question: Which of the 26 authored AWS SecOps & Cross-Cloud detections have fired alerts in the selected window?
// Drill-Through: Zero alerts means quiet in window — verify actual Enabled state in Panel 10.1 above!
// Empty/No-Data Contract: Pack catalog datatable always renders 26 rows.
let Start = {TimeRange:start};
let End = {TimeRange:end};
let OrgFilter = base64_decode_tostring("{Organization:base64}");
let AccountFilter = base64_decode_tostring("{AwsAccount:base64}");
let RegionFilter = base64_decode_tostring("{AwsRegion:base64}");
let EnvFilter = base64_decode_tostring("{Environment:base64}");
let WorkloadFilter = base64_decode_tostring("{Workload:base64}");
let SeverityFilter = base64_decode_tostring("{Severity:base64}");
let SourceFilter = base64_decode_tostring("{SourceTable:base64}");
let SummaryPref = base64_decode_tostring("{SummaryMode:base64}");
let SelectedPrincipalFilter = base64_decode_tostring("{SelectedPrincipal:base64}");
let SelectedIpFilter = base64_decode_tostring("{SelectedIp:base64}");
let PackRules = dynamic(["AWS cross-cloud - Risky Entra identity pivots from log searches to secrets","AWS cross-cloud - ScreenConnect-launched AWS secret retrieval","AWS cross-cloud - Python startup artifacts and metadata access precede secrets use","AWS cross-cloud - PHP descendant contacts metadata before EC2 role secrets use","AWS cross-cloud - New Entra workload source also retrieves AWS secrets","AWS cross-cloud - AWS secrets use precedes Entra application credential change","AWS SecOps P0-01 - Root or Break-Glass Runtime Activity and Escalation","AWS SecOps P0-02 - Coordinated IAM Credential Persistence and Cross-Principal Backdooring","AWS SecOps P0-03 - Trust Policy Backdoor, Inline Escalation and Sensitive PassRole Abuse","AWS SecOps P0-04 - Autonomous Cross-Account or Sensitive STS AssumeRole Chain","AWS SecOps P0-05 - CloudTrail Selector Downgrade and Logging Delivery Tampering","AWS SecOps P0-06a - GuardDuty High Severity Prioritized Baseline (Single-Source)","AWS SecOps P0-06b - GuardDuty Correlated with CloudTrail Mutations, VPC Egress and Entra Bridge","AWS SecOps P0-07a - S3 PublicAccessBlock Weakening and Sensitive Bucket Burst Read (Single-Source)","AWS SecOps P0-07b - S3 Exfiltration GuardDuty Finding Correlated with Permission Change or VPC Egress","AWS SecOps P0-08 - AWS Connector Failure, Ingestion Lag and Per-Source Blind Spot","AWS SecOps P1-01a - Route 53 DNS Tunneling, Subdomain Fan-Out and High NXDOMAIN Ratio (Single-Source)","AWS SecOps P1-01b - Route 53 Queries Matching Threat Intel and Correlated VPC Egress","AWS SecOps P1-02 - AWS WAF Attack Campaign and Block-to-Allow Bypass Candidate","AWS SecOps P1-03a - VPC Flow Port/Host Scan and High-Byte Rare-Port Egress (Single-Source)","AWS SecOps P1-03b - VPC Flow Threat-Intel IP Egress and Low-Jitter Beaconing","AWS SecOps P1-04a - EKS Audit Pod Exec, Privileged Workload and Cluster-Admin Escalation (Single-Source)","AWS SecOps P1-04b - EKS Audit Risk Correlated with GuardDuty Container Findings or CloudTrail EKS Role Changes","AWS SecOps P1-05 - CloudFront Signed-URL Abuse, Path Enumeration and Automation Anomaly","AWS SecOps P2-01a - AWS Network Firewall High-Severity Alert and Allowed Threat Signature (Single-Source)","AWS SecOps P2-01b - AWS Network Firewall Correlated with VPC Flow, GuardDuty and IAM Changes"]);
let Fired = union isfuzzy=true
(datatable(TimeGenerated:datetime, SystemAlertId:string, AlertName:string)[]),
(SecurityAlert | where TimeGenerated between (Start .. End) | project TimeGenerated, SystemAlertId, AlertName)
| summarize arg_max(TimeGenerated, *) by SystemAlertId
| summarize AlertsFired=count(), LastFiredUtc=max(TimeGenerated) by RuleName=AlertName;
print Seed=1
| mv-expand RuleName = PackRules to typeof(string)
| project RuleName
| join kind=leftouter Fired on RuleName
| extend AlertsFired = coalesce(AlertsFired, 0),
ContentVersion = "2.1.0-hardened",
OperationalNote = iff(isnull(LastFiredUtc), "Zero alerts in window (verify Panel 10.1 ARM Enabled state & Tab 2 Data Health)", "Active firing observed - review fidelity in Panel 10.2")
| order by AlertsFired desc, RuleName asc
| take 5000Explanation
This query is designed to analyze AWS security operations by checking which of the 26 predefined security detection rules have triggered alerts within a specified time window. Here's a simplified explanation of what the query does:
-
Time and Filters Setup: It starts by defining the time range (
StartandEnd) and various filters (like organization, account, region, environment, etc.) that are decoded from base64 strings. These filters help narrow down the data to specific contexts. -
Detection Rules: A list of 26 AWS security detection rules is defined. These rules are related to various security operations and cross-cloud activities.
-
Alert Data Collection: The query collects alert data from a
SecurityAlerttable within the specified time range. It summarizes this data to find the most recent alert for each unique alert ID. -
Join and Analysis: It then joins this alert data with the list of detection rules to determine which rules have fired alerts. If a rule has not fired any alerts, it notes that no alerts were observed in the specified time window.
-
Output: The results are ordered by the number of alerts fired and the rule names. Each rule is annotated with an operational note indicating whether alerts were fired or if further verification is needed.
-
Visualization: The output is intended for visualization in a table format, showing which detection rules have been active and providing insights into the security operations within the selected timeframe.
Overall, this query helps security teams understand the effectiveness and activity of their AWS security detections by showing which rules have been triggered and require attention.