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