Skip to content

Find, explain and fix a false positive Since v0.1 ​

A false positive is a legitimate request that a module refused or flagged. It is as serious as a missed attack. The loop is: find the event, explain it, except it narrowly, and check the result.

Before you begin ​

  • Role: operator for the application. viewer can find and explain events, and sees masked values.
  • Run a new application in detect first. Events then show would_block for what would have been refused.

Find the event ​

text
1. Open Monitor > Events.
2. Filter by application, rule, client, path, outcome and time.
3. Open the event.
sh
waap events list -app shop -since 1h
waap events top -by rule -app shop -since 24h

Explain the event ​

The event page shows why the request was blocked or allowed: the matched rules, the matched field and its value (full unless the application masks values), each module's decision and its time, and the request flow.

text
1. Open the event.
2. Read the reasons: module, rule ID, matched field and value, action and mode.
3. Open the request flow to see each module's decision.
sh
waap explain EVENT-ID

Except the event ​

The proposal is as narrow as the event allows: this application, path, method, rules and field. You review the changes before anything is applied.

text
1. Open the event and find the False positive? card.
2. Select Propose exception.
3. Review the exception and the configuration changes.
4. Enter a comment saying why the request is legitimate, then apply.
sh
waap except EVENT-ID
waap except -apply -m "search form sends SQL words" EVENT-ID

For details on editing the result, see Rule exclusions.

Roll back ​

If the change was wrong, restore the previous version.

text
1. Open System > Configuration versions.
2. Select the earlier version and restore it.
sh
waap config rollback -m "undo exception" 12

Trace allowed requests ​

To answer "why was this allowed?", record allowed requests in full for a while. Set the clients, the paths, or both, and an end time at most 24 hours ahead.

text
1. Open Request checks > Access and rate limits, Staging and trace tab.
2. Enter Trace clients, Trace paths and Trace until.
3. Select Preview changes, then Apply.
sh
waap apps set -app shop -m "why allowed" policy.trace.client_ips=203.0.113.7 policy.trace.until=2h
yaml
applications:
  - name: shop
    policy:
      trace:
        client_ips: [203.0.113.7]
        paths: ["/checkout*"]
        until: 2026-11-26T10:00:00Z

Matching allowed requests are recorded with their full trace. Remove the clients and paths to turn tracing off.

Trace settings ​

SettingWhat it doesDefaultAllowed valuesApplies in
Trace clients (policy.trace.client_ips)Trace requests from these addresses.noneaddresses or networksall
Trace paths (policy.trace.paths)Trace only these paths. With clients set, both must match.noneexact paths or prefixes ending in *all
Trace until (policy.trace.until)When tracing stops.none (required with clients or paths)a time, or a duration from now; at most 24h aheadall

Tracing all traffic is not allowed: set clients or paths.

Troubleshooting ​

waap except proposes nothing narrower than the whole application ​

  • Cause: the event carries no matched field or path.
  • Fix: write the exclusion by hand with Rule exclusions.

Preview of a trace refuses: a time is required (tracing must end) ​

  • Cause: Trace until is empty.
  • Fix: set a time or a duration, at most 24 hours ahead.