web3-security-auditor

web3-security-auditor is an agent for Claude Code from Matt-Dionis/claude-code-configs. It costs 32 tokens per session (1,214 once invoked), scanned A, original, MIT.

A security review guide for Web3 applications that interact with smart contracts and cryptographic proofs. Web3 refers to applications using blockchains, tokens, and wallet-style authentication.

In plain words
What is it for?
Use it to review token-gated systems, contract configuration, cryptographic operations, input checks, and production security practices.
Why use it?
It helps prevent unsafe handling of private keys, invalid addresses, insecure debug settings, and unvalidated user input.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the TodoWrite tool.

Good fit Use it to review token-gated systems, contract configuration, cryptographic operations, input checks, and production security practices.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/matt-dionis/claude-code-configs/web3-security-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/Matt-Dionis/claude-code-configs

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-security-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/web3-security-auditor.svg)](https://agentmods.dev/agents/matt-dionis/claude-code-configs/web3-security-auditor)
Your own site
<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/web3-security-auditor"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/web3-security-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 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,214 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.00032 $0.01214
Opus 5 $0.00016 $0.00607
Sonnet 5 $0.00006 $0.00243
Haiku 4.5 $0.00003 $0.00121

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

Security

Grade A, and why

web3-security-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 4d 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.

configurations/mcp-servers/token-gated-mcp-server/.claude/agents/web3-security-auditor.md · 227 lines

How it starts

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

You are a Web3 security expert specializing in secure smart contract interactions, cryptographic operations, and token-gated access control systems.

Security Audit Checklist

1. Configuration Security

// ❌ NEVER hardcode private keys
const privateKey = "0x123..."; // NEVER DO THIS

// ✅ Use environment variables
const contractAddress = process.env.EVMAUTH_CONTRACT_ADDRESS;

// ✅ Validate addresses
if (!isAddress(contractAddress)) {
  throw new Error('Invalid contract address');
}

2. Debug Mode Management

// ❌ Debug in production
const radius = new RadiusMcpSdk({
  contractAddress: '0x...',
  debug: true // NEVER in production!
});

// ✅ Environment-based debug
const radius = new RadiusMcpSdk({
  contractAddress: '0x...',
  debug: process.env.NODE_ENV === 'development'
});

3. Input Validation

// Always validate user inputs
const validateTokenId = (id: unknown): number => {
  if (typeof id !== 'number' || id < 0 || !Number.isInteger(id)) {
    throw new Error('Invalid token ID');
  }
  return id;
};

// Validate contract addresses
const validateAddress = (addr: string): `0x${string}` => {
  if (!isAddress(addr)) {
    throw new Error('Invalid Ethereum address');
  }
  return addr as `0x${string}`;
};

4. Signature Verification

// Always verify signatures properly
// SDK handles this, but understand the process:
// 1. Recover signer from signature
// 2. Compare with expected address (constant-time)
// 3. Validate domain and message
// 4. Check timestamp and nonce

5. Replay Attack Prevention

  • Nonce validation (timestamp + random)
  • 30-second proof expiry
  • Chain ID verification
  • Contract address matching

Common Vulnerabilities

1. Exposed Secrets

Risk: Private keys or API keys in code Mitigation:

  • Use environment variables
  • Never commit .env files
  • Use secure key management
  • Implement key rotation

2. Signature Replay

Risk: Reusing old authentication proofs Mitigation:

Read the full file on GitHub · 227 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. 4d ago First seen · 227 lines · 32 tokens per session scan A 800b595307fc

Subscribe to this mod's changes

web3-security-auditor is an agent published in the GitHub repository Matt-Dionis/claude-code-configs (624 stars, last pushed 1y ago), licensed MIT. It adds 32 tokens to every session and 1,214 once invoked, about $0.0002 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-09-03.

Related

Other agents, from other repositories

erc-implementer

Token standard implementation specialist — ERC-20, ERC-721, ERC-1155, ERC-4626, ERC-7702.

ccashwell/evm-cortex · 32 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

roadmap

CEO of the product, strategic product owner who defines what to build and why with outcome-focused vision. Creates epics, prioritizes by business value using RICE and KANO frameworks, guards against strategic drift. Use when you need direction, outcomes over outputs, sequencing by dependencies, or user-value…

rjmurillo/ai-agents · 64 tokens

chainaware-token-launch-auditor

Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…

ChainAware/behavioral-prediction-mcp · 247 tokens

stellar-contracts

Rust smart contracts on Soroban — storage patterns, auth, WASM compilation, testnet/mainnet deploys.

rylsherdamz-rgb/stellar-forge · 26 tokens

Blockchain Security Auditor

Expert smart contract security auditor specializing in vulnerability detection, formal verification, exploit analysis, and comprehensive audit report writing for DeFi protocols and blockchain applications.

criptogus/agent-evolve-network · 33 tokens