Two-Factor Authentication2FA

With two-factor authentication, a stolen password alone is not enough to get in: every login also needs proof from something you hold, such as a code from an authenticator app or a hardware security key. Codes sent by SMS are the weakest option, because a phone number can be hijacked.

Passwords leak. They are reused, guessed, phished and sold in bulk. Two-factor authentication adds a second lock that a leaked password cannot open on its own, which is why every serious exchange and broker offers it. But the second lock is not equally strong in every form: a texted code, an app code and a physical security key fail in very different ways. This entry explains how 2FA works, ranks the common methods using official guidance, and shows the attacks each one does and does not stop.

Category
Cryptocurrency and Blockchain
Reading time
7 min
Also called
Two-step verification, Multi-factor authentication, Authenticator app
Updated

Two-factor authentication in plain words

A 2FA login asks for proof from two of three groups: something you know (a password), something you have (a phone or security key) and something you are (a fingerprint).1 The idea is that an attacker who has one of them still lacks the other.

The usual second factors are a one-time code sent by text or email, a code or push prompt from an authenticator app, and a physical security key that plugs into a USB port or connects over NFC.1 Authenticator codes typically refresh about every 30 seconds.2

The methods are not equal. US cyber-security guidance ranks security keys as the strongest option and text or email codes as the weakest.2 A texted code can be stolen through a SIM swap, where a criminal moves your phone number to a SIM card they control.3 See SIM Swap.

How to set up strong 2FA, step by step

  1. Start with your email

    Your email account can reset most other passwords, so protect it first. CISA lists email among the first accounts to put behind MFA.2

  2. Pick the strongest method offered

    Prefer a security key, then an authenticator app; use text or email codes only when nothing stronger is available.2

  3. Save the backup codes offline

    Most services give recovery codes when you enable 2FA. Store them on paper or in a password manager, not in your email.

  4. Remove SMS as a fallback

    If SMS stays on as a backup, a SIM swap can still bypass your app or key. The FBI recommends stronger MFA than SMS, such as security tokens or standalone authentication apps.4

  5. Lock down your phone account

    Add a PIN or password to your mobile carrier account to make a SIM swap harder.3

  6. Never share a code

    Do not give a verification code to anyone who contacted you first; scammers often ask for them.1 See Social Engineering.

  7. Add exchange-level locks

    Where offered, combine 2FA with a Withdrawal Whitelist and an Anti-Phishing Code.

Worked examples

Example 1 — Why guessing a code is hopeless

Odds

An attacker has a trader’s password and tries to guess a 6-digit code. The site allows 5 attempts before it locks the login (a hypothetical limit).

Example 1 — Why guessing a code is hopeless — calculation
Possible 6-digit codes10^6 = 1,000,000
Chance per guess1 in 1,000,000
Chance in 5 guesses5 ÷ 1,000,000 = 0.0005%

Brute force almost never works, so attackers try to steal or intercept the code instead — through phishing pages, fake support calls or SIM swaps.

Example 2 — The cost of SMS codes

SIM swaps

FBI data on SIM-swap complaints shows how fast attacks on texted codes grew.4

Example 2 — The cost of SMS codes — calculation
Complaints, 2018–2020320
Complaints, 20211,611
Losses, 2021More than $68 million
Average per 2021 complaint$68M ÷ 1,611 ≈ $42,200

One year of complaints was about five times the previous three years combined. Once a criminal controls the number, texted reset and login codes go straight to them.4

Example 3 — A fake login page meets two methods

Phishing test

A trader clicks a link in a fake exchange email and lands on a lookalike login page. The attacker forwards everything typed there to the real site in real time (hypothetical case).

Example 3 — A fake login page meets two methods — calculation
PasswordCaptured
Authenticator app codeRelayed within 30 seconds
Security keyRefuses the wrong domain

Codes typed by hand can be relayed, so NIST does not count them as phishing-resistant; a key tied to the real site’s name is.5 See Phishing.

Common 2FA methods compared

AspectHow it worksMain weakness
Text or email codeCode sent to your phone number or inboxWeakest option; a SIM swap redirects texts23
Authenticator app codeApp shows a code that changes about every 30 seconds2Can be typed into a fake site and relayed
App push with number matchingYou confirm a number shown on the login screen2Still depends on you spotting a fake page
Security keyPhysical key over USB or NFC1Can be lost; keep a second key or backup codes

