Skip to content

Uniswap Permit2 Phishing

@0xesco@0xesco8 charts

image

Uniswap Permit2 Phishing Forensics


Executive Summary

This dashboard delivers real-time on-chain forensic surveillance of malicious draining campaigns targeting Uniswap's Permit2 contract (0x000000000022D473030F116dDEE9F6B43aC78BA3). By intercepting off-chain signature abuse (EIP-712) executed via automated batch-sweeper bots, the system isolates systematic wallet drains from legitimate intent-based order flows, tracks capital flight into designated loot vaults, and quantifies aggregate financial loss in USD.


Technical Methodology & Data Engineering

The detection engine identifies automated signature-phishing infrastructure using a deterministic three-layer validation model:

  • (1) Origin vs. Custody Decoupling. Identifies Permit2 execution calls where the transaction signer (t."from" / relayer) does not match the token source address (tr."from" / victim), isolating delegated execution vectors.
  • (2) Anti-Join "Black Hole" Filter. Discards legitimate trading aggregators (e.g., UniswapX, CoW Swap) by executing an anti-join against same-transaction token inflows. An event is strictly classified as an exploit only if the victim's address receives zero inbound ERC-20 transfers within the execution hash (inflows.receiver_address IS NULL).
  • (3) Zero-Latency Valuation Engine. Converts heterogeneous token losses into real-time USD volume by interfacing directly with prices.latest partitioned by blockchain = 'ethereum', dynamically normalizing raw uint256 balances against token-specific decimals.
  • (4) Actor Infrastructure Clustering. Correlates transient relayer addresses (hacker_address) with persistent destination vaults (stolen_to_address) to map operational syndicates, batching intervals, and token preferences.

Drill-Down Analysis

  • Forensic Live Feed (Micro-Level). A real-time audit log documenting individual victims, transaction hashes, stolen asset types, and execution timestamps for immediate incident response.

  • Campaign Leaderboard (Macro-Level). Aggregated syndicate profiles detailing total capital drained, attack velocity, target token baskets, and unique affected wallets.

  • Parameter Configuration. Utilize the num_of_days filter at the top of the dashboard to scale the forensic lookback window without altering query partitions.