
V4 Security Foundations
If you're building Uniswap v4 hooks, start here before writing any code. This covers the security fundamentals that can make the difference between a safe hook and one that drains user funds. It walks through the threat model (caller verification, sender identity traps), explains the 14 permission flags with their risk levels, and dedicates serious attention to the NoOp rug pull attack via beforeSwapReturnDelta. You also get delta accounting basics, access control patterns, and router verification examples. The tone is appropriately paranoid because hook vulnerabilities have direct fund loss implications. Good for anyone touching PoolManager integration or reviewing hook code for the first time.
- skills.sh installs
- 1.2K
- GitHub stars
- 236
- last updated
- Aug 21, 2026
Install
$ npx -y skills add uniswap/uniswap-ai --skill v4-security-foundations --agent claude-codeInstalls into .claude/skills of the current project.
Files
v4 Hook Security Foundations
Security-first guide for building Uniswap v4 hooks. Hook vulnerabilities can drain user funds—understand these concepts before writing any hook code.
Threat Model
Before writing code, understand the v4 security context:
Sponsors
Details
- Repository
- github.com/uniswap/uniswap-ai
- Categories
- Frontend Development, Security
- First seen
- May 16, 2026