Solana Wallet Drainer Protection: How Drainers Work and How to Stay Safe (2026)

Learn how malicious signatures and token delegations can drain a Solana wallet, what transaction previews can miss, and how to respond.

MadeOnSol··Updated · 11 min read
Solana Wallet Drainer Protection: How Drainers Work and How to Stay Safe (2026)

Disclosure: This article contains affiliate links. If you sign up through them, MadeOnSol may earn a commission at no extra cost to you. This never affects our rankings, ratings, or reviews.

Wallet drainers try to make you authorize transfers or ongoing token permissions that benefit an attacker. A malicious signed transaction can move several assets at once, but a token delegation may be used later without another signature from you. A stolen recovery phrase or private key is a separate, more serious compromise. The response depends on which of these happened.

This guide explains the mechanics, what to inspect before signing, and what to do when a wallet may be compromised. Solana's delegate approval and revoke documentation describe the underlying token permissions.

How Wallet Drainers Work

A wallet drainer is malicious software or a transaction flow designed to move your assets without the outcome you intended. A common phishing flow is:

  1. Lure: Get the victim to visit a malicious website or interact with a malicious link
  2. Request: Prompt the victim to sign a transaction through their wallet
  3. Execute: The signed transaction transfers assets or grants a delegate a token allowance that can be used later

The sophistication is in step 2 — making the transaction request look legitimate while hiding the actual malicious instructions.

Common Drainer Techniques on Solana

Technique 1: Malicious dApp Approval

The most common drainer disguises itself as a legitimate dApp interaction. You visit a website that looks like a token claim page, an airdrop, a mint, or a DeFi protocol. The site asks you to connect your wallet and sign a transaction.

The transaction you are signing does not do what the site claims. Instead, it contains instructions to:

  • Transfer your SOL to the attacker's wallet
  • Transfer specific SPL tokens to the attacker
  • Set the attacker as a delegate on your token accounts (allowing them to withdraw later)

Technique 2: Token Account Delegation

This is one of the most dangerous techniques because it does not immediately drain your wallet. Instead, the transaction sets a delegate on your token accounts.

How delegation works on Solana:

  • Every SPL token account can have a "delegate" — another wallet authorized to transfer tokens from that account
  • When you approve a delegate, you specify how many tokens they can transfer
  • The malicious transaction grants the attacker's address an allowance for that specific token account
  • The attacker can drain the tokens at any time, even days later

This delayed drain makes it harder to connect the theft to the malicious transaction you signed. By the time your tokens disappear, you may not remember which site you interacted with.

Technique 3: Versioned Transactions with Lookup Tables

Solana's versioned transactions (V0) can use address lookup tables to reference accounts compactly. A transaction may include accounts and inner instructions that are difficult to interpret from a raw signing prompt.

Use the wallet's decoded preview where available. If the wallet cannot simulate or explain an unfamiliar transaction, reject it; the mere presence of an address lookup table is not proof of a drainer.

Technique 4: CPI-Based Drains

Cross-Program Invocation (CPI) allows a Solana program to call another program. A transaction can therefore produce token movements in inner instructions that are not obvious from its top-level program names.

Seeing a familiar program name alone does not establish that the full transaction is safe. Review the expected net asset changes and any new delegation, and decline if the outcome is unclear.

Technique 5: NFT/Token Airdrop Bait

You receive a random NFT or token in your wallet. The token has a description or name that includes a URL — something like "Claim 500 SOL at freesol.xyz." Curious users visit the URL, connect their wallet, and sign the drainer transaction.

Variations include:

  • Tokens with metadata pointing to phishing sites
  • NFTs that display as claimable rewards
  • Airdropped tokens that appear to have real value on DEXScreener (wash-traded by the attacker)

The Anatomy of a Drainer Transaction

Here is a simplified illustration of two possible outcomes. It is not a literal transaction format or a signature that every attack shares:

Possible transaction effects:
1. Transfer SOL or tokens to an unexpected address now.
2. Approve an unexpected delegate for a token account, up to a stated allowance.
3. Later, that delegate transfers tokens within the remaining allowance.

An approval does not automatically authorize every asset in a wallet: Solana token delegation belongs to a particular token account and amount. A malicious flow can request several instructions or signatures, so inspect each request separately.

How Wallets Protect You

Modern Solana wallets have implemented several anti-drainer features.

Transaction Simulation

Phantom and Solflare document transaction previews and security warnings; Backpack is another wallet option whose current prompts you should inspect directly. A decoded preview can help reveal outgoing transfers or permission changes, but its availability and accuracy depend on the wallet and transaction. Phantom specifically warns when it cannot accurately simulate a request.

If a preview shows unexpected transfers, approvals or an unexplained warning, reject the request. Do not interpret a clean preview as a guarantee that the site is safe.

Malicious Site Warnings

