agent-wallet-security

agent-wallet-security is a skill for Claude Code, Codex from nirholas/three.ws. It costs 46 tokens per session (1,506 once invoked), scanned A, original, Apache-2.0.

A guide to protecting cryptocurrency wallets used by AI agents, including private keys, transaction signing, token approvals, and phishing risks. It also describes using separate wallets for long-term storage, active work, and temporary testing.

In plain words
What is it for?
Planning wallet access levels, reviewing approvals, detecting phishing, and setting safer procedures for agent-assisted DeFi operations.
Why use it?
It helps reduce the chance that a fake website, excessive token approval, leaked key, or unsafe transaction will lead to lost funds.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; built for openclaw.

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.

agentmods
npx agentmods add skills/nirholas/three.ws/agent-wallet-security
Any agent
npx skills add nirholas/three.ws --skill agent-wallet-security
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code, Codex.

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 agent-wallet-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/agent-wallet-security.svg)](https://agentmods.dev/skills/nirholas/three.ws/agent-wallet-security)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/agent-wallet-security"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/agent-wallet-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,506 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00046 $0.01506
Opus 5 $0.00023 $0.00753
Sonnet 5 $0.00009 $0.00301
Haiku 4.5 $0.00005 $0.00151

Measured 2d ago against content hash 11e9868fea9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

agent-wallet-security 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 2d 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.

data/skills/security/agent-wallet-security/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on 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

  1. Verify recipient address — check first and last 4 characters
  2. Verify contract address — match against known protocol deployments
  3. Check transaction value — confirm amount matches intent
  4. Review function call — understand what the transaction does
  5. Check gas estimate — unusually high gas may indicate a revert

Read the full file on GitHub · 188 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. 2d ago First seen · 188 lines · 46 tokens per session scan A 11e9868fea9f

Subscribe to this mod's changes

agent-wallet-security is a skill published in the GitHub repository nirholas/three.ws (110 stars, last pushed today), licensed Apache-2.0. It adds 46 tokens to every session and 1,506 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

blockchain-cross-chain

Cross-chain protocols, IBC, LayerZero, Wormhole, Axelar, CCIP, bridges, atomic composability, shared sequencer, cross-chain message passing. Covers trust models (light clients, external validators, ZK proofs), bridge security, token representation (canonical, wrapped, native), relayer economics, and cross-chain…

j4flmao/agent-skills · 108 tokens

blockchain-security

Use this skill when asked about blockchain security, smart contract auditing, DeFi threat modeling, blockchain incident response, bug bounty programs, economic security, formal verification of smart contracts, and blockchain-specific security analysis. Languages: Solidity, Python, Rust, Haskell. Covers threat modeling…

j4flmao/agent-skills · 203 tokens

blockchain-testing

Use this skill when asked about testing smart contracts, Foundry tests, Hardhat tests, fuzz testing, invariant testing, property-based testing, formal verification, audit preparation, integration testing for dApps, and blockchain testing patterns. Covers Foundry cheatcodes, Echidna fuzzing, Certora verification…

j4flmao/agent-skills · 117 tokens

xpr-network-dev

XPR Network (formerly Proton) blockchain development - proton-tsc smart contracts, @proton CLI and web SDK, RPC and Hyperion queries, DeFi (MetalX, Alcor, LOAN), NFTs, the XPR Agents job board, node and Hyperion operations. Use for anything mentioning XPR, Proton, or @proton packages.

XPRNetwork/xpr-network-dev-skill · 77 tokens

blockchain-management

Use this skill when asked about blockchain project management, DAO governance, multi-sig operations, treasury management, tokenomics design, and web3 project methodology. Languages: Solidity, TypeScript, Python. Covers DAO governance frameworks (Compound Governor, Aave, Snapshot, Tally), multi-sig wallet operations…

j4flmao/agent-skills · 207 tokens

write-contracts

Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement…

aptos-labs/aptos-agent-skills · 104 tokens