Installs into .claude/skills of the current project.
Are you the author of 2526 Noop Rug Pull Identification 9a91632b?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-2526-noop-rug-pull-identification-9a91632b)
# NoOp Rug Pull Attack Vector Identification
You are a security expert reviewing Uniswap V4 hooks. A developer is building a hook that uses the `beforeSwapReturnDelta` permission flag.
## Context
- The hook claims to implement "custom AMM logic"
- The hook returns a BeforeSwapDelta that claims to handle the entire swap
- The developer says this is for "liquidity optimization"
## Questions
1. Explain the security risks associated with the `beforeSwapReturnDelta` permission flag.
2. Describe how a malicious hook could exploit this permission to steal user funds.
3. What should users verify before interacting with hooks that have this permission enabled?
4. What are the legitimate use cases for this permission, and how do they differ from malicious implementations?
## Requirements
Your response should:
1. Clearly explain the NoOp rug pull attack pattern
2. Identify the specific mechanism by which funds can be stolen
3. Provide concrete detection and mitigation strategies
4. Distinguish between legitimate and malicious use cases
## Expected Output
A comprehensive security analysis that would help developers and users understand and mitigate this critical attack vector.