Sub topic 1
How exchange accounts get taken over
This chapter maps the main ways attackers get into centralized exchange accounts. Later chapters cover the defenses in detail. Here the goal is to know which attack each defense is meant to stop.
Prerequisites
This chapter assumes you have:
- Basic familiarity with using a centralized crypto exchange account (deposits, withdrawals, settings).
- An understanding of what a password and two-factor authentication (2FA) are.
- Comfort installing apps on a phone and changing account settings.
No cryptography knowledge is needed yet.
Why exchange accounts are targeted
A centralized exchange holds your assets in an account that you reach with a login. Whoever passes the login controls the account. Three properties make these accounts attractive:
- Value is concentrated. One account can hold thousands or millions of dollars.
- Transfers are final. A blockchain withdrawal usually cannot be reversed. There is no chargeback process like the one for card payments.
- Attacks scale. An attacker can test stolen credentials against thousands of accounts automatically, and the payoff for a single success is large.
So the attacker rarely needs to break any cryptography. The usual path is to get past the login, or to trick a person or a support team into letting them past it.
The attack chain
Most takeovers follow the same sequence. The attacker obtains something that proves identity, uses it to log in, and then moves funds out before the owner notices.
The diagram shows two points where defenders can act. The first is the login, where strong factors keep the attacker out. The second is the withdrawal, where exchange controls limit damage if the login is lost anyway.
Credential theft and credential stuffing
A credential is the information used to prove who you are, such as a username and password.
Attackers collect credentials in several ways:
- Data breaches. When some other website is hacked, its user list leaks. Many people reuse the same email and password on an exchange.
- Infostealer malware. This is software that runs on your computer and copies saved browser passwords, cookies and wallet files, then uploads them to the attacker.
- Keyloggers and clipboard tools. These record what you type or copy.
Credential stuffing is the automated use of leaked email and password pairs against a different service. A script tries each pair on the exchange login page. It works because of password reuse, not because the exchange was breached. Exchanges can slow it down with rate limits and bot detection, but a reused password that matches is a valid login from the exchange's point of view.
A password that is unique and long defeats stuffing. It does not defeat phishing or malware, which capture the password itself.
Phishing
Phishing is tricking a person into giving credentials to an attacker. The attacker builds a fake page that looks like the exchange login and sends the victim there.
Typical delivery methods:
- An email or text claiming "suspicious login" or "withdrawal pending, cancel here".
- A paid search ad that appears above the real exchange site.
- A direct message from a "support agent" or a fake giveaway.
- A lookalike domain, such as one that swaps a letter or adds a word.
Modern phishing kits act as a real-time relay. The victim types a password and a 2FA code into the fake page. The kit forwards both to the real site at once and logs the attacker in. This is called an adversary-in-the-middle attack. It defeats any code that a human can read and retype, which includes SMS codes and authenticator app codes. This is the central reason the tutorial later introduces passkeys, which are tied to the real site's domain.
Victim --> fake-exchange.example --> real exchange
password + 6-digit code relayed within secondsA relay needs the code to still be valid. A 30-second code is enough time for an automated kit.
SIM swapping and SMS interception
Many exchanges still offer a code by text message as a second factor. This depends on your phone number, and the phone number is controlled by your mobile carrier.
SIM swapping is when an attacker convinces the carrier, or bribes an employee, to move your number to a SIM card the attacker holds. The attacker then receives your texts, including login codes and password reset links. Related attacks include number porting to another carrier and, less commonly, exploiting weaknesses in the telephone signaling network.
The attacker needs only your personal details, which are often available from breaches or social media. No malware on your device is involved, so you cannot detect it by scanning your phone. The first sign is often that your phone loses service.
Session theft
After you log in, the exchange gives your browser a session token, usually stored in a cookie. The token proves you are already logged in so you do not have to enter a password and 2FA code on every page.
If an attacker copies that token, they can use the account without a password or a second factor. Common ways to steal it:
- Infostealer malware reading browser cookie storage.
- Malicious browser extensions.
- Phishing relays that capture the cookie after you complete login.
This is called session hijacking or cookie theft. It is hard to defend against with login strength alone, because the login already happened. Defenses include short session lifetimes, device checks, and re-authentication before sensitive actions such as withdrawals.
Social engineering and support scams
Social engineering means manipulating people rather than software. Two forms matter for exchange accounts:
- Impersonating the exchange. A caller or chat contact claims to be from security and asks you to read out a code, install remote-access software, or "move funds to a safe wallet". Real exchange staff do not ask for your codes or tell you to move coins.
- Impersonating you. The attacker contacts exchange support, claims to have lost their 2FA device, and asks for a reset. If the identity check is weak, support disables your protections for them.
The second form shows why recovery is part of the attack surface. A strong login is only as strong as the weakest path that bypasses it. Recovery planning is covered in a later chapter.
Other routes worth knowing
- Email account takeover. If the attacker controls your email, they can trigger password resets and receive confirmation links. Your email account is effectively a key to your exchange account.
- API key abuse. API keys let programs trade or withdraw on your behalf. A leaked key with withdrawal permission bypasses the login entirely.
- Insider and exchange-side failures. These are outside your control, which is why you limit what a single compromise can do.
Matching threats to defenses
| Attack | What the attacker needs | What stops it |
|---|---|---|
| Credential stuffing | A reused password | Unique passwords, any second factor |
| Phishing relay | You to type secrets on a fake page | Passkeys or security keys (origin binding) |
| SIM swap | Your phone number | App-based or key-based factors instead of SMS |
| Session theft | A copy of your session cookie | Short sessions, device checks, re-authentication |
| Support scam | A weak recovery process | Careful backups, withdrawal delays |
| Leaked API key | The key itself | Limited permissions, IP restrictions |
No single control covers every row. The aim of the tutorial is layering: strong login factors, careful recovery, and exchange controls that limit loss when something fails.
Exercises
Exercise
An attacker finds your email and password in a breach of an unrelated forum, then logs into your exchange account within minutes. Name the attack, and name the habit that made it work.
Show answer
This is credential stuffing. It worked because the same password was reused on the exchange and the forum. A unique password per site would have made the leaked pair useless on the exchange.
Exercise
You use an authenticator app that shows a six-digit code. You type your password and the code into a page reached from a text message, and your account is drained. Which attack is this, and why did the code not protect you?
Show answer
This is a phishing relay (adversary-in-the-middle). The fake page forwarded your password and code to the real exchange immediately, while the code was still valid. A code that a person can read and retype can be relayed, so it does not prove which website you were typing it into.
Exercise
Your phone suddenly shows no signal and you receive login alert emails from your exchange. What is the most likely cause, and which second factor type is the exposed one?
Show answer
A SIM swap is the likely cause. The attacker moved your number to their SIM, so your phone lost service. SMS-based codes are the exposed factor, because the attacker now receives them.