UI はローカライズ済みです。スキルの紹介と説明文書は選択した言語へ AI が自動翻訳し、コード・コマンド・パス・専門用語は原文のままです。原作者の文書が優先されます。
スキルを探す
開発・技術 · SKILL.md

buzzshield

buzzshield

Crypto-native security scanner for Claude Code agent configurations. Scans for exposed private keys, insecure RPC endpoints, contract addresses in public repos, unprotected wallet operations, and agent config vulnerabilities. Extends AgentShield concept with 47 crypto-specific detection rules. Run via /security-scan command.

Independent GitHub snapshot · Automated classification · Original documentation governs

スキルの説明

GitHub

name: buzzshield description: > Crypto-native security scanner for Claude Code agent configurations. Scans for exposed private keys, insecure RPC endpoints, contract addresses in public repos, unprotected wallet operations, and agent config vulnerabilities. Extends AgentShield concept with 47 crypto-specific detection rules. Run via /security-scan command. tags: [security, crypto, audit, scanner, agent, wallet]

BuzzShield — Crypto Agent Security Scanner

47 crypto-specific rules. Scans CLAUDE.md, .env, hooks, agents, skills. Built on lessons from building a $0/day LLM cost production agent.

When to Use

  • Before deploying any crypto agent to production
  • After adding new MCP servers or API keys
  • Before hackathon submissions (catch leaks)
  • As part of HSaaS security audit ($500 tier includes BuzzShield report)
  • Periodic security hygiene check

What It Scans

1. Secret Detection (14 patterns)

PatternWhat It Catches
0x[a-fA-F0-9]{64}Private keys (EVM)
[1-9A-HJ-NP-Za-km-z]{87,88}Private keys (Solana)
sk-[a-zA-Z0-9]{48}API keys (Anthropic, OpenAI)
ghp_[a-zA-Z0-9]{36}GitHub personal access tokens
xoxb-[0-9]{11}-[0-9]{13}-[a-zA-Z0-9]{24}Slack bot tokens
AKIA[0-9A-Z]{16}AWS access keys
fc-[a-f0-9]{32}Firecrawl API keys
Mnemonic phrases12/24 word seed phrases
.env in gitUncommitted env files tracked
Hardcoded RPC URLs with API keysAlchemy, Infura, QuickNode
Bearer [a-zA-Z0-9._-]+Auth tokens in code
Server IPs in public filesInfrastructure exposure
OAuth client secretsGoogle, GitHub OAuth
Telegram bot tokensBot token patterns

2. Wallet Safety (9 patterns)

CheckRisk Level
Unprotected transfer_tokens callsCRITICAL
Missing approval gate on swap operationsCRITICAL
Auto-approve at trust level 0HIGH
Wallet drain patterns (approve + transferFrom)CRITICAL
Missing amount limits on transactionsHIGH
Contract deployment without gas estimationMEDIUM
Missing honeypot check before interactionHIGH
Unverified contract addresses hardcodedMEDIUM
Missing receipt/audit trail for transactionsMEDIUM

3. Agent Config Review (12 patterns)

CheckRisk Level
--dangerously-skip-permissions without allowFromCRITICAL
Missing requireMention in group configsHIGH
Overly broad tool access in agent definitionsMEDIUM
MCP servers without rate limitingMEDIUM
Feature flags all TRUE (no safety gates)MEDIUM
Missing trust gate on outreach operationsHIGH
Crons without maxRuns/expiresAt (infinite growth)HIGH
Event handlers with side effects (recursive risk)MEDIUM
Missing circuit breakers on mailboxHIGH
Unvalidated task DAG dependencies (deadlock risk)MEDIUM
server.js modifications without backupHIGH
Gmail OAuth without CC enforcementMEDIUM

4. Contract Security (7 patterns)

CheckRisk Level
Deployer wallet used as contract ownerCRITICAL
EIP-7702 delegated wallet as ownerCRITICAL
Missing ownership transfer capabilityHIGH
Unverified contract source on block explorerMEDIUM
Missing reentrancy guardsCRITICAL
Unchecked external callsHIGH
Missing event emission on state changesMEDIUM

5. Infrastructure (5 patterns)

CheckRisk Level
Server IP in public contentCRITICAL
SSH keys in repositoryCRITICAL
Docker socket exposedHIGH
Missing fail2ban or rate limitingMEDIUM
Unencrypted database connectionsMEDIUM

Output Format

Terminal (default)

╔═══════════════════════════════════════╗
║  BUZZSHIELD SCAN REPORT — Grade: B+  ║
╚═══════════════════════════════════════╝

CRITICAL (0)  ✅ None found
HIGH     (2)  ⚠️
  → Missing honeypot check in /api/routes/swap.js:42
  → Cron job without expiresAt in /api/services/cron/jobs/token-scan.js:18
MEDIUM   (3)  ℹ️
  → Unverified contract address hardcoded in /api/lib/contracts.js:7
  → Feature flag WALLET_GUARD=false (governance disabled)
  → Missing rate limit on /api/score endpoint

Files scanned: 142
Rules checked: 47
Time: 2.3s

JSON (CI/CD)

Exit code 2 on CRITICAL findings (build gate).

Markdown (HSaaS reports)

Full report with remediation steps for each finding.

Usage

Via Claude Code

/security-scan                    # Quick scan
/security-scan --deep             # Include contract analysis
/security-scan --fix              # Auto-fix safe issues
/security-scan --report markdown  # Generate HSaaS report

Via CLI

npx @buzzbd/shield scan
npx @buzzbd/shield scan --fix
npx @buzzbd/shield scan --format json

How It Differs from AgentShield

FeatureAgentShield (ECC)BuzzShield (Buzz)
FocusGeneric dev securityCrypto agent security
Secret patterns14 generic14 generic + 14 crypto-specific
Wallet checksNone9 wallet safety rules
Contract auditNone7 smart contract patterns
Trust systemNoneTrust gate verification
On-chainNoneContract ownership checks
CostFreeFree (HSaaS report = $500)

Architecture

BuzzShield runs entirely in Claude Code context — no external API calls. It reads files via Bash/Grep/Glob tools and applies regex + heuristic rules. Zero LLM cost for scanning. LLM used only for remediation suggestions.

保存したスキル