Passwords & identity

What Is the 2FA Authentication Process? A Step-by-Step Guide

2FA asks for two different kinds of proof before it lets you in: usually a password plus a code, a push approval or a security key.

Cysoro Security TeamPublished · 8 min read
482 916✓ Step 1 Step 2 PASSWORDS & IDENTITY How 2FAworks Two proofs, one login.
Quick answer

The 2FA authentication process asks you to prove your identity twice, with two different kinds of evidence. First you enter your password, which is something you know. Then you provide a second factor from a different category, usually something you have, such as a code from an authenticator app, a push approval or a hardware security key. The service checks both proofs before it grants access.

Key takeaways

  • 2FA needs two different factor types — a password plus a second password is not 2FA.
  • Authenticator apps and security keys are stronger than SMS codes, which can be intercepted or SIM-swapped.
  • Phishing-resistant methods such as passkeys and FIDO2 keys are the strongest second factor CISA recommends.

Your password is probably already in a breach somewhere. Two-factor authentication is the control that keeps that from being enough: even with your password, an attacker still needs a second proof they do not have.

What is the 2FA authentication process?

The 2FA authentication process asks you to prove your identity twice, with two different kinds of evidence, before a service lets you in. You enter your password first, then a second factor from a different category.

NIST defines the idea plainly: an authentication system that requires more than one distinct authentication factor for successful authentication. The three factor types are something you know, something you have, and something you are.

That last point matters. A password plus a security question is not 2FA, because both are something you know. A password plus a code from an authenticator app is 2FA, because the code proves you have the phone that holds the secret.

What are the three authentication factors?

NIST's three factor categories are something you know, something you have, and something you are. Every 2FA method is a combination of two of them, and the strength of the combination depends on how independent the two proofs are.

FactorMeaningExamplesHow it is stolen
Something you knowA secret you rememberPassword, PIN, passphrasePhishing, breach dumps, guessing
Something you haveAn object you holdAuthenticator app, security key, smart cardDevice theft, SIM swap, push fatigue
Something you areA trait you carryFingerprint, face scan, iris scanSpoofing, and it cannot be changed if leaked

A biometric on its own is not a complete authenticator under NIST's guidance: it must be bound to a device or combined with another factor. A fingerprint that unlocks your phone's passkey is two factors in one event — the key (something you have) plus the biometric that unlocks it.

Location and behaviour sometimes appear in vendor material as extra factors, but NIST treats them as risk signals for an adaptive policy, not as standalone authentication factors.

How does the 2FA authentication process work, step by step?

The process has the same shape on almost every service, whether the second factor is a code, a push prompt or a key. The details change; the order does not.

The 2FA process, step by step 1Enter loginusername andpassword 2Server checksthe passwordagainst its record 3Second factoris requested:code, push or key 4You provide ittype the code,approve or tap 5Access grantedboth proofs pass,session starts If either proof fails, the login fails — a correct password alone is never enough.
Five steps from login to access. Illustration by Cysoro.
  1. Enter your username and password. This is the first factor: something you know.
  2. The server checks the password. If it is wrong, the login stops here and no second factor is requested.
  3. The server asks for the second factor. It may ask for a code, send a push prompt, or wait for a security key.
  4. You provide the second factor. You type the six-digit code, approve the prompt, or tap the key.
  5. The server verifies both proofs and grants access. If either fails, you stay locked out, and the attempt is usually logged.

Behind the scenes, the second factor is checked differently depending on the method. A time-based code is compared with the code the server generates from the same shared secret. A push approval is a signed response from your registered device. A security key signs a challenge that is bound to the real website, so a fake site cannot reuse it.

How do you set up 2FA?

Setting up 2FA takes about two minutes per account, and the steps are the same on Google, Microsoft, Apple and most other services. Go to the account's security settings and find the two-step or two-factor option.

First, verify your password, then choose your second factor. For an authenticator app, the service shows a QR code; you scan it with the app, and the app starts generating codes. For a security key, you insert the key and tap it when prompted. For SMS, you enter your phone number and confirm the code it sends.

Then save your backup codes. Most services show a set of one-time backup codes when you enable 2FA. Print them or store them in a password manager, somewhere separate from the device that holds your second factor. If you lose your phone without backup codes, recovery is slow and sometimes impossible.

Finally, test it: sign out and sign back in to confirm the second factor works. Do this while you still have the setup screen open, not the next time you urgently need the account.

What are the main 2FA methods, weakest to strongest?

Not all second factors are equal. CISA's fact sheet on phishing-resistant MFA ranks them from strongest to weakest, and the ranking is the most useful guide you will find for choosing a method.

MethodFactorPhishing-resistant?Main weakness
FIDO2 key / passkeySomething you haveYesKey must be issued and replaced if lost
Push with number matchingSomething you havePartlyCan still be relayed by a real-time phishing proxy
Authenticator app (TOTP)Something you haveNoCode can be typed into a fake page
Push without number matchingSomething you haveNoPush bombing and user error
SMS or voice codeSomething you haveNoSIM swap, interception, SS7 attacks

CISA calls phishing-resistant MFA the gold standard and strongly urges organisations to implement it, while noting that any form of MFA is better than no MFA. That is the right order of priorities: turn on whatever your service offers today, then upgrade to the strongest method you can.

NIST's current guidance, SP 800-63B-4, finalised in July 2025, draws the same line. At Authenticator Assurance Level 2, the level most personal and business accounts target, the verifier must offer at least one phishing-resistant option, and SMS codes are labelled restricted.

How does an authenticator app code work?

An authenticator app generates a time-based one-time password, or TOTP. When you set it up, the service shares a secret key with your app by QR code, and both sides then generate the same six-digit code every 30 seconds from that secret and the current time.

