Find a course

Module 2: Identity and AccessLesson 4 of 1212 min

Multi-Factor Authentication and Access Control

Compare authentication factors and MFA methods, see why passkeys resist phishing, and apply least privilege and role-based access control.

Step 1 of 13Learn

Something you know, have or are

Logging in answers two separate questions. Authentication asks: are you really who you claim to be? Authorization asks: now that we know who you are, what are you allowed to do? Mixing these up causes real security bugs, so keep them apart in your head.

Authentication relies on factors, which fall into three categories:

  • Something you know: a password, PIN or answer to a security question.
  • Something you have: a phone with an authenticator app, a hardware security key, a smart card.
  • Something you are: a fingerprint, face or other biometric.

Multi-factor authentication (MFA) requires two or more factors from different categories. A password plus a security question is still single-factor, because both are things you know and both can be phished or guessed together.

MFA works because stealing two different kinds of proof is far harder than stealing one. A criminal who buys your leaked password from a breach still can't log in without your phone or security key. Studies by large account providers have found that MFA blocks the overwhelming majority of automated account-takeover attempts, often cited as more than 99 percent.

Turn it on first for the accounts that matter most: email (because it can reset almost every other account), banking, cloud storage, social media and any administrator account at work.

Step 2 of 13Practice · Sort into groups

Sort each authentication method into its factor type.

Tap an item, then tap its group (or drag it there).

Step 3 of 13Diagram

The three authentication factors

Real MFA picks from two different branches. Two items from the same branch are still one factor.

The three authentication factorsHierarchy diagram: Authentication factors, Something you know, Something you have, Something you are, Password or PIN, Security question, Authenticator app, Hardware security key, Fingerprint, Face scan.Authentication factorsSomething you knowPassword or PINSecurity questionSomething you haveAuthenticator appHardware security keySomething you areFingerprintFace scan

Tap a shape with to see more.

Authentication factors
Something you know
Something you have
Something you are
Password or PIN
Security question

Answers are often guessable from social media.

Authenticator app
Hardware security key
Fingerprint
Face scan

Step 4 of 13Learn

Not all MFA is equal

MFA methods range from helpful to nearly unphishable.

SMS codes are better than nothing, but texts can be intercepted, and criminals sometimes talk a mobile carrier into moving your number to their SIM card (SIM swapping). Codes can also be phished: a fake login page asks for your password and then your code, and the attacker relays both to the real site within seconds.

Authenticator app codes (time-based one-time passwords) are generated on your phone and aren't exposed to SIM swapping, but they can still be phished in real time the same way.

Push notifications ("Is this you trying to sign in?") are convenient, but attackers who already have a password sometimes trigger dozens of prompts at 2 a.m., hoping a tired user taps Approve. This is called MFA fatigue or prompt bombing. Number matching, where you type a number shown on the login screen into the app, reduces it.

Hardware security keys and passkeys use public-key cryptography tied to the real website's domain. The device simply won't sign in to a look-alike domain, so a fake page gets nothing useful. This is why they're called phishing-resistant. A passkey replaces the password entirely: your phone or computer holds a private key and releases it only after your fingerprint, face or PIN. The website stores only the public key, so a breach of its database exposes nothing that can be used to log in.

Rule of thumb: any MFA beats none, app beats SMS, and passkeys or security keys beat everything else.

Step 5 of 13Practice · Put in order

Rank these login methods from weakest to strongest against phishing.

Drag the items, or use the arrow buttons, to put them in order.

  1. Password plus SMS code
  2. Password plus authenticator app code
  3. Password only
  4. Passkey or hardware security key

Step 6 of 13Practice · Diagram

How well each method resists phishing

Which method is the only one bound to the real website domain?

Tap the shape that answers the question, then press Check.

How well each method resists phishingScale: Password only, SMS code, App code, Push + number match, Passkey / security key.PhishableHarderPhishing-resistant02468100.5Password only2.5SMS code3.8App code5.5Push + numbermatch9.3Passkey / securitykey
Positions are illustrative rankings, not measured scores.
Password only

One stolen secret is enough.

SMS code

Can be relayed through a fake page or stolen by SIM swapping.

App code

Not tied to the website, so a fake page can still relay it in real time.

Push + number match

Number matching stops blind approvals and fatigue attacks.

Passkey / security key

Cryptographically bound to the real domain, so a look-alike site gets nothing usable.

Step 7 of 13Practice · What would you do?

What would you do?

At 1:30 a.m. your phone shows a push notification asking you to approve a sign-in to your work account. You are in bed and did not try to log in. A minute later, another one arrives, then another.

Step 8 of 13Learn

Least privilege and role-based access

Authentication proves who you are. Authorization decides what you can touch, and it's where many breaches spread from one compromised account to an entire network.

The guiding rule is least privilege: every person, service and program gets only the access it needs for its job, and nothing more. A marketing intern doesn't need access to payroll. A web server doesn't need permission to delete the backups. When an account with minimal rights is compromised, the damage stays small.

Organizations put this into practice with role-based access control (RBAC): permissions are attached to roles such as "accountant", "nurse" or "database administrator", and people are assigned roles. When someone changes jobs, you change their role instead of hunting down dozens of individual permissions.

A few related practices:

  • Separate admin accounts. IT staff use a normal account for email and browsing, and a separate privileged account only for admin tasks. Malware caught while browsing then doesn't run with admin rights.
  • Separation of duties. No single person can complete a sensitive action alone; for example, one person creates a payment and another approves it.
  • Access reviews. Regularly check who has access to what. People tend to accumulate permissions as they move between projects, a problem called privilege creep.
  • Prompt offboarding. Disable accounts the day someone leaves.

Step 9 of 13Compare

Role-based access in a small company

AspectSales repAccountantIT admin
Customer recordsRead and edit own accountsRead onlyNo routine access
Invoices and paymentsNoneCreate and approveNone
Payroll dataNoneReadNone
Install softwareNoNoYes, with a separate admin account
Reset other users’ MFANoNoYes, with identity checks

Step 10 of 13Note

Step 11 of 13Practice · Select all that apply

Which of these follow the principle of least privilege? Select all that apply.

Select all that apply.

Step 12 of 13Practice · True or false

Using a password and a security question together counts as multi-factor authentication.

Step 13 of 13Practice · Choose one

Why are passkeys considered phishing-resistant?