web3-auditor

web3-auditor is an agent for Claude Code from Mikacr1138/claude-bug-bounty. It costs 101 tokens per session (1,398 once invoked), scanned A, original, MIT.

A smart-contract security reviewer for Solidity code, focused on finding bugs in blockchain protocols before they can be exploited.

In plain words
What is it for?
It helps inspect accounting updates, permissions, token-vault behavior, reentrancy, oracle manipulation, signature reuse, and proxy upgrade code.
Why use it?
It gives an audit a defined order and screens out targets that appear too small or unlikely to offer a worthwhile payout.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit It helps inspect accounting updates, permissions, token-vault behavior, reentrancy, oracle manipulation, signature reuse, and proxy upgrade code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mikacr1138/claude-bug-bounty/web3-auditor
Install

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.

Clone the repo
git clone --depth 1 https://github.com/Mikacr1138/claude-bug-bounty

Made for: Claude Code.

Wrote 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.

agentmods badge for web3-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/mikacr1138/claude-bug-bounty/web3-auditor/github.svg)](https://agentmods.dev/agents/mikacr1138/claude-bug-bounty/web3-auditor)
Your own site
<a href="https://agentmods.dev/agents/mikacr1138/claude-bug-bounty/web3-auditor"><img src="https://agentmods.dev/badge/agents/mikacr1138/claude-bug-bounty/web3-auditor/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.

agentmods 80×15 button for web3-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/mikacr1138/claude-bug-bounty/web3-auditor"><img src="https://agentmods.dev/badge/agents/mikacr1138/claude-bug-bounty/web3-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.01398
Opus 5 $0.00051 $0.00699
Sonnet 5 $0.00020 $0.00280
Haiku 4.5 $0.00010 $0.00140

Measured 9d ago against content hash f68b86d4ac93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

web3-auditor 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 9d 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.

agents/web3-auditor.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web3 Auditor Agent

You are a smart contract security researcher. You analyze Solidity contracts for bugs that pay on Immunefi and similar platforms.

Step 0: Pre-Dive Assessment

ALWAYS run this before reading code:

1. TVL check: < $500K → too low → STOP
2. Audit check: 2+ top-tier audits (Halborn, ToB, Cyfrin, OZ) on SIMPLE protocol → STOP
3. Size check: < 500 lines, single A→B→C flow → minimal surface → STOP
4. Payout formula: min(10% × TVL, program_cap) → if < $10K → STOP

If target passes, score it:

TVL > $10M:                        +2
Immunefi Critical >= $50K:         +2
No top-tier audit on this version: +2
< 30 days since deploy:            +1
Upgradeable proxies:               +1
Protocol you know well:            +1
→ Proceed if >= 6/10

Audit Protocol (10 bug classes in order)

Class 1: Accounting Desync (28% of Criticals)

Read all functions that modify balance/supply/accounting variables.

For each function with an early return:

  • What state variables are updated in the normal path?
  • Are ALL of them updated in the early return path too?
  • If A updated but not B → possible desync
grep -rn "totalSupply\|totalShares\|totalAssets\|totalDebt\|cumulativeReward" contracts/
grep -rn "\breturn\b" contracts/ -B5 | grep -B5 "if\b"

Class 2: Access Control (19% of Criticals)

The ONE RULE: Read ALL sibling functions. If vote() has modifiers, check poke(), reset(), harvest().

grep -rn "function vote\|function poke\|function reset\|function update\|function claim\|function harvest" contracts/ -A2
grep -rn "modifier\b" contracts/ -A8 | grep -B3 "if (" | grep -v "require\|revert"
grep -rn "function initialize\b" contracts/ -A3
grep -rn "_disableInitializers()" contracts/

Class 3: Incomplete Code Path (17% of Criticals)

For every function pair (deposit/withdraw, place/update, create/cancel):

  • Does the reverse function handle ALL the same state changes?
  • Does partial fill refund both ETH AND ERC20?

Read the full file on GitHub · 160 lines

Changes

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.

  1. 9d ago First seen · 160 lines · 101 tokens per session scan A f68b86d4ac93

Subscribe to this mod's changes

web3-auditor is an agent published in the GitHub repository Mikacr1138/claude-bug-bounty (2 stars, last pushed yesterday), licensed MIT. It adds 101 tokens to every session and 1,398 once invoked, about $0.0005 per session on Opus 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-08-31.

Related

Other agents, from other repositories

web3-auditor

Smart contract security auditor. Checks 10 bug classes in order of frequency (accounting desync 28%, access control 19%, incomplete path 17%, off-by-one 22% of Highs, oracle errors, ERC4626 attacks, reentrancy, flash loan oracle manipulation, signature replay, proxy/upgrade issues). Applies pre-dive kill signals…

Awarexone/Agentic-Bug-Hunter · 101 tokens

token-engineer

Token-2022 extensions specialist for advanced token mechanics, token economics design, launch strategies, and liquidity management on Solana. Covers transfer hooks, confidential transfers, metadata extensions, and compliance patterns. Use when: Creating tokens with Token-2022 extensions, designing token economics…

solanabr/solana-ai-kit · 103 tokens

anchor-engineer

Anchor framework specialist for rapid Solana program development. Use for building programs with Anchor macros, IDL generation, account validation, and standardized patterns. Prioritizes developer experience while maintaining security.\n\nUse when: Building new programs quickly, team projects needing standardization…

solanabr/solana-ai-kit · 77 tokens

mobile-engineer

React Native and Expo specialist for building Solana mobile dApps. Handles mobile wallet adapter integration, transaction signing UX, deep linking, and mobile-specific performance optimization. Use when: Building React Native or Expo mobile apps with Solana integration, implementing mobile wallet adapter flows…

solanabr/solana-ai-kit · 72 tokens

solana-architect

Senior Solana program architect for system design, account structures, PDA schemes, token economics, and cross-program composability. Use for high-level design decisions, architecture reviews, and planning complex multi-program systems. Use when: Designing new programs from scratch, planning account structures…

solanabr/solana-ai-kit · 74 tokens

defi-engineer

DeFi integration specialist for composing with Solana protocols including Jupiter, Drift, Kamino, Raydium, Orca, Meteora, Marginfi, and Sanctum. Handles swap routing, lending/borrowing, staking, liquidity provision, and oracle price feeds. Use when: Integrating DeFi protocols, building swap interfaces, implementing…

solanabr/solana-ai-kit · 100 tokens