Menu

Turning an AWS WAF From a Checkbox Into a Dashboard You Actually Read
📰

Turning an AWS WAF From a Checkbox Into a Dashboard You Actually Read

DEV Community: terraform·Athila Figueiredo·1 day ago
#J4qjKC57
#devtoterraform#devto#dev#security#ever
Reading 0:00
15s threshold

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…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.