Live
Enforcing US Data Residency with Cloudflare D1AI agents CI: why repository‑centric pipelines are breakingAI Agent Inbox: Deploy Pizza Bot for Background Task ExecutionOpenAPPA delivers zero‑success prompt‑injection protection in benchmark tests – what AI engineers need to knowEU Cyber Resilience Act expands software supply‑chain responsibilities for digital product manufacturersTyped Probability Model Jev Shifts AI Output from Text to Structured DecisionsBasin Pipelines per‑stream ingest capacity jumps to 1 GB/s – what engineers need to knowAI‑driven vulnerability management: moving from CVE counts to contextual riskEnforcing US Data Residency with Cloudflare D1AI agents CI: why repository‑centric pipelines are breakingAI Agent Inbox: Deploy Pizza Bot for Background Task ExecutionOpenAPPA delivers zero‑success prompt‑injection protection in benchmark tests – what AI engineers need to knowEU Cyber Resilience Act expands software supply‑chain responsibilities for digital product manufacturersTyped Probability Model Jev Shifts AI Output from Text to Structured DecisionsBasin Pipelines per‑stream ingest capacity jumps to 1 GB/s – what engineers need to knowAI‑driven vulnerability management: moving from CVE counts to contextual risk
AWS

AWS Network Firewall Rule Hit Counts Enable Dormant Policy Cleanup

AI SummaryPowered by AI

AWS has updated its network firewall service to automatically track traffic matches for stateful rules, providing visibility into which policies are actively blocking or alerting on data. This capability allows security and platform teams to identify unused capacity, accelerate incident response validation, and meet compliance requirements by proving active control usage.

As enterprise rule sets grow in complexity, manual log analysis often fails to distinguish between rules that match traffic versus those consuming resources without triggering alerts. AWS Network Firewall now addresses this gap with a new capability: rule hit count. This feature provides direct visibility into which stateful rules are actively matching network traffic across both custom and managed rule groups.

Mechanism of Visibility

The implementation tracks how often each stateful rule matches incoming or outgoing data. The counter increments specifically when a match results in an alert log being created. Consequently, any rule configured with actions such as alert, drop, or reject will increment the hit count because these operations generate logs. However, rules using only a pass action do not generate alert logs by default and therefore remain invisible to this metric. To gain visibility into traffic matching pass rules without altering their permissive behavior, practitioners must include the alert keyword within the rule definition. This generates an internal log entry while still permitting the flow.

Data Structure and Integration

The feature enriches each alert log with specific metadata by default, requiring no additional configuration steps beyond enabling logging to CloudWatch Logs or Amazon S3. The included aws_metadata object contains a resource ARN identifying the stateful rule group. Practitioners can utilize this data in two primary ways:
  • Dashboards: Native monitoring widgets aggregate hit counts per firewall using these fields, allowing direct review of activity without querying raw logs.
  • Log Analysis: Teams storing logs to CloudWatch or S3 can query them directly. Searching by the combination of signature ID (s) and resource ARN allows for precise identification of specific rule triggers using tools like Amazon Athena or Logs Insights.

Operational Implications

The ability to quantify traffic matches against policy rules has significant implications for governance. Organizations with policies requiring the removal of dormant rules after a defined period now possess an automated mechanism to identify candidates for deletion, reducing attack surface and capacity costs. Furthermore, compliance frameworks such as PCI 4.0 or DORA often require evidence that specific security controls are actively functioning rather than merely existing in configuration files. This metric provides auditable proof of control effectiveness by demonstrating active traffic interception.

What This Means For Practitioners

To leverage this feature, ensure your firewall policies include the alert keyword for any pass rules you wish to monitor. While rule hit count tracking is enabled automatically upon deployment and does not require new configuration flags, detailed monitoring must be active in AWS Management Console or logging settings if using native dashboards. For platform teams managing firewalls across multiple business units, this change shifts the operational model from reactive log parsing to proactive capacity management. You can now confidently remove unused rules without fear of breaking traffic flows that are not generating alerts but might otherwise appear dormant.
Originally published atAWS Security Blog