Appearance
Signatures
The signature module checks every request against the OWASP Core Rule Set (CRS) and a few rules of our own. It catches injection, cross-site scripting, path traversal, command injection and protocol abuse. Each matching rule adds points to a score. A request is refused only when the score reaches a threshold, so one weak match does not block it.
What it is made of
| Part | What it does | Page |
|---|---|---|
| Paranoia level and thresholds | Choose how many rules run and how many points block. | Paranoia level and thresholds |
| Our own rules | Rules 200100 and 200110, added to the CRS. | Our own rules |
| Answer confirmation | Checks the server's answer to a probe (rules 200200 to 200220). | Answer confirmation |
| Rule pre-filter | Skips rules that cannot match a request, to save time. | Rule pre-filter |
| Rule exclusions | Stop a rule from matching one path, method or field. | Rule exclusions |
| Staged rules | Let new or noisy rules log only until a date. | Staged rules |
How it works
The signature module runs after the positive model and before session protections. For each request it loads the rules of the application's paranoia level, runs them on the request line, headers, parameters and body, and adds up the scores of the matches. The engine always scores. Whether the request is refused depends on the mode.
An event names every rule that matched, the matched field and value, the score and the threshold, so each block is explained. Responses are scored the same way against the response threshold when response rules run.
Modes and roles
policy.signatures.mode is detect (record only) or block. Empty follows the application. The weaker mode wins: detect on either level logs only. New applications start in detect.
Role operator changes signature settings and exclusions for the applications in scope. viewer reads them.
How changes take effect
Settings, exclusions and staged rules are part of the application's policy. A change previews its diff, takes a comment and becomes a numbered configuration version that inspection accepts before Envoy. In a high-availability pair the standby applies the same version within a second. For details, see Protect applications.
The CRS release is vendored with the product and changes only with a product update. You do not edit the CRS files.