fix(dashboard): CRA links read as technical hints, not a legal assessment (#978) (#981)
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m12s
CI / Deploy Dashboard (push) Successful in 7m8s
CI / Deploy Agent (push) Successful in 9m1s
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m12s
CI / Deploy Dashboard (push) Successful in 7m8s
CI / Deploy Agent (push) Successful in 9m1s
The scan phase "CRA-Anforderungen zuordnen" could read as legal advice. It is now "Bezug zu CRA-Themen ermitteln (technischer Hinweis)"; the finding detail says "CRA-Themen, auf die dieser Befund hinweist" and "CRA-Themen (Anhang I)"; the CRA status page and the CRA tiles say "Technische Hinweise, keine rechtliche Bewertung". The docs use the same wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #981.
This commit is contained in:
1 parent
f5697ff21d
commit
5ea49661d0
10 files changed
+38
-22
No files matched your search
@@ -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<String>) -> Element {
|
||||
}
|
||||
}
|
||||
}
|
||||
p { class: "ct-hint", {tx::HINT.get(lang)} }
|
||||
p { class: "ct-hint", {tx::HINT.get(lang)} " " {compliance::NOT_LEGAL_ADVICE.get(lang)} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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() }
|
||||
|
||||
@@ -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' },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user