Phantom documents a blocklist for known malicious domains. Such warnings are useful, but an unflagged site may still be unsafe. Check the domain through a trusted source before connecting or signing.

Simulation Bypass Detection

Dynamic or unusual transaction behavior can prevent an accurate simulation. When the wallet says it cannot explain the result, stop and verify through an independent source rather than relying on the site's explanation.

Protection Strategies

Strategy 1: Use a Separate Wallet for Interactions

Maintain at least two wallets:

  • Vault wallet: Holds your main portfolio. Never connects to any dApp. Only used for receiving and sending between your own wallets.
  • Active wallet: Used for trading, minting, and dApp interactions. Only holds the SOL/tokens you are actively trading with.

Separation limits what is immediately exposed to a malicious signature from the active wallet. It does not protect you if you reuse a compromised recovery phrase, sign with the vault, or transfer valuable assets into an account with a malicious delegate.

For the broader threat landscape, see our overview of whether Solana is safe and how to protect your wallet.

Strategy 2: Read Every Transaction Preview

Before signing any transaction, read the simulation preview:

  • Check outgoing transfers: Are any tokens leaving your wallet? Which tokens, and how much?
  • Check approvals/delegates: Is the transaction setting a delegate on any token account?
  • Check the program and effect: A familiar program name (SPL Token, Jupiter, Raydium) does not make an unexpected transfer safe.
  • Check the destination: If tokens are being transferred, where are they going? Is it an address you recognize?

If anything looks unexpected, reject the transaction. It is always better to miss a legitimate opportunity than to sign a drainer.

Strategy 3: Verify URLs Independently

Never click links from:

  • Discord DMs or server messages claiming airdrops or mints
  • Twitter/X replies or DMs with claim links
  • Telegram messages from unknown users
  • Emails claiming to be from Solana projects
  • Token metadata in airdropped tokens

If a project announces a claim or mint, go to their official website directly by typing the URL or using a bookmarked link. Do not follow links from social media or messages.

Strategy 4: Revoke Stale Approvals

Periodically review token account delegates and revoke permissions you no longer intend to grant.

On Solscan, you can inspect token account details. If a delegate is unfamiliar, use a trusted wallet or revoke tool and verify the revocation transaction before signing. A connected app can remain disconnected while a token delegation stays active.

Phantom documents a separate token approval revocation flow; its Connected Apps screen alone does not revoke on-chain token permissions.

Strategy 5: Use Hardware Wallets for Large Holdings

Hardware wallets like Ledger add a physical confirmation step. Even if you click "approve" in your browser wallet, the transaction must be confirmed on the hardware device's screen. This gives you a second chance to review the transaction and catch anything suspicious.

Hardware confirmation reduces exposure to a compromised browser or software key, but it will still authorize a malicious transaction if you approve it on the device. Check the displayed details and keep recovery material offline.

Strategy 6: Test with Small Amounts

When trying a new dApp, use a separate wallet funded only for that interaction. A small test can limit immediate exposure, but it does not prove that later transactions, approvals or a different site state are safe.

What to Do If You Get Drained

If you believe your wallet has been drained:

  1. Stop interacting with the suspicious site and do not sign another request from it.
  2. Identify the exposure: inspect the confirmed transaction for transfers and delegated token accounts; consider whether your recovery phrase, private key or device was also exposed.
  3. Revoke suspicious token delegations with a trusted tool. Disconnecting the website does not revoke an on-chain allowance.
  4. Move remaining trusted assets to a new wallet if a key or recovery phrase may be compromised, or if you cannot confidently contain the permissions. Use a new recovery phrase; check staked and DeFi positions separately.
  5. Report the drainer site to wallet providers (Phantom, Solflare) so they can add it to their blocklists
  6. Document everything — transaction hashes, drainer website URL, attacker wallet addresses. This information helps security researchers track drainer operators.

Recognizing Social Engineering

Phishing and social engineering often deliver the malicious signing request: a site or message pushes you to approve something you did not intend. A stolen key or compromised device is another route and needs a different response.

Common social engineering patterns:

  • Urgency: "Claim in the next 30 minutes or lose your allocation"
  • Authority: "Official announcement from [popular project]"
  • Greed: "500 SOL airdrop for early supporters"
  • Fear: "Your wallet has been compromised, visit this site to secure your funds"
  • Confusion: Impersonating a real project with a slightly different domain name

Every one of these is designed to override your rational judgment. When you feel urgency or excitement about a crypto interaction, that is exactly when you should slow down and verify independently.

Final Thoughts

Wallet drainers are a direct threat to Solana users. Separate wallets, careful review of transaction effects, independent URL checks and regular permission reviews reduce exposure. None of these measures can guarantee safety on its own.

