Files
pruefwerk/docs/guide/findings.md
T
sharang 6d8e63c226
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m20s
CI / Deploy Dashboard (push) Successful in 5m34s
CI / Deploy MCP (push) Successful in 4m26s
CI / Deploy Agent (push) Successful in 7m24s
CI / Check (push) Skipped
feat(help): readable assistant answers, German UI, and docs that match the pilot product (#424)
2026-09-28 22:39:06 +00:00

168 lines
8.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Understanding Findings
A finding (*Befund*) is one issue a scan found in a target: a weakness in the
code, a committed secret, a component with a known vulnerability, and so on.
This page explains the findings list, the finding page and the statuses you
use to record what you decided.
## Findings List
Open **Befunde** (Findings) in the sidebar to see the findings of all your
targets. The number in the **Befunde** column of the **Prüfobjekte** list opens
the same page filtered to that target.
### Filtering
The filter bar has a search field (**Befunde durchsuchen …**) and four filters:
- **Alle Prüfobjekte** -- one target, or all
- **Alle Schweregrade** -- **Kritisch**, **Hoch**, **Mittel**, **Niedrig** or **Info**
- **Alle Arten** -- the kind of finding, e.g. **Codeanalyse (SAST)**,
**Zugangsdaten im Code**, **Bekannte Schwachstelle (CVE)**,
**SPS-Steuerungslogik**
- **Alle Status** -- one of the statuses below
Filters can be combined. The list shows 20 findings per page.
### Columns
| Column | Description |
|--------|-------------|
| **Schweregrad** (Severity) | Kritisch, Hoch, Mittel, Niedrig or Info |
| **Titel** (Title) | What was found; a click opens the finding. The tool that found it is shown beneath. |
| **Art** (Type) | The kind of finding |
| **Prüfobjekt** (Target) | Only when the list shows all targets |
| **Fundstelle** (Location) | File and line |
| **CRA** | The CRA Annex I requirements the finding is evidence for, plus "+N **weitere Kontrollen**" for controls from the BreakPilot catalog. Shown only when a finding in view is mapped. |
| **Status** | The current status |
The **Schweregrad**, **Titel**, **Art** and **Status** headers sort the list.
### Changing several findings at once
Tick the findings (or the box in the header for the whole page) and choose a
status under **Markieren als** (Mark as). Statuses that need a reason
(**Risiko akzeptiert** and **Fehlalarm – Zuordnung**) are not offered here; set
them on each finding's page.
## Finding Detail
A click on a finding's title opens its page. At the top: the title, the tool,
the type and the status, and badges for severity, CWE, CVE, CVSS score and the
**Konfidenz** (confidence) of the automated review, where present. Below that,
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
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
there is one.
- **Code** (Code evidence) -- the lines where the issue was found. A committed
secret is shown shortened.
- **Reproduktion** -- steps to reproduce, for findings from manual tests.
- **Behebung** (Remediation) and **Vorgeschlagene Korrektur** (Suggested fix),
where present.
- **Verknüpftes Ticket** (Linked issue) -- the ticket in your issue tracker, if
one was created.
- **Status ändern** (Update status) -- one button per status.
- **Verlauf** (History) -- every status change.
- **Ihre Einschätzung** (Developer feedback) -- a free-text note, saved when you
leave the field.
## Severity Levels
| Severity | Description | Typical Examples |
|----------|-------------|-----------------|
| **Kritisch** (Critical) | Immediate exploitation risk | SQL injection, remote code execution, hardcoded secrets |
| **Hoch** (High) | Serious weakness, exploitation probable | XSS, authentication bypass, SSRF |
| **Mittel** (Medium) | Exploitation requires specific conditions | Insecure deserialization, weak crypto |
| **Niedrig** (Low) | Limited impact | Information disclosure, verbose errors |
| **Info** | No direct security impact | Best-practice notes |
## Finding Types
The most common types in a scan of source code:
| Type | Source |
|------|--------|
| **Codeanalyse (SAST)** | Semgrep; for C and C++ also cppcheck |
| **Zugangsdaten im Code** (Secrets) | gitleaks |
| **Bekannte Schwachstelle (CVE)** | Components of the SBOM matched against OSV.dev and NVD |
| **Datenschutz** (Privacy / GDPR) | Prüfwerk's own pattern rules |
| **OAuth** | Prüfwerk's own pattern rules |
| **Code-Qualität** (Lint) | Linters, where the deployment runs them |
| **SPS-Steuerungslogik** (PLC control logic) | Prüfwerk's PLC analyser, see [SPS / PLC (CODESYS)](/guide/plc) |
| **Penetrationstest**, **Dynamische Prüfung (DAST)** | Entered or imported by hand, see [Befunde aus manuellen Tests](/guide/manual-findings) |
## Statuses
The status records what you decided about a finding. Change it with the buttons
under **Status ändern**; the change takes effect at once.
| Status | Meaning |
|--------|---------|
| **Offen** (Open) | New, not yet decided. |
| **Zu prüfen** (Needs review) | The automated review doubts the finding: the AI triage dismissed it or was not confident, or the control check did not confirm the CRA requirements it was mapped to. It stays in the list until a person decides; no finding is ever hidden automatically. |
| **Bewertet** (Triaged) | Reviewed and confirmed as a real issue, still to be fixed. The AI triage also sets this when it confirms a finding. |
| **Behoben** (Resolved) | Fixed. |
| **Fehlalarm – Regel** (False positive – rule) | The rule fired on code that is not a problem. The finding is not real. |
| **Fehlalarm – Zuordnung** (False positive – mapping) | The finding may be real, but it does not violate the CRA requirement it was mapped to. **Needs a reason.** The finding keeps its CRA references, so it stays on record which mapping was wrong. |
| **Risiko akzeptiert** (Accepted risk) | Known and deliberately not fixed, e.g. because the device runs only on an isolated network. **Needs a reason.** |
| **Ignoriert** (Ignored) | Set aside without a reason. |
### The two kinds of false alarm
- **Fehlalarm – Regel**: the tool was wrong. The flagged code is fine.
- **Fehlalarm – Zuordnung**: the tool may be right about the code, but the
finding was assigned to the wrong CRA requirement. You are asked *why* the
finding does not violate that requirement before the status is saved.
### How statuses affect the CRA status and counts
- A finding with **Fehlalarm – Regel**, **Fehlalarm – Zuordnung** or
**Behoben** no longer counts against its CRA requirements.
- **Risiko akzeptiert** and **Ignoriert** still count against them: the issue is
still in the product.
- The **Offene Befunde** (open findings) figures count findings that are
**Offen**, **Bewertet** or **Zu prüfen**.
### Reasons and history
**Risiko akzeptiert** and **Fehlalarm – Zuordnung** ask for a **Begründung**
(reason) before they are saved; the button stays disabled until you enter one.
Every status change, with or without a reason, is added to the finding's
**Verlauf** (history): the status, who set it, when, and the reason.
### Recommended Flow
1. A scan finds something new. It starts as **Offen**, or as **Bewertet** or
**Zu prüfen** after the automated review.
2. Read the **Einschätzung** and the **Code**.
3. Decide: **Bewertet** if it needs fixing, one of the two false-alarm statuses
if it does not apply, **Risiko akzeptiert** if you will not fix it.
4. After the fix, set **Behoben**. A later scan does not change the status of a
finding it already knows, and does not close a finding on its own.
## Human in the Loop
Prüfwerk uses AI to review findings, but people make the decisions:
1. **The AI reviews** -- each new finding gets a confidence, a short rationale
and, where possible, a remediation. Findings it doubts become **Zu prüfen**.
2. **You review** -- read the rationale next to the code.
3. **You decide** -- you set the status, with a reason where one is required.
The AI does not learn from your statuses or notes; they are records for your
team.
## Confidence
The automated review rates its confidence from 0 to 10. The value is lowered
for findings in test, example, generated or vendored files. A finding the review
does not confirm with a confidence of at least 3 becomes **Zu prüfen**. Use the
confidence to order your review; it is not a verdict.