Use
Use Nuclei, ZAP or Strix with 0security
Run a dynamic scanner on your staging app, import its results, and triage and fix them in one list with the findings from your code.
Nuclei, ZAP and Strix test a running web app. 0security reads what they find and puts it in the same list as your code findings. You triage and fix everything in one place.
0security does not attack anything in this flow. You run the other tool yourself, against an app you own, and 0security only reads the file it wrote.
Before you start
Section titled “Before you start”Run these tools only against systems you own or have written permission to test. Use a staging copy, not production. Dynamic scanners send real requests and can change data.
Import Nuclei results
Section titled “Import Nuclei results”Write Nuclei’s JSON Lines file. It names the matched URL, the CWE and the severity.
nuclei -u https://staging.example.com -jsonl-export nuclei.jsonl0security findings import nuclei.jsonl0security also reads Nuclei’s SARIF export (-sarif-export). That file names only the host, not the matched URL, so prefer the JSON Lines file.
Run Nuclei from 0security
Section titled “Run Nuclei from 0security”0security can start Nuclei for you and import the result in one step. You install Nuclei, name the target, and say what you may test.
echo "staging.example.com" > scope.txt0security scan --scanner nuclei --target-url https://staging.example.com --acknowledge-host staging.example.com --scope-file scope.txtNuclei sends the requests. 0security sends none. It runs at 10 requests per second, skips intrusive, dos and fuzz templates, and turns off out-of-band callbacks. See scan for the flags and the refusals.
Import ZAP results
Section titled “Import ZAP results”Add a report job with the sarif-json template to your ZAP automation plan.
jobs: - type: report parameters: template: sarif-json reportDir: . reportFile: zap.sarifRun the plan, then import the file.
zap.sh -cmd -autorun plan.yaml0security findings import zap.sarifImport Strix results
Section titled “Import Strix results”Strix writes a findings.sarif file in each run folder under strix_runs.
strix -n --target https://staging.example.com0security findings import strix_runs/<run-name>/findings.sarifThe file leaves out the exploit script. It keeps the description of the proof of concept, and 0security stores that text as evidence. Strix’s coverage notes are not findings, and 0security skips them.
Triage and fix
Section titled “Triage and fix”Imported findings are marked unverified. List them next to your code findings.
0security findings listA web finding shows the method and URL where a code finding shows a file and line. Open a finding, set its triage state, and fix it in the code like any other. See Findings.
What 0security keeps
Section titled “What 0security keeps”Each finding keeps the tool name, rule id, CWE, severity, the method and URL, and any proof text. Importing the same file twice changes nothing. Credentials in a URL and anything that is not an http or https address are dropped.
Limits
Section titled “Limits”0security does not re-test an imported finding. It does not check that the tool was pointed at your app.
The ZAP and Strix shapes are read from their documented output and from Strix’s report writer. They have not been checked against a live ZAP run. Nuclei was run for real against a local test server.