Privacy X-Ray

Catch dApps sending your wallet address to trackers, with proof. Block it in one click. On-device.

Privacy X-Ray

Created At

ETHGlobal Mumbai

Project Description

0xRay is a browser extension that shows which companies a crypto app sends your wallet address to, proves it, and blocks it in one click. Everything runs on your device.

The problem: when you connect a wallet, the dApp's own JavaScript can send your address to analytics, ad and marketing services.

Wallets can't see this because it happens in the page, and a hardware wallet protects keys, not identity. Researchers found 211 of 1,572 dApps leaking wallet addresses to third parties (USENIX Security 2023), and under the EDPB's July 2026 blockchain guidelines a linkable wallet address is personal data, even when hashed.

What the extension does:

  • Learns your address locally when your wallet shares it with a page (EIP-1193 / EIP-6963), or you paste one.
  • Checks every third-party request for that address, including disguised forms: checksummed, URL-encoded, Base64, and SHA-256, Keccak-256, SHA-1 and MD5 hashes, in URLs, bodies, cookies, Referer headers and WebSocket messages.
  • Shows proof per finding: recipient, where it was hidden, the encoding, the script that sent it, and whether it was actually delivered or blocked by the browser, so findings are never overstated.
  • Protect stops requests carrying your address before they leave the page; RPC providers are never blocked so dApps keep working.
  • Audit agent: one click opens 9 popular crypto sites in background tabs, each with a random decoy address that belongs to nobody, records who receives it, and reports back. In our run, Etherscan delivered the address to Google Analytics and an ad host, and OpenSea to two other services.
  • Evidence reports (Markdown/JSON) for users and for dApp teams auditing their own frontend.
  • Guided onboarding that detects pinning, catches a live leak on our demo dApp, and sets up Protect.

On the website: a Scan page (paste an address or ENS name to see what anyone who gets it learns: linked name and profiles, balances and activity on 5 chains, with an exposure score) and a public leak registry stored on Arkiv, where observations expire after 30 days.

The extension makes no network requests of its own (no servers, analytics or account); the one explicit exception is the audit agent opening public pages with a decoy address. It never touches keys. MIT licensed.

How it's Made

TypeScript Manifest V3 extension, bundled with esbuild. No framework.

Detection: the background service worker observes every request with webRequest.onBeforeRequest (URL and body) and onBeforeSendHeaders (Cookie, Referer). For each watched address we precompute "needles": plain and EIP-55 forms plus SHA-256, Keccak-256, SHA-1 and MD5 digests (hex and Base64) using @noble/hashes. A scanner checks each request through URL-decode and Base64-decode layers and only accepts full-length matches, so there are no partial-hex false positives. tldts decides first vs third party by eTLD+1, with private suffixes like github.io treated as separate sites. webRequest.onCompleted/onErrorOccurred record whether each leak was delivered or blocked by the browser (e.g. Brave Shields).

Blocking: MV3 webRequest can't cancel requests, so a MAIN-world script injected at document_start wraps fetch, XHR, sendBeacon and WebSocket.send and stops calls that carry the address before they leave; declarativeNetRequest session rules then block further data-carrying requests to recipients caught leaking. The same hook observes EIP-1193/EIP-6963 providers to learn the connected address: it calls the wallet exactly as the dApp did and returns the wallet's own promise, only watching the result. Addresses typed into the popup are never passed to pages. Findings are redacted at write time and kept in chrome.storage.session (memory only).

Audit agent: the service worker generates a random decoy address, opens each site in an inactive tab, waits for load plus 10 seconds, aggregates the leaks for the decoy, closes the tab, and streams progress to a report page.

Partner tech:

  • Arkiv: field-survey observations (site, recipient, category, encoding, outcome, date; never an address) are published with @arkiv-network/sdk as a typed schema on the rabdi testnet with 30-day expiry. The registry and Scan pages query them live from the browser, filtered by our publisher account so third parties can't inject rows. Judging files are in /arkiv.
  • Ethereum Foundation CROPS: the README has a CROPS section; the popup points RPC leaks to EF's Anon-RPC.

Website: multi-page static site generated from one layout script, bundled open-source fonts (Space Grotesk, Pixelify Sans, JetBrains Mono), vanilla JS animations (pixel network canvas, pinned scroll statements, view transitions). The Scan page uses viem against PublicNode RPCs with ENS CCIP-read disabled so no undisclosed gateways are contacted. Hosted on GitHub Pages; the demo dApp reports to an .invalid domain so nothing reaches a real third party.

Testing: Node unit tests for the detector; Puppeteer end-to-end tests in a throwaway Brave profile (3/3 leaks caught with Protect off; 3/3 blocked and 0 received by the tracker with it on), plus an audit-agent run and a field survey of 8 real sites.

How AI was used: the project was built with AI assisted coding. I chose the problem, wrote the PRD and made the scoping and design decisions; Claude Code did research summaries, reviewed the PRD, and wrote most of the code, tests and site.

Planning artifacts are in /research, and the commit history shows the progression from an empty repo.

background image mobile

Join the mailing list

Get the latest news and updates