Where traders need 2FA most

  • Exchange and broker logins

    A stolen login can mean withdrawals you cannot reverse. See Centralised and Decentralised Exchanges.

  • Email accounts

    Email is the reset path for almost everything else.2

  • Withdrawals and API keys

    Many platforms ask for 2FA again before a withdrawal or a new API Key.

  • Password managers and cloud storage

    These hold the keys to every other account; CISA lists file storage among the first accounts to protect.2

Advantages and disadvantages

Advantages

  • A leaked or reused password is no longer enough to log in.
  • Strong methods such as security keys also defeat fake login pages.2
  • Free with most authenticator apps and supported by most exchanges.
  • Even weak SMS codes are better than no second factor.1

Disadvantages

  • SMS and email codes can be intercepted or redirected.1
  • Typed codes can be phished and relayed in real time.5
  • Losing the phone or key without backup codes can lock you out.
  • It protects accounts, not a self-custody wallet’s Seed Phrase.

Going deeper

Read as far as you need. Each level builds on the one before it.

What counts as a factor

Beginner

Two passwords are still one factor: both are something you know. Real 2FA mixes categories, such as a password plus a code from a device you hold.1

Fingerprints and face scans usually unlock a device rather than prove who you are to the website, so CISA suggests pairing biometrics with another method.2

Why codes are not phishing-resistant

Intermediate

NIST defines phishing resistance as the ability of the login protocol to stop secrets being disclosed to an impostor, and it requires cryptographic authentication for it.5 Codes that you read and type by hand, whether texted or from an app, do not qualify.5

Security keys built on standards such as WebAuthn/FIDO2 check the name of the site asking for the login, so they will not answer a lookalike domain.5 CISA tells organisations to aim for phishing-resistant MFA.2

What the NIST standard says about phones and email

Advanced

NIST’s digital identity guideline treats out-of-band codes sent over the phone network as a restricted authenticator and does not allow email for out-of-band authentication at all.5

It also covers syncable authenticators, whose keys are copied between devices through a sync service, and bars them from its highest assurance level, AAL3, because their private keys can be exported.5 For most traders the practical lesson is simpler: a hardware key or an app beats SMS, and SMS beats nothing.

Common mistakes

  1. Keeping SMS when better options exist

    Texted codes are the first target of SIM-swap gangs. Switch to an app or a key.4

  2. Reading a code to “support”

    Real support staff do not need your 2FA code. Anyone who asks is trying to log in as you.1

  3. No backup plan

    Without recovery codes or a second key, a lost phone can mean days of account recovery.

  4. Protecting the exchange but not the email

    If the inbox falls, password resets follow. Put the strongest method on email first.2

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1Which 2FA method does CISA rank as the strongest?
Q2A caller says he is from your exchange and asks you to read out the 6-digit code you just received. What is the safest move?

Key points to remember

  1. 2FA means a password alone cannot open the account.
  2. Security keys are the strongest method; text and email codes the weakest.
  3. Typed codes can be phished; key-based logins check the site’s real name.
  4. Protect your email first, then exchanges and password managers.
  5. Never share a code, and store backup codes offline.

Frequently asked questions

Is SMS 2FA worse than having none?

No. It is the weakest method, but the FTC calls it better than nothing when a site offers no alternative.1 Switch to an app or a key as soon as you can.

What happens if I lose my phone?

You recover access with the backup codes or second key you saved when setting up 2FA. Without them you face the service’s identity checks, which can take days.

Does 2FA protect my self-custody wallet?

Not directly. A self-custody wallet is controlled by its recovery phrase, and anyone who has it can access the funds regardless of 2FA.6 See Custodial Wallet and Self-Custody.

Further learning

  • SIM Swap

    The attack that breaks SMS codes.

  • Phishing

    Fake login pages and how to spot them.

  • Social Engineering

    Why attackers ask for codes instead of guessing them.

  • API Key

    Another way into your exchange account that needs locking down.

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. Federal Trade Commission. Use Two-Factor Authentication to Protect Your Accounts (opens in a new tab) Checked .
  2. Cybersecurity and Infrastructure Security Agency (CISA). Require Multifactor Authentication (opens in a new tab) Checked .
  3. Federal Trade Commission. SIM swap scams: How to protect yourself (opens in a new tab) Checked .
  4. FBI Internet Crime Complaint Center (IC3). Criminals Increasing SIM Swap Schemes to Steal Millions of Dollars from US Public (I-020822-PSA) (opens in a new tab) Checked .
  5. NIST. SP 800-63B-4: Digital Identity Guidelines — Authentication and Authenticator Management (opens in a new tab) Checked .
  6. ethereum.org. Ethereum security and scam prevention (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.