Dev.to Security 🔐 Cybersecurity 👁 0 📖 7 min read

Bury Vulnerabilities Before They Rise: Building Zero-Day Cemetery with Kiro

A haunted cemetery for CVE triage, where the theme never rewrites the facts. This post was written as part of the Kiroween 2026 hackathon. All demo data is synthetic. Every CVE ID, asset, score, and KEV flag in this p

Bury Vulnerabilities Before They Rise: Building Zero-Day Cemetery with Kiro

A haunted cemetery for CVE triage, where the theme never rewrites the facts.

This post was written as part of the Kiroween 2026 hackathon.

All demo data is synthetic. Every CVE ID, asset, score, and KEV flag in this post is invented demo data. The IDs use the fictional year 2099, so none of them can match a real CVE record.

The problem: severity is not exploitation

CVSS rates technical severity. FIRST's EPSS estimates the probability of exploitation activity in the next 30 days. CISA's Known Exploited Vulnerabilities (KEV) catalog lists vulnerabilities exploited in the wild. Dashboards often fold these signals into one color or number. A CVSS 10 then reads as "under attack", and the analyst cannot see why one item is urgent and another can wait.

The idea: a cemetery that keeps its facts straight

Zero-Day Cemetery is a local-first tool for vulnerability triage, prioritization, and remediation tracking. Each vulnerability is a tombstone with fog, state ornaments, and ghost commentary, and the theme never changes the data. Every grave keeps the official evidence state, such as Watchlist or Known Exploited, apart from the fictional presentation, which the dossier calls "A visual theme. It is not security evidence." The internal priority (0–100) is labeled "Product score, separate from CVSS and EPSS", and every simulator result says "Hypothetical simulation — not exploitation evidence."

Tombstone graves in local API mode, ranked by internal priority. KEV flags read "synthetic flag" and every stone ends with "Synthetic record".

Three moments from the demo

These values come from the local API seed. The demo video shows all three, and the repository's testing report records the runs that checked them.

1. CVSS 10 and EPSS 99%, yet only Watchlist

Synthetic record CVE-2099-10131 has CVSS 10.0, EPSS 99%, no KEV flag, and no exploitation evidence. Its official state is Watchlist: the official Critical state also needs an internet-exposed asset, and this record's synthetic asset is internal. Its internal priority is 48.32/100. Known exploitation, the most heavily weighted factor, adds 0.0 points. The AI Gravedigger's local provider says: "Known exploitation is not established by the available record."

Evidence dossier for synthetic record CVE-2099-10131: CVSS 10.0 and EPSS 99%, official state Watchlist, internal priority 48.32

2. CVSS 1.7, internal priority 80.56

Synthetic record CVE-2099-10399 has CVSS 1.7 (Low) and EPSS 71%. It carries a synthetic KEV flag and synthetic confirmed evidence, and it affects an internet-exposed synthetic asset. In this synthetic scenario its official state is Known Exploited, with internal priority 80.56/100. Low severity can still be urgent when exploitation evidence and exposure line up. The dossier labels the flag "Synthetic KEV scenario only".

3. A failed fix reopens the grave

Synthetic record CVE-2099-10019 has one open remediation task. The task moves to In progress, then Verifying. Verification fails with the written evidence "Synthetic regression test failed.", and the official state becomes Reopened. After rework, a second verification passes and the state becomes Remediated. A pass or fail without evidence returns 400, and a jump from FAILED to VERIFIED returns 409. Each transition writes an audit event that records the resulting official state.

The day our synthetic IDs moved to 2099

The first seed built IDs from real years, and an earlier draft of this post had to warn that they "may match real CVE numbers". A warning does not travel with a screenshot. A cropped image of a synthetic KEV flag next to a real-looking ID reads as a claim about someone's real vulnerability.

On 2026-12-01 we moved every synthetic ID in the server seed and the browser demo to the fictional year 2099: CVE-2099-10001 to CVE-2099-10500 in the seed, CVE-2099-12000 to CVE-2099-12047 in the browser. The format stays valid, and no real CVE ID uses 2099. The values come from each record's index, not its year, so every number above stayed the same. So did the labels.

How Kiro was used

All of the work ran in Kiro IDE agent sessions. The main session read the spec, edited code, ran the build and tests, and dispatched sub-agents to inventory the code and rewrite the docs.

Steering rules that became code. .kiro/steering/product.md says severity alone is not evidence of exploitation. In the shared state function, Known Exploited depends only on KEV membership or confirmed evidence, so CVSS and EPSS can raise the official state to Critical or Watchlist at most:

