Appearance
Prove it Since v0.2
Prove it scans a test copy of an application you registered in this product with the open-source scanners Nuclei and ZAP, which run as separate processes. It shows what the product would block, what it misses, and, after you switch to block, what is now prevented. It sits under Monitor > Validation.
Never scan production
A scan sends real attacks and can change or damage data. Only applications you opened to scanning can be scanned.
Before you begin
- Role: administrator to start and switch; scoped viewers can read reports of their applications.
- Install the scanners once with
make scanners(a source checkout). They go to.tools/scanners; start the product with-scanner-dirpointing there (default:scannersin the data directory). - Monitor > Validation or
waap prove checkshows which scanners are installed. - A batch scans 2 applications at once.
-validation-workerschanges that, up to 4.
Open an application to scanning
The settings are versioned and audited. Open the application's Validation settings page.
text
1. Open Applications > All applications, and select the application.
2. Open Validation settings.
3. Turn on that the application is a UAT copy.
4. Add starting URLs, OpenAPI descriptions and GraphQL endpoints.
5. Add the paths that must never be requested.
6. Set the login, the scan depth and the limits.
7. Select Preview changes, add a comment and select Apply.sh
waap prove settings -app shop
waap prove set -app shop -dry-run allow_scan=true
waap prove set -app shop -m "UAT copy" allow_scan=true
printf '%s' "$PASSWORD" | waap prove login -app shop -password-stdinyaml
# applications[].validation (the CLI settings keys use the same dotted names)
allow_scan: true
seeds:
urls: ["/search?q=a"]
exclude_paths: ["/logout"]| Setting | What it does | Default | Allowed values | Applies in |
|---|---|---|---|---|
UAT copy (allow_scan) | Allows scans of this application. | off | on, off | all |
Starting URLs, OpenAPI descriptions, GraphQL endpoints (seeds.*) | Give the crawler what no page links to. An API with no seeds gets almost no real testing. | none | paths | all |
Paths never requested (exclude_paths) | Stops the scan from requesting logout, resets or password changes. Without it a scan can lock itself out. | none | paths, a trailing * matches a prefix | all |
Login (auth.*) | A form or JSON login, or a fixed cookie or header. The secret is write-only. | none | see Scan targets | all |
Depth and limits (limits.*) | Time and request budget of a scan. | see below | quick, standard, deep; lower limits.rate for slow applications | all |
For a form or JSON login the scan gateway also refuses, on its own, every request that carries a new password (a parameter such as password_new, new_password, confirmPassword or password2). It counts them as excluded and says so in the pass's warnings. The login form itself is never refused.
Run the loop
text
1. Open Monitor > Validation and select New validation.
2. Choose the applications and the depth. Read the plan and its warnings.
3. Type UAT to confirm they are test copies, then select Start the first scan.
4. Read the first report.
5. Open the Switch to block and scan again card, preview it, and confirm.
6. Read the comparison.sh
waap prove start -apps dvwa,shop -confirm-uat
waap prove status -id ID
waap prove switch -id ID
waap prove report -id ID -format html > report.html
waap prove restore-modes -id IDA validation holds up to 50 applications. Each attack finding replays its proof request through the product, and the result comes from the event with that exact request's ID.
First report
| State | Meaning |
|---|---|
would_block | A module that inspects content would have refused this request. |
other_reason | It would be refused, but not because of the payload (bot verdict, list, rate limit). Not counted as caught. |
logged | An event exists, not enough to refuse. |
missed | The product saw nothing in this request, and no events were lost. |
unknown | No replayable proof, or events were lost. Includes stored findings, whose scanner request is the page that showed the payload, not the request that sent it. |
Benign tested / refused counts plain crawl requests. Each refused one is a false-positive candidate with its rule. Decide whether the refusal is correct (a crawl that reaches /phpinfo.php) or wrong.
Switch to block and scan again
The preview lists every change and the candidates above. The application and its signatures move to block in one new version, and the second scan runs.
| State | Meaning |
|---|---|
prevented | The proof was refused because of its payload, and the scanner no longer finds it. |
partial | The proof was refused, but the scanner found it again another way. |
other_reason | Refused, but not because of the payload. |
still_open | Not refused and found again. |
not_reproduced, unproven | Not found again, but nothing proves the product is why. Never counted as prevented. |
new_after_block | Found only after blocking. A block page can fool a scanner, so check it. |
Close a miss with a virtual patch
text
1. Open the finding and select Preview a virtual patch.
2. Select Apply the virtual patch.
3. Select Re-test this finding.sh
waap vpatch apply -app shop -report ID -finding KEY -m "close a miss"
waap prove retest -id ID -finding FThe re-test replays the proof and rescans that one rule. The finding then shows prevented and the patch's name, or says that the patch did not work. A patch follows the signature mode, so in detect it shows would_block. For details, see Virtual patches. A patch is a stopgap: fix the application.
To put the applications back in detect when you are done, select Restore detect mode on the validation, or waap prove restore-modes -id ID.
What a report does not prove
This text is printed on every report. Scanners find what they find and rarely find business-logic flaws. "Prevented" means this payload was refused, not every payload. A clean result means nothing was found to test. An application with no attack findings makes no prevention claim.
Examples
A first run on a staging copy of a shop:
sh
waap prove start -apps shop -confirm-uatLimits
| Limit | Value |
|---|---|
Scan depth quick | 8 minutes and 8,000 requests per application |
Scan depth standard | 15 minutes and 20,000 requests |
Scan depth deep | 60 minutes and 100,000 requests |
| Applications in one validation | 50 |
| Applications scanned at once | 2 by default, at most 4 |