On this page (6)
The four baseline AWS WAF rule groups for Drupal 10 and 11
Most Drupal 10 and 11 estates start with four AWS managed rule groups: AWSManagedRulesCommonRuleSet (Core Rule Set covering XSS, RFI, LFI, and request anomalies), AWSManagedRulesKnownBadInputsRuleSet (known exploit payloads and scanner signatures), AWSManagedRulesSQLiRuleSet (SQL injection patterns), and AWSManagedRulesAmazonIpReputationList (known malicious IP sources).
Teams running PHP workloads often evaluate AWSManagedRulesPHPRuleSet as well, though adding it in Count mode first prevents unexpected hits against legacy contrib modules or custom query parameters.
Every one of those baseline groups should start in Count mode on day one. Count mode evaluates live Drupal traffic and logs rule matches without dropping real users, giving you hard request evidence before anything blocks.
Exact Drupal 10 and 11 paths that trigger AWS WAF false positives
False positives on Drupal 10 and 11 are remarkably predictable. Knowing which endpoints trip which sub-rules keeps you from weakening protection site-wide when a single content editor saves a page.
| Drupal path | Frequent AWS WAF sub-rule | Safe tuning pattern |
|---|---|---|
| /node/*/edit, /node/add/*, /layout_builder/* | SizeRestrictions_BODY, CrossSiteScripting_BODY | Observe in Count mode; scope a narrow path exception for authenticated editor saves rather than disabling XSS globally |
| /form/*, /webform/* | SizeRestrictions_BODY, SQLi_BODY, GenericRFI_BODY | Keep Webform endpoints in Count until real submissions pass cleanly; allowlist only the specific sub-rule on verified form paths |
| /user/login, /user/password, /user/register | NoUserAgent_HEADER, aggressive IP rate limits | Measure campus NAT peaks before setting login rate limits so shared Wi-Fi or office IPs are not locked out |
| /jsonapi/*, /media/oembed | GenericRFI_QUERYARGUMENTS, CrossSiteScripting_QUERYARGUMENTS | Review external oEmbed URLs and JSON:API filter queries in Count logs before promoting |
| /core/install.php, /update.php, /xmlrpc.php | High-confidence exploit probes | Block or restrict administrative setup scripts at the edge; legitimate visitors never request them |
Why SizeRestrictions_BODY and CrossSiteScripting_BODY hit Drupal editors
AWS WAF inspects the first 8 KB of HTTP request bodies by default under SizeRestrictions_BODY in AWSManagedRulesCommonRuleSet. A faculty profile page built in CKEditor 5 with embedded video markup, tables, or Layout Builder blocks regularly exceeds 8 KB on POST.
That same editor POST contains valid HTML tags (<script>, <iframe>, style attributes, or data attributes) that match CrossSiteScripting_BODY. Disabling CrossSiteScripting_BODY across the whole domain exposes public search and anonymous comment forms to real XSS payloads. Instead, keep the rule active site-wide and scope an exception tightly to the affected path only after confirming real editor traffic in Count logs.
The same discipline applies to Drupal Webforms: long admissions essays, research abstracts, or file attachments often trigger SizeRestrictions_BODY or SQLi_BODY on common English phrases like select or union. Scoped path exceptions keep SQL injection protection active everywhere else.
Count mode, Advisor evidence, and human Promote
On WAF Cybersecurity, all four baseline AWS managed rule groups start in Count mode automatically when your Drupal site connects via CloudFront. After 24 hours of live traffic, the WAF Cybersecurity Advisor audits observed matches and recommends Promote, Hold, or Needs allowlist with evidence.
The Advisor does not auto-block. A human on your team reviews the flagged Drupal paths, adds any scoped path exception needed for CKEditor or Webforms, and clicks Promote. If an editor reports a surprise 403 later, any rule reverts from Block back to Count in one click.
Virtual patching during Drupal Security Advisory Wednesdays
When a critical Drupal core or contrib CVE drops on a Wednesday afternoon, large campus estates cannot always deploy Composer updates across 20 departmental sites in an hour. AWS Managed Rules and targeted edge rules provide immediate virtual patching at CloudFront before probes reach PHP.
Because edge request logs redact query strings, request bodies, Cookie headers, and Authorization headers before writing to S3 (with 30-day automatic expiry), your team can inspect attack paths without storing form submissions or session tokens.
FAQ
Do I need to install a Drupal 10 or 11 module to use AWS WAF?
No. CloudFront and AWS WAF sit in front of your existing Drupal host via DNS, so no contrib module, PHP extension, or Composer change is required.
Why does CKEditor 5 or Layout Builder trigger a 403 behind AWS WAF?
Rich HTML editor saves frequently exceed the 8 KB SizeRestrictions_BODY threshold or include markup that matches CrossSiteScripting_BODY. Running in Count mode first identifies those exact paths so you can add a narrow exception without disabling XSS protection site-wide.
Will WAF Cybersecurity block /user/login or admissions Webforms on day one?
No. Baseline rules start in Count mode, and the Advisor does not auto-block. A human reviews 24 hours of live traffic evidence and clicks Promote when ready.
Can we manage multiple Drupal sites under one campus agreement?
Yes. Single sites are $150/site/month ($1,650/year) with a 14-day trial, and multi-site higher-ed or public-sector estates can use Campus Estate with pooled bandwidth and annual purchase-order invoicing.