Files
pruefwerk/compliance-agent
Sharang ParnerkarandClaude Opus 5.5 ad1394af4f
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
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) Successful in 12m6s
fix(cve): KEV from CISA's GitHub mirror, exploitation cached per source (#493)
On stage and prod www.cisa.gov answers 403 to the datacenter, so the KEV
catalog was never read. Since a CVE's row was cached only when KEV, EPSS
and Vulnrichment all answered, cve_exploitation stayed empty and every
scan asked EPSS and Vulnrichment again.

- KEV is read from CISA's mirror cisagov/kev-data on
  raw.githubusercontent.com (same feed, CC0), with www.cisa.gov as the
  fallback.
- KEV is applied from the cached catalog on every run and no longer
  stored per CVE. A cve_exploitation row keeps EPSS and SSVC, each with
  an *_answered flag, merged with $set so a later answer keeps the
  other's. A source that failed is asked again alone; a row expires a
  day after its first write. Rows from before have no flag and are asked
  again.
- Tests: KEV fallback after a 403, a blocked KEV that keeps EPSS and
  SSVC, a retry that asks only EPSS, the merge, old rows, and the Mongo
  write path (skipped without Mongo).
- Docs: tools reference (source and egress rows), test plan check 19.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-06 20:50:24 +02:00
..