diff --git a/compliance-dashboard/src/components/cra_tiles.rs b/compliance-dashboard/src/components/cra_tiles.rs index 4e47dcd..c7ca0c6 100644 --- a/compliance-dashboard/src/components/cra_tiles.rs +++ b/compliance-dashboard/src/components/cra_tiles.rs @@ -5,7 +5,7 @@ use dioxus::prelude::*; use crate::app::Route; -use crate::i18n::texts::{common, cra_tiles as tx}; +use crate::i18n::texts::{common, compliance, cra_tiles as tx}; use crate::i18n::use_lang; use crate::infrastructure::evidence::fetch_compliance; use crate::pages::compliance::{ControlRow, STATES}; @@ -157,7 +157,7 @@ pub fn CraTiles(target_id: String, control: Option) -> Element { } } } - p { class: "ct-hint", {tx::HINT.get(lang)} } + p { class: "ct-hint", {tx::HINT.get(lang)} " " {compliance::NOT_LEGAL_ADVICE.get(lang)} } } } } diff --git a/compliance-dashboard/src/components/scan_runs.rs b/compliance-dashboard/src/components/scan_runs.rs index d0f377b..e6d6722 100644 --- a/compliance-dashboard/src/components/scan_runs.rs +++ b/compliance-dashboard/src/components/scan_runs.rs @@ -514,7 +514,10 @@ pub fn phase(phase: &ScanPhase) -> Text { ScanPhase::MobileStatic => ("Mobile-App-Analyse", "Mobile app analysis"), ScanPhase::ContainerScan => ("Container-Analyse", "Container analysis"), ScanPhase::LlmTriage => ("Befunde bewerten", "Triaging findings"), - ScanPhase::ControlTriage => ("CRA-Anforderungen zuordnen", "Mapping CRA requirements"), + ScanPhase::ControlTriage => ( + "Bezug zu CRA-Themen ermitteln (technischer Hinweis)", + "Finding links to CRA topics (technical hint)", + ), ScanPhase::SemanticControlMapping => ("Controls zuordnen", "Mapping controls"), ScanPhase::GroundedControlChecks => { ("Controls im Code prüfen", "Checking controls in code") diff --git a/compliance-dashboard/src/i18n/texts.rs b/compliance-dashboard/src/i18n/texts.rs index 5cada51..7c1c594 100644 --- a/compliance-dashboard/src/i18n/texts.rs +++ b/compliance-dashboard/src/i18n/texts.rs @@ -2131,8 +2131,8 @@ pub mod findings { en: "CRA", }; pub const CONTROLS_HINT: Text = Text { - de: "CRA-Anforderungen, für die dieser Befund relevant ist", - en: "CRA requirements this finding is evidence for", + de: "CRA-Themen, auf die dieser Befund hinweist", + en: "CRA topics this finding points to", }; pub const COL_STATUS: Text = Text { de: "Status", @@ -2183,8 +2183,8 @@ pub mod findings { en: "The target's CRA status", }; pub const CRA_REFS: Text = Text { - de: "CRA-Anforderungen (Anhang I)", - en: "CRA requirements (Annex I)", + de: "CRA-Themen (Anhang I)", + en: "CRA topics (Annex I)", }; pub const CONFIDENCE: Text = Text { de: "Konfidenz", @@ -3681,8 +3681,13 @@ pub mod compliance { en: "CRA status", }; pub const SUBTITLE: Text = Text { - de: "Befunde aus der Prüfung, zugeordnet zu den grundlegenden Anforderungen des Cyber Resilience Act (Anhang I)", - en: "Scan findings mapped to the Cyber Resilience Act's essential requirements (Annex I)", + de: "Befunde aus der Prüfung mit Bezug zu den Themen der grundlegenden Anforderungen des Cyber Resilience Act (Anhang I)", + en: "Scan findings linked to the topics of the Cyber Resilience Act's essential requirements (Annex I)", + }; + /// Shown with every CRA status view: the mapping is a technical hint (#978). + pub const NOT_LEGAL_ADVICE: Text = Text { + de: "Technische Hinweise, keine rechtliche Bewertung.", + en: "Technical hints, not a legal assessment.", }; pub const OPEN: Text = Text { de: "CRA-Status anzeigen", diff --git a/compliance-dashboard/src/pages/compliance.rs b/compliance-dashboard/src/pages/compliance.rs index 83302bf..baa6f42 100644 --- a/compliance-dashboard/src/pages/compliance.rs +++ b/compliance-dashboard/src/pages/compliance.rs @@ -79,6 +79,7 @@ pub fn CompliancePage(id: String) -> Element { div { class: "target-head-text", h2 { {tx::TITLE.get(lang)} } p { class: "target-head-meta", {tx::SUBTITLE.get(lang)} } + p { class: "target-head-meta", {tx::NOT_LEGAL_ADVICE.get(lang)} } } div { class: "target-head-actions", EvidencePackButton { target_id: id.clone() } diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index b7084ac..1c25388 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -52,7 +52,7 @@ export default withMermaid(defineConfig({ { text: 'Stückliste (SBOM) und Lizenzen', link: '/guide/sbom' }, { text: 'Schwachstellen bewerten (VEX)', link: '/guide/vex' }, { text: 'Assessing vulnerabilities (English)', link: '/guide/vex-en' }, - { text: 'CRA-Anforderungen', link: '/features/control-mapping' }, + { text: 'Bezug zu CRA-Themen', link: '/features/control-mapping' }, { text: 'Daten und Aufbewahrung', link: '/guide/data-retention' }, ], }, diff --git a/docs/features/control-mapping.md b/docs/features/control-mapping.md index 88c1d04..23af982 100644 --- a/docs/features/control-mapping.md +++ b/docs/features/control-mapping.md @@ -1,5 +1,10 @@ # Compliance Control Mapping +::: info Technical hint, not a legal assessment +The link between a finding and a CRA topic is a technical hint from the scan. +It is not a legal assessment and not a conformity assessment. +::: + Control mapping connects the scanner's raw output — deterministic tool findings and the code itself — to the **compliance controls** each piece of evidence supports. A hardcoded credential stops being just "CWE-798 from semgrep" and becomes evidence for *"cra-ai-8: no default passwords"* and, at scale, master control *`mc-31761` hardcoded_secrets_detection*. Findings carry those references (`control_refs`) into the dashboard and out over the MCP server as OSCAL, so the compliance report is built from real, grounded findings rather than a questionnaire. ## The core principle: tools detect, the LLM judges diff --git a/docs/guide/findings.md b/docs/guide/findings.md index c01339d..7f4b8c3 100644 --- a/docs/guide/findings.md +++ b/docs/guide/findings.md @@ -75,8 +75,8 @@ in this order: - **Beschreibung** (Description) -- what the issue is. - **Fundstelle** (Location) -- the **Prüfobjekt** (a click opens its CRA status), **Datei** (file and line), **Werkzeug** (tool), **Regel** (rule) and - **CRA-Anforderungen (Anhang I)**: the CRA Annex I requirements the finding is - mapped to, each with its title. Controls from the BreakPilot catalog are + **CRA-Themen (Anhang I)**: the CRA Annex I topics the finding points to (a + technical hint, not a legal assessment), each with its title. Controls from the BreakPilot catalog are folded under **+N Kontrollen aus dem BreakPilot-Katalog**; click it to see each control with what it requires. - **Einschätzung** (Triage rationale) -- the automated review's reasoning, where diff --git a/docs/guide/getting-started-en.md b/docs/guide/getting-started-en.md index 0a45cff..3760e0f 100644 --- a/docs/guide/getting-started-en.md +++ b/docs/guide/getting-started-en.md @@ -17,8 +17,8 @@ in the sidebar switches it to English. - **PLC control logic** -- security rules for IEC 61131-3 programs - **AI triage** -- an LLM reviews each new finding and gives a confidence, a rationale and a remediation; findings it doubts are marked for review -- **CRA mapping** -- findings are assigned to the CRA Annex I requirements they - are evidence for +- **CRA topics** -- each finding is linked to the CRA Annex I topics it points + to (a technical hint, not a legal assessment) ## The Overview @@ -67,7 +67,7 @@ again later, click **Prüfung starten** (Run scan) in the target's row on the ### 3. View findings Open **Befunde** (Findings) in the sidebar. Each finding has a severity, a -description, the code where it was found, the CRA requirements it concerns and, +description, the code where it was found, the CRA topics it points to and, where available, a remediation. Record your decision with the status buttons. ## Next Steps diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index 3b97679..9c4846d 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -126,7 +126,7 @@ Zeile), das **Werkzeug**, das ihn gefunden hat, und in der Spalte **CRA** die Anforderungen, für die er relevant ist. Ein Klick auf einen Befund öffnet die Einzelheiten: **Beschreibung**, -**Fundstelle**, den betroffenen **Code**, die **CRA-Anforderungen (Anhang I)** +**Fundstelle**, den betroffenen **Code**, die **CRA-Themen (Anhang I)** und, wo vorhanden, eine **Behebung**. Mit **Status ändern** halten Sie fest, wie Sie mit dem Befund umgehen, zum Beispiel **Behoben**, **Fehlalarm – Regel** (die Regel hat bei unproblematischem Code angeschlagen), @@ -172,7 +172,8 @@ dieses Prüfobjekts: „Geprüft, keine Befunde“ erscheint also nur dort, wo tatsächlich geprüft wurde. Befunde werden am Code nachgeprüft, bevor sie einer Anforderung zugeordnet werden. Der CRA-Status zeigt, welche Anforderungen im Code geprüft sind; er ist -keine Konformitätsbewertung. +keine Konformitätsbewertung. Die Zuordnung der Befunde ist ein technischer +Hinweis, keine rechtliche Bewertung. ## 7. Nachweispaket @@ -210,8 +211,8 @@ Sie echte Befunde, bevor Sie eigenen Code hochladen. Siehe CODESYS-Projekt auswertet - [Prüfungen](/guide/scanning): wie Prüfungen ausgelöst werden und welche Schritte sie haben -- [CRA-Anforderungen](/features/control-mapping): wie Befunde den - Anforderungen zugeordnet werden +- [Bezug zu CRA-Themen](/features/control-mapping): wie Befunde mit den + Themen des CRA verknüpft werden (technischer Hinweis) - [Daten und Aufbewahrung](/guide/data-retention): wo Prüfwerk Ihren Code und die Ergebnisse speichert und wann sie gelöscht werden diff --git a/docs/guide/scanning.md b/docs/guide/scanning.md index 094acd7..3628c91 100644 --- a/docs/guide/scanning.md +++ b/docs/guide/scanning.md @@ -51,9 +51,10 @@ names while the scan runs. 9. **AI triage** (*Befunde bewerten*) -- an LLM reviews each new finding, gives a confidence and a rationale and, where possible, a remediation. Findings it doubts are set to **Zu prüfen** (see [Understanding Findings](/guide/findings#statuses)). -10. **Control mapping** (*CRA-Anforderungen zuordnen*, *Controls zuordnen*) -- - findings are assigned to the CRA Annex I requirements and to the controls of - the BreakPilot catalog they are evidence for. The mapping is checked against +10. **Control mapping** (*Bezug zu CRA-Themen ermitteln (technischer Hinweis)*, + *Controls zuordnen*) -- each finding is linked to the CRA Annex I topics and + the controls of the BreakPilot catalog it points to. This is a technical + hint, not a legal assessment. The mapping is checked against the code first. It asks the model about each finding, so it can take several minutes. 11. **Checking controls in code** (*Controls im Code prüfen*) -- requirements