Sub topic 4
Phishing: Fake Emails, Texts, and Login Pages
Assume you know what a cryptocurrency wallet is, have sent crypto before, and use email, messaging apps, and social media. This chapter focuses on phishing, where an attacker tricks you into giving away information or approving an action.
How phishing works
Phishing is a scam that uses a fake message or website to imitate a trusted service. The goal may be to steal:
- An exchange password
- A two-factor authentication code
- A seed phrase or private key
- A wallet signature
- A token approval
- Personal information used to take over an account
A typical attack follows this path:
The blockchain may work exactly as designed. The theft happens because the victim supplied the authorization. A valid transaction signed by the real account is usually difficult or impossible to reverse.
Common phishing messages claim that:
- Your account will be suspended
- A withdrawal needs confirmation
- You received an airdrop or refund
- A security problem requires immediate action
- Support needs remote access or identity verification
Inspect the message and destination
Do not judge a message by its logo, writing quality, or familiar name. Inspect the sender address, reply-to address, link destination, and requested action. A shortened URL or QR code hides the destination and deserves extra caution.
A real domain ends at its registered hostname. In coinbase.com.login-verify.example, the real hostname is login-verify.example, not coinbase.com.
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/"))This check is only a teaching example. Maintain your own allowlist for services you use, and prefer opening the official app or a saved bookmark instead of following an unsolicited link.
Login pages and wallet prompts
A fake login page can capture a password and then immediately ask for a two-factor code. Never enter a seed phrase or private key into a website. No legitimate exchange, wallet provider, or support representative needs it.
A wallet prompt can also be phishing. Read what you are signing, check the connected site, and reject requests you do not understand. “Connect wallet” is not automatically safe, and a signature can authorize an action even when no normal payment screen appears.
Common errors
| Error | Safer response |
|---|---|
| Clicking a link in an urgent message | Open the official app directly |
| Trusting a domain because its name appears first | Read the complete hostname |
| Sharing a two-factor code with “support” | Enter codes only in the service you opened yourself |
| Entering a seed phrase to “verify” a wallet | Stop; the request is fraudulent |
| Approving an unfamiliar wallet prompt | Reject it and investigate the site |
Exercise
You receive a text saying your exchange account will close in 30 minutes. It includes a link to https://exchange.example.security-check.co/login. What should you do?
Show answer
Do not open the link or reply. Open the exchange through its official app or a known bookmark, check the account there, and report the text as phishing.