OWASP Core Rule Set paranoia levels explained (and how to avoid false positives)

By TurnUpHosting Web Services LLC · · #waf #owasp-crs #modsecurity

The OWASP Core Rule Set (CRS) ships with four paranoia levels (PL). Each level enables more rules, catching more attacks but also flagging more legitimate traffic.

LevelMeant forTrade-off
PL1Every site, the defaultVery few false positives
PL2Sites with real security needs (logins, payments)Some tuning expected
PL3High-value applicationsRegular tuning required
PL4Very high security, small attack surfaceMany false positives without heavy tuning

Anomaly thresholds

Each rule that matches adds to a request's anomaly score. A critical match adds 5 points; the default inbound threshold is 5, so one critical match blocks. Raising the threshold (for example to 10) during a rollout makes CRS more forgiving while you watch the logs, then you lower it again.

A tuning process that works

  1. Run with logging only (or a high threshold) for a few days on real traffic.
  2. Read the audit log and group blocks by rule ID and URL path.
  3. Decide for each group: is it an attack, or your application doing something unusual (a rich-text editor posting HTML, a JSON API with long tokens)?
  4. Write narrow exclusions: remove one rule for one path or one parameter, never globally:
SecRule REQUEST_FILENAME "@beginsWith /wp-admin/post.php" \
  "id:10001,phase:1,pass,nolog,ctl:ruleRemoveTargetById=941100;ARGS:content"
  1. Enable the built-in exclusion packages for WordPress, Drupal, Nextcloud, cPanel and phpMyAdmin (CRS 3) or the matching plugins (CRS 4).
  2. Lower the threshold back to the default once the logs are quiet.

Common false-positive sources

  • Content editors that submit HTML or code snippets.
  • Search boxes where users type SQL-looking words.
  • Long base64 or JWT tokens in cookies or headers.
  • Uploads with unusual file names.

When to move up a level

Stay at PL1 for shared hosting with many unrelated sites; you can't tune for every customer's application. Consider PL2 for a single application you control, after tuning at PL1.

TurnUpSecurity Shield installs CRS at PL1 with the common application exclusions turned on, adds its own targeted rules on top, and keeps your local exclusions in a file that updates never overwrite.