Understand every CLI option, write custom passive rules in JSON without Rust compilation, and decide how web-vuln-scanner fits next to active DAST and static code analysis.
Custom rules are validated offline before any network request fires (checking duplicate IDs and preventing external cross-origin paths). Supported rule kinds include path_signature, header_missing, body_contains, and script_version:
{
"name": "Internal Policy Rules",
"version": "1.0",
"rules": [
{
"id": "CUSTOM-ACTUATOR-HEALTH",
"kind": "path_signature",
"severity": "medium",
"category": "exposed_files",
"title": "Spring Actuator endpoint exposed (/actuator/health)",
"summary": "Restrict diagnostic routes in reverse proxy config.",
"remediation": "Deny public access to /actuator/* in Nginx.",
"standard_ref": "Custom Policy",
"path": "/actuator/health",
"body_contains": "\"status\"",
"ignore_html": true
}
]
}
| Flag | Purpose |
|---|---|
--profile web | api | Select full HTML crawling or API mode without browser UI checks. |
--view executive | developer | security | Tailor printed and exported report detail level. |
--html, --md, --json, --sarif | Write standalone reports in multiple formats in a single scan. |
--fix-config nginx | caddy | apache | Print targeted server hardening configuration blocks. |
--max-pages, --max-requests, --concurrency | Bound crawl scope and network rate safely on production hosts. |
--fail-on critical | high | medium | low | Exit with code 2 when findings meet or exceed threshold severity. |
Run web-vuln-scanner directly on production and staging URLs without risking form submissions or database writes. Use SAST tools like Semgrep or CodeQL inside pull requests to trace source code taint paths, and run active fuzzers like OWASP ZAP or Nuclei only against isolated test environments where write payloads are safe.
Compile with cargo build --release --no-default-features --locked to omit desktop GUI libraries (eframe/rfd) while keeping the full scanner engine intact.
They are stored locally under ~/.config/web-vuln-scanner alongside triage states, never transmitted externally.
Automate CLI scans in GitHub Workflows.
Turn scan findings directly into server proxy configs.
Use path_signature custom rules alongside built-in exposure checks.