Sub topic 2
Lookalike domains, punycode, and malicious search ads
This chapter assumes you can read a web address, have used a crypto exchange or wallet app, and know what a seed phrase is. It covers the fake sites and messages that lead into the other scam types in this tutorial.
Lookalike domains and punycode
A lookalike domain imitates a real one with a small change: an extra word, a swapped letter, or a different ending. Attackers also use punycode, an encoding that lets browsers display non-English letters in web addresses. A Cyrillic "о" looks identical to a Latin "o", but punycode turns the Cyrillic version into an xn-- string. The page looks correct and still sits on a different domain.
Check the full hostname against a short list of known-good hosts:
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/"))Malicious search ads
Attackers pay for search ads that rank above real sites. The ad shows a familiar brand and a plausible URL. A high ranking does not prove a site is genuine. Type the address yourself or open a bookmark you saved earlier.
Impersonation: fake support, influencers, and hacked accounts
Scammers copy the photos and names of support staff and well-known influencers. Real exchanges do not message you first to ask for codes or funds. A hacked account may post a giveaway that appears to come from a trusted name. Confirm any claim through the official app or website.
Fake giveaways and double-your-crypto offers
An offer to "send 1 ETH and get 2 back" is a scam. No legitimate project returns more than you send. Once the transaction confirms, the funds are gone.
Wallet drainers, blind signing, and unlimited token approvals
A wallet drainer is a malicious contract. Blind signing means approving a transaction whose details you cannot read. An unlimited token approval lets a contract move all of one token from your wallet, now or later. Read every approval request, set limits to the amount you need, and revoke old approvals with a reputable approval checker.
Address poisoning and copy-paste mistakes
Address poisoning sends a tiny transaction from a fake address that resembles one you use. The fake address then appears in your transaction history. Copying from history can paste the wrong address. Compare the full address, not only the first and last few characters.
Pig butchering: from wrong-number message to total loss
A pig butchering scam starts with a friendly message and builds trust over weeks. The scammer then steers the victim to a fake trading app that shows growing profits. When the victim tries to withdraw, the app demands a fee or tax. The victim loses the money, and recovery scammers may contact them later.
Exercise
A site at a URL starting with coinbase.com asks you to sign in, but the hostname is coinbase.com.login-verify.example. Why is it not the real exchange, and what should you do?
Show answer
The real domain is the part right before the first top-level domain, which here is login-verify.example. The name coinbase.com appears only as a prefix, so the site is controlled by someone else. Do not sign in. Navigate to the exchange by typing its address or opening a saved bookmark.