agent-wallet-security
БесплатноБез исполняемых скриптовНе проверенSecurity best practices for AI agents handling cryptocurrency wallets — key management, transaction signing, approval hygiene, phishing detection, and…
от nirholas★ 289 звёзд на GitHubОб этом скилле
Agent Wallet Security Guide
When AI agents interact with crypto wallets and DeFi protocols, security becomes critical. This guide covers best practices for keeping user funds safe.
Threat Model
What Can Go Wrong
| Threat | Impact | Likelihood |
|---|---|---|
| Phishing (fake protocol) | Total fund loss | High |
| Unlimited approval exploit | Token drain | Medium |
| Transaction manipulation | Swap to wrong token/address | Medium |
| Private key exposure | Total fund loss | Low (with proper setup) |
| Social engineering | Unauthorized transactions | Medium |
| Smart contract exploit | Partial/total fund loss | Low-Medium |
Key Management
Wallet Architecture
Recommended setup for agent-assisted DeFi:
Cold Wallet (Hardware/Multisig)
└── Long-term storage (>80% of portfolio)
└── Never connected to DeFi directly
Hot Wallet (Browser/Mobile)
└── Active DeFi operations (<20% of portfolio)
└── Agent assists with transactions
└── Regular approval audits
Burner Wallet (Temporary)
└── Testing new protocols
└── Airdrop claims from unknown sources
└── Minimal funds
Agent Access Levels
| Level | What Agent Can Do | When to Use |
|---|---|---|
| Read-only | View balances, track positions | Portfolio monitoring |
| Quote | Get prices, simulate transactions | Trade planning |
| Propose | Build unsigned transactions | User signs manually |
| Execute | Submit signed transactions | Automated strategies |
Recommendation: Keep agents at "Propose" level for most users. User should always review and sign.
Transaction Safety
Before Every Transaction
- Verify recipient address — check first and last 4 characters
- Verify contract address — match against known protocol deployments
- Check transaction value — confirm amount matches intent
- Review function call — understand what the transaction does
- Check gas estimate — unusually high gas may indicate a revert
Red Flags
| Signal | Risk |
|---|---|
| Unknown contract address | Possible scam contract |
| Unusually high gas estimate | Transaction may fail |
| Approve for unlimited amount | Token drain if compromised |
| Redirect to unexpected domain | Phishing site |
| Urgent "act now" pressure | Social engineering |
| Token with transfer tax >5% | Likely honeypot/scam |
Address Verification
Always verify addresses against canonical sources:
| Protocol | Verification Source |
|---|---|
| Uniswap | Official docs + Etherscan verified |
| Aave | aave.com/developers |
| Sperax | docs.chat.sperax.io |
| Any protocol | Verified contract on block explorer |
Never trust: Addresses from social media, DMs, or unverified sources.
Approval Management
Best Practices
- Use exact-amount approvals when possible
- Revoke unused approvals monthly
- Keep a separate DeFi wallet — don't approve from your main holdings
- Check approvals at Revoke.cash before large deposits
High-Risk Approval Patterns
- Approving a contract you've never interacted with
- Approving right after clicking a link (could be phishing)
- Approving permits (EIP-2612) — these happen off-chain and are harder to track
Phishing Detection
Common Phishing Vectors
| Vector | How It Works | Prevention |
|---|---|---|
| Fake DEX frontend | Clones real UI, sends funds to attacker | Bookmark real URLs |
| Fake airdrop claim | "Claim your tokens" → drains wallet | Verify on official channels |
| DNS hijacking | Real domain → attacker's server | Check SSL cert |
| Approval phishing | Sign a permit → attacker gets approval | Read what you sign |
| Address poisoning | Sends $0 from similar address | Verify full address |
Verification Checklist
- URL matches the official protocol domain exactly
- SSL certificate is valid and from expected issuer
- Contract address matches official deployment (check docs)
- Transaction details match your intent
- No unexpected approvals in the transaction
Operational Security
For Agent Operators
- Never store private keys in agent config — use hardware wallets or secure key management
- Set transaction limits — cap the amount an agent can transact
- Use separate wallets — different wallets for storage vs DeFi
- Enable alerts — get notified of all transactions
- Regular audits — review agent activity and approval states
For Automated Strategies
- Whitelist contracts — agents should only interact with pre-approved contracts
- Set guards — maximum trade size, maximum slippage, minimum output
- Time delays — non-urgent transactions can wait for human review
- Kill switch — ability to immediately stop agent operation
- Logging — record all transactions for audit trail
Multi-Sig for High-Value Operations
For significant funds:
- Use a multisig wallet (Safe/Gnosis)
- R
Установить agent-wallet-security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл agent-wallet-security?
Security best practices for AI agents handling cryptocurrency wallets — key management, transaction signing, approval hygiene, phishing detection, and operational security. Critical for any OpenClaw agent interacting with DeFi or managing wallet operations.
Как установить скилл agent-wallet-security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-wallet-security запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic