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.
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
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 main2026-11-16 11:57:56 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 adastbinding for CWE-16 and CWE-693, with achecktext.cra-ai-1already covers CWE-1021 (X-Frame-Options).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_tois false for it.dastwith the tools that read no source.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 carrycra-ai-1. Imported pentest findings use the same lookup, so a CWE-16/CWE-693 pentest finding getscra-ai-1as 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-1only, and the binding is attach-only.cargo test -p control-map,cargo test -p compliance-agent --lib(1076) andcompliance-core --libpass, and clippy is clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9