Building secure Uniswap v4 hooks
Executive Summary
Uniswap v4 introduces hooks that let developers add custom logic to pools, shifting security responsibility to application code. Two app‑level exploits (Cork and Bunni) caused over $20M in losses, stemming from faulty hook logic rather than the core protocol. Trail of Bits identified seven recurring failure patterns—such as missing caller checks and accounting bugs—that can bypass the PoolManager’s settlement invariant. The article offers a secure‑development checklist for builders and a focused audit guide for reviewers.
Intelligence Metadata - Source Publisher: Trail of Bits - Published Date: 2026-07-30T11:00:00+00:00 - Category: research
"A rolling stone gathers no moss."
— Publilius Syrus
Source: Trail of Bits