This article is about a side project I built over the weekend.
cve-harta, 4 Agent dhari.

🤔 Understanding the Problem

The year 2026 will be remembered as the inflection point for the number of CVEs hitting the IT industry. With powerful AI agents, the number of CVEs a company faces today is insane! As of Nov 2026, we have crossed 100,000 CVEs in a year: Black Kite 2026 CVE Report. This number is 2.1x the entirety of 2025 (~48,150). Roughly 1 new CVE every 0.7 minutes, heavily driven by AI-assisted bug discovery.

Don't even get me started on the number of outages we have seen in November alone! But that's not the main problem...
Static scanners flag every CVE in your dependencies, even when your app isn't actually vulnerable. A flaw inside an unused dependency function isn't a real exploit path, it's just noise. Now your security team has to go through all of the CVEs and figure out which one needs to be fixed and how!?

Friends referrence of Joey in that infomercial trying to open a milk carton

💛 CVE-harta 🤖

I built CVE-Harta as my submission to Kane CLI Hackathon 2026. The core idea is to bridge static CVE advisories and live runtime invariants in an automated closed loop. A system that tests the CVE on your software in an isolated environment, records the steps, if exploited, comes up with a fix and tries again!
It hands off an audit report at the end to show how it checked the CVE and fixed it for you.

GIF to show how CVE harta works

GitHub Repo: Here

🗺️ Architecture of the Project

image of rthe architecture of the project

Follow the arrow numbers to understand flow; READ IT 🔪! I worked hard on it :)

So, as you can see 👀 from the above diagram, it's a closed loop to ensure the tests.
Let's see a brief breakdown of each component!

📦cve-harta Go binary:

The single CLI entrypoint (advisory, verify, remediate, mcp, fuzz, dashboard) that users and CI/CD pipelines interact with, including a live terminal dashboard. Internally, it splits into two parts:

  • 🔴 Red Probe: Fetches vulnerability advisories from OSV and runs exploit verification checks against the live app and database to prove whether a CVE is genuinely exploitable.
  • 🔵 Blue Healer & MCP Bridge: Applies fixes automatically—or hands full vulnerability context and failing traces over MCP to coding assistants like Claude Code, Cursor, or Antigravity—then recompiles and restarts the target app for re-testing.

⚖️ Kane CLI:

Drives a real Chrome browser via plain-English test specs to execute multi-step exploit flows and verify UI/runtime behavior. (We'll dive deeper into how Kane CLI powers the whole loop in the next section.)

🐳 Docker Sandboxes:

Runs the vulnerable application, backing databases, and AI agents inside isolated, throwaway environments—preventing live exploits, DB mutations, and repeated code rebuilds from ever touching your host machine or production data. Docs

🟢 Green Audit Report:

Once Kane CLI confirms the exploit no longer works and the database invariant is clean, cve-harta publishes a verification summary in Markdown and JSON for developers and CI/CD gates.

Kane CLI: The Brain of cve-harta

It is the brain of cve-harta. Most tools check CVEs with raw curl calls. That misses real browser state. JavaScript rendering and auth cookies behave differently inside Chrome. Writing Playwright or Selenium scripts for every CVE does not
scale either. One layout change breaks every CSS selector. Kane CLI fixes this problem. You write your attack steps in plain English. It runs them inside real Chrome using LLM vision. Then it checks the DOM and network logs to give a clear pass or fail.

I wired Kane CLI straight into cve-harta as the test runner. cve-harta sends an exploit spec to Kane CLI. Kane CLI runs it inside a live Chrome window. It streams execution events back into my Go code. cve-harta then checks the browser result against
the database. Here are the Kane CLI features I used in this project:

  • kane-cli testmd run (Test Markdown): I wrote the 5-step exploit inside a _test.md file in plain English. It uses YAML frontmatter with mode: testing plus max_steps: 25. Passwords stay masked with secret: true.

  • --cdp-endpoint (Live Chrome Attachment): I passed --cdp-endpoint http://127.0.0.1:9222 to attach Kane CLI to an open Chrome window. That lets auth modals and cookies run like a real user session.

  • --agent (NDJSON Streaming): Passing --agent makes Kane CLI print structured JSON events on every line. cve-harta reads events like test_md_step_start and step_end in Go. This updates the terminal UI in real time.

  • kane-cli login & kane-cli whoami: Logging in syncs local test runs to TestMu AI. Every Red or Green run stays saved online.

  • npx @testmuai/kane-cli evidence serve: Every test run saves a .evidence bundle locally. Serving it opens a browser timeline with step screenshots and DOM snapshots.

  • Cloud Execution Reports: Kane CLI generates a public share link for every run. You can see my FleetDM run in this TestMu Cloud report.

Tools like @testmuai/kane-cli-skill also make it easy for coding agents to call Kane CLI on their own.

Why Docker Sandboxes 🐳 ?

Testing live exploits on your Software directly is risky. cve-harta mutates database rows inside password_reset_requests. It hijacks user sessions to replay attack links. The Blue Healer side also edits source code on the fly. It recompiles binaries, then kills running services to restart them. You never want an autonomous agent doing that near your host files or production database.

I split isolation into two layers for cve-harta. First, I isolated the vulnerable target stack using Docker Compose. My docker-compose.demo.yml file spins up a disposable MySQL 8.0 database alongside Redis 6. It also starts a Python mock SMTP server (mock_smtp.py) plus FleetDM v4.80.0. Every exploit run stays inside this throwaway stack backed by Docker Engine Security. Running docker compose -f docker-compose.demo.yml down -v wipes the whole environment clean.

The second layer uses Docker Sandboxes to lock down AI coding agents. Connecting Claude Code or Codex over MCP gives the agent shell access. You do not want it reading your personal SSH keys. Docker's sbx CLI (sbx run claude or sbx run codex) puts each agent inside a dedicated microVM. Each microVM gets its own Linux kernel plus an isolated filesystem. It also enforces strict network policies on top of a private Docker daemon. Your host credentials stay completely out of reach

Demo: Replicating & Fixing FleetDM CVE

For this, I tested cve-harta against FleetDM v4.80.0. The bug is tracked in this FleetDM security advisory (GHSA-3458-r943-hmx4) under CWE-613. In server/service/users.go, ChangePassword updates a user's password via svc.setNewPassword without clearing old reset tokens. Any reset link created before the password change stays valid for 24 hours.

First, I ran cve-harta verify to prove the Red state. I requested a reset link for admin@hartasec.io, which left 1 token inside MySQL (password_reset_requests). Kane CLI opened Chrome, then rotated the account password defensively. Next, it signed out and replayed the old reset link to take over the
admin account. You can view that live exploit run in this TestMu Cloud dashboard report.

Then I ran cve-harta remediate. It patches automatically with --mode=auto or hands context to AI assistants via --mode=mcp. Either way, it adds svc.ds.DeletePasswordResetRequestsForUser(ctx, vc.User.ID) right after svc.setNewPassword. Then it rebuilds the Fleet binary (CGO_ENABLED=1 go build -tags
full,fts5,netgo
) and restarts the service.

Once rebuilt, Kane CLI replays the stale reset link again. This time FleetDM blocks the request (400/401/403). The password_reset_requests count in MySQL drops from 1 to 0. cve-harta fuzz also checks sibling auth routes like /change_password and /logout.

You can see the whole demo here:

Hehe, you could've simply seen the video and be done. But instead of my ugly voice, you got to read the article

If you liked this content, you can follow me on Twitter at kitarp29 for more!

Thanks for reading my article :)