Check the code in your browser against what independent witnesses recorded, before you sign.
Second Witness is a Chrome extension that checks the code running in your browser before you sign a transaction.
A website can serve your browser different code than everyone else gets. The page looks the same, but your money can go somewhere else. An altered Safe file was live on a public URL 44.7 hours before the $1.5B Bybit theft, and no signer's browser could tell. Second Witness is built for that moment, starting with multisig and treasury signers.
You press one button before you sign. The extension hashes the exact scripts your browser loaded and compares them with what two independent witnesses recorded. The site doesn't have to sign up, and nobody learns which sites you check.
You get one of six results:
Witness records live on Arkiv as write-once records, so nobody can quietly change them, including us. The list of trusted witnesses lives on ENS under secondwitness.eth, so a witness can be revoked in one transaction with no extension update. There is no backend in the check. If we vanish, the records stay readable for 180 days and the check drops to Partial within an hour.
We replayed 7 archived captures of Safe's real file through the same comparison code. The altered one reads Don't sign. We also found no false alarms: 0 hash-named files changed across about 532 URLs on 31 sites.
Today it covers 24 listed sites, including Safe, Aave, Uniswap and Lido, and runs on testnets. We run both witnesses ourselves, and anyone can fork it with their own. It checks the code you sign through, not the transaction itself, so it adds to your review rather than replacing it.
Second Witness is about 1,900 lines of TypeScript with 147 tests, split into witnesses, a Chrome extension and shared comparison rules. There is no backend in the check.
Witnesses run in public GitHub Actions, one on Linux and one on macOS. They crawl 24 listed sites, including Safe, Aave and Uniswap, hash every JavaScript file with SHA-256 and write new hashes to Arkiv. The Manifest V3 extension attaches chrome.debugger only when you press the button, listens to Debugger.scriptParsed, reads each source with Debugger.getScriptSource and hashes what the engine actually parsed. That catches code served only to you, and altered code still running from cache after the server is cleaned.
Arkiv is the record store. Hash records are created with the readonly flag and a 180-day expiry, so nobody can edit them, including us. The network sets $creator, so a record can't fake its writer, and the reader drops any hash record that isn't read-only or was updated after creation. Browsers call arkiv_query directly over CORS, so we run no server. The extension downloads every record and compares locally, so the RPC never learns which site you're checking.
ENS is the trust list. secondwitness.eth is on ENSv2 on Sepolia with its own resolver. w1 and w2 are records on that resolver, read through wildcard resolution, with no registry or token for each one. Every browser reads the list on refresh, and one setAddress revokes a witness with no extension update.
Notable hacks: the crawler finds lazy-loaded files without a browser by reading chunk maps inside JS bundles, and it paces itself using Retry-After after Cloudflare rate limits. We kept a site only if the crawl covered what a real Chrome loaded. We also replayed 7 archived captures of Safe's real _app file through the real comparison code, and the altered one reads Don't sign.

