2.6 KiB
Findings from Manual Tests
A DAST run or a penetration test is done by a person, not by the scanner. Its results still belong on the target, next to the scan's findings: in the same list, with the same statuses, and in the same evidence.
Two ways to add them, both on a target's details under Targets:
- Add a finding: one at a time, in a form.
- Import a report: a tool's report as a whole, in SARIF 2.1.0 or OWASP ZAP's JSON report.
Only the organisation's administrators (IT_ADMIN) can add or import findings.
A tester working for a customer is invited into that customer's organisation
with that role.
Add a finding
| Field | Notes |
|---|---|
| Test | Penetration test or DAST |
| Title, severity | Required |
| Location | A URL, an endpoint, a port (tcp://192.0.2.10:23) |
| CWE | 798 or CWE-798. It links the finding to the CRA requirements that weakness falls under |
| CVSS score | 0–10 |
| Tool | Optional; manual when empty |
| Description, evidence, steps to reproduce, recommended fix | Free text. Evidence is kept up to 4,000 characters |
The same finding (same tool, title and location) can be added only once.
Import a report
| Format | Written by | One finding per |
|---|---|---|
| SARIF 2.1.0 | Nuclei, Burp and ZAP (via extensions), most commercial DAST tools | result |
| OWASP ZAP JSON ("Traditional JSON Report") | ZAP | alert: its first URL is the location, and the description says how many URLs it was found on |
Severity comes from the report: SARIF's security-severity score when present,
else the result's level; ZAP's risk code. CWEs are read from SARIF rule tags
(external/cwe/cwe-79) and ZAP's cweid.
Importing the same report again adds nothing: each finding already on the target is counted as already present.
API
# One finding
curl -X POST "$AGENT/api/v1/targets/$TARGET/findings" \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"kind": "pentest", "title": "Telnet open with a default password",
"severity": "critical", "cwe": "798", "location": "tcp://192.0.2.10:23",
"reproduction": "telnet 192.0.2.10, log in as root/root"}'
# A report (the body is the report itself, up to 20 MB)
curl -X POST "$AGENT/api/v1/targets/$TARGET/findings/import?format=sarif&kind=pentest" \
-H "Authorization: Bearer $TOKEN" --data-binary @nuclei.sarif
format is sarif or zap; kind is pentest or dast. The import answers
with {"total": …, "imported": …, "duplicates": …}. A document that is not
the named format is refused with 422, and a user without IT_ADMIN with 403.