Files
pruefwerk/control-map
Sharang ParnerkarandClaude Opus 5.5 9e7e1b3ebb
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m6s
feat(findings): add pentest and DAST findings by hand or from a report (#337)
A DAST run or penetration test is done by a person. Its results had no
way into Prüfwerk, so they could not sit next to the scan's findings or
go into the evidence.

- POST /api/v1/targets/{id}/findings adds one finding; the same finding
  (tool, title, location) twice is a 409.
- POST /api/v1/targets/{id}/findings/import?format=sarif|zap&kind=... reads
  a SARIF 2.1.0 or OWASP ZAP JSON report (up to 20 MB); findings already on
  the target are counted, not added again. A document that is not the named
  format is a 422.
- Both need the organisation's IT_ADMIN role (the dev tenant's user now has
  it). The finding records who added it and how to reproduce it.
- New ScanType::Pentest. A finding's CWE maps it to CRA controls through
  the control map (controls_for_cwe: any tool's binding for that CWE).
- Dashboard: a panel on each target's details with the form and the
  import; the finding detail shows the reproduction steps and who reported
  it. German and English.
- Guide: docs/guide/manual-findings.md.

Tests: SARIF and ZAP parsing, CWE and score handling, fingerprints, the
admin check, and an integration test (MongoDB) that adds, re-adds, imports
twice, and refuses a non-SARIF document and an unknown target.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-23 16:38:52 +02:00
..