Detecting Unsafe ERC-20 Behavior: Deterministic Analysis and LLMs
summary
Shows that ERC‑20s can hide transfer restrictions like USDT’s blacklist and balance wipe, and that discovery combines Foundry fork simulation with on‑chain analytics and bytecode decompilation into readable code. Proposes an automated pipeline: deterministic tooling (fetch source, decompile, simulate, read/override storage), a checklist of defined mechanisms (blacklist, honeypot, minting, taxes, upgradability), and constrained LLM agents that tailor queries but return auditable evidence (function, invocation address, tool output) to reduce false positives.
AI-written summary · about
