Appearance
Browse URLs and parameters Since v0.1
The learned model groups what the engine saw into endpoints (METHOD /template) and, for each endpoint, parameters with a proposed profile. Viewing is read only.
Before you begin
- Role:
operatorto turn on learning or change settings,viewerto read. - Traffic must flow through the application, and the protections must stay on: requests that another module flags are not learned.
Turn on learning
text
1. Open Applications > All applications, select the application.
2. Open Request checks > Learned model. On the Status tab, select Turn on learning.
(Or open the Settings and reset tab and set Learn from traffic.)sh
waap learning set -app shop -m "start learning" enabled=true learning.enabled=true
waap learning status -app shopyaml
# applications[].policy.positive in the configuration
positive:
enabled: true
learning:
enabled: trueThe Status tab shows off, learning, paused (disabled with saved samples) or ready (at least one endpoint met the evidence thresholds). It refreshes every 10 seconds, and shows threshold bars for samples, clients and time span, content types, daily samples (UTC) and this node's counters since start. The page has six tabs: Status, URL tree, Violations, Suggestions, Rules and preview and Settings and reset.
Read the URL tree
text
1. Open the URL tree tab.
2. Filter by method or path text, or by endpoint status (learning or ready).
3. Select a method badge to load the endpoint's counts, content types,
confidence evidence and parameter table.sh
waap learning model -app shop
waap learning model -app shop -endpoint 'GET /products/{var}'The tree groups endpoints by path segment. A trailing slash is a separate node. Known OpenAPI templates come first; otherwise numbers, UUIDs, hex strings and tokens become {id}. When a prefix has more than learning.fold_threshold distinct literal segments, they fold into {var}: 21 product slugs under /products/ become /products/{var}. The folded part becomes a path parameter named var (then var#2, var#3).
Models are built on demand and cached for up to a minute. Refresh model can return the same cached build, so check Built before comparing with the status card.
Confidence
Confidence is the lowest of four factors, each 0 to 100%.
| Factor | Measures |
|---|---|
| Samples | Progress towards learning.min_samples for the endpoint. |
| Clients | Estimated distinct clients towards learning.min_clients. |
| Duration | First to last observation towards learning.min_duration. |
| Stability | Share of significant parameters and content types already seen in the oldest 75% of samples, per UTC day. Items under 0.1% are ignored. A single day counts as stable, with the evidence saying so. |
An endpoint is ready only when sample, client and duration thresholds are fully met and confidence reaches learning.min_confidence. The limiting factor names the lowest factor under 100%.
Read parameter profiles
A profile describes what at least 99.9% of the observed values look like. The table shows location, presence, value and empty counts, estimated distinct values, length range in bytes, compatible types, character classes and confidence. Sensitive parameters are marked shapes only and never show values; path parameters from folds are marked as folds.
- Type. The narrowest type covering 99.9% of non-empty values. Empty values are checked by length only.
- Length. The 0.1% and 99.9% quantiles, widened by a quarter (at least one byte). If long values are common the maximum is unbounded (
max: 0). Values are examined up to 4,096 bytes. - Characters. Classes (such as
lower,digit,quote,markup) covering 99.9% of values. They constrain onlytextandalphanumeric. - Required. Present in at least 99.9% of samples. Path variables are always required.
- Enum. Up to 32 short, non-sensitive values, each seen on average ten times, with no new value in the latest 25% of samples.
- Changed. A mark shows a profile that changed in the latest samples. Its confidence is capped at 50%.
A few clients cannot teach the model
A shape (a type, length range, character class or enum value) sent by fewer than learning.min_clients clients is an outlier. It does not widen the profile. A parameter that too few clients send is known by name only (a name only parameter: any value accepted).
Settings reference
Learning
| Setting | What it does | Default | Allowed values | Applies in |
|---|---|---|---|---|
Positive security model (enabled) | Learns and enforces. Off keeps data and rules but does nothing. | true | true, false | all |
Learn from traffic (learning.enabled) | Observes clean requests. | false | true, false | all |
Requests observed per second (learning.sample_rate) | Cap per application on each node. | 100 | up to 10,000 | learning on |
Headers to learn (learning.headers) | Request headers learned as parameters. Authorization and Cookie never. | none | at most 16 names | learning on |
Cookies to learn (learning.cookies) | Cookies learned by name; values keep shape only. A trailing * matches a prefix. | none | at most 16 names | learning on |
Suggestions
| Setting | What it does | Default | Allowed values | Applies in |
|---|---|---|---|---|
Requests before suggesting (learning.min_samples) | Samples an endpoint needs (a parameter needs a fifth). | 1000 | up to 10,000,000 | learning on |
Distinct clients before suggesting (learning.min_clients) | Clients needed. | 20 | up to 1,000,000 | learning on |
Learning time before suggesting (learning.min_duration) | Time span the traffic must cover. | 72h | 1m to 2160h | learning on |
Confidence before suggesting (learning.min_confidence) | Lowest confidence for a suggestion. | 90 | up to 100 (percent) | learning on |
Distinct values to fold a path segment (learning.fold_threshold) | Distinct segments above which a position becomes {var}. | 20 | up to 10,000 | learning on |
Limits
| Limit | Value |
|---|---|
| Endpoints per application per node | 2,000 |
| Parameters per endpoint | 128 |
| Examined value size / name size | 4 KiB / 256 bytes |
| Enum candidates per parameter | 32 values of at most 64 bytes |
| Share one client may contribute per endpoint and hour | 5% (at least two samples) |
| Observation retention | 90 days |
Troubleshooting
- Endpoint stays
learning. Read its limiting factor in the URL tree. A single test client quickly stops contributing because of the 5% cap; send traffic from many clients. - No requests are learned. Another module flagged them, the upstream answered 400 or more, or the sample rate was exceeded.