v4-security-foundations

Review Uniswap v4 hook code for security vulnerabilities and generate audit checklists.

Updated May 2, 2026
One-click install
npx skills add https://github.com/nickthelegend/obolus-expo-app --skill v4-security-foundations-nickthelegend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: v4-security-foundations
Source: https://github.com/nickthelegend/obolus-expo-app/tree/main/.agents/skills/v4-security-foundations
Command: npx skills add https://github.com/nickthelegend/obolus-expo-app --skill v4-security-foundations-nickthelegend

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Uniswap v4 hooks carry critical security risks including NoOp rug pulls, missing caller verification, and delta accounting errors that can lead to complete user fund loss. Developers building custom v4 hooks lack a centralized, security-first resource to avoid these common, high-impact pitfalls.

Core Features & Use Cases

  • Threat model & permission risk matrix: Clear breakdown of all 14 v4 hook permissions with associated risk levels to guide safe, minimal permission configuration.
  • Vulnerability catalog & attack patterns: Detailed explanations of critical and high-severity exploits with detection methods and concrete mitigation steps for common implementation errors.
  • Production-ready templates & checklists: Audited base hook templates, gas budget guidelines, risk scoring systems, and pre-deployment audit checklists to streamline secure hook deployment and audit readiness.
  • Use Case: A developer building a custom v4 hook for a token launch platform can use this skill to implement proper access controls, avoid dangerous permission configurations, and prepare for a required third-party security audit.

Quick Start

Use the v4-security-foundations skill to review your custom Uniswap v4 hook code for security vulnerabilities and generate a tailored pre-deployment audit checklist.

Frequently Asked Questions about v4-security-foundations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the most critical Uniswap v4 hook security vulnerabilities?

Critical Uniswap v4 hook security vulnerabilities include NoOp rug pulls, missing caller verification, and delta accounting errors that can lead to complete user fund loss. A vulnerability catalog provides detection methods and concrete mitigation steps for these exploits.

How do I configure safe Uniswap v4 hook permissions for a DeFi protocol?

To configure safe Uniswap v4 hook permissions, use a threat model and permission risk matrix that breaks down all 14 v4 hook permissions. This guides safe, minimal permission configuration to avoid dangerous access levels.

Can I use an audited base template to build secure Uniswap v4 hooks?

Yes, you can use production-ready audited base hook templates to build secure Uniswap v4 hooks. These templates include gas budget guidelines, risk scoring systems, and pre-deployment audit checklists to streamline secure deployment.

Does my Uniswap v4 hook require a third-party smart contract audit before deployment?

Uniswap v4 hooks require a third-party smart contract audit before deployment to meet security standards. A pre-deployment audit checklist helps you implement proper access controls and prepare for the required security review.

Why does missing caller verification cause fund loss in Uniswap v4 hooks?

Missing caller verification causes fund loss in Uniswap v4 hooks by allowing unauthorized actors to execute sensitive operations. Detailed attack pattern explanations outline how these implementation errors are exploited and mitigated.

What is the best way to prepare a custom Uniswap v4 hook for a security audit?

The best way to prepare a custom Uniswap v4 hook for a security audit is to review code against a vulnerability catalog and generate a tailored pre-deployment checklist. This ensures proper access controls and audit readiness.