Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mtarcure/claude-vibe-squad --skill uniswap-v4-hook-access-controlgit clone --depth 1 https://github.com/mtarcure/claude-vibe-squadWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mtarcure/claude-vibe-squad/uniswap-v4-hook-access-control)<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/uniswap-v4-hook-access-control"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/uniswap-v4-hook-access-control/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/uniswap-v4-hook-access-control"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/uniswap-v4-hook-access-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00087 | $0.00595 |
| Opus 5.5 | $0.00035 | $0.00238 |
| Sonnet 5.5 | $0.00017 | $0.00119 |
| Haiku 4.5 | $0.00009 | $0.00060 |
Grade A, and why
uniswap-v4-hook-access-control scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Uniswap v4 Hook Callback Access-Control Audit
Audit Uniswap v4 (and v4-style singleton/hook) integrations for the missing-caller-check class: a
custom hook callback (beforeSwap/afterSwap/beforeAddLiquidity/donate/etc.) that does not verify
msg.sender == address(poolManager) and does not validate the supplied PoolKey, letting an
attacker call the hook directly with forged accounting parameters to mint unbacked tokens or drain
the pool.
Source: corpus A §I.6 — Dedaub / Cyfrin / Cork Protocol, May 2025 ($11M pool drain).
Impact class: funds theft / pool drain (intrinsic).
Governing method: Phase-3a hypothesis lane of systematic-attacking; leads only into the
full verification spine.
Method
- Enumerate every hook callback the target exposes (
slither, and read theHookspermission bitmap on the deployed hook viacast). - For each callback, confirm BOTH guards: (a) a strict
require(msg.sender == address(poolManager))(or the framework's equivalent authority check), and (b) validation that thePoolKey/ currency / fee parameters correspond to a pool the hook is actually authorized for — not attacker-chosen. - Trace the hook's internal accounting: identify any state (redemption balances, reserve counters, minted supply) mutated inside a callback from parameters the caller controls.
- PoC on
anvil --fork: call the unguarded callback directly (bypassing the PoolManager) with inflated deposit/redemption values; assert unbacked mint or drain. Link-level negative control = the same call through the real PoolManager reverts or nets to zero. - Add a
forge/halmosinvariant: "hook accounting only advances via PoolManager-originated calls with a registered PoolKey."
Acceptance
- Every hook callback is classified for the caller check AND PoolKey validation.
- The direct-call PoC drains/mints against a real fork; the PoolManager-routed negative control does not.
- Finding names the exact unguarded callback and the accounting field it corrupts; deduped against the Cork / v4-hook advisory corpus before submission.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 41 lines · 87 tokens per session scan A a434ec7f7860
uniswap-v4-hook-access-control is a skill published in the GitHub repository mtarcure/claude-vibe-squad (227 stars, last pushed 1mo ago), licensed MIT. It adds 87 tokens to every session and 595 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.
uniswap-v4-hook-access-control compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| uniswap-v4-hook-access-controlmtarcure/claude-vibe-squad | Skill | 227 | 1mo ago | MIT | A | 87 | Claude Code, Codex |
| payrunxhq/runx | Skill | 106 | today | Apache-2.0 | A | 27 | Claude Code, Codex |
| conviction-fmabcxz/conviction-fm | Skill | 1 | 8mo ago | MIT | A | 53 | Claude Code, Codex |
| aomi-transactGhosteken/agent-harness | Skill | 1 | 26d ago | MIT | A | 95 | Claude Code |
| interviewHmbown/CodeWhale | Skill | 41k | today | MIT | A | 40 | Claude Code, Codex |
| documentHmbown/CodeWhale | Skill | 41k | today | MIT | A | 0 | Claude Code, Codex |
| pptxHmbown/CodeWhale | Skill | 41k | today | MIT | A | 16 | Claude Code, Codex |