Tuning
Where to start with a false positive, allow rules and shadow mode, impact preview, tuning suggestions, application exclusion packs, and optional AI false-positive triage.
RST WAF handles false positives as one workflow. In observe mode it records events that would have been blocked, mines tuning suggestions from them, and tests allow rules in shadow mode before they take effect. The pages are in the Web attack protection group: Allow rules (加白规则), Tuning suggestions (调优建议) and Application exclusion packs (应用排除包).
Where to start
Handle false positive / allow (处理误报 / 放行) on the Rules and policies and Allow rules pages asks what you want to allow and points you to the right method:
| Option | Method |
|---|---|
| A parameter is a false positive | Skip the relevant rules for that parameter only (an allow rule), for example when quotes in a search box look like an attack |
| Request format problem (request body failed to parse) | Rule 200002 means the declared format does not match the content. Exclude 200002 for that IP and path only, keep every other check, and do not allow-list the whole IP |
| Allow a whole path | For example a callback endpoint: allow it with an access rule that still inspects and logs attacks |
| Allow an IP or partner | Add it to the IP allow list |
| One rule causes false positives across the site | Set the rule to log only or disabled in the CRS rule library, optionally for one site |
| A type of application (WordPress and similar) | Enable the matching application exclusion pack to handle that application's common false positives at once |
You can also create an allow rule directly with Allow false positive (误报加白) in the security event details.
Allow rules
An allow rule makes matching requests skip the specified CRS rules.
Scope (all conditions must match):
- Site: all sites or a specific site.
- Source: all sources or a specific IP or range.
- Path: exact match, prefix or all paths.
- Parameter: all parameters or a specific one, such as
ARGS:q. - Rules: rule ID, tag or all rules.
All rules together with all parameters would switch the WAF off and cannot be saved. Use an access rule with allow and Still inspect and log attacks (仍检测并记录攻击) instead.
Impact preview (影响预览) replays past blocks and shows how many requests would be allowed, split into normal, likely attack and still blocked.
Validity is permanent, 7 days, 30 days or custom, and a note is required.
Shadow mode
Allow rules have four states: draft, shadow mode, active and disabled. Shadow mode logs without allowing: the rule matches as usual and counts how many requests it would allow and how many of those look like attacks. Once the shadow period shows no likely attacks, select Activate (生效). If likely attacks appeared during the shadow period, activation asks for a second confirmation.
When saving you can choose Save as draft, Save and enter shadow mode or Activate directly. The list is grouped by lifecycle and highlights rules with likely attacks in shadow mode and rules expiring within 7 days.
Tuning suggestions
Tuning suggestions are mined automatically from security events, including would-block events in observe mode. Types:
| Type | Description |
|---|---|
| False positive exclusion | A rule's hits at one location look like false positives |
| Business caller | A source sends mostly normal business requests. Suggestions can target that IP; requests with attack signatures are excluded from the analysis |
| Request body parse failure | The request body does not match its declared format |
| Rate limit hitting legitimate traffic | A rate limit blocked many normal requests |
| Attacker action affecting business callers | An action against an attacker affected business callers |
| Request over limit | Parameter count or body size exceeded the limit |
| Allow list too broad | An allow list or allow rule covers too much |
| Field type | Declaring a field type is suggested |
Each suggestion shows the false-positive confidence, the detection-loss risk (low, medium, high), the number of requests expected to be allowed, the reasoning, the matched rules and masked evidence samples. Accept into shadow mode (采纳到影子模式) creates an allow rule in shadow mode. Suggestion types that change configuration ask for a second confirmation and take effect immediately; any allow rules they create still start in shadow mode. Use Ignore (忽略) to dismiss a suggestion.
When there are no suggestions, the page explains what was analysed and why nothing was found.
Application exclusion packs
Application exclusion packs are the official OWASP CRS application exclusion plugins. They ship with the software, need no download and are enabled per site: WordPress, Drupal, Nextcloud, phpMyAdmin, phpBB, XenForo, cPanel and DokuWiki.
Under Enable per site (按站点启用), choose a site and Configure (配置). Before enabling, you can replay blocked events to see how many of the requests that would be allowed look like false positives and how many still look like attacks. Sites with only wildcard domains cannot enable packs. Part of the phpMyAdmin pack applies to every site once any site enables it.
AI false-positive triage
With Settings > LLM connection configured, tuning suggestions and security events can get an advisory verdict from AI on whether they are false positives and how to handle them. It is off by default.
- Only selected fields are sent to the model: rule ID and name, matched variable names, masked and truncated match snippets, counts and path templates. Credentials, full request bodies and parameter values, original client IPs and domains, and console accounts and configuration are never sent.
- A daily request and token budget applies (100 requests and 200,000 tokens per day by default), and the same content is not sent twice within 24 hours.
- Verdicts are advisory only. They never change configuration on their own and play no part in real-time blocking.
- It needs the Use AI triage (使用 AI 研判) permission, granted only to super administrators by default.
For the connection settings, see Integrations.
Rules and policies
CRS protection level and anomaly thresholds, detection module modes and presets, precision mode, CSRF options, rule bundles and virtual patches, the CRS rule library, heightened protection mode and configuration publishing.
Access control
Allow and block lists and IP groups, access rule conditions and actions, geo access, the threat intelligence library, JA4 lists and bans.