The problem
A WAF that just sits there "protecting" an app isn't a security review — it's a checkbox nobody ever looks at again. The real question a WAF should be able to answer at a glance is: is something actually happening right now, and does it need a human?
What this baseline includes
- Rate limiting plus two AWS-managed rule groups.
- Full request logging into a pre-wired CloudWatch dashboard — not logs that exist somewhere and get checked during an incident, a dashboard that's already there.
- A Python module that turns the raw log stream into what a review actually reads: block rate over time, the IPs getting blocked most, and an alert threshold with a minimum-sample guard — so a quiet afternoon with 3 requests doesn't trigger a false alarm the way a naive percentage threshold would.
Tested, not just deployed
12 tests cover the analysis module specifically — including the minimum-sample guard, which is the one piece of logic in this project that isn't obvious until you've been burned by a false alarm from a tiny sample size in production.
Fully defined in Terraform, validated with checkov in CI on every push — static analysis, no AWS account needed to confirm the security posture is sound before you ever deploy it.
Stack
Python, Terraform/AWS, GitHub Actions.
If your WAF logs exist but nobody's ever turned them into a number worth checking at a glance, this is that number.


