Appearance
Positive model
Signatures look for known attacks. The positive model works the other way round: it learns what normal requests to your application look like (endpoints, methods, content types, parameters, value types and lengths) and refuses what does not fit. It catches attacks no signature knows, and it finds endpoints and parameters you did not know you had.
What it is made of
| Part | What it does | Page |
|---|---|---|
| Learning | Observes clean traffic and builds a model per endpoint. | this page |
| URL tree and parameter profiles | Shows what was learned and how sure the engine is. | Browse and profiles |
| Suggestions | Proposes one rule per ready endpoint; you can reject them. | Review suggestions |
| Approval and impact preview | Turns suggestions or manual rules into policy, after a replay against real traffic. | Approve and preview |
| Enforcement | Checks every request against the approved rules. | Enforce the rules |
| Violations | Shows what the rules refused or logged, with a fix for each. | Violations and false positives |
| Maintenance | Proposes updates, removals and notices application changes. | Keep the rules current |
How it works
Learning is off by default and is opt-in per application. It also runs in detect mode. Only clean requests count: no module flagged, refused, challenged or failed on them, the signature anomaly score is zero, and the upstream answered below 400. Raw request bodies are not stored. Passwords, tokens, card fields and cookie values keep only their shape.
An endpoint becomes ready after enough requests, distinct clients and time (by default 1,000 requests, 20 clients and 72 hours, at 90% confidence). A ready endpoint gets a suggestion. Learning alone never installs a rule: you approve each suggestion, and each approval becomes a new policy version.
The positive model runs in the pipeline after API schema and file checks and before signatures. Without rules nothing is checked, whatever the other settings say.
Modes and roles
The module has its own mode, detect or block. If empty, it follows the application and detect wins. In detect a refusal is recorded as "would block". New rules can also be staged: they log until a date, then refuse. Keep unknown_endpoints at log while you approve endpoint by endpoint.
viewer reads the model, suggestions, rules and violations. operator rejects, approves, edits rules and resets learning.
How changes take effect
Every approval, rule edit and settings change shows a diff, takes a comment and becomes a numbered configuration version. Rollback works as for any other change. Observations are kept per node and merged; in an HA pair both nodes learn.