AWS Builder Center

nginx-security, read against AWS services only

nginx-security, read against AWS services only

Category by category, AWS services only

list category
AWS-services-only replacement
notes
WAF modules (ModSecurity, NAXSI, lua-resty-waf, Wallarm)
AWS WAF — managed rule groups (Core/CRS, SQLi, Linux, known-bad-inputs), your own rules, associated with ALB / CloudFront / API Gateway / AppSync
the ModSecurity-CRS role is AWS WAF's Core rule set; no NGINX module to patch
Rate limiting / overload protection ("Scripting NGINX for Overload Protection")
AWS WAF rate-based rules + CloudFront absorbing volume
per-IP and per-path thresholds as rules, not Lua
fail2ban (ban abusive IPs)
WAF IP sets (manual/automated) + Shield; automate with the AWS WAF Security Automations pattern (log-driven IP blocking)
the "ban on repeated failures" behaviour becomes a WAF IP set updated from logs
DDoS / behavioral protection (Repsheet)
AWS Shield Standard (always on) / Shield Advanced (L3/L4/L7, DRT, cost protection)
Shield Standard is free and automatic on CloudFront/ALB
TLS / Let's Encrypt + certbot
ACM — free public certs, auto-renewed, attached to ALB/CloudFront/API Gateway
no certbot cron, no renewal hooks
Bot mitigation / anti-scraping / ATO ( testcookie )
AWS WAF Bot Control + Account Takeover Prevention (ATP) managed rule group + CAPTCHA/Challenge actions
the cookie-challenge idea is WAF's  Challenge / CAPTCHA ; credential-stuffing is ATP
Config analysis ( gixy ,  nginxconfig.io )
no AWS service — there is no  nginx.conf  to analyze on a managed ALB
relevant only if you still run NGINX yourself (then keep gixy)
NGINX hardening / sandboxing (systemd sandbox, SEnginx, bunkerized-nginx)
largely N/A — the ALB is a managed, hardened endpoint you don't patch
only applies to self-run NGINX behind the ALB
WAF for Kubernetes (Wallarm sidecar / ingress)
AWS WAF on the ALB via the AWS Load Balancer Controller  Ingress , or on CloudFront in front
the managed-WAF-on-managed-ingress path
Visibility (behavioral security, logging)
WAF logging → CloudWatch / S3 / Kinesis Firehose, Security Lake; GuardDuty for account-level threats
WAF full-request logging replaces NGINX access-log mining

What stays yours

Only if you deliberately keep NGINX in the request path (an in-cluster reverse proxy, an existing app tier, or a feature AWS WAF doesn't cover):
  •  nginx.conf  hardening and  gixy  analysis — AWS has nothing that inspects an NGINX config, because on the managed path there isn't one.
  • A richer in-proxy WAF than AWS WAF's rule model — e.g., OWASP Coraza (the maintained ModSecurity successor) or NGINX App Protect, if you need ModSecurity-style custom rules the managed WAF can't express.
  • Per-request application logic at the proxy (header rewriting, mTLS to upstreams) — CloudFront Functions / Lambda@Edge cover some of this, but not all.

Read this first, part 2: three tools six years retired

The list is ~6 years old (last change ~2019) and three of its WAF entries have aged out — worth knowing before you reach for them:
in the list
2026 status
ModSecurity for NGINX (and "NGINX Plus with mod_security")
end-of-life. ModSecurity as a project is retired; the NGINX ModSecurity dynamic module/connector reached EOL. The maintained successor is OWASP Coraza (ModSecurity-compatible, CRS-compatible); NGINX's own commercial path is App Protect
lua-resty-waf
unmaintained/archived — don't start new work on it; the OpenResty-WAF lineage moved on
CloudFlare's Lua WAF ("compiling to Lua")
CloudFlare rewrote its WAF (Lua → Rust/Wasm) years ago; the article is historical
NAXSI, gixy, bunkerized-nginx (now "BunkerWeb")
still maintained — NAXSI and BunkerWeb are active; gixy is still the NGINX-config linter of choice
On AWS this mostly doesn't matter, because AWS WAF's managed Core rule set plays the ModSecurity-CRS role without you running any of these.

The short version

  • The list's whole WAF-in-NGINX model becomes AWS WAF on the ALB/CloudFront — managed Core rules (the CRS role), rate-based rules (overload protection), Bot Control + ATP (the  testcookie /anti-ATO role), and CAPTCHA/Challenge (the cookie-challenge role).
  • Shield replaces fail2ban/DDoS scripting; ACM replaces Let's Encrypt+certbot; WAF logging + Security Lake replace access-log mining.
  • On EKS, AWS Load Balancer Controller + WAF replaces the NGINX Ingress Controller + ModSecurity entirely — the list's "WAF for Kubernetes" category.
  • Stays yours only if you keep NGINX:  nginx.conf  hardening,  gixy , and a richer in-proxy WAF (Coraza, not the retired ModSecurity).
  • Retired tools: ModSecurity-for-NGINX (→ Coraza / App Protect), lua-resty-waf, CloudFlare's Lua WAF.

Questions this page should leave you able to answer

  • What replaces the NGINX Ingress Controller + ModSecurity on EKS? →  Read this first 
  • Which of the list's items have no AWS-managed equivalent, and when do they still matter? →  What stays yours 

Verified, and not

From the list: its categories, articles, talks, tools and forks, plus the stars/forks figures and ~6-year-old last change, as read from the pasted README.
Checked 14 October 2026: that ModSecurity is retired and OWASP Coraza is its maintained, CRS-compatible successor; that the NGINX ModSecurity module reached EOL; that lua-resty-waf is unmaintained; that NAXSI and BunkerWeb (formerly bunkerized-nginx) are still active.
From AWS knowledge, not re-checked against an API model for this page: AWS WAF managed rule groups (Core rule set, Bot Control, Account Takeover Prevention), rate-based rules, and CAPTCHA/Challenge actions; WAF association with ALB/CloudFront/API Gateway/AppSync; the AWS Load Balancer Controller provisioning an ALB from an  Ingress  with a web ACL; Shield Standard/Advanced; ACM free auto-renewing certificates; WAF logging to CloudWatch/S3/Firehose and Security Lake; CloudFront Functions / Lambda@Edge for edge logic.
Not run. No AWS resource was created and no NGINX config was analyzed for this page.
Related pages:  EKS security with AWS services only ,  5 must-have Kubernetes security tools read against EKS , and  Vinum-Security's checklist read against EKS  (whose network-security section's WAF item this page expands).
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article