Sub topic 14
Defensive habits: verification, hardware wallets, and limited approvals
This chapter assumes you know what a wallet, a seed phrase, and a token approval are, and that you have sent crypto before. It does not repeat how each scam works. It turns what you already know into habits you can follow every time.
Crypto payments cannot be reversed, so no one can undo a mistake for you. Your defenses have to work before you sign. Three habits cover most of the risk:
- Verify where you are and who you are talking to.
- Keep keys on a device that scammers cannot reach remotely.
- Limit how much a signature can do.
Habit 1: Verify before you click, send, or sign
Reach sites by a path you control
Most phishing succeeds because the victim arrived through a link someone else chose. That link might be in an email, a direct message, or a paid search ad. Use these rules instead:
- Bookmark your exchange, wallet, and DeFi sites once, after checking the address carefully. Open them only from the bookmark.
- Type the address yourself or use the bookmark when you follow a message that says "your account is at risk". Do not tap the link in the message.
- Treat a search ad as untrusted, even when the ad shows a familiar brand name. Ads can send you to lookalike domains.
- Install apps only from the publisher's link on its official website, and check the developer name in the app store.
The key question is which host the browser connects to. A URL that starts with a familiar name can still point somewhere else. In coinbase.com.login-verify.example, the real host is login-verify.example. The brand name is only a subdomain label. The script below compares the exact hostname to an allowlist, as a model of the check you do by eye.
from urllib.parse import urlparse
OFFICIAL_HOSTS = {"coinbase.com", "www.coinbase.com"}
def check_url(url: str) -> str:
host = (urlparse(url).hostname or "").lower()
if host in OFFICIAL_HOSTS:
return "matches an official host"
if host.startswith("xn--") or ".xn--" in host:
return "punycode label: possible lookalike characters"
return "not on the allowlist: do not sign in"
print(check_url("https://www.coinbase.com/"))
print(check_url("https://coinbase.com.login-verify.example/"))The output is matches an official host for the first URL and not on the allowlist: do not sign in for the second. Read a hostname from right to left, starting at the first single slash. The part just before the top-level domain, such as .com, identifies the owner.
Verify people through a second channel
An unexpected message that asks for money, a login, or a signature is suspect, even when it appears to come from a friend or from support. Confirm it through a channel you already trust:
- Call a known number, or use the official support page you reached by bookmark.
- Remember that real support staff never ask for your seed phrase, never ask you to "validate" your wallet, and never start a private conversation first.
- Pause when someone applies urgency. A deadline is a reason to slow down.
Verify addresses completely
Address poisoning depends on people checking only the first and last few characters. Attackers generate addresses that match those ends. The function below shows why a partial comparison fails.
def looks_alike(a: str, b: str, n: int = 4) -> bool:
"""True if two different addresses share the same first and last n characters."""
return a != b and a[:n] == b[:n] and a[-n:] == b[-n:]
known = "0xAbCd1234567890aaaaaaaaaaaaaaaaaaaaaa9876"
incoming = "0xAbCd1234567890bbbbbbbbbbbbbbbbbbbbbb9876"
print(looks_alike(known, incoming)) # True: same ends, different addressPractical rules:
- Save trusted recipients in your wallet's address book or your exchange's withdrawal allowlist. Pick from that list.
- Never copy a recipient from your transaction history. A poisoned entry looks like a past contact.
- Compare the whole string, not the ends. If you must paste, check the middle characters too.
- Send a small test amount before a large first transfer to a new address, and wait for it to arrive. The fee is small compared with the risk.
- Paste, then look. Some malware swaps clipboard contents, so check the pasted value before you confirm.
Habit 2: Protect the keys
Seed phrases stay offline and secret
Your seed phrase is the wallet. Anyone who has it can take everything, and no support team can restore the funds. Follow these rules:
- Write it on paper or stamp it on metal. Do not photograph it, store it in cloud notes, email it, or type it into a website.
- Store it somewhere physically secure, and consider a second copy in another location.
- Enter it only when you restore your own wallet, on a device or wallet app you set up yourself.
- Treat any prompt for it, in any form, as a scam.
Use a hardware wallet for meaningful balances
A hardware wallet is a small device that holds your private keys and signs transactions inside it. The keys never reach your computer or phone, so malware on that machine cannot copy them.
| Risk | Software wallet only | Hardware wallet |
|---|---|---|
| Malware reads the key from your device | Possible | Key stays on the device |
| Fake site asks you to sign something harmful | You can still approve it | You can still approve it, but you see the details on the device screen |
| Seed phrase phished | Funds lost | Funds lost |
| Device lost or broken | Depends on backup | Restore from seed phrase |
A hardware wallet does not stop you from approving a bad request. It protects the key, but you still decide what to sign. Its screen is the one display that malware on your computer cannot alter. Read the recipient address and amount there, not only in the browser.
Buy from the manufacturer or an authorized reseller. Never use a device that arrives already set up, and never use one that comes with a written seed phrase. Create your own phrase during setup.
Split your funds by purpose
Use more than one wallet:
- A vault wallet on a hardware device for long-term holdings. It rarely connects to any website.
- A spending wallet with a small balance for new apps, mints, and experiments.
If you connect the spending wallet to a malicious site, the loss is limited to that balance.
Secure the accounts around the wallet
Exchange and email accounts are targets too. Use a unique password for each account in a password manager. Turn on two-factor authentication with an authenticator app or a hardware security key. SMS codes are weaker, because attackers can hijack phone numbers. Enable withdrawal address allowlists and an anti-phishing code, if your exchange offers them.
Habit 3: Limit what a signature can do
A wallet drainer needs one thing from you, which is a signature. Your goal is to make that signature as narrow and as short-lived as possible.
Understand the approval
A token approval lets a contract spend a token from your wallet up to an amount you set. Many apps request the maximum value, often called an unlimited approval, so you do not have to approve each time. That convenience is also the risk. If the contract is malicious or is later compromised, it can take the whole balance of that token, long after you stopped using the app.
Rules for each request
- Read what the wallet shows before you confirm. Ask who the spender is, which token is involved, and how much it may spend.
- Edit the amount. Many wallets let you replace "unlimited" with the exact amount you need.
- Reject requests you cannot read. Disable blind signing, which means approving data your wallet cannot decode, unless you have a specific reason to turn it on.
- Be cautious with off-chain signatures. Signatures such as permit messages cost no gas and do not show up as a transaction. They can still authorize someone to move your tokens.
- Be suspicious of any request that appears after you connect to an unfamiliar site, especially one with a prompt like "verify your wallet" or "claim".
- Use the spending wallet for anything new.
Review and revoke regularly
Approvals remain active until you cancel them. Once a month, and after you try any new app, check your approvals with a block explorer's token approval checker or a dedicated revocation tool. Open it through a bookmark, since fake revocation sites exist. Revoke approvals you do not recognize or no longer need. Each revoke is an on-chain transaction that costs a network fee. Because revoking takes effect only once the transaction confirms, act quickly if you suspect a bad approval.
A pre-signing routine
Combine the habits into one decision flow that you run every time money or a signature is involved.
Common errors
- Verifying the website but not the recipient address, or the reverse.
- Trusting the first search result because it carries a sponsored label.
- Buying a hardware wallet from a marketplace seller, or accepting one that came with a "recovery card".
- Approving "unlimited" in a wallet that offers a custom amount.
- Never revoking approvals, so old permissions stay open for years.
- Keeping the whole balance in the wallet that connects to every new app.
Exercise
You are about to move 2 ETH to a new address that you copied from your transaction history. The first four and last four characters match an address you used last week. Name three habits from this chapter that apply and what each one tells you to do.
Show answer
First, do not copy recipients from history, since address poisoning plants lookalike entries there. Take the address from your saved address book or from the source you trust. Second, compare the entire address, not just the ends, because attackers match the first and last characters. Third, send a small test amount to the new address and confirm it arrived before you send the full 2 ETH. Also check the recipient address on the hardware wallet screen before you confirm.
Exercise
A trading site asks you to approve a token with "unlimited" spending for a contract you do not recognize. What should you do, and what should you do later if you already approved it?
Show answer
Reject the request, or edit the amount to the exact figure you need, and only continue if you can identify the spender and trust the site, which you reached from a bookmark. If you already approved it, open an approval checker through a bookmark and revoke that approval right away. Revoking costs a network fee but removes the contract's ability to spend your tokens. Using a low-balance spending wallet for such experiments limits the damage.