auditing-wallet-security
A security auditing tool that scans wallet approvals and transaction history to identify potential risks.
Install
mkdir -p .claude/skills/auditing-wallet-security && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9315" && unzip -o skill.zip -d .claude/skills/auditing-wallet-security && rm skill.zipInstalls to .claude/skills/auditing-wallet-security
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Audit wallet security by analyzing token approvals, permissions, andKey capabilities
- →Scan wallets for ERC20 token approvals
- →Calculate security risk scores for wallets
- →Analyze transaction history and patterns
- →Generate prioritized lists of approvals to revoke
- →Create complete security audit reports
How it works
The tool performs read-only analysis of blockchain data to identify risky token approvals and suspicious transaction patterns.
Inputs & outputs
When to use auditing-wallet-security
- →Checking wallet token approvals
- →Analyzing security risk exposure
- →Auditing transaction patterns
About this skill
Wallet Security Auditor
Overview
Security analysis tool for cryptocurrency wallets. Scans ERC20 token approvals, analyzes transaction patterns, calculates security risk scores, and provides actionable recommendations to improve wallet security.
Important: This is a read-only analysis tool. It does NOT execute transactions, manage private keys, or perform revocations.
Prerequisites
Before using this skill, ensure you have:
- Python 3.8+ with
requestslibrary installed - Optional:
ETHERSCAN_API_KEYenvironment variable for higher rate limits - Network access to blockchain RPC endpoints (public RPCs included)
- Target wallet address (hex format, 0x...)
Instructions
1. List Token Approvals
Scan wallet for all active ERC20 token approvals:
cd ${CLAUDE_SKILL_DIR}/scripts
python wallet_auditor.py approvals <address> --chain <chain>
Options:
--chain: ethereum, bsc, polygon, arbitrum, optimism, base (default: ethereum)--unlimited: Show only unlimited approvals--verbose: Detailed output
2. Full Security Scan
Comprehensive security analysis including approvals, transaction history, and patterns:
python wallet_auditor.py scan <address> --verbose
Analyzes: 4. Active token approvals (unlimited, risky) 5. Transaction history patterns 6. Contract interactions (verified vs unverified) 7. Suspicious activity detection
3. Calculate Security Score
Get weighted security risk score (0-100, higher = safer):
python wallet_auditor.py score <address>
python wallet_auditor.py score <address> --json # JSON output
Score components: 8. Approvals (40%): Unlimited, risky, stale approvals 9. Interactions (30%): Contract verification, flagged addresses 10. Patterns (20%): Transaction frequency, diversity 11. Age (10%): Wallet maturity
Risk levels: 12. 90-100: SAFE 13. 70-89: LOW 14. 50-69: MEDIUM 15. 30-49: HIGH 16. 0-29: CRITICAL
4. Analyze Transaction History
Review recent contract interactions and patterns:
python wallet_auditor.py history <address> --days 30
Detects: 17. Rapid approval patterns 18. Interaction bursts (many contracts in short time) 19. High failure rates 20. Dust attacks
5. Generate Revoke List
Get prioritized list of approvals to revoke:
python wallet_auditor.py revoke-list <address>
Flags: 21. Unlimited approvals to unknown contracts 22. Risky/flagged spenders 23. Stale approvals (>6 months)
6. Generate Full Report
Create comprehensive security audit report:
python wallet_auditor.py report <address> --output report.txt
python wallet_auditor.py report <address> --json # JSON format
7. List Supported Chains
python wallet_auditor.py chains
Output
Security Score Report
╔═══════════════════════════════════════════════════════════════════╗
║ WALLET SECURITY SCORE ║
╠═══════════════════════════════════════════════════════════════════╣
║ Overall Score: [████████████████····] 82/100 ║
║ Risk Level: 🟢 LOW ║
╠═══════════════════════════════════════════════════════════════════╣
║ Component Scores: ║
║ Approvals: [██████████████······] 70/100 ║
║ Interactions: [██████████████████··] 90/100 ║
║ Patterns: [████████████████████] 100/100 ║
╚═══════════════════════════════════════════════════════════════════╝
Approval Summary
- Total active approvals count
- Unlimited approvals flagged
- Risky approvals with severity
- Unique spenders and tokens
Risk Factors
- [CRITICAL] Unlimited approval to unknown contract
- [HIGH] Approval to flagged contract
- [MEDIUM] Many unlimited approvals (>5)
- [LOW] Interaction with unverified contract
Recommendations
- Priority 1: Revoke risky approvals immediately
- Priority 2: Review unnecessary unlimited approvals
- Priority 3: Audit all approvals periodically
Error Handling
See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling:
| Error | Cause | Solution |
|---|---|---|
| Address validation failed | Invalid format | Use 0x + 40 hex characters |
| RPC timeout | Node unresponsive | Retry or use different RPC |
| Rate limited | Too many requests | Add ETHERSCAN_API_KEY |
| No approvals found | Wallet clean | Normal - no action needed |
Examples
See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.
Quick Security Check
# Check wallet approvals
python wallet_auditor.py approvals 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Full security scan
python wallet_auditor.py scan 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --verbose
# Get security score
python wallet_auditor.py score 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Check other chains
python wallet_auditor.py approvals 0x... --chain polygon
python wallet_auditor.py approvals 0x... --chain arbitrum
Generate Audit Report
# Text report
python wallet_auditor.py report 0x... --output security_audit.txt
# JSON for integration
python wallet_auditor.py report 0x... --json --output audit.json
Resources
- revoke.cash: Web UI for revoking approvals
- Etherscan Token Approval Checker: View/revoke on block explorer
- Etherscan API: https://docs.etherscan.io/api-endpoints
- ERC20 Approval Event: Topic
0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925 - GoPlus Security API: Additional contract risk data
When not to use it
- →When attempting to execute transactions or revoke tokens directly
Prerequisites
Limitations
- →Does not execute transactions
- →Does not manage private keys
How it compares
It provides a local, automated security audit report rather than relying solely on manual block explorer inspection.
Compared to similar skills
auditing-wallet-security side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| auditing-wallet-security (this skill) | 0 | 27d | Review | Intermediate |
| senior-security | 31 | 7mo | Review | Advanced |
| security-header-generator | 5 | 9mo | Caution | Intermediate |
| backend-security-coder | 24 | 4mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
senior-security
davila7
Comprehensive security engineering skill for application security, penetration testing, security architecture, and compliance auditing. Includes security assessment tools, threat modeling, crypto implementation, and security automation. Use when designing security architecture, conducting penetration tests, implementing cryptography, or performing security audits.
security-header-generator
Dexploarer
Generates security HTTP headers (CSP, HSTS, CORS, etc.) for web applications to prevent common attacks. Use when user asks to "add security headers", "setup CSP", "configure CORS", "secure headers", or "HSTS setup".
backend-security-coder
sickn33
Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.
security-audit
ruvnet
Comprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement. Use when: authentication implementation, authorization logic, payment processing, user data handling, API endpoint creation, file upload handling, database queries, external API integration. Skip when: read-only operations on public data, internal development tooling, static documentation, styling changes.
security-best-practices
openai
Perform language and framework specific security best-practice reviews and suggest improvements. Trigger only when the user explicitly requests security best practices guidance, a security review/report, or secure-by-default coding help. Trigger only for supported languages (python, javascript/typescript, go). Do not trigger for general code review, debugging, or non-security tasks.
pcap-analysis
benchflow-ai
Guidance for analyzing network packet captures (PCAP files) and computing network statistics using Python, with tested utility functions.