token-approval-safety

Review ERC-20 token allowances and recommend revocation actions.

5|Updated May 2, 2026
One-click install
npx skills add https://github.com/nirholas/three-ui --skill token-approval-safety-nirholas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: token-approval-safety
Source: https://github.com/nirholas/three-ui/tree/main/data/skills/security/token-approval-safety
Command: npx skills add https://github.com/nirholas/three-ui --skill token-approval-safety-nirholas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Token approvals can quietly expose wallets to high-impact theft when unlimited allowances are granted to malicious or compromised spenders.

Core Features & Use Cases

  • Explain how ERC-20 approvals work: clarify approve(), allowance(), and transferFrom() so users understand what they are authorizing.
  • Identify approval risk levels: compare exact, limited, unlimited, and permit-based (EIP-2612) approvals and when each is appropriate.
  • Check and revoke approvals safely: show how to audit allowances on-chain and use reputable tools to revoke or reduce exposure.
  • Defend against common attack vectors: cover approval phishing, compromised protocol risk, and permit signature phishing.

Quick Start

Ask the agent to review your existing ERC-20 allowances for a specific wallet and spender, explain whether the approvals are high risk (especially unlimited allowances), and recommend the safest next step to revoke or reduce them.

Frequently Asked Questions about token-approval-safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do ERC-20 token approvals expose my wallet to theft?

Unlimited ERC-20 token approvals expose wallets to theft by allowing malicious or compromised spenders to drain funds via transferFrom(). Revoking or limiting these allowances eliminates the vulnerability.

How do I check and revoke unlimited ERC-20 token allowances?

To check and revoke unlimited ERC-20 token allowances, audit your wallet's active approvals using on-chain checks or reputable approval checker tools, identify high-risk spenders, and execute a revoke transaction to eliminate exposure.

What is an EIP-2612 permit signature phishing attack?

An EIP-2612 permit signature phishing attack tricks users into signing an off-chain message that grants token approval without a standard transaction, allowing the attacker to use transferFrom() to drain the wallet.

When should I use exact versus unlimited token approvals for DeFi?

Use exact token approvals for DeFi deposits and swaps to limit spender access, reserving unlimited allowances only for trusted, audited protocols to reduce attack surface from potential protocol compromises.

What is the best way to secure my wallet after a DeFi protocol compromise?

The best way to secure a wallet after a DeFi protocol compromise is immediate incident response: audit all active token approvals, identify spenders linked to the compromised protocol, and revoke their allowances immediately.