Sub topic 13
Exchange controls that limit damage: allowlists, delays, anti-phishing codes
This chapter assumes you have already enrolled an authenticator app or passkey on your exchange account, as covered in the enrollment chapter. It also assumes you know the main takeover routes: phishing, credential stuffing, SIM swapping and session theft. Strong sign-in lowers the chance that an attacker gets in. The controls in this chapter assume one might get in anyway, and they limit what the attacker can do next.
Why account-side controls matter
Sign-in security is a single gate. If an attacker steals a live session, tricks you into approving a prompt, or compromises your device, that gate is already open. The attacker's goal is then a withdrawal to an address they control. Crypto transfers cannot be reversed, so the exchange's last chance to stop the loss is before the transaction is broadcast.
Exchange-side controls add friction at that point. They fall into three groups:
- Where funds can go. Withdrawal address allowlists.
- When funds can leave. Cooling-off delays after security changes.
- How you recognize the real exchange. Anti-phishing codes in email.
Names and availability differ between exchanges. Some call allowlists "whitelists" or "trusted addresses", and some do not offer every control. Check your exchange's security settings page and use what exists.
Withdrawal address allowlists
An allowlist is a list of destination addresses you have approved in advance. When the allowlist is enforced, the exchange rejects any withdrawal to an address not on it.
The control works because it changes what an attacker must do. Without an allowlist, a thief with access can type any address and withdraw. With one, the thief must first add a new address. That is a separate security-sensitive action, and you can make it expensive in several ways:
- It can require a fresh second factor, ideally a passkey or security key.
- It can start a cooling period during which the new address cannot receive funds.
- It can trigger an email or push notification to you.
Most exchanges offer two modes. In the first, the allowlist is optional and you can still withdraw elsewhere. In the second, withdrawals are restricted to allowlisted addresses only. The restricted mode is the one that protects you. An allowlist that can be bypassed with a single click gives little protection.
Gotchas with allowlists
- Turning the allowlist off is also an attack path. A good exchange applies the same delay and verification to disabling it as to adding an address. Test this on your own account: if you can disable the allowlist and withdraw within minutes, the control is weak.
- Check the address, not the label. Labels are free text. Attackers who control a session may rename an entry. Compare the first and last several characters of the actual address.
- Clipboard malware replaces addresses. Some malware swaps a copied address for the attacker's. Verify the pasted value on screen before you confirm.
- Network matters. The same address string can be valid on several networks. Sending on the wrong network can lose funds, so allowlist entries often record the network too.
- Keep the list short. Every entry is a place funds can go. Remove addresses you no longer use.
Withdrawal delays and cooling-off periods
A delay is a waiting period before funds can leave after a risky change. Exchanges apply delays in a few places:
| Trigger | Typical effect |
|---|---|
| New withdrawal address added | Address cannot receive funds for a set time, often 24 hours |
| Password reset or recovery | Withdrawals blocked for a period, often 24 to 72 hours |
| New authenticator or passkey added | Withdrawals limited or blocked for a period |
| Phone number or email changed | Withdrawals blocked for a period |
The exact periods vary and the figures above are examples. Look up your own exchange's values.
The reasoning is about time. A fast attacker needs to complete the whole sequence in minutes: log in, change settings, withdraw. A delay stretches that sequence over a day or more. During that time the exchange sends notifications to your existing email and devices, and you have a chance to notice and freeze the account.
The delay only helps if you read those notifications. If the attacker also controls your email, they can delete the warning, so your email account needs the same passkey or authenticator protection as the exchange.
A small model of the rule
The code below models the core rule: an address must be on the allowlist and must have been there longer than the cooling period. It is a teaching model, not an exchange implementation.
from dataclasses import dataclass, field
from datetime import datetime, timedelta, timezone
COOLING = timedelta(hours=24)
@dataclass
class Account:
allowlist_only: bool = True
addresses: dict = field(default_factory=dict) # address -> time added
def add_address(self, address, now):
self.addresses[address] = now
def can_withdraw(self, address, now):
if not self.allowlist_only:
return True, "allowlist not enforced"
added = self.addresses.get(address)
if added is None:
return False, "address is not on the allowlist"
if now - added < COOLING:
return False, "address is still in its cooling period"
return True, "ok"
if __name__ == "__main__":
t0 = datetime(2026, 11, 27, 12, 0, tzinfo=timezone.utc)
acct = Account()
acct.add_address("bc1q-owner-address", t0 - timedelta(days=30))
acct.add_address("bc1q-attacker-address", t0)
print(acct.can_withdraw("bc1q-owner-address", t0))
print(acct.can_withdraw("bc1q-attacker-address", t0))
print(acct.can_withdraw("bc1q-attacker-address", t0 + timedelta(hours=25)))The first call succeeds because the owner's address is a month old. The second fails because the attacker's address was added just now. The third succeeds, which shows the limit of the control: a delay buys time and does not block the attacker forever. The time only matters if you act during it.
Anti-phishing codes
An anti-phishing code is a word or short string you choose and the exchange stores. The exchange then includes it in every genuine email it sends you. An email that claims to come from the exchange but lacks your code is suspect.
This works because an attacker sending a fake email does not know your code. It protects against a narrow case, and you should know where it stops:
- It protects email, not websites. A phishing site can look perfect without showing your code. Passkeys, which are bound to the real site, defend against fake sites. The anti-phishing code defends against fake emails.
- It fails if you stop checking. Its value depends on you treating a missing code as a reason to stop. Many users notice the code only when it is present, and never notice when it is absent.
- It fails if the attacker can read your mail. A person with access to your inbox can copy a genuine email and reuse the code.
- It is not a password. Do not use a secret you use elsewhere. Pick something meaningless to others and unique to this purpose.
- Not every message carries it. Check which notifications include the code. Exchanges usually add it to email but often omit it from SMS and push messages.
Never follow a link in an email just because the code is present. Open the exchange by typing its address or using a saved bookmark. The code is one signal among several.
Putting the controls together
No single control is sufficient. They cover different gaps:
| Attack | Passkey or app | Allowlist | Delay | Anti-phishing code |
|---|---|---|---|---|
| Phishing site steals password | Passkey blocks it | Limits damage | Gives time | No effect |
| Stolen session | No effect | Limits destination | Gives time | No effect |
| Fake email with link | Passkey blocks login on a fake site | Limits damage | Gives time | Helps you spot it |
| SIM swap | App or passkey avoids SMS | Limits destination | Gives time | No effect |
Read the table by column to see what each control adds. Read it by row to see that every attack has at least two layers against it.
A sensible order for setting these up:
- Enable the allowlist in restricted mode.
- Add only the addresses you really use, and compare each one character by character.
- Confirm that notifications reach an email account you protect strongly.
- Set an anti-phishing code and check that it appears in a real email from the exchange.
- Read the exchange's documentation on delays after password resets and device changes, and note the periods.
Exercise
An attacker steals your active session at 10:00. The exchange enforces an allowlist in restricted mode with a 24-hour cooling period on new addresses. The attacker adds their own address at 10:05. When is the earliest the attacker can withdraw to it, and what must happen during that time for the controls to have worked?
Show answer
The earliest is 10:05 the next day, once the 24-hour cooling period ends. The controls work only if you notice the notification (or otherwise detect the change) before then and freeze the account, remove the address and revoke sessions. If the attacker can disable the allowlist or delete the notification email, the delay gives little protection, so check that those actions are also protected.
Exercise
You receive an email that appears to come from your exchange and asks you to confirm a withdrawal address. It does not contain your anti-phishing code. List what you should do and what you should not rely on.
Show answer
Do not click the link and do not reply. Treat the missing code as a warning and open the exchange by typing its address or using a saved bookmark, then check your account and security notifications there. Do not assume the email is fake only when the code is absent, or genuine only when it is present, since an attacker who can read your inbox could copy the code. Report the message to the exchange and check your allowlist and active sessions.