Concepts & decisions5 min read6 sections

ModSecurity (OWASP CRS) vs. managed AWS WAF for campus and public-sector websites

Many university, K-12, and public-agency web teams run Apache or Nginx ModSecurity with the OWASP Core Rule Set (CRS) on their origin VMs because it is open source and familiar. Over time, the operational cost shows up in three places: bot floods still burn origin CPU and PHP workers before ModSecurity finishes inspecting them, CKEditor/Webform/SSO false positives force manual CRS paranoia tuning and SSH config reloads, and every new microsite repeats the work. Here is how host-based ModSecurity compares with edge-managed AWS WAF on Amazon CloudFront.

On this page (6)

Origin-side ModSecurity vs. edge AWS WAF on CloudFront

Because ModSecurity runs inside Apache or Nginx on the application host, every probe, scanner burst, and credential-stuffing request still hits your VM, consumes TLS handshakes and worker memory, and runs regex inspection on the same CPU serving Drupal or WordPress.

Edge-managed AWS WAF on Amazon CloudFront filters exploit payloads, scanner bursts, and bad bots before requests ever reach your origin VM. Once paired with origin lockdown so callers cannot bypass CloudFront on port 443, junk floods stop at the edge instead of paging your origin team.

Architecture, tuning, and privacy comparison

The biggest difference is not the underlying signature library — it is where requests are inspected, how false positives are triaged on CMS forms and SSO callbacks, and how much server maintenance stays on your team.

Host-based ModSecurity (OWASP CRS) vs. WAF Cybersecurity on CloudFront
Decision factorModSecurity (OWASP CRS)WAF Cybersecurity (Managed AWS WAF)
Inspection pointInside Apache or Nginx on the origin VM — floods still hit your hostAt Amazon CloudFront + AWS WAFv2 edge before traffic reaches your origin
DDoS & bot surge handlingOrigin CPU, workers, and memory absorb junk traffic during floodsEdge absorbs scanner and bot bursts; origin stays idle when locked to CloudFront
Rule tuning workflowOWASP CRS paranoia levels, SecRuleRemoveById edits, SSH config reloadsFour baseline AWS Managed Rules start in Count mode; Advisor gives evidence; human clicks Promote
CMS & SSO false positivesCKEditor HTML saves, Drupal Webform, WordPress, and Shibboleth/CAS POSTs trip CRS rules24h Count window exposes form and SSO hits before blocking; scoped path allowlists skip only noisy inner rules
DNS & onboardingNo DNS change, but Apache/Nginx module must be built and maintained on every hostKeep authoritative DNS (Infoblox, BIND, Route 53) via CNAME with guided or concierge setup
Edge log privacyLocal audit logs on disk retain full payloads unless custom-scrubbed and rotatedQuery strings, request bodies, Cookie, and Authorization headers redacted; S3 logs expire in 30 days
Pricing & procurementSoftware is free; total cost is sysadmin hours, patching, and origin headroom$150/site/month ($1,650/yr, 14-day trial) or Campus Estate multi-site PO

Replacing CRS paranoia-level guesswork with 24-hour Count mode

Tuning OWASP CRS usually means choosing between Paranoia Level 1 (quieter, misses edge cases) and higher paranoia levels that require per-rule SecRuleRemoveById overrides whenever an editor saves rich text in CKEditor, a resident submits a Webform, or Shibboleth/CAS posts a SAML assertion.

WAF Cybersecurity replaces that SSH trial-and-error loop with a Count-first workflow. Four baseline AWS Managed Rule groups start in Count mode automatically so nothing is blocked on day one. After 24 hours of real traffic, the Advisor recommends Promote, Hold, or Needs allowlist with evidence from your redacted logs.

It does not auto-block: a human on your team clicks Promote when the evidence is clean, and any promoted rule or scoped path exception reverts back to Count in one click.

Closing the loop when migrating off ModSecurity: origin IP lockdown

Turning off ModSecurity after pointing public DNS at CloudFront leaves a critical gap if port 443 on your origin VM remains open to 0.0.0.0/0. Attackers who pull historical DNS or TLS scan records can hit your raw origin IP directly, bypassing every CloudFront and AWS WAF rule.

Pair the cutover with a two-layer origin lockdown: restrict inbound HTTPS on your firewall or AWS Security Group to CloudFront edge ranges and enforce a custom secret origin header (such as X-Origin-Verify) in Nginx, Apache, or your load balancer.

Transparent pricing and campus procurement

Self-serve sites start at $150/site/month ($1,650/year) with a 14-day trial, 300 GB bandwidth, and 5 million requests/site/month included (transparent overage at $0.15/GB and $3 per million requests).

Multi-site universities, K-12 districts, and public agencies can use Campus Estate by sales quote with annual Purchase Order (PO), ACH, and Net-30 invoicing, a signed W-9, and a pre-filled HECVAT-Lite.

All customer traffic runs on isolated Amazon CloudFront and AWS WAF distributions (AWS infrastructure maintains SOC 2, ISO 27001, and FedRAMP authorizations); WAF Cybersecurity itself does not claim separate third-party compliance certifications.

FAQ

Can we keep ModSecurity in DetectionOnly while testing AWS WAF on CloudFront?

Yes. Because WAF Cybersecurity starts all four baseline AWS Managed Rule groups in Count mode, you can cut over via CNAME without day-one blocks and retire ModSecurity once your 24-hour Count window is verified and origin port 443 is locked to CloudFront.

Why does ModSecurity still spike origin CPU under bot floods?

Host-based ModSecurity runs inside Apache or Nginx after TCP and TLS terminate on your server, so floods still consume origin workers, memory, and CPU. Filtering at CloudFront + AWS WAF stops junk traffic at the edge before it touches your VM.

How does Count mode prevent CKEditor, Webform, and SSO false positives?

Instead of guessing an OWASP CRS paranoia level and reloading config files over SSH, baseline rules log matches in Count mode for 24 hours. The Advisor flags noisy paths as Needs allowlist so you scope exceptions before clicking Promote.

Does the Advisor auto-block campus traffic?

No. It does not auto-block. Baseline rules start in Count mode, the Advisor explains Promote, Hold, or Needs allowlist with evidence, and a human on your team clicks Promote.

How much does WAF Cybersecurity cost compared to maintaining ModSecurity in-house?

Self-serve is $150/site/month ($1,650/year) with a 14-day trial, 300 GB, and 5 million requests/month included. Multi-site estates can request a custom Campus Estate quote with PO and Net-30 invoicing.

Count mode first

Compare edge AWS WAF against your ModSecurity origin

New rules start in count mode so you review live traffic evidence before a human clicks Promote.