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/github.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/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-security-auditor

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00013 $0.00486
Sonnet 5.5 $0.00006 $0.00243
Haiku 4.5 $0.00003 $0.00121

Measured 3mo ago against content hash 800b595307fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (619 stars, last pushed 1y ago), licensed MIT. It adds 32 tokens to every session and 1,214 once invoked, about $0.0001 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-03.

Related

web3-security-auditor compared with agents from other repositories

web3-security-auditor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
web3-security-auditorMatt-Dionis/claude-code-configsAgent6191y agoMITA32Claude Code
erc-implementerccashwell/evm-cortexAgent1311mo agoMITA32Claude Code
roadmaprjmurillo/ai-agentsAgent50todayApache-2.0A0Claude Code
web3-gasalvin-reyes/better-agentic-ideAgent3814d agoMITA43Claude Code
chainaware-token-launch-auditorChainAware/behavioral-prediction-mcpAgent1022d agoMITA247Claude Code
stellar-contractsrylsherdamz-rgb/stellar-forgeAgent1712d agoMITA26Claude Code
Blockchain Security Auditorcriptogus/agent-evolve-networkAgent230todaynoneA33Claude Code