Files
pruefwerk/compliance-dast/tests
Sharang ParnerkarandClaude Opus 5.5 80869b1759
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 / Agent integration (pull_request) Successful in 4m23s
CI / Check (pull_request) Canceled after 11m36s
feat(dast): every scan runs the header, CSP, cookie and TLS checks (#998)
The security-header, Content-Security-Policy, cookie and TLS checks
existed only as tools the LLM pentest could call. A DAST scan of a site
without a CSP therefore said nothing about it.

- New `compliance_dast::checks::run_checks`: the four checks against the
  target's base URL, with the scan's (logged-in) client and NetGuard. A
  check that cannot run is logged; the others still run.
- The scan runs them at the start of its vulnerability analysis and adds
  their findings to the run.
- CORS stays with the API fuzzer agent, which every scan runs already;
  running the CORS tool too would report the same problem twice.
- Docs: the Check step of a DAST scan.

Tests (`compliance-dast/tests/checks.rs`): a site without a policy and
with a flagless session cookie gets the missing-CSP and cookie findings
(fails on main); a site that sends a policy does not get the missing one.

Part 3 of #998 (point 3; DNS/DMARC wait on #318).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-16 11:49:56 +01:00
..