fix(cve): KEV from CISA's GitHub mirror, exploitation cached per source (#493)
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
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
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
This commit is contained in:
1 parent
85aff4cd2c
commit
ad1394af4f
3 files changed
+431
-143
No files matched your search
@@ -64,7 +64,7 @@ and the same agent image (`8ea3731`) locally with the fixtures of this plan.
|
||||
| 16 | PASS | Locally, `Serilog 2.10.0` from `App/App.csproj (transitive, nuget.org)`, Apache-2.0; one `sbom_dependencies` entry naming only the private-feed project; log line present. |
|
||||
| 17 | PASS | Locally, the npm and Maven components get licences; with an `.npmrc` scope and a private Maven repository `@corp/util` and every Maven component stay without one, log `Maven licenses not looked up`. The fixture path is now `fixtures/nightly/eco/js-npm-lock-v3`. |
|
||||
| 18 | PASS | Stage Mongo: findings with `legacy_fingerprints` kept their rows. |
|
||||
| 19 | PASS / NEEDS USER | Locally, CVE-2021-44228 has KEV (ransomware), EPSS 0.99999, SSVC active. Stage fills `cve_exploitation` with the daily CVE monitor (00:00). Look at: the badges. |
|
||||
| 19 | FAIL, fixed / NEEDS USER | Locally, CVE-2021-44228 has KEV (ransomware), EPSS 0.99999, SSVC active. On stage `www.cisa.gov` answers 403 to the datacenter, so KEV failed and, since a CVE was only cached when all three sources answered, `cve_exploitation` stayed empty. Fixed: KEV from CISA's GitHub mirror, each source cached on its own. Look at: the badges. |
|
||||
| 20 | NEEDS USER | Edit and re-export a PLC project, then rescan. |
|
||||
| 21 | PASS / NEEDS USER | Locally, the hardening, HEX, signature and reference texts are as written, and the ASLR/RELRO findings have cra-ai-1 and the HEX finding cra-ai-6. Six files group into one inventory finding (#477), so the check now uploads five. Look at: a native unsigned DLL. |
|
||||
| 22 | PASS | Locally: 422 without a justification or action; OpenVEX, CycloneDX VEX and the SBOM validate against the schemas; after the update to log4j 2.17.1 the fixed CVEs are set `fixed` by the scan, and a person's `not_affected` is kept. |
|
||||
@@ -405,8 +405,11 @@ target with history (findings, at least one marked by a person, issues).
|
||||
- **Log:** `CVE exploitation (KEV, EPSS, SSVC)` with `counts` (`cves`,
|
||||
`cached`, `kev`, `epss`, `failed: []`); the second scan reports every CVE
|
||||
as `cached` and makes no request to the three sources. Mongo:
|
||||
`<prefix>__admin.cve_exploitation` has one row per CVE,
|
||||
`<prefix>__admin.cisa_kev` one row.
|
||||
`<prefix>__admin.cve_exploitation` has one row per CVE (`epss_answered`,
|
||||
`ssvc_answered`), `<prefix>__admin.cisa_kev` one row. No `KEV catalog not
|
||||
read` line: KEV comes from CISA's mirror on GitHub (`cisagov/kev-data`),
|
||||
since `www.cisa.gov` answers 403 to stage and prod. A source that fails
|
||||
keeps the others' answers; the next scan asks only that source.
|
||||
- **Switch:** `CVE_EXPLOIT_LOOKUP=false` stops the lookups;
|
||||
`CVE_ISSUE_EPSS_PERCENTILE` (default `0.95`, `off`) sets the EPSS step-up.
|
||||
- **[visible]** KEV and EPSS badges on the SBOM page; CVE issues for KEV
|
||||
|
||||
Reference in new issue
Block a user