fix(vex): a CVE a scan no longer finds is not stated fixed (#994) (#1015)
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m19s
CI / Deploy MCP (push) Successful in 2m42s
CI / Deploy Dashboard (push) Successful in 6m14s
CI / Deploy Agent (push) Successful in 8m42s
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m19s
CI / Deploy MCP (push) Successful in 2m42s
CI / Deploy Dashboard (push) Successful in 6m14s
CI / Deploy Agent (push) Successful in 8m42s
A scan never states VEX `fixed`. When a scan stops finding a CVE, its tracker issue stays open and gets one comment; a person closes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit was merged in pull request #1015.
This commit is contained in:
1 parent
ddb0068b3e
commit
87b1e281ed
21 files changed
+492
-162
No files matched your search
@@ -19,7 +19,7 @@ A scan opens issues only for the findings it finds new, so a finding whose issue
|
||||
|
||||
### CVE issues (managed repositories)
|
||||
|
||||
For a repository from a managed git source, known vulnerabilities in its dependencies become issues too: one per package and CVE, labelled `cve`. A critical or high CVE opens one, and so does any CVE in CISA's Known Exploited Vulnerabilities catalog (rated at least high). A CVE whose EPSS percentile reaches `CVE_ISSUE_EPSS_PERCENTILE` (default `0.95`) is rated one step higher, so a medium one opens an issue as high. The issue names the KEV entry, the EPSS score with its attribution, and CISA's SSVC exploitation where known. When a complete scan no longer finds the CVE, the issue is closed; when it comes back, it is reopened. A CVE with the VEX status `not_affected` or `fixed` gets no new issue. Its issue that is already open is closed only with `ISSUE_AUTOCLOSE=on`: with a comment naming the status and the justification, at most 20 per target and scan (the rest follow in the next scans). `ISSUE_AUTOCLOSE=dry_run` only logs, per target, how many issues it would close per VEX status, and changes nothing; the default is `off`. When the statement is withdrawn, a closed issue is reopened.
|
||||
For a repository from a managed git source, known vulnerabilities in its dependencies become issues too: one per package and CVE, labelled `cve`. A critical or high CVE opens one, and so does any CVE in CISA's Known Exploited Vulnerabilities catalog (rated at least high). A CVE whose EPSS percentile reaches `CVE_ISSUE_EPSS_PERCENTILE` (default `0.95`) is rated one step higher, so a medium one opens an issue as high. The issue names the KEV entry, the EPSS score with its attribution, and CISA's SSVC exploitation where known. When a complete scan no longer finds the CVE, the issue stays open and is told so once: a CVE can disappear without a fix, so a person checks and closes it. A closed issue whose CVE comes back is reopened. A CVE with the VEX status `not_affected` or `fixed` gets no new issue. Its issue that is already open is closed only with `ISSUE_AUTOCLOSE=on`: with a comment naming the status and the justification, at most 20 per target and scan (the rest follow in the next scans). `ISSUE_AUTOCLOSE=dry_run` only logs, per target, how many issues it would close per VEX status, and changes nothing; the default is `off`. When the statement is withdrawn, a closed issue is reopened.
|
||||
|
||||
### Closing an issue in Gitea
|
||||
|
||||
|
||||
@@ -22,9 +22,10 @@ of an organisation in that instance automatically:
|
||||
- **Known vulnerabilities as issues.** A critical or high CVE in a dependency
|
||||
becomes one issue per package and CVE (`[CVE] okhttp@3.12.0: CVE-2021-0341`),
|
||||
labelled like the findings plus `cve`, with the fixed version where the
|
||||
advisory names one. When a complete scan no longer finds it (the dependency
|
||||
was updated or removed), the issue is closed with a comment; if it comes
|
||||
back, it is reopened.
|
||||
advisory names one. When a complete scan no longer finds it, the issue stays
|
||||
open and gets one comment saying so: a CVE can disappear without a fix, so
|
||||
you check and close it yourself (in Prüfwerk, set the VEX status "fixed"
|
||||
with a reason). If it comes back and goes again, it is told again.
|
||||
- **The issue follows the finding.** When the finding is closed in Prüfwerk —
|
||||
the scan no longer finds it, or someone marks it resolved, a false alarm or
|
||||
ignored — Prüfwerk comments on the issue why and closes it. An accepted risk
|
||||
|
||||
@@ -24,9 +24,11 @@ Repository-Organisation dieser Instanz automatisch prüfen:
|
||||
Abhängigkeit wird ein Issue je Paket und CVE
|
||||
(`[CVE] okhttp@3.12.0: CVE-2021-0341`), mit denselben Labels wie die Befunde
|
||||
plus `cve` und der behebenden Version, wenn die Meldung eine nennt. Findet
|
||||
eine vollständige Prüfung sie nicht mehr (Abhängigkeit aktualisiert oder
|
||||
entfernt), wird das Issue mit Kommentar geschlossen; taucht sie wieder auf,
|
||||
wird es wieder geöffnet.
|
||||
eine vollständige Prüfung sie nicht mehr, bleibt das Issue offen und erhält
|
||||
einmal einen Kommentar dazu: Eine CVE kann auch ohne Behebung verschwinden,
|
||||
deshalb prüfen und schließen Sie es selbst (im Prüfwerk mit dem VEX-Status
|
||||
„Behoben“ und Begründung). Taucht sie wieder auf und verschwindet erneut,
|
||||
kommt der Hinweis noch einmal.
|
||||
- **Das Issue folgt dem Befund.** Wird der Befund im Prüfwerk geschlossen –
|
||||
die Prüfung findet ihn nicht mehr, oder jemand setzt ihn auf behoben,
|
||||
Fehlalarm oder ignoriert –, kommentiert Prüfwerk im Issue den Grund und
|
||||
|
||||
+6
-5
@@ -684,11 +684,12 @@ Justifications for `not_affected` (OpenVEX): `component_not_present`,
|
||||
`inline_mitigations_already_exist`. A statement without what its status
|
||||
requires is refused.
|
||||
|
||||
A scan keeps the status current: when a complete CVE check no longer finds an
|
||||
alert (the component was removed or updated past the fix), it is marked
|
||||
resolved, and one nobody assessed, or assessed as affected, becomes `fixed`.
|
||||
A `not_affected` or `fixed` someone stated is never changed by a scan. If the
|
||||
vulnerability comes back, the scan's `fixed` is withdrawn. A Yocto recipe's
|
||||
When a complete CVE check no longer finds an alert, it is marked resolved and
|
||||
keeps its status: a scan never states `fixed` for it, since a vulnerability
|
||||
can disappear without a fix. An alert nobody assessed stays
|
||||
`under_investigation` in the exports until someone states its status. A
|
||||
`fixed` scans stated that way before is not read as a statement. A statement
|
||||
someone made is never changed by a scan. A Yocto recipe's
|
||||
`CVE_STATUS` and `CVE:` patches are stated by the scan too (see
|
||||
[Embedded Linux / Yocto](/guide/yocto#recipe-inventory)), likewise never over a
|
||||
person's statement.
|
||||
|
||||
+11
-8
@@ -55,10 +55,12 @@ Read-only roles see the statements but cannot assess.
|
||||
|
||||
## What a scan changes
|
||||
|
||||
When a complete scan no longer finds a vulnerability (the component was
|
||||
removed or updated), it is marked fixed and "Stated by" shows **Scan**. A
|
||||
"Not affected" or "Fixed" stated by a person is never changed by a scan. If
|
||||
the vulnerability comes back, the scan withdraws its "Fixed".
|
||||
When a complete scan no longer finds a vulnerability, it is no longer open,
|
||||
and its assessment stays as it is. A scan never states "Fixed" for it: a
|
||||
vulnerability can disappear without a fix, for example through other scan
|
||||
data, an incomplete inventory or a changed identification. Only a person
|
||||
states "Fixed". A "Fixed" a scan stated that way before is not read as a
|
||||
statement. A statement made by a person is never changed by a scan.
|
||||
|
||||
A vulnerability that is "Not affected" or "Fixed" (stated by a person, by the
|
||||
scan or in an imported VEX document) raises no notification and gets no issue
|
||||
@@ -142,10 +144,11 @@ CVE) or it affects several components. The draft
|
||||
yourself, through the CSIRT of your main establishment.
|
||||
|
||||
Through the API you can give the time the deadlines run from (`aware_at`);
|
||||
without it, the first scan that found the exploitation counts. For a fixed
|
||||
vulnerability the draft carries the date of the fix (field v22) and the final
|
||||
report's deadline. A vulnerability assessed "Not affected", or fixed before
|
||||
any scan found it exploited, gets no draft. Actively
|
||||
without it, the first scan that found the exploitation counts. For a vulnerability
|
||||
assessed "Fixed" the draft carries the date of that statement (field v22) and
|
||||
the final report's deadline. One a scan only no longer finds leaves both open
|
||||
until someone states "Fixed". A vulnerability assessed "Not affected", or
|
||||
fixed or no longer found before any scan found it exploited, gets no draft. Actively
|
||||
exploited vulnerabilities are also in the evidence pack as
|
||||
`enisa-drafts.json`. When ENISA changes the glossary we update the fields;
|
||||
the version in a draft shows which one it follows.
|
||||
+12
-9
@@ -58,11 +58,13 @@ Rollen mit Lesezugriff sehen die Aussagen, können aber nicht bewerten.
|
||||
|
||||
## Was die Prüfung ändert
|
||||
|
||||
Findet eine vollständige Prüfung eine Schwachstelle nicht mehr (Komponente
|
||||
entfernt oder aktualisiert), wird sie als behoben markiert; „Aussage von“
|
||||
zeigt dann **Prüfung**. Eine Aussage „Nicht betroffen“ oder „Behoben“, die
|
||||
eine Person gemacht hat, ändert die Prüfung nie. Taucht die Schwachstelle
|
||||
wieder auf, nimmt die Prüfung ihr „Behoben“ zurück.
|
||||
Findet eine vollständige Prüfung eine Schwachstelle nicht mehr, gilt sie
|
||||
nicht mehr als offen; ihre Bewertung bleibt, wie sie ist. Die Prüfung setzt
|
||||
dafür nie „Behoben“: Eine Schwachstelle kann auch ohne Behebung
|
||||
verschwinden, etwa durch andere Scandaten, eine unvollständige Erfassung oder
|
||||
eine geänderte Zuordnung. „Behoben“ sagt nur eine Person. Ein „Behoben“, das
|
||||
die Prüfung früher so gesetzt hat, gilt nicht als Aussage. Eine Aussage, die
|
||||
eine Person gemacht hat, ändert die Prüfung nie.
|
||||
|
||||
Eine Schwachstelle mit „Nicht betroffen“ oder „Behoben“ (von einer Person,
|
||||
der Prüfung oder aus einem importierten VEX-Dokument) löst keine
|
||||
@@ -151,10 +153,11 @@ die CVE dazu) oder sie mehrere Komponenten betrifft. Der Entwurf
|
||||
|
||||
Den Zeitpunkt, ab dem die Fristen laufen, können Sie über die API angeben
|
||||
(`aware_at`); ohne ihn gilt die erste Prüfung, die die Ausnutzung fand. Ist
|
||||
eine behobene Schwachstelle bekannt, trägt der Entwurf das Datum der Behebung
|
||||
(Feld v22) und die Frist des Abschlussberichts. Ist sie als „Nicht
|
||||
betroffen“ bewertet, oder wurde sie behoben, bevor eine Prüfung ihre
|
||||
Ausnutzung fand, gibt es keinen Entwurf. Aktiv ausgenutzte Schwachstellen stehen als
|
||||
eine Schwachstelle als „Behoben“ bewertet, trägt der Entwurf das Datum dieser
|
||||
Aussage (Feld v22) und die Frist des Abschlussberichts. Findet die Prüfung sie
|
||||
nur nicht mehr, bleibt beides offen, bis jemand „Behoben“ sagt. Ist sie als
|
||||
„Nicht betroffen“ bewertet, oder wurde sie behoben oder nicht mehr gefunden,
|
||||
bevor eine Prüfung ihre Ausnutzung fand, gibt es keinen Entwurf. Aktiv ausgenutzte Schwachstellen stehen als
|
||||
`enisa-drafts.json` auch im Nachweispaket. Ändert ENISA das Glossar,
|
||||
passen wir die Felder an; die Version im Entwurf zeigt, nach welchem er
|
||||
erstellt wurde.
|
||||
Reference in new issue
Block a user