Wallet security is the set of habits and tools that keep crypto from being lost or stolen. In crypto there is usually no bank to reverse a fraudulent transaction, so a single mistake, such as typing a seed phrase into a fake website or signing a malicious approval, can empty a wallet in seconds. Active traders face extra exposure because they connect to many apps, sign many transactions and keep funds on exchanges and in hot wallets.
Key takeaways
- On an exchange, the exchange controls your keys; in self-custody, you do, and nobody can recover your funds if the keys are lost or stolen.
- Your seed phrase is the master key: never type it into a website, app, chat or cloud document.
- Most modern thefts happen through signatures, not stolen seeds: malicious approvals and permit signatures let drainers move your tokens.
- Split funds between cold storage, a hot wallet for daily activity, and exchange balances sized to what you are actively trading.
- Exchange API keys for bots should have withdrawals disabled and be restricted to specific IP addresses.
On this page
Custodial vs self-custody
| Custodial (exchange) | Self-custody (your wallet) | |
|---|---|---|
| Who holds the keys | The exchange | You |
| Main risks | Exchange failure, hacks, account freezes, account takeover | Lost keys, phishing, malicious signatures, malware |
| Recovery | Password reset and support | None, unless you set up a recovery method in advance |
| Best for | Active trading balances, fiat on-ramps | Long-term holdings, DeFi use |
The FTX collapse in November 2022 showed the custodial risk; see CEX vs DEX. Self-custody removes that risk but makes you the security team.
On exchanges, protect your account with a unique password, an authenticator app or hardware security key for two-factor authentication (not SMS, which is vulnerable to SIM-swap attacks), withdrawal address allowlists and anti-phishing codes where offered.
Seed phrases
A self-custody wallet is generated from a seed phrase (also called a recovery phrase), usually 12 or 24 words. Anyone who has these words controls every account derived from them.
Practical rules:
- Write it down on paper or stamp it in metal. Store copies in separate secure locations.
- Never photograph it, store it in cloud notes, email it, or keep it in a password manager connected to the internet unless you fully understand the trade-off.
- Never enter it on a website, browser extension prompt or form. No legitimate support agent, airdrop or "wallet validation" will ask for it.
- Test recovery with a small amount before relying on a new wallet.
An optional passphrase (sometimes called the 25th word) adds protection if the seed is found, but if you forget it, funds are lost.
Hardware wallets
A hardware wallet keeps private keys on a dedicated device and signs transactions internally, so keys never touch your computer. It protects against malware stealing keys, but not against you approving a malicious transaction.
Use it well:
- Buy directly from the manufacturer or an authorized seller, never secondhand.
- Read what the device screen shows before confirming. If it shows an unreadable hex blob ("blind signing"), treat that as a warning, especially for large amounts.
- Keep firmware updated through the official app.
The February 2025 theft of about $1.5 billion from the exchange Bybit, attributed by the FBI to North Korean hackers, happened through a compromised web interface that showed signers a legitimate-looking transaction while the underlying transaction handed over control of the wallet. Even multi-signature setups with hardware wallets can be defeated if signers approve what they cannot verify.
Token approvals and revoking them
To let a DEX or protocol move your tokens, you sign an approval (allowance) for its smart contract. Many apps request an unlimited approval so you do not need to approve again. If that contract is later exploited, or if you approved a malicious contract, your tokens can be taken at any time without another signature from you.
Some tokens also support permit signatures, which grant approval through an off-chain signed message rather than a transaction. Drainers like these because the signature costs no gas and looks harmless.
Worked example: an old approval
A trader approved a DeFi protocol to spend unlimited USDC two years ago and has not used it since. The wallet now holds 25,000 USDC. If that protocol's contract is exploited, the attacker can pull all 25,000 USDC. Had the trader approved only the 2,000 USDC needed for that one trade, exposure would be zero once the trade completed, or 2,000 USDC at most.
Good habits:
- Approve only the amount you need when the interface allows it.
- Review and revoke old approvals periodically using a block explorer's approval checker or a reputable revoke tool. Revoking costs a small gas fee.
- Use a separate wallet for experimenting with new apps.
Drainers and phishing
Drainers are malicious kits that, once you connect your wallet and sign, transfer your tokens and NFTs to the attacker. They are spread through:
- Fake websites that copy real DEXs, wallets and launchpads, often promoted through search ads.
- Hacked social media accounts of projects and influencers posting "mint" or "claim" links.
- Direct messages offering support, jobs or collaborations.
- Fake browser extensions and wallet apps.
Defenses:
- Bookmark the sites you use and navigate from bookmarks.
- Treat any urgent "claim now" or "your wallet is compromised, verify here" message as hostile.
- Read signature requests. Wallets increasingly simulate transactions and show what will leave your wallet. If the simulation shows assets leaving that you did not expect, reject it.
- Never sign messages you do not understand, especially permits and "setApprovalForAll" requests.
Fake airdrops
Unknown tokens sometimes appear in your wallet. Many are bait: the token's name or website directs you to a site that drains your wallet when you try to sell or claim. Do not interact with unexpected tokens. Hide them in your wallet interface instead. See airdrops and points farming for how real airdrops work.
Address poisoning
Attackers send tiny or zero-value transfers from an address that looks like one you use, matching the first and last few characters. For example, your real counterparty might be 0x7a3F...9c21, and the attacker's 0x7a3E...9c21. The fake address then appears in your transaction history. If you copy an address from history, you may send funds to the attacker.
Defenses:
- Copy addresses from a saved address book or the original source, not from transaction history.
- Check the full address, not just the beginning and end.
- Send a small test transaction before a large one.
A hot and cold split for traders
A practical structure for someone with a $40,000 crypto portfolio who trades actively:
| Location | Amount | Purpose |
|---|---|---|
| Hardware wallet (cold) | $30,000 | Long-term holdings; rarely connected |
| Exchange account | $7,000 | Active trading and margin |
| Hot wallet | $2,500 | DeFi and on-chain trading |
| Burner wallet | $500 | Testing new apps, mints and unknown sites |
The idea is that one compromised wallet or one failed exchange cannot take everything. Move profits from hot to cold regularly. Adjust the proportions to your own activity.
API key safety
Trading bots and portfolio trackers connect to exchanges with API keys. A leaked key with withdrawal rights can empty an account.
- Create separate keys per bot or service.
- Disable withdrawals on every trading key.
- Restrict keys to specific IP addresses where the exchange allows it.
- Store keys in environment variables or a secrets manager, never in code you share or commit to a public repository.
- Delete keys you no longer use.
- Be wary of third-party bots or "copy trading" services that ask for keys with broad permissions. See building trading bots.
Telegram trading bots that hold your private keys carry similar risk; see meme coin trading bots.
If something goes wrong
- Move remaining funds to a new, clean wallet with a new seed phrase immediately.
- Revoke approvals on the compromised wallet if any assets remain.
- Report the theft to the police and, where relevant, to the exchange the funds went to.
- Ignore anyone offering to recover stolen crypto for a fee. Recovery scams target victims right after a theft. See trading scams.
Common mistakes
- Storing the seed phrase digitally.
- Signing transactions without reading them.
- Leaving unlimited approvals on old contracts.
- Using one wallet for everything.
- Copying addresses from transaction history.
- Giving API keys withdrawal permissions.
FAQ
What is the safest way to store crypto?
For long-term holdings, a hardware wallet bought from the manufacturer, with the seed phrase backed up offline in secure locations, is the standard approach. Keep only what you actively trade on exchanges and in hot wallets.
How do I revoke token approvals?
Use a block explorer's token approval checker or a reputable revoke tool, connect the wallet, and revoke allowances you no longer need. Each revocation is an on-chain transaction with a small fee.
What is a wallet drainer?
A drainer is a malicious script, usually on a fake website, that tricks you into signing approvals or transfers that move your assets to an attacker. Reading signature requests and using only bookmarked sites are the main defenses.
What is address poisoning?
It is a scam in which an attacker sends a small transfer from an address that looks like one you use, hoping you will copy it from your history. Always copy addresses from a trusted source and check the full string.