{"refreshDue":false,"initiative":{"id":"01M55FCN0S9D9AFTPQ7Z5YYV9N","slug":"scar-test-security-fixes-against-the-real-exploit-before-the","title":"SCAR: Test security fixes against the real exploit before they ship","summary":"SCAR helps protocol teams and auditors check whether a smart-contract security fix blocks the known attack without breaking normal use. It replays the real exploit and its variants against the patched contract on a fork of Ethereum, checks normal use still works, and gives a verdict anyone can re-run before the fix ships or funds go back in. This grant pays for 24 test cases built from past Ethereum exploits, a public scoreboard that grades AI-written fixes on them, and four outside organizations using the check on eight real fixes of their own.","details":"","discourseUrl":"https://github.com/scarai-xyz/evmpatch-env/discussions/1","goalUsd":90000,"status":"approved","type":"grant","sortRank":null,"safeAddress":"0xf976e2ACbb72191eB4F85317Eb4EBbD6F9A8b76a","paidOutUsd":0,"proposer":"0x75cCe5d79C4D8F7F2b2C354eD208C2113801568a","durationMonths":7,"recipientTeam":"SCAR AI","recipientUrl":"https://scarai.xyz","topup":false,"milestoneReviewer":"","categories":["audits-analysis","fuzzing-testing"],"sections":{"why":"Protocol users are safer from the second drain: the same exploit working again after the team says it is fixed.\n\n- The Verus bridge on Ethereum lost about $11.5 million on 18 May 2026. Most of it was returned for a bounty and put back into the same bridge on 8 July. On 23 July it lost $7.54 million through the same contract path and bug class ([CoinDesk](https://www.coindesk.com/tech/2026/07/23/bitcoin-ethereum-linked-protocols-lose-usd35-million-in-multiple-attacks-hours-apart)).\n- TRM Labs counted a record 207 hacks in the first half of 2026, 125 of them exploiting smart-contract code ([TRM Labs](https://www.trmlabs.com/resources/blog/h1-2026-crypto-hacks-reach-record-high-as-losses-fall-below-usd-1-billion)).\n\nVerus is why a fix gets re-tested before the money goes back in.","in_scope":"- **24 test cases built from past exploits** on Ethereum mainnet or L2s with over $200 million secured on L2BEAT, 16 public and 8 private until the scoreboard freezes. Each packages the real exploit on frozen chain state, the related attack paths, normal-use checks, a working reference fix and two faulty fixes (one incomplete, one that breaks normal use), so the checker is tested on known answers.\n- **A workflow teams run themselves**: Foundry import, command line, CI job and coding-agent adapter.\n- **A public scoreboard** grading AI agents' fixes on the private test cases.\n- **Onboarding**: intake template, self-serve guide, and hands-on setup of the checks for each adopter's first two fixes (fork, exploit replay, normal-use checks, reviewer sign-off).\n\nCost basis: one founder full time for 7 months on engineering, case building, onboarding and support ($45,000), 110 reviewer hours at $175 ($19,250), 12 exploit reproductions from outside contributors at $500 ($6,000), archive RPC, hosting and compute ($8,000), tools and bounties ($4,500), contingency ($7,250).","out_scope":"- Proofs or whole-contract certification\n- Build systems other than Foundry\n- A hosted commercial service\n- Retrieval and model-training research\n- Chains other than Ethereum and its L2s","team":"**Farseen Shaikh**, founder of SCAR AI, works on it full time (github.com/FarseenSh). In this fund's first round, SCAR received $6,275 (linked). Its open datasets, including a 231,269-contract Solidity corpus, have over 1,800 Hugging Face downloads (linked). SunSec (DeFiHackLabs) used SCAR's retrieval model in auditing and credited it with higher recall in a first-place OneSavie Bastet Kaggle entry (linked).\n\nAn independent reviewer, named in the grant agreement, signs off every case and milestone. No other funder pays for this scope; E2B and Daytona credits cover part of the compute.","why_grant":"- **Fix Verifier** (Apache-2.0), with four test cases today (one Ethereum mainnet exploit, three on BNB Chain). It grades a fix on security checks its author never sees, plus normal-use checks, and CI re-grades every control fix.\n- **48 published receipts** for control fixes we wrote to test the checker. 26 stop the replayed exploit, yet 15 of those still fail: they leave another path open or break normal use. A replay-only check passes all 15.\n- **Revision checks**, previewed on four public OpenZeppelin and Safe changes: 10 of 10 valid versions accepted, 6 of 6 planted faults rejected.\n\nWhat is thin: one test case from Ethereum mainnet, and no outside reviewer or user of the verifier yet. The harness, receipts and CI exist, so this is not a from-scratch build.","commitments":"- New code under Apache-2.0, case write-ups under CC BY 4.0; third-party material keeps its own terms.\n- Farseen maintains the funded release for 6 months after the last milestone at no further cost; after that, revenue from paid checks and support pays for it.\n- A verdict never says \"safe\" or \"audited\": it states what was replayed and checked, with inputs and a hash anyone can re-run.\n- Confidential adopter material goes only to the reviewer.\n- Private test cases are published after the scoreboard freezes, with a tagged release.\n- Pinned target: at least 4 outside organizations using the check on 8 real fixes."},"milestones":[{"name":"12 reviewed test cases and an outside reproduction","amount":26000,"adoption":false,"done":false,"link":"","month":"","criteria":["At least 12 test cases from Ethereum mainnet or L2 exploits (8 public, 4 private), each signed off by the technical reviewer, with receipts for the public ones","An engineer outside SCAR reproduces the workflow on a public test case from the pinned commit, with the record in the repository"]},{"name":"24 test cases and the public scoreboard","amount":24000,"adoption":false,"done":false,"link":"","month":"","criteria":["At least 24 test cases signed off in total (16 public, 8 private), receipts published","The scoreboard grades at least 3 AI agents built on open models on the private test cases with equal budgets, every result shown, with appeals","Intake template, reviewer archive and self-serve guide published on scarai.xyz"]},{"name":"First outside team","amount":10000,"adoption":true,"done":false,"link":"","month":"","criteria":["At least 2 real fixes checked with SCAR, at least 1 not among SCAR's test cases, and at least 1 for an outside organization with over $100 million onchain (token market cap or TVL) or one of OpenZeppelin, Trail of Bits, ChainSecurity, Spearbit, Consensys Diligence, Sigma Prime, Certora, Cyfrin, Zellic, Ackee Blockchain, Runtime Verification, Nethermind Security, Code4rena, Sherlock, Cantina, Immunefi, CodeHawks, HackenProof"]},{"name":"Four teams and repeat use","amount":30000,"adoption":true,"done":false,"link":"","month":"","criteria":["At least 4 such organizations and 8 real fixes in total checked with SCAR, at least 3 of the fixes not among SCAR's test cases","Repeat Use: At least 2 of those organizations use SCAR again on a new fix 30 or more days after their first","A business plan for maintenance after the grant, and at least $5,000 of revenue earned"]}],"links":["https://scarai.xyz","https://github.com/scarai-xyz/evmpatch-env","https://scarai.xyz/receipts/","https://scarai.xyz/revisions/","https://thedao.fund/transparency/scar-ai-retrieval-for-smart-contract-security","https://github.com/scarai-xyz/scar-retrieval","https://huggingface.co/datasets/Farseen0/scar-corpus","https://x.com/1nf0s3cpt/status/2079029823624950229"],"structured":true,"revision":3,"createdAt":1792259019.801,"approvedAt":1793069287.053},"revisions":[{"n":1,"author":"0x75cCe5d79C4D8F7F2b2C354eD208C2113801568a","source":"submit","archived":false,"state":"live","createdAt":1792259019.801},{"n":2,"author":"0x839395e20bbB182fa440d08F850E6c7A8f6F0780","source":"admin","archived":false,"state":"live","createdAt":1792472902.761},{"n":3,"author":"0x75cCe5d79C4D8F7F2b2C354eD208C2113801568a","source":"proposer","archived":false,"state":"live","createdAt":1793060037.595}],"summary":{"pledged":22500,"received":0,"donated":0,"total":22500,"live":true,"refreshDue":false,"ledger":0,"paidOut":0},"onBallot":true,"pct":25,"pledges":[{"id":"01M78276831MXFDVDFRGQ0J4GJ","company":"ANON HERO","amountUsd":10000,"status":"pledged","note":"","url":"","logoUrl":"https://ipfs.blossom.software/ipfs/bafkreicbfclcb6kzgm6jq5fv3mkvkhcqcv2d4rnxxpvprvapxj34nmjziy","createdAt":1794493356.291},{"id":"01M7S2KZ8QYT0JGZHH5SJMPZ6K","company":"Intellimation.ai","amountUsd":10000,"status":"pledged","note":"","url":"https://www.intellimation.ai/","logoUrl":"https://ipfs.blossom.software/ipfs/bafkreih4ujmoszdwse57zhl4g73nwbt53v6tzsedckr3oe2qzl7bygcv7a","createdAt":1795064200.472},{"id":"01M7VNJ3H6X9WG3CJW69BT6BVB","company":"Scar AI","amountUsd":2500,"status":"pledged","note":"","url":"","logoUrl":"","createdAt":1795151171.11}],"donations":[],"funded":false,"donationsEnabled":true,"ledger":{"checkedAt":1795847504.37,"ok":true,"intervalMinutes":10,"refreshDue":false,"updating":false}}