Pause before signing. Your signature may authorize an immediate transfer or a delegate that can act later. Read the preview and decline requests you cannot explain. If a key has already been stolen, signing discipline alone is no longer enough; migrate to a new wallet.

Phantom, Solflare, and Backpack offer different security prompts and controls. Learn what your chosen wallet actually displays, separate funds by purpose, and treat every approval as a security decision.

FAQ

Can a drainer steal my SOL without me signing anything?

If someone has your private key or recovery phrase, they can sign a native SOL transfer without a new action from you. An approved token account delegate can separately move tokens, including wrapped SOL held in that token account, within its allowance; that delegation does not grant control over native SOL in your wallet. Without a compromised key or prior permission, a new transfer still needs the required authorization.

Are airdropped tokens dangerous to hold?

An unsolicited token appearing in your wallet does not by itself authorize a transfer out. Treat its links and claims as untrusted. Ignore or hide it if uncertain; before burning or closing an account, check the transaction your wallet asks you to sign.

Do transaction simulations catch all drainers?

No. A simulation is a useful preview of one proposed transaction under current conditions, not a guarantee about every later action. A wallet may be unable to simulate dynamic behavior accurately and should warn you when it cannot. Verify the URL, permissions and expected effects independently.

Can I get my drained tokens back?

Confirmed transfers generally cannot be reversed by your wallet. Preserve transaction IDs and report the incident to your wallet provider and relevant authorities. Be wary of anyone promising guaranteed recovery or asking for your recovery phrase.

Two habits that reduce your attack surface: revoking unused token approvals regularly, and checking a token for red flags before you ever interact with its contract.

How is a wallet drainer different from a rug pull or fake airdrop?

A drainer may transfer assets immediately or use an approval for a later transfer. A rug pull removes token value through insider selling, liquidity withdrawal or another project-level abuse; a fake airdrop can be bait for either a phishing site or a malicious signature. Our guides on spotting fake airdrops, honeypots, and other common Solana scams and using RugCheck to vet a token before you ever connect your wallet cover related checks.

Tools mentioned

Compare features and read reviews.

Live health scores, average ratings, and direct links on MadeOnSol.

Build with MadeOnSol API

KOL tracking, deployer intelligence, DEX streaming, and webhooks. Free API key — 200 requests/day.

Start free
import { MadeOnSol } from "madeonsol";

// Get a free API key at madeonsol.com/pricing
const client = new MadeOnSol({ apiKey: "msk_your_key" });

const { trades } = await client.kol.feed({ limit: 10 });
const { alerts } = await client.deployer.alerts({ limit: 5 });
const { tools } = await client.tools.search({ q: "trading" });
npm install madeonsolFull API docs

Keep reading

More from the blog.

All Security
Is Solana Safe? Security Risks, Hacks, and How to Protect Your Wallet (2026)

Guides

Is Solana Safe? Security Risks, Hacks, and How to Protect Your Wallet (2026)

Separate network reliability from protocol, token and wallet risk, and use current sources when assessing uptime and security controls.

4 minFebruary 20, 2026
Metal Seed Phrase Backups for Solana Wallets Compared

Comparisons

Metal Seed Phrase Backups for Solana Wallets Compared

Compare Trezor Keep Metal, Cryptosteel Capsule Solo and Billfodl by backup format, word capacity and setup method before storing a Solana wallet recovery phrase.

3 minNovember 10, 2026
Cypherock X1 Review: The Seedless Hardware Wallet (2026)

Reviews

Cypherock X1 Review: The Seedless Hardware Wallet (2026)

Cypherock X1 replaces the seed phrase with key shards split across a vault and four cards. Here's how the seedless model works, whether it fits Solana holders, and an honest look at the tradeoffs.

8 minMay 31, 2026
SafePal Review: Hardware + App + Card in One Wallet (2026)

Reviews

SafePal Review: Hardware + App + Card in One Wallet (2026)

SafePal bundles an air-gapped hardware wallet, a mobile app, and a crypto card into one multi-chain ecosystem — and it's the cheapest air-gapped wallet around. Here's an honest review, including how its Solana support compares to Phantom.

8 minMay 31, 2026
Solana Program Security: Audit Checklist for Smart Contract Developers

Guides

Solana Program Security: Audit Checklist for Smart Contract Developers

Review account and authority validation, state transitions, token handling, deployment controls and the evidence an external audit should cover.

4 minMarch 22, 2026
Solana Sandwich Attacks Explained: How They Work and How to Avoid Them

Security

Solana Sandwich Attacks Explained: How They Work and How to Avoid Them

Understand sandwich attacks on Solana, why the lack of a public mempool does not remove MEV risk, and how to check execution controls.

10 minMarch 21, 2026

Enjoyed this article?

Explore the live data.

Real-time KOL trades, Pump.fun deployer intel, and 1,200+ ranked Solana & Robinhood Chain tools — free to explore.

Open the KOL Tracker