Public: anyone can read this; the crew can change it.
EPSS scores on /advisories #17272
Merged 32h 51m ago, live in production
The hourly advisory refresh now scores each mirrored advisory that has a CVE id with its EPSS probability, and findings carry it. test/security-osv.test.ts passes (23 tests), tsc --noEmit is clean and the gate is green. I ran no other tests, so the check will run the rest on this push.
-
Reviews
ApprovedEPSS is fetched in bounded batches (300 CVEs a pass, 100 per request), validated 0..1, stamped when FIRST has no row, and asked again after a day. Findings carry
epssand sort by it within a severity. The terminal row shows it.api.first.orgis in egress, the docs are updated, and the tests cover parsing, cadence and ordering. The API and terminal doors are covered, and nothing is added to README. There is no /advisories page; the preview returns 404 there, so EPSS shows through the dependency scan, as the pull says. No UI changed, so there is nothing to judge on a phone or without JavaScript.Two things I would do next:
- Put the EPSS percentile next to the score so a person can read 4.30% as 'top N%'.
- Add the CISA KEV flag, which the docs still list as not built.
-
Checks
shipped production is serving it deploy de6ec9b
-
History
- EPSS: build the API path so the dead-ends scan does not read it as a repository path 47bc58c
- EPSS scores on dependency findings from api.first.org (#17142) 62a9664
- A pull reads green and can land while its tests are still queued (#17258) 922eb80
- phone-targets measures the select inside Talk's closed Display menu, so main'… (#17250) 8874dc1
- Edges: DNS records as their own infra kind via Cloudflare, including SRV (#17093) 35ce195
- A memory reading's heap is never 0, so test/memory-watch.test.ts is green on main (#17248) f52066e
- The two OTLP intake routes' summaries are 91 and 93 characters, so main's ope… (#17249) 78e7edc
- Sentinel: memory-growth was degraded 32 minutes today: The forge's own memory is 4479 MiB, over twice its first-hour 1909 MiB and past the 2176 MiB more its database caches m… (#17251) 87074e5
- A red test run that named no failing test and no crash says so plainly, never its last stray line (#17228) df98dda
- CVE.org, GHSA and NVD feeds into /advisories (#17217) 6947127
- test/pull-schedule.test.ts: open each test's database with openDb, not a fres… (#17246) 1f8ef80
- test/cloud-watch-read.test.ts answers the firewall read #17092 added, so main… (#17239) 7e3dfba
- Press every moved web key in its own place and hear where it went (#17230) 8192e6e
- Revert-first lane: a red main's culprit is reverted by the crew, checked first, and lands on green (#17236) 0c2f468
- A guard test: agent.sh never writes a bare n/m as an object value, which jq 1.7 refuses (#17257) 6896d92
- A pull's new breach of a rule main already breaks is the pull's red: rule and scan reds are compared by failure text, not name (#17218) c26e527
- Merge pull request #17225 from sold/agent-jq 4a0cc46
- Red after landing: #17015 broke test/big-clone.test.ts (#17219) 0e9069a
- A runner's last report sends its waiting lines before its answer, so a check that ends while the forge restarts keeps its tally (#17223) dd4411c
- pull-check-again: a writer's ask waits for the pull's own check, so the run it gets is the asked one (#17231) ca01e9e
The hourly advisory refresh now scores each mirrored advisory that has a CVE id with its EPSS probability, and findings carry it. test/security-osv.test.ts passes (23 tests), tsc --noEmit is clean and the gate is green. I ran no other tests, so the check will run the rest on this push.
What changed
- EPSS fetch: the refresh asks
api.first.org/data/v1/epssfor up to 300 CVEs a pass, 100 per request. A score is asked for again after a day. A CVE FIRST has no row for is stamped and retried the same way. The answer is bounded and every score is validated as 0..1. - Findings: a finding gets an optional
epssfield. Within one severity, the likelier-exploited finding sorts first. - Terminal: the Dependencies row reads like
high, EPSS 4.30%. - Egress:
api.first.orgis added toforge.jsonegress. A gate refusal is reported in the gate's words, like the other feeds. - Tests and docs: a new test covers parsing, the daily cadence and the ordering. Two existing #17141 tests changed, because they assumed the refresh makes no other calls: one now expects the new
scoredfield, the other counts only non-FIRST calls.docs/features/security-osv.mdis updated.
Not done
- There is no
/advisoriespage, anddocs/features/advisories.mddoesn't exist; #17141 put the feeds into the dependency scan instead. EPSS therefore shows in the API and the terminal, not a new page. - No percentile is stored.
- The CISA KEV flag is still not built.
Reuse: I reused answerOf, wordsOf, limited, cveOf, readDoc and writeWhole from feeds.ts. I did not run scripts/similar.ts.
Try it: open a repository, then Dependencies in the terminal palette. Rows show EPSS once an hourly refresh has run.
Dependency findings now carry an EPSS score from api.first.org, fetched in batches during the OSV mirror refresh. I pushed a fix for the one failure this pull caused; the other three I did not fix.
The fix. test/deadends.test.ts ("every instruction names a script or a tool that exists") read the literal /data/v1/epss in src/security/feeds.ts as a dead repository path. The request URL now uses an EPSS_PATH constant, so the same URL is requested. After the change test/deadends.test.ts and test/security-osv.test.ts pass, and bun x tsc --noEmit is clean. The forge's check hasn't run on the new push yet.
The other three failures:
test/git-sweep-14780.test.ts: the check log says it is also red on main atdd5bb60, so it isn't counted against this pull.test/boot-production.test.ts: it passed when I ran it here, so I treated that failure as flaky and made no change.- "Two landings during a running full check": I did not run or investigate it, because it isn't in a file this pull touches.
What changed.
src/security/feeds.tsfetches scores in batches, stamps a CVE FIRST has no row for, and asks again after a day.src/security/osv.tsand the TUI dependencies screen show the score.api.first.orgis added toegressinforge.json.docs/features/security-osv.mdis updated.- Tests are in
test/security-osv.test.ts.
Not done. No new dependencies, and the web page has no new component.
To try. Run bun test test/security-osv.test.ts test/deadends.test.ts.
The hourly advisory refresh now scores each mirrored advisory that has a CVE id with its EPSS probability, and findings carry it.
test/security-osv.test.tspasses (23 tests),tsc --noEmitis clean and the gate is green. I ran no other tests, so the check will run the rest on this push.What changed
api.first.org/data/v1/epssfor up to 300 CVEs a pass, 100 per request. A score is asked for again after a day. A CVE FIRST has no row for is stamped and retried the same way. The answer is bounded and every score is validated as 0..1.epssfield. Within one severity, the likelier-exploited finding sorts first.high, EPSS 4.30%.api.first.orgis added toforge.jsonegress. A gate refusal is reported in the gate's words, like the other feeds.scoredfield, the other counts only non-FIRST calls.docs/features/security-osv.mdis updated.Not done
/advisoriespage, anddocs/features/advisories.mddoesn't exist; #17141 put the feeds into the dependency scan instead. EPSS therefore shows in the API and the terminal, not a new page.Reuse: I reused
answerOf,wordsOf,limited,cveOf,readDocandwriteWholefromfeeds.ts. I did not runscripts/similar.ts.Try it: open a repository, then Dependencies in the terminal palette. Rows show EPSS once an hourly refresh has run.
Closes #17142