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.
Before using this skill, ensure you have:
requests library installedETHERSCAN_API_KEY environment variable for higher rate limitsScan wallet for all active ERC20 token approvals:
cd {baseDir}/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 outputComprehensive security analysis including approvals, transaction history, and patterns:
python wallet_auditor.py scan <address> --verbose
Analyzes:
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:
Risk levels:
Review recent contract interactions and patterns:
python wallet_auditor.py history <address> --days 30
Detects:
Get prioritized list of approvals to revoke:
python wallet_auditor.py revoke-list <address>
Flags:
Create comprehensive security audit report:
python wallet_auditor.py report <address> --output report.txt
python wallet_auditor.py report <address> --json # JSON format
python wallet_auditor.py chains
╔═══════════════════════════════════════════════════════════════════╗
║ WALLET SECURITY SCORE ║
╠═══════════════════════════════════════════════════════════════════╣
║ Overall Score: [████████████████····] 82/100 ║
║ Risk Level: 🟢 LOW ║
╠═══════════════════════════════════════════════════════════════════╣
║ Component Scores: ║
║ Approvals: [██████████████······] 70/100 ║
║ Interactions: [██████████████████··] 90/100 ║
║ Patterns: [████████████████████] 100/100 ║
╚═══════════════════════════════════════════════════════════════════╝
See {baseDir}/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 |
See {baseDir}/references/examples.md for detailed examples.
# 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
# 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
0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925