web3-auditor

A security auditor for Solidity smart contracts and DeFi protocols, checking common flaws in accounting, access control, oracles, tokens, signatures, reentrancy, flash loans, and upgradeable proxies. DeFi means financial applications built on blockchains.

In plain words
What is it for?
Assessing eligible smart-contract targets, inspecting their code for the listed vulnerability classes, and looking for bugs that could cause financial loss.
Why use it?
It prioritizes likely high-impact bug types and first checks whether the protocol is large and valuable enough to justify a deep review.

Agent

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.

agentmods
npx agentmods add agents/awarexone/agentic-bug-hunter/web3-auditor
Clone the repo
git clone --depth 1 https://github.com/Awarexone/Agentic-Bug-Hunter
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,531 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00101 $0.01531
Opus 5 $0.00051 $0.00766
Sonnet 5 $0.00020 $0.00306
Haiku 4.5 $0.00010 $0.00153

Measured 2d ago against content hash ac24a88efbd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 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 · 175 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. 2d ago First seen · 175 lines · 101 tokens per session scan A ac24a88efbd7

Subscribe to this mod's changes

web3-auditor is an agent published in the GitHub repository Awarexone/Agentic-Bug-Hunter (4,651 stars, last pushed yesterday), licensed MIT. It adds 101 tokens to every session and 1,531 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-30.

Related

Other agents, from other repositories

osint-collector

Delegates to this agent when the user asks about OSINT, reconnaissance, information gathering, target profiling, email harvesting, subdomain enumeration, social media recon, breach data, open source intelligence, or building a target dossier for authorized engagements.

0xSteph/pentest-ai-agents · 53 tokens

threat-modeler

Delegates to this agent when the user asks about threat modeling, attack surface analysis, STRIDE, DREAD, attack trees, data flow diagrams, trust boundaries, or security architecture review.

0xSteph/pentest-ai-agents · 42 tokens

malware-analyst

Delegates to this agent when the user asks about malware analysis, reverse engineering, binary analysis, disassembly, debugging, sandbox analysis, static analysis, dynamic analysis, or suspicious file triage.

0xSteph/pentest-ai-agents · 44 tokens

phishing-operator

Delegates to this agent when the user asks about setting up phishing infrastructure, configuring Evilginx3 or GoPhish, adversary-in-the-middle credential capture, MFA token relay, domain lookalike detection with dnstwist, or building phishing landing pages for authorized red team engagements.

0xSteph/pentest-ai-agents · 63 tokens

c2-operator

Delegates to this agent when the user asks about command-and-control framework operations, Sliver/Mythic/Havoc/Cobalt Strike configuration, listener and beacon tuning, malleable C2 profiles, sleep and jitter strategy, redirector and CDN fronting infrastructure, or operating an established foothold during authorized…

0xSteph/pentest-ai-agents · 71 tokens

cicd-redteam

Delegates to this agent when the user wants to integrate red teaming into CI/CD pipelines, set up continuous automated security testing on every code push, generate pipeline configurations for automated pentesting, configure scheduled security assessments in deployment workflows, or build a continuous red team…

0xSteph/pentest-ai-agents · 64 tokens