The code needs no network connection, which is why it works on a plane and why it cannot be intercepted in transit like an SMS. The trade-off is that the code can be phished: if you type it into a fake login page, the attacker can relay it to the real site within its 30-second window.

That is why CISA ranks app-based authentication below FIDO2 keys but above SMS. It is a large improvement over a password alone, and it is free, which makes it the best default for most accounts. Google Authenticator, Microsoft Authenticator and Authy all work the same way.

Why does 2FA matter if your password is strong?

A strong password protects you against guessing, but not against phishing, keylogging or breach dumps. If your password appears in a breach, an attacker can try it on every service where you reused it, and that is exactly how most account takeovers start.

2FA breaks that chain. With MFA enabled, if one factor such as a password becomes compromised, unauthorised users will be unable to access the account if they cannot also provide the second factor, as CISA puts it in its fact sheet. The attacker needs your phone or your key as well as your password.

That is also why a password manager matters: it gives you a unique password per site, so one breach does not hand over every account, and it will not autofill on a fake domain.

Check whether a password you use already appears in known breaches with our free pwned password checker.

NIST's 2FA glossary entry defines the three factors — something you know, something you have, and something you are — that this whole process rests on.

CISA's fact sheet on implementing phishing-resistant MFA ranks FIDO/WebAuthn and PKI-based methods as the strongest, ahead of app-based codes and SMS.

How do attackers defeat 2FA?

Attackers defeat weaker 2FA in four main ways, and knowing them helps you choose a stronger method and spot the attack when it happens.

  • Real-time phishing. A fake login page collects your username, password and one-time code, then relays them to the real site before the code expires.
  • Push bombing. The attacker sends push notifications until you tap Accept to make them stop. Number matching defeats blind approval.
  • SIM swap. The attacker persuades your mobile carrier to move your number to a SIM they control, then receives your SMS codes.
  • SS7 exploitation. Weaknesses in phone-network signalling let attackers intercept codes sent by text or voice.

Only phishing-resistant methods defeat all four: FIDO2 keys and passkeys are bound to the real website, so a fake page cannot reuse the proof, and push bombing, SS7 and SIM swap do not apply to them. That is why CISA calls them the gold standard.

If you receive a 2FA code or push prompt you did not request, treat it as an attack in progress: do not approve it, change your password from a trusted device, and check your account's recent sign-ins. Our guide to spear phishing explains how these attacks usually start.

2FA methods, weakest to strongest Weakest — SMS or voice codeSIM swap, interception Push without number matchingpush bombing Authenticator app (TOTP)phishable, but offline Push with number matchingdefeats blind approval Strongest — FIDO2 key / passkeyphishing-resistant
Ranking based on CISA's phishing-resistant MFA fact sheet. Illustration by Cysoro.

Which accounts should you protect with 2FA first?

Start with the accounts that unlock everything else: your email, your password manager, your bank, and your cloud storage. If an attacker owns your email, they can reset passwords on most other services, so email comes first.

Next, protect work accounts, social media and any service that holds payment details or customer data. For a small business, that means email, Microsoft 365 or Google Workspace, banking, and the admin accounts of your website and store.

For a wider starting point, our small business cybersecurity checklist covers 2FA alongside backups, updates and device security, in the order a small team should tackle them.

The bottom line

The 2FA authentication process is simple: password first, then a second proof from a different category. The hard part is choosing a strong second factor and keeping your recovery codes safe.

Turn on an authenticator app today if you have not already, and move your most important accounts to a security key or passkey when you can. Check your credentials and tighten your login security with Cysoro's credential protection tools.

Frequently asked questions

What is the 2FA authentication process?

It is a login process that asks for two different kinds of proof. You enter your password first, then a second factor such as a code from an authenticator app or a tap on a security key. Both must pass before you get in.

What are the three authentication factors?

The three factors are something you know, such as a password or PIN; something you have, such as a phone, authenticator app or security key; and something you are, such as a fingerprint or face scan.

Is a password plus a security question 2FA?

No. Both are something you know, so they come from the same factor category. True 2FA needs two proofs from two different categories, such as a password plus an authenticator code.

How does an authenticator app code work?

When you set it up, the service shares a secret key with your app by QR code. The app then generates a new six-digit code every 30 seconds from that secret and the current time. The server generates the same code and compares them.

Is SMS 2FA safe?

SMS is better than no second factor, but it is the weakest option. Codes can be intercepted through phone-network weaknesses or stolen in a SIM swap, where an attacker moves your number to their SIM. Use an authenticator app or security key where you can.

What happens if I lose my second factor?

Most services offer backup codes you should save when you set up 2FA, or a recovery process through another verified device or email. Save your backup codes somewhere safe before you need them.

What is the difference between 2FA and MFA?

2FA is a type of MFA that uses exactly two factors. MFA is the broader term for any authentication that uses two or more factors. A login with a password, a code and a fingerprint would be MFA, not just 2FA.

Can 2FA be hacked?

Yes, weaker forms can. A fake login page can collect your password and one-time code and relay them in real time, and push prompts can be abused by sending repeated approvals. Phishing-resistant methods such as FIDO2 keys and passkeys resist these attacks.

Sources

  1. NIST CSRC — 2FA Glossary
  2. NIST — SP 800-63B-4: Digital Identity Guidelines: Authentication and Authenticator Management
  3. CISA — Implementing Phishing-Resistant MFA (fact sheet, October 2022)
  4. CISA — Why a Strong Password Isn't Enough: Your Guide to Multifactor Authentication
  5. FIDO Alliance — Passkeys
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against NIST's 2FA glossary and SP 800-63B-4 (final, July 2025), CISA's phishing-resistant MFA fact sheet and MFA guide, and the FIDO Alliance's passkeys page.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free