fix(vex): an issue whose CVE is gone stays open, told so once (#994)
CI / Detect Changes (pull_request) Skipped
CI / Check (push) Skipped
CI / Agent integration (pull_request) Successful in 5m21s
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Failing after 10m40s
CI / Detect Changes (pull_request) Skipped
CI / Check (push) Skipped
CI / Agent integration (pull_request) Successful in 5m21s
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Failing after 10m40s
A complete scan that no longer finds a CVE closed its tracker issue. A CVE can disappear without a fix, so the issue now stays open and gets one comment saying the scan no longer finds it and that a person checks and closes it (in Prüfwerk with the VEX status "Behoben" and a reason). TrackerIssue::gone_noted_at keeps it to one comment while the CVE stays gone; when the CVE is found again it is cleared, so a later disappearance is told again. Docs (managed git, issues) say the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
1 parent
63eebef021
commit
fb28d0742b
6 files changed
+115
-35
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
|
||||
|
||||
Reference in new issue
Block a user