Redline

Continuous security testing for smart contracts. Proof, not opinion.

Redline

Created At

ETHGlobal Mumbai

Project Description

Redline is continuous security testing for smart contracts. Install the GitHub App on a Solidity repo and every push gets attacked.

A swarm of hunter agents reads the diff and the contract, pulls the shared attack-recipe library, and writes concrete attacks as Foundry tests: reentrancy, access control, oracle manipulation, accounting drift and more. Each candidate attack is then handed to a council of three independent referees that replay it against a forked deployment and measure balances before and after. A finding only turns red when the referees agree and real value moved. No value moved, no finding. Proof, not opinion.

Every red finding lands as a GitHub check with a plain-English sentence, the amount at risk, a locked attack (the runnable form unlocks when you prove you own the repo) and a one-click "Fix it" that drafts the smallest patch as a diff. Reproduced attacks are saved as forever-tests so the same hole can never ship again.

Two things are public by design. The recipe library the swarm learns from lives on Arkiv, so every installation makes every other one stronger. And the council's proof of each reproduced theft (votes and balance receipts, never the attack itself) is published on Arkiv, so anyone can verify a finding without trusting us.

Live at https://redline.quantapar.com

How it's Made

Monorepo (pnpm + Turborepo): a Next.js 15 dashboard on Vercel, a Probot GitHub App that turns pushes and PRs into scans, a BullMQ worker that runs the pipeline, Postgres (Neon, Drizzle) and Redis. All the heavy work happens inside Foundry: hunters emit forge tests, referees run them against a fork with balance snapshots, and the deltas are what we vote on.

0G Compute powers the hunters. Each hunter is a separate model request through the 0G Compute router, so the swarm is diverse by construction rather than one model asked three times. Candidate attacks are deduplicated by target and weakness class before they reach the council.

Arkiv (Rabdi testnet) is the public memory. We define two schemas, redline.recipes and redline.proofs, with the Arkiv SDK. The worker queries redline.recipes on every scan before hunting, so the library is read from chain rather than from our database. When a finding turns red, the pipeline writes the council's proof entity in the same run. Both writes are idempotent on the Redline id, and the dashboard reads straight from Arkiv with Postgres as the fallback. Judges can query the library with a single select() against the writer address in the README.

Hacky bits: Arkiv strings cap at 128 bytes, so titles and labels are clipped and the long parts (templates, proof JSON) ride in bytes columns. The runnable attack is redacted server-side before it reaches the browser, and the "Fix it" diff is generated from the same referee output that proved the theft, so the patch always targets the lines that actually moved money.

background image mobile

Join the mailing list

Get the latest news and updates

Redline | ETHGlobal