Solana Token-2022 Transfer Hook, Hidden Tax & PermanentDelegate Scanner
Solana's Token-2022 program (TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb) introduced powerful TLV mint extensions that legitimate RWA and stablecoin issuers use responsibly, and that rug studios weaponize to build dynamic sell-blocking TransferHooks, 100% TransferFeeConfig exit taxes, and silent PermanentDelegate seizure traps. Rent & Rug Shield decodes every Token-2022 extension and simulates inner-CPI sell paths in <120ms.
100% Read-Only First: Paste any public Base58 Solana wallet or token mint address (100% read-only, zero wallet pop-ups) to inspect locked 0x09 empty-ATA SOL deposits or run a sub-120ms 12-Layer rug firewall check.
1. Anatomy of Malicious Token-2022 TransferHook Programs (Layer 05)
When a mint enables TransferHook, every transferChecked instruction invokes an external custom program. Hostile hook programs read clock slots or creator whitelist PDAs so buys succeed smoothly while retail sells into Raydium, PumpSwap, or Meteora revert deterministically.
2. PermanentDelegate, TransferFeeConfig & DefaultAccountState Traps (Layer 06)
PermanentDelegate grants an irrevocable master authority to burn or transfer tokens out of any holder's ATA at any time. Meanwhile, TransferFeeConfig can impose up to 10,000 basis points (100% fee), and DefaultAccountState::Frozen locks buyer accounts upon creation.
3. Live Jupiter Two-Way Sell Simulation + Sacrificial Inner-CPI Canary
Static metadata checkers only read mint headers at launch. Layers 04, 05, 06, and 12 combine TLV extension decoding with live sell-side route simulation and inner-CPI inspection in under 120ms so dynamic state flips are caught pre-buy.
4. Safe Token-2022 Empty ATA Rent Recovery (Quarantining Frozen Traps)
Closable zero-balance Token-2022 ATAs often hold 2,074,080+ lamports. Our read-only wallet scanner reclaims all unlocked zero-balance Token-2022 deposits (0% 1st claim <=25 ATAs; 2.0% repeat 98.0% net SOL) while safely skipping creator-frozen legacy traps.
Structured Forensic Comparison & Verification Matrix
| Token-2022 Extension | Attack Mechanism | 12-Layer Scanner Verdict |
|---|---|---|
| TransferHook (Hostile Program) | Reverts retail sells via custom CPI gate | Layer 05 Hard Veto (<120ms) |
| PermanentDelegate (Active) | Arbitrary token seizure / burn from holder ATA | Layer 06 Critical Flag |
| TransferFeeConfig (>300 bps) | Confiscates 3% to 100% of swap proceeds | Layer 05 Tax Alert / Veto |
| DefaultAccountState::Frozen | Initializes buyer ATAs in frozen honeypot state | Layer 02 & 06 Hard Veto |
| NonTransferable (Soulbound) | Locks bait tokens permanently inside victim ATA | Layer 06 Quarantine Warning |
Actionable Verification Checklist
- Paste any Tokenz... mint address into https://rentandrugshield.com/app before signing a swap.
- Verify PermanentDelegate is null, TransferHook programId is null/verified, and TransferFeeConfig bps == 0.
- Confirm Layer 04 live Jupiter sell-side quote simulation succeeds with normal price impact.
- Integrate POST /api/v1/shield-check into sniper bots and AI agents for automated <120ms Token-2022 vetoes.
Frequently Asked Questions
Are all Token-2022 tokens scams?
No. Major institutional assets like PYUSD use Token-2022 transparently, whereas anonymous memecoins with PermanentDelegate or custom TransferHooks carry extreme rug risk.
How fast does the Token-2022 TransferHook scanner respond?
Under 120ms via Helius RPC fast-path inspection and cached TLV decoding, 100% read-only.
Can I reclaim SOL rent from empty Token-2022 accounts?
Yes, all unlocked zero-balance Token-2022 ATAs close cleanly via 0x09 (0% 1st claim <=25 ATAs, 2.0% repeat returning 98.0% net SOL), while frozen traps are safely skipped.