No new notification or issue for a not_affected/fixed CVE stays always on.
Closing an issue that is already open now depends on ISSUE_AUTOCLOSE
(off | dry_run | on, unknown -> off with a warning), like ISSUE_CATCHUP:
dry_run logs one line per target with the counts per VEX status and makes
no tracker call; on closes at most 20 per target and scan (every Gitea
request waits for its instance's slot) and logs closed/deferred/failed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
A CVE alert whose VEX statement is not_affected or fixed (by a person, by
the scan from Yocto CVE_STATUS / CVE: patches, or imported OpenVEX) still
raised a notification and opened or kept a tracker issue.
- core: CveAlert::is_resolved_by_vex (via VexStatus::resolves), plus
OpenVEX names for statuses and justifications.
- vex_lifecycle::attach_stored_vex gives the scan's alerts (which carry no
VEX) the statement stored on the alert.
- cve_notify::notify_new_cves: one notification path for the scans (code and
PLC control-app) and the hourly CVE monitor; skips settled alerts.
- The code pipeline now notifies after the Yocto statements are applied, so a
recipe's not_affected suppresses the notification on the first scan too.
- cve_issues: no issue for a settled CVE; an open one is closed with a
comment naming the VEX status and justification (not gated on a complete
scan); a withdrawn statement reopens the same issue.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Every CVE alert, and the SBOM's reference to the same advisory, now says
whether the CVE is exploited: its entry in CISA's KEV catalog (date added,
known ransomware use), FIRST's EPSS score and percentile, and the SSVC
exploitation decision of CISA's Vulnrichment.
- pipeline/cve_enrichment.rs reads KEV (one JSON, at most daily), EPSS
(FIRST API, 50 CVE ids per request) and Vulnrichment (per-CVE record on
raw.githubusercontent.com, a 404 is an answer) through guarded_net. Only
CVE ids leave the agent. Bounded: 500 uncached CVEs, 8 at once, 2 min.
- Answers are cached a day for all tenants in <prefix>__admin
(cve_exploitation per CVE, cisa_kev for the catalog), TTL index like the
NuGet licence cache. A failed source stays unknown, is not cached and
never fails the scan. CVE_EXPLOIT_LOOKUP=false turns it off.
- Runs in the scan (after the CVE stage), the PLC control-app path and the
hourly CVE monitor (which now refreshes an existing alert's exploitation).
- CVE issues (#452): a KEV CVE always opens an issue, rated at least high;
an EPSS percentile at or above CVE_ISSUE_EPSS_PERCENTILE (default 0.95)
rates it one step higher. The body names KEV, EPSS (with FIRST's credit)
and SSVC.
- LLM triage: a finding that names a CVE gets its exploitation in the
prompt. No scanner sets Finding.cve today, so this is a hook for now.
- Dashboard: "Aktiv ausgenutzt (KEV)" and "EPSS … · P…" badges on the SBOM
page's CVE cards, a KEV marker on the row, SSVC line, EPSS attribution.
- Docs: tools.md section and egress rows, SBOM and issues guides, staging
check 18. Tests run on trimmed real fixtures and a loopback stand-in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB