Your Safe refuses to pay a lookalike of a supplier you approved. Open evidence on Arkiv.
HexFence stops two ways people lose money from a wallet: paying a lookalike of an address they trust, and signing on a website or request that isn't what it appears to be.
Address poisoning is a simple trick. An attacker sends a zero-value or tiny transfer from an address that starts and ends like one you pay, so it appears in your history. Next time you copy from history, the money goes to them. Wallets warn about this, but you can click through a warning.
We put the rule in the account instead. HexFenceGuard is a Safe transaction guard with no owner and no upgrade path. Owners approve payees through Safe transactions. If a payment goes to a different address with the same first 4 and last 4 hex characters as an approved payee, the Guard reverts with LookalikeOfApprovedPayee. New suppliers still go through, so this isn't an allowlist, and the Guard reads nothing off-chain.
The rest of the payment side feeds that rule. Our detector reads Ethereum mainnet USDT and USDC logs. Two roughly 24-hour scans found 47,694 and 58,739 suspected pairs, with overlapping blocks. We published a sample of 1,126 to Arkiv, plus one suspected follow-up payment of 303.635007 USDT. Every record is labelled suspected. The explorer reads them in the browser. Anyone can re-check a record against its Ethereum receipts, or check their own address without sending it to a server.
HexFence Pay loads a Safe, reads its approved payees once and gives a verdict before you sign: red for a lookalike, amber for a new recipient, green for an approved payee. Sending a red payment means typing the last 6 characters of the address. Reads go through the Nox mixnet by default. There is a Hindi mode that no native speaker has checked yet. AI agents can get the same verdict through @hexfence/check and the @hexfence/mcp tool.
The payment demo uses real mainnet evidence, then a synthetic re-enactment on Sepolia with addresses we generated. Paying the lookalike reverted on-chain, even with our app out of the path. Paying a new supplier and the approved payee both succeeded. A script wallet sent these payments. A learning Guard (V2), a module guard for Safe 1.5.0 and a governance guard also have scripted Sepolia runs on isolated Safes. Limits are in the README.
The second part is Pramaan, a browser extension that checks a site's files against a signed release and reviews wallet requests before they reach the wallet. Three live demo apps on Sepolia show it working. Open them with the extension installed and MetaMask on Sepolia.
VaultLab: a vault whose bug was found, exploited and fixed in a sandbox, with the proof published alongside the release. https://pramaan-vaultlab-deven.pages.dev
MirrorYield: an honest contract with a tampered website. If the site's JavaScript is changed, the extension turns red and holds the signature. https://pramaan-mirroryield-deven.pages.dev
PermitMarket: "one-click buying" that is really an unlimited approval. The extension explains it as high risk in three languages. https://pramaan-permitmarket-deven.pages.dev
The contracts are Solidity with Hardhat, tested against the real Safe 1.4.1 contracts, and 1.5.0 for the module guard. The v1 Guard and its tests started from an AI-generated reference, and an AI review is in docs/GUARD_REVIEW.md.
The fingerprint, Safe payment decoder and verdicts are shared TypeScript, with parity tests against the real Guard, so the browser and the contract agree. The detector uses viem over a public mainnet RPC and only reads.
Evidence goes to Arkiv on Rabdi with @arkiv-network/sdk. Writes are idempotent, so re-runs create no duplicates. Readers fetch records in bulk by publisher and never look up one address on a server, so a reader doesn't reveal which address they care about.
The apps are static Vite and TypeScript pages using Safe Protocol Kit, the Safe Apps SDK, viem and Anon-RPC's Nox route. For Chainlink we wrote a CRE workflow compiled to WASM and an on-chain consumer that Pay reads as advisory. The Guard never reads alerts.
Pramaan is a Chrome MV3 extension and verification engine in the same pnpm workspace. Releases are signed manifests published through ENS text records and activated by a timelock.
Claude Code and Codex wrote most of the code under written rules in AGENTS.md. Plans, prompts and reports are in docs/planning/, and docs/AI_USAGE.md says what AI generated and what people did.

