The security desk for apps built with AI, run by one AI agent.
patchline.asv-labs.com · Stack Watch · Run log · Public data
If you ship apps with Claude Code, Cursor, Codex or Hermes, your app runs on a few hundred packages you didn't pick. When one of them gets a security hole, nobody tells you.
Patchline does. It watches the 200 packages the vibe-coding stack actually ships (Next.js, React, Supabase, Prisma, Stripe, the OpenAI, Anthropic and Vercel AI SDKs, MCP servers, Vite and the rest) and, for every advisory that hits them:
- rates how urgently to patch, never below what the data says. When the feed gives no severity label, Patchline scores the advisory's CVSS vector itself;
- gives you a fix prompt to paste into your coding agent. The prompt is built only from the advisory data, never written by a model;
- explains it in plain English: what the bug is, what could happen to your app, and who is exposed. The agent works through the library newest and most serious first; the library page says how many still show the feed's own text.
Every morning it builds a short brief and emails it at about 6 a.m. Pacific. On quiet days it says so and gives you one hardening check instead.
All of it is run by one agent on a schedule. A person approves sponsor lines with one click and reviews code changes. The run log labels every run that was started by hand.
Paste or drop a lockfile (npm, pnpm, yarn v1 or berry, bun, uv, poetry, Pipfile) or a package.json or requirements.txt and see which advisories affect the exact versions you ship. The file is parsed in your browser; only package names and versions are sent, checked against OSV.dev, and not kept. Every hit is rated and ranked together, including old advisories outside Patchline's library, which link to OSV.dev with their severity and fixed version. Big lockfiles go in batches of 300 (up to 3,000 packages), direct dependencies first.
| Advisory page | Library |
|---|---|
![]() |
![]() |
flowchart LR
subgraph mini["Mac mini · Hermes profile 'patchline' · own non-admin user"]
C["01 Collect<br/>script, no model"] --> W["02 Write<br/>model, no tools"]
W --> V["03 Check<br/>validator"]
V --> P["04 Publish<br/>script, no model"]
end
OSV[("OSV.dev<br/>+ GitHub Advisory DB")] --> C
KEV[("CISA KEV")] --> C
P -- "git push (deploy key)" --> D[("ASV-Labs/patchline-data<br/>public")]
P -- "signed HMAC call<br/>with the commit SHA" --> CF["Cloudflare Worker<br/>patchline.asv-labs.com"]
CF -- "reads data at that exact SHA" --> D
CF -- "6 a.m. brief<br/>Resend batch" --> S(("Subscribers"))
CF <--> DB[("D1: subscribers, sends,<br/>publishes, sponsor orders")]
ST(("Stripe")) -- "signed webhook:<br/>paid sponsor slot" --> CF
Scheduled four times a day (05:30, 11:30, 17:30, 23:30 Pacific), three Hermes cron jobs run. They share one lock, so two never touch the data at once.
- Collect (
agent/collect.py, no model). Queries OSV.dev for the 200 watched packages. One advisory often appears as several records (a GHSA record and its PYSEC twin); each source record is kept as a separate part and the advisory's facts are rebuilt from the parts on every run, so upstream corrections land and two different advisories are never mixed. GHSA data wins on versions. When the feed gives no severity label,agent/cvss.pyscores the CVSS 3.x or 4.0 vector. Known-exploited flags are rechecked against CISA's list on every run, and withdrawn records are retired. Facts are copied, never edited. - Write (a Hermes LLM job with no tools).
agent/prepare_write.pyhands the model up to 24 advisories that still need copy, newest and most serious first, as ASCII-escaped data wrapped in a random per-run marker it can't forge. The model writes four short fields per advisory: headline, plain English, who's exposed, urgency. If there's nothing to write, the script tells Hermes to skip the model. - Publish (
agent/publish.py, no model). Validates the reply, builds the deterministic fix prompts, the index, and (on the first run of the day) the brief and a social-post draft, plus a run record, then commits as the Patchline agent and pushes. Finally it signs a call to the Worker with the new commit SHA, and the Worker emails the brief.
Every run is a commit in patchline-data, and every run record says what was collected, written and rejected, and why. The run log shows them all. Commit times come from the agent's machine, so the log is a public record, not a tamper-proof one.
A security site that lets a model invent fixes is a liability, so the model gets the narrowest job possible.
| Risk | Control |
|---|---|
| Prompt injection in advisory text | Advisory text goes to the model as escaped data inside a random per-run marker. The model has no tools, so it can't fetch, run or open anything. |
| A model-written fix that hurts users | Fix prompts come from a fixed template filled with feed data: the package, the fixed versions, and the manifest to update. No model output ever reaches a fix prompt. |
| Hallucinated versions, links or commands in copy | agent/validate.py rejects links, domains, HTML, code, package-manager and shell commands, instruction-like text ("tell your coding agent to..."), and any version that isn't in that advisory's data. Rejected copy falls back to a data-only template; the run record keeps the rejected text and the reason. |
| Understated urgency | Urgency is clamped to a floor set by the data: Critical or known-exploited means "patch now"; High, or no rating at all, means at least "this week". |
| Malformed feed data | Version strings from the feed must look like versions before they reach the data or a fix prompt; the fix prompt checks them again. |
| Forged or replayed publish calls | HMAC-SHA256 over timestamp.body, a 5-minute window, a unique signature per call, and a check that the commit exists in the data repo. Each date's brief is emailed at most once; a send that failed is retried, one that went out never is. |
| Forged payments | The Stripe webhook verifies Stripe-Signature (HMAC-SHA256, 5-minute tolerance), processes each event id once, and only records sessions from the sponsor payment link. A person approves every sponsor line. |
| Stale or mixed content | The Worker reads data only at the exact commit SHA the agent reported, never a branch name, so caches can't serve a mix of versions. |
| Stack Watch abuse | Browser requests from other sites are refused (Origin / Sec-Fetch-Site), a 32 KB body cap, at most 300 packages per request, strict name and version patterns, and per-IP rate limits, which are what hold back scripts. |
| Email abuse | Double opt-in (confirm is a POST, so link scanners can't confirm for you), honeypot field, Turnstile, per-IP limits, RFC 8058 one-click unsubscribe, and a daily cap under the free email tier, split so signups can't use up the brief. IP addresses are stored only as hashes salted with a secret. |
| Blast radius of the agent's machine | The agent runs as its own non-admin macOS user. Its only credentials are a write key for the data repo, a read key for this repo, and the signing key. It holds no Cloudflare, Resend or Stripe keys. |
| Browser hardening | Strict CSP (default-src 'none', no inline script), HSTS, nosniff, frame-ancestors 'none', a locked-down Permissions-Policy. |
Advisory facts come from OSV.dev, including the GitHub Advisory Database, licensed CC-BY 4.0. Known-exploited flags come from CISA KEV. Every advisory page links its source record. Patchline is provided as is and is not professional security advice.
agent/
watchlist.json the 200 watched packages, grouped by layer
collect.py OSV + CISA KEV collector: source parts, rebuild, KEV recheck (standard library only)
cvss.py CVSS 3.x and 4.0 base scores, for advisories the feed leaves unrated
prepare_write.py Hermes pre-run script: builds the model's context, or skips the model
prompts/write.md the writer's instructions
validate.py checks every model-written field before publishing
publish.py applies copy, builds index/brief/social/run record, commits, signs the Worker call
common.py fix-prompt template, urgency floor, data-only copy
hardening.json the rotating "one check a day" list
bin/ wrapper scripts for the three Hermes cron jobs and the watchdog
tests/ validator, collector, merge and CVSS tests (hostile input, fake feeds)
site/
src/worker.js routes, Stack Watch API, signup, signed publish hook, brief email
src/render.js page shell (all output escaped)
src/cvss.js port of agent/cvss.py, for Stack Watch hits outside the library
public/ styles.css, app.js (Stack Watch, no inline script), hero.js, fonts, hero frames
test/ CVSS parity, lockfile parsers (real lockfiles in fixtures/), Stripe webhook
schema.sql D1 tables
wrangler.jsonc Worker config (custom domain, D1 binding, assets)
gate/ ASV design gate notes, WDI-011 score sheets, verify script
deploy/site-deploy/ the site-deploy profile and smoke checks for this Worker
docs/screenshots/ the images in this README
DESIGN-NOTE.md design gate note (WDI-010)
RUNBOOK.md Mac mini setup, cron jobs, first deploy, day-to-day
python3 -m unittest discover -s agent/tests # 42 agent tests (pip install cvss so the two CVSS reference checks run instead of skipping)
(cd site && node test/cvss-parity.mjs && node test/stack-parsers.mjs)
# a local copy of the data
git clone https://github.com/ASV-Labs/patchline-data ../patchline-data
# the site
cd site
printf 'DATA_SHA=main\nPUBLISH_SIGNING_KEY=dev-only-key\n' > .dev.vars
npx --yes wrangler@4.151.0 d1 execute patchline --local --file schema.sql
npx --yes wrangler@4.151.0 dev # http://127.0.0.1:8787
# a full agent cycle against your local data checkout, without pushing
python3 agent/collect.py --data ../patchline-data
python3 agent/prepare_write.py --data ../patchline-data --work /tmp/plwork
python3 agent/publish.py --data ../patchline-data --work /tmp/plwork --no-push --no-signalProduction deploys go through ASV-Labs/site-deploy (profile patchline), never by hand. See RUNBOOK.md.
The site went through the ASV design gate (web-design-intelligence, WDI-010 and WDI-011); the verifier passes with 0 hard-fails. The front page opens on a scroll-scrubbed hero: one generated sequence (Nano Banana 2.1 stills and Kling v3 transitions on Comfy Cloud) in which a developer goes from red-lit exposure at 2 a.m. to calm blue 6 a.m. light. It is labelled as generated, holds on three readable chapters, loads a quarter of its frames until you scroll, and falls back to three still panels with reduced motion or no JavaScript. Below it: Stack Watch, the day's desk, the record, the four-step spine and the brief signup, in a night-desk palette with Archivo and JetBrains Mono (self-hosted, OFL). Every number on the page links to its source. Details in DESIGN-NOTE.md and site/gate/.
ASV Labs for the Vibe Coding Academy Autonomous Business hackathon, November 2026. Built with Claude, with the plan audited by Gemini before any code was written. The agent runs on Hermes.





