🛡️ Level 2 - "Staying safe"

Practice attacks and defense on testnet · spot traps, reject them, revoke access

Level 1 taught you to use the wallet: address, network, gas, a transfer, approve. Level 2 teaches you not to lose funds: what typical attacks (drainers) look like, which red flags give them away, and how to close the approvals you have granted.

Go in order: first the three traps (you see the attack and the wallet's detector firing), then defense (you revoke a dangerous approval yourself), and at the end - a recap with a checklist.

⚙️ Where things run. The traps are a demo stand: live, they run on a disposable local test chain (anvil, Docker) on the developer's machine. The published site has no backend - there the traps open as a walkthrough without a live run. The defense lesson (revoke) runs on live Sepolia. Everything is on test networks; no real funds are involved.
Attacks - recognize and reject
1

"Enter your seed to recover" - seed phishing ✓ opened

The most direct trick: you are talked into entering your seed phrase yourself - fake support, "recovery", a fake wallet. Rule #1: a real wallet/site never asks for the seed. Inside - a safe practice form.

Open the lesson → practice sandbox · no Docker
2

"Reward site" - approve drainer ✓ opened

A dApp asks for an unlimited approve on your token "for a reward" - and the drainer contract takes your whole balance with one transferFrom. The red flag is the F1 detector "UNLIMITED".

Open the trap → demo stand
3

"Reward by signature" - permit drainer ✓ opened

permit (EIP-2612) is an off-chain signature of an approval, more dangerous than a normal approve: you pay no gas, yet you grant access. The detector shows "A permit is a permission", an unlimited value, the spender and the deadline.

Open the trap → demo stand
4

"You got an airdrop!" - fake airdrop ✓ opened

An unrequested "gift" is bait. To "claim" it, you are asked to approve your real token, not the gift. The rule: do not interact with unrequested tokens, check the whole address.

Open the trap → demo stand
5

Access to all your NFTs - setApprovalForAll ✓ opened

The NFT analogue of unlimited approve: one setApprovalForAll hands an operator your whole collection (future NFTs too) until you revoke. We learn to tell scoped access (one token) from a blanket "everything" grant.

Defense - close the hole
6

Revoking approvals (revoke) ✓ opened

The flip side: you grant an unlimited approve yourself on live testnet and revoke it (allowance ∞ → approve 0). Plus hygiene: Etherscan "Token Approvals", revoke.cash.

Open the lesson → Sepolia · no Docker
7

Look-alike address - address poisoning ✓ opened

The attacker "poisons" your history with a transfer from a look-alike address: the start and end match, the middle differs. Copy the recipient from history - and the money goes to them. We learn to check the whole address and catch the flag.

Open the lesson → Sepolia · no Docker
8

Stop and check ✓ opened

The hat over all the traps: one habit of checking before a signature and a send - address, site, signature request, token. At the end - an interactive "spot the catch".

Open the lesson → practice sandbox · no Docker
Test yourself
★

Polygon: test yourself

Lessons are behind you - now without hints. The wallet shows a request, and you decide for yourself: confirm or reject. Some are traps, some are honest operations. Five vectors: unlimited approve, look-alike address, blind signature, spoofed domain, approval for all NFTs.

Enter the polygon → Polygon 0/5
Recap

🎓 What you learned on Level 2

Four situations - one habit: read the wallet window. In three of them your access to funds is lured away (approve/permit/airdrop), in the fourth the recipient is swapped (a look-alike address). Recognize the red flag, reject it, and revoke what you have already granted.

Takeaway: an approve and a signature are a key you hand out, not an "OK button". Grant the minimum per operation, revoke afterwards, and periodically check the list of granted approvals (Etherscan "Token Approvals", revoke.cash - only via a verified bookmark; a real tool never asks for the seed phrase).

← Level 1 (8 steps) · L1 graduation ·