if (hasFailedVerification) return "REOPENED";
if (hasActiveTask) return "REMEDIATION_IN_PROGRESS";
if (value.isKev || value.exploitationEvidence === "CONFIRMED") return "KNOWN_EXPLOITED";

The JSON import route also rejects isKev: true.

Spec-driven development. The spec in .kiro/specs/zero-day-cemetery/ has 57 acceptance criteria across R1–R10, plus a design and a task list. R4.6 forbids labeling a vulnerability known-exploited from CVSS or EPSS alone. R2.5 requires the simulator label, and the web client rejects API simulation results without it.

Hooks. A SessionStart hook adds the evidence rules to the agent's context. It fired at the start of the 2026-12-01 session. A PreToolUse secret guard runs before the agent executes git commit, git push, or gh repo create, and blocks the command if a publishable file holds credentials, a private key, a tracked .env file, or an absolute home-directory path.

A custom agent. We created evidence-integrity-reviewer with Kiro's custom-agent-creator. The read-only agent checks docs, UI copy, and seed data against six evidence rules and returns file:line findings with a PASS, PASS WITH FIXES, or BLOCK verdict.

tasks.md as a handoff ledger. It marks items queued, partial, done, or blocked, names gaps G1 to G4, and ends with a prioritized handoff list. The 2026-12-01 session started from its first item, the G4 asset fix.

Context-gatherer sub-agents that found defects. Two of them mapped the as-built web app and server and found defects the task list did not record. Patch Necromancer kept browser demo tasks after the API answered, so transitions targeted task IDs the server did not have. Synthetic data also wore a "Live source" badge.

Parallel sub-agents with file ownership. They rewrote the docs, including a draft of this post. Each owned a fixed list of files and worked from one fact sheet of verified values. Where the sheet and the code disagreed, the code won.

Property-based tests. The fast-check properties use a fixed seed and 300 runs each, so every run sees the same inputs. P1 checks R4.6 over random CVSS, EPSS, severity, and exposure values. P4 checks that raising one risk factor never lowers the internal priority. The sub-agent that added the properties also found a simulator bug the existing tests had missed: two strategies capped a compensating control at 0.95, which weakened a stronger existing control. It is fixed, with a regression test.

Regression tests that failed first. Each connected-mode fix came with a regression test, and each of those tests failed when its defect was put back. The other fixes got regression tests written alongside them. At the final gate (2026-12-02, 01:06 JST), npm run build exited 0, npm test passed 242 tests in 26 files with 0 failures, npm audit found 0 vulnerabilities, and the secret guard reported no findings.

A demo video recorded by Kiro. A Kiro session wrote scripts/record-demo.mjs. It drives the running app in headless Chromium, captures frames through the Chrome DevTools screencast, and encodes them with ffmpeg. It checks five on-screen values, such as the simulator result and the newest audit row, and stops the take if one is wrong. The first take exposed a bug: a newly opened view kept the previous view's scroll position. The fix came with a regression test that failed before it.

We did not use MCP servers or Kiro powers.

Lessons learned

  1. Write the evidence rule before the theme. As a steering rule, it reached the state logic, import validation, AI wording, and UI copy.
  2. A hook reminds; a test checks. Tests hold the rules: a 36-pair transition matrix, a KEV-by-evidence truth table, and the properties.
  3. Keep a ledger, and let a fresh agent read the code. tasks.md let the 2026-12-01 session resume where the last one stopped. The context-gatherers found what the ledger missed.
  4. Change the identifier, not only the label. A label warns about a misreading. A 2099 ID rules it out.
  5. A spec does not stop drift. Simulator strategy names drifted across layers (G1, fixed on 2026-12-01), and priority thresholds still differ (G2).

  6. Let a script record the demo. The first scripted take exposed a bug that no test had caught, and the value checks stop a take before a wrong state reaches the video.

What is not done yet

  • G2 and a server compatibility layer (G3) are open. The cemetery loads only the first 48 records, and asset assignment is a browser-only preview.
  • The Playwright smoke specs, axe, and a manual accessibility review have not been run. Live feeds and external AI have never been called. All results here come from local runs on macOS.

Try it

Locally, run npm install and npm run dev, then open http://localhost:5173. The first start seeds 500 synthetic vulnerabilities and 50 synthetic assets. The dev script needs a POSIX shell, and only Node.js 24 on macOS was tested.

Thanks for reading, and happy Kiroween. Bury vulnerabilities before they rise.

Kiro drafted this post from the project's verified facts. Every number in it comes from the repository.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.