All workENGINEERING CASE STUDY / 2026
SECURITY / AGENTIC AI

CVE Twin

Fix the vulnerability. Preserve what depends on it.

MY CONTRIBUTION
Full-stack engineering / remediation tooling
PROJECT SCOPE
Working local demo + hosted explorer
TOOLS & TECHNOLOGIES
Next.js / TypeScript / Codex / Supabase / Git worktrees
CVE Twin interface mapping a vulnerability through its dependency graph. Inspect original image
Actual interface / dependency blast radius
Original GIF
Recording transcript
  1. The baseline shows 4 tests passing and 3 failing.
  2. Codex activity logs show diagnosis, repair, and verification.
  3. The final result shows 7 tests passing and 0 failing.

This silent clip records one local demonstration. The three-strategy comparison is documented separately in the case study.

01 / THE CONTEXT

The problem.

Built for the OpenAI Codex Community Hackathon in Bengaluru, CVE Twin connects incident investigation to a reviewable code change. The interface traces a vulnerability through packages, repositories, services, and customers. A local engine then uses Codex to repair a controlled target and returns the diff, tests, branch, and commit.

The challenge

A patch can stop an exploit and still break the services that depend on the vulnerable component. The workflow needs evidence on both sides: demonstrate the vulnerability before editing, then verify security and compatibility after the change.

WHAT I WORKED ON

I developed the Codex remediation workflow and the comparison of competing patches against consumer contracts. My public commits document worktree isolation, attack replay, candidate scoring, and signed remediation records. The August build extends an earlier incident-investigation project with this local repair engine.

02 / ENGINEERING DECISIONS

The decisions.

Make the failing test a gate

The engine first requires the security suite to fail on the vulnerable target. A suite that is already green—or produces no meaningful result—cannot establish a repair. This gives the final passing result a baseline instead of treating the agent’s explanation as proof.

Compare repairs against the same contracts

Three isolated candidates attempt a minimal change, parser hardening, and a provider allow-list. Each faces the exploit, security tests, and contracts for three dependent services. Exploitable candidates are rejected; compatibility failures dominate the remaining risk score before change size is considered.

Keep the evidence inspectable

The result retains each candidate’s worktree and records the tests, attack replay, diff hash, and commits in an Ed25519-signed certificate. A separate verifier checks the record’s integrity and whether its evidence supports the verdict. A known signer still has to be trusted.

Respect the deployment boundary

The hosted interface supports investigation, while remediation needs a local process capable of spawning the Codex CLI and Git worktrees. The server checks that capability before spending a credit. This prevents an impossible hosted run from being billed as if it could complete.

03 / WORKFLOW

How it works.

  1. Inspect the affected system

    Start with the incident and follow its dependency paths to see the modeled exposure.

  2. Establish the baseline

    Create an isolated worktree and run the exploit and tests against the vulnerable fixture.

  3. Compare candidate repairs

    Run the three repair strategies, then assess each against the same security and consumer-contract checks.

  4. Review the change

    Inspect the selected diff, branch, commit, and evidence record before taking the patch further.

04 / IN DETAIL

Inside the interface.

05 / RESULTS & SCOPE

Results and scope.

7 / 7

Passing tests after the recorded repair

3

Competing repair strategies

3

Dependent-service contract sets

In the documented local run, the security suite moved from 4 passing / 3 failing tests to 7 passing / 0 failing. The recorded comparison found all three candidates viable and selected the smallest change. These results concern the shipped demonstration target.

Scope & limitations

The repair target is a purpose-built fixture modeling the Log4Shell vulnerability class; arbitrary repository remediation is not implemented. The hosted site cannot execute the local engine, containment projections are modeled, and billing uses a single demo account. A self-signed certificate establishes integrity, not independent truth about its issuer. The development notes also record a Windows process-quoting failure that led to stricter baseline and empty-output checks.

KEEP EXPLORINGFraud Risk Manager

APPLIED ML / FINTECH