Pilot: operator-entered DAST and pentest findings (form + SARIF/ZAP import), accepted-risk triage #337

Closed
opened 2026-09-23 10:32:57 +00:00 by sharang · 0 comments
Owner

Part of the pilot epic. P1, pilot weeks 1–2.

DAST and a penetration test for the pilot may be run by hand by our staff, using Werkbank and external tools. The results must appear in the customer's tenant next to SAST. Today every way of writing a finding is a scanner: there is no endpoint to create or import findings.

Scope

  • POST /api/v1/targets/{id}/findings adds findings by hand.
  • POST /api/v1/targets/{id}/findings/import accepts SARIF 2.1.0 and ZAP JSON.
  • Both write Finding rows with scan_type Dast or a new Pentest. scanner is the tool name or manual. Also recorded:
    • provenance (created_by, source);
    • optional evidence: endpoint, request/response excerpt, reproduction steps, CVSS vector.
  • The server sets repo_id, and a fingerprint prevents duplicates.
  • In the dashboard, "Add finding" and "Import" live on the target, and the findings list shows these findings with SAST (type filter included).
  • Who can write: the operator gets an account in the customer's tenant through the platform invite. Create and import require the org admin role, a slice of #272. No cross-tenant staff credential.
  • Also: an "accepted risk" status and a who/when/why history on status changes. Status values are validated strictly: today they are free text, and an invalid value breaks decoding.
Part of the pilot epic. P1, pilot weeks 1–2. DAST and a penetration test for the pilot may be run **by hand** by our staff, using Werkbank and external tools. The results must appear in the customer's tenant next to SAST. Today every way of writing a finding is a scanner: there is no endpoint to create or import findings. **Scope** - `POST /api/v1/targets/{id}/findings` adds findings by hand. - `POST /api/v1/targets/{id}/findings/import` accepts SARIF 2.1.0 and ZAP JSON. - Both write `Finding` rows with `scan_type` `Dast` or a new `Pentest`. `scanner` is the tool name or `manual`. Also recorded: - provenance (`created_by`, source); - optional evidence: endpoint, request/response excerpt, reproduction steps, CVSS vector. - The server sets `repo_id`, and a fingerprint prevents duplicates. - In the dashboard, "Add finding" and "Import" live on the target, and the findings list shows these findings with SAST (type filter included). - **Who can write:** the operator gets an account in the customer's tenant through the platform invite. Create and import require the org admin role, a slice of #272. No cross-tenant staff credential. - Also: an **"accepted risk"** status and a who/when/why history on status changes. Status values are validated strictly: today they are free text, and an invalid value breaks decoding.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#337