feat(control-map): a missing Content-Security-Policy is evidence for cra-ai-1 (#998) #1011

Merged
sharang merged 1 commits from feat/csp-control-map into main 2026-11-16 11:57:56 +00:00
Owner

For #998's acceptance ("a missing CSP appears in the findings list with control refs"). Mapping agreed with the owner: cra-ai-1.

Problem: DAST reports a missing or weak Content-Security-Policy as CWE-16 (#1009), and the CRA control map bound no control to CWE-16 or CWE-693. Those findings therefore carried no control refs.

Change:

  • cra-ai-1 (Secure-by-Default-Konfiguration) gets a dast binding for CWE-16 and CWE-693, with a check text. cra-ai-1 already covers CWE-1021 (X-Frame-Options).
  • The binding is attach_only. The DAST checks look at what one URL serves, so the binding attaches findings to the control but never makes the CRA status read "checked, no findings": ScanBinding::applies_to is false for it.
  • The languages test lists dast with the tools that read no source.
  • Docs (features/control-mapping.md): the DAST binding.

Effect elsewhere: DAST findings get their refs through controls_for_cwe (#1008), so CWE-16/CWE-693 DAST findings now carry cra-ai-1. Imported pentest findings use the same lookup, so a CWE-16/CWE-693 pentest finding gets cra-ai-1 as well. Code-scanner findings only match bindings of their own tool, so they are unaffected.

Tests: CWE-16 and CWE-693 map to cra-ai-1 only, and the binding is attach-only. cargo test -p control-map, cargo test -p compliance-agent --lib (1076) and compliance-core --lib pass, and clippy is clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

For #998's acceptance ("a missing CSP appears in the findings list with control refs"). Mapping agreed with the owner: `cra-ai-1`. **Problem:** DAST reports a missing or weak Content-Security-Policy as CWE-16 (#1009), and the CRA control map bound no control to CWE-16 or CWE-693. Those findings therefore carried no control refs. **Change:** - `cra-ai-1` (Secure-by-Default-Konfiguration) gets a `dast` binding for CWE-16 and CWE-693, with a `check` text. `cra-ai-1` already covers CWE-1021 (X-Frame-Options). - The binding is `attach_only`. The DAST checks look at what one URL serves, so the binding attaches findings to the control but never makes the CRA status read "checked, no findings": `ScanBinding::applies_to` is false for it. - The languages test lists `dast` with the tools that read no source. - Docs (`features/control-mapping.md`): the DAST binding. **Effect elsewhere:** DAST findings get their refs through `controls_for_cwe` (#1008), so CWE-16/CWE-693 DAST findings now carry `cra-ai-1`. Imported pentest findings use the same lookup, so a CWE-16/CWE-693 pentest finding gets `cra-ai-1` as well. Code-scanner findings only match bindings of their own tool, so they are unaffected. **Tests:** CWE-16 and CWE-693 map to `cra-ai-1` only, and the binding is attach-only. `cargo test -p control-map`, `cargo test -p compliance-agent --lib` (1076) and `compliance-core --lib` pass, and clippy is clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-11-16 11:35:22 +00:00
feat(control-map): a missing Content-Security-Policy is evidence for cra-ai-1 (#998)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m46s
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 21m17s
2e29e5b551
DAST reports a missing or weak Content-Security-Policy as CWE-16, and the
CRA control map bound no control to CWE-16 or CWE-693, so those findings
carried no control refs.

- `cra-ai-1` (Secure-by-Default-Konfiguration) gets a `dast` binding for
  CWE-16 and CWE-693, with a check text for the judge. It already covers
  CWE-1021 (X-Frame-Options).
- The binding is `attach_only`: the DAST checks look at what one URL
  serves, so it attaches findings to the control but never makes the
  CRA status read "checked" (`applies_to` is false).
- The languages test lists `dast` with the tools that read no source.
- Docs: the DAST binding in the control-mapping overview.

Test: CWE-16 and CWE-693 map to `cra-ai-1` only, and the binding is
attach-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang merged commit 246e2c4ac5 into main 2026-11-16 11:57:56 +00:00
sharang deleted branch feat/csp-control-map 2026-11-16 11:57:56 +00:00
Sign in to join this conversation.