0x calls Uniswap v4 hooks a mistake after finding 54% are malicious, Hayden Adams pushes back
0x analyzed 84,163 Uniswap v4 hooks and classified 54.2% as malicious. Uniswap's founder and Paradigm's Dan Robinson counter that the failure is in 0x's routing, not the hook mechanism.
This article may contain affiliate links. Commercial relationships are disclosed in the affiliate policy.
0x, the DEX aggregator, analyzed 84,163 Uniswap v4 hooks and classified 54.2% of them as malicious. Uniswap founder Hayden Adams and Paradigm’s Dan Robinson responded that the finding reflects a failure in 0x’s own routing, not a defect in the hook mechanism. Both are describing the same dataset, and the disagreement is about what the number means.
What was measured
The figure comes from static analysis of hook contracts rather than from confirmed exploits. 0x found that 54.2% of the 84,163 hooks it analyzed were malicious — a little over half of all hooks that exist in the v4 ecosystem.
That denominator is the whole argument. A hook is arbitrary code that a pool deployer can attach to enforce things a standard AMM cannot: limit orders, TWAP-weighted swaps, custom oracle checks, fee distribution, transfer limits. Some hooks are essential to how v4 is meant to be extended. If most hooks are malicious, the interesting question is not whether hooks are safe but whether anything in the pipeline distinguishes a hook a user intended from a hook an attacker supplied.
The two positions
0x’s position is that shipping an ecosystem where the majority of hooks are malicious represents a design failure, and that v4 hooks as an extension mechanism were a mistake.
Adams and Robinson’s position is that the failure is in 0x’s routing — that 0x surfaced malicious hooks to users through its own aggregator path when it should have filtered them. On that reading the 54.2% figure describes a routing failure at one aggregator, not the state of Uniswap v4.
Neither claim is verifiable from the published number alone. The dataset counts contract characteristics flagged as malicious. It does not establish how many of those hooks were ever routed to by 0x, how many users transacted through them, or how many lost funds.
Why this is a security problem and not just a design argument
The practical risk to a user is specific. A hook executes arbitrary code inside the swap path. Unlike a token approval, which grants a known allowance to a known contract, a malicious hook can alter the execution of a trade the user believed was a plain swap — changing the token delivered, applying an unexpected fee, or failing in ways that cost the user the spread.
This is the class of problem that makes hook-based extensibility different from adding a standard AMM pool. A pool’s math is auditable and bounded; a hook is a pluggable trust assumption. The security question for any aggregator or wallet is not “is v4 safe” but “how does this path decide which hook it is about to trust.”
What to verify
The check that matters is on the routing side, not the headline percentage. For any aggregator or wallet that supports v4: does it show the user which hook is attached to the pool before the swap executes, and does it verify the hook against an independent source? Treat the 54.2% figure as a measurement of the hook ecosystem’s composition, and treat any claim about user losses as unestablished until an incident with a named victim and a drained amount is cited.
Sources and editorial check time
- Crypto Briefing: https://cryptobriefing.com/0x-criticizes-uniswap-v4-hooks-malicious/
- The Defiant: https://thedefiant.io/news/defi/0x-says-uniswap-v4-hooks-were-a-mistake-hayden-adams-says-skill-issue