Unit 7: Online data security · User authentication methods

Article

Multi-factor authentication

7 min read

To take money from a cash machine you need two things: your card and your PIN. A thief who steals only the card gets nothing. A thief who watches your PIN gets nothing without the card. Online accounts can work the same way, and the idea has a name: multi-factor authentication.

Three kinds of proof

Authentication means proving you are who you say you are. There are three kinds of proof. Each kind is called a factor.

FactorThe ideaExamples
Knowledgesomething you knowa password, a PIN, a secret answer
Possessionsomething you haveyour phone, a bank card, a security key
Inherencesomething you area fingerprint, your face, your voice

Inherence means "part of you". These factors are your body, not something you remember or carry.

Multi-factor authentication (MFA) needs at least two different factors. Each extra step is another layer of security: an attacker has to get past every layer.

Logging in with two factors

  1. Type your password

    knowledge: something you know

    then
  2. Enter the code from your phone

    possession: something you have

    both correct
  3. You are in

A thief with only your stolen password stops at the second step.

Check your understanding

Which of the following is an example of multi-factor authentication?

Different kinds, not just more steps

The exam's favourite trap: two steps are not always two factors. They must be different kinds.

LoginFactorsMFA?
Password, then a secret questionknowledge and knowledgeNo: both are things you know
Password, then a code sent to your phoneknowledge and possessionYes
Fingerprint, then face scaninherence and inherenceNo: both are things you are
Card in the machine, then your PINpossession and knowledgeYes
Fingerprint aloneinherence onlyNo: only one factor

A password plus a secret question has two steps, but a thief who learns about you can guess both.

One-time codes and security keys

A one-time code is a short number, such as 6 digits, that works once, usually for about 30 seconds. It comes by text message or from an authenticator app on your phone. It proves you have your phone. A thief who steals your password cannot guess the code: 6 digits give 10⁶ = 1,000,000 possibilities, the site only allows a few tries, and the code expires.

A security key is a small device, or a phone, that proves you hold it. You plug it in or tap it when you log in.

Stay careful: a fake website can ask for your code. Never give a code to someone who calls or messages you, because the real site never asks for it.

Biometrics

Biometrics use your body to authenticate: a fingerprint, face, voice or the pattern of the eye. They are the inherence factor.

GoodNot so good
You cannot forget or lose a fingerprintYou cannot change it if it leaks, unlike a password
Quick: a touch or a lookThe scan can fail, or wrongly accept the wrong person
Hard for a stranger to copyIt is personal data, so it must be stored with care

A biometric on its own is one factor. A fingerprint and a PIN together are two.

Check your understanding

A phone unlocks when it sees its owner's face. What kind of factor is this?

Worked example

Which of these logins is multi-factor?

  • A. Type a password, then type your mother's maiden name.
  • B. Type a password, then approve a prompt on your phone.
  • C. Scan a fingerprint, then scan your face.

A: both are knowledge, so no. C: both are inherence, so no. B: the password is knowledge and the phone is possession, so yes, B is multi-factor.

Common mistakes

  • Counting steps instead of kinds. Two passwords are still one factor.
  • "A biometric is the strongest thing, so it's enough alone." One factor is one factor.
  • "MFA makes passwords unnecessary." Usually it adds to your password. Keep the password strong.
  • Sharing a code. A code is a secret for a few seconds. Never tell it to anyone.

On the exam

You will be given a login and asked "Which of the following is an example of multi-factor authentication?" Name the factor of each step (know, have, are). If two steps have the same factor, it is not MFA. You may also be asked why MFA helps: a stolen password is not enough.

Key words

Authentication: proving who you are.

Factor: one kind of proof: knowledge, possession or inherence.

Multi-factor authentication (MFA): using at least two different factors.

One-time code: a short code that works once and expires quickly.

Biometrics: authentication using your body, such as a fingerprint or face.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this site. All lessons and questions here are written by JrCodex.