Skip to content
KALANBLON
Show contents

Chapter 2 of 7 · 15 min

Two-factor authentication

By the end of this chapter, you'll be able to

  • Explain the principle of two-factor authentication
  • Compare SMS codes, authenticator apps and security keys
  • Turn on two-step verification on WhatsApp
  • Keep a backup method so you never lose access to your account

Two proofs are better than one

To prove that you really are you, there are three kinds of proof:

  • something you know: a password, a PIN;
  • something you have: your phone, a security key;
  • something you are: your fingerprint, your face.

Two-factor authentication (or "two-step verification", 2FA) asks for two proofs of different kinds. Usually: your password (something you know) and a code received or generated on your phone (something you have). An attacker who stole your password does not have your phone: they are blocked.

On your own phone, the site can remember you: you do not type the code every time.

Step 4 of 4
Text description of the animation
  1. You type your password, as usual.
  2. The site asks for a 6-digit code. Your authenticator app shows a new one every 30 seconds.
  3. The site checks both. An attacker who only has the password fails here.
  4. On your own phone, the site can remember you: you do not type the code every time.

The three kinds of second step

They are not all equal:

MethodHow it worksStrength
SMS codeThe site sends you a code by SMSMuch better than nothing. But a scammer can get a new SIM card with your number (SIM swap fraud) or ask you for the code over the phone.
Authenticator appAn app (Google Authenticator, Microsoft Authenticator…) computes a code that changes every 30 seconds, even without networkStronger than SMS: the code does not travel through the phone network.
Security key or passkeyA small physical key, or your phone unlocked by fingerprint or faceThe strongest: it automatically refuses fake sites.

The right reflex: turn on two-factor authentication first on your e-mail, then on your social networks and any account linked to money. Choose the app or the key when the site offers it, SMS otherwise.

The case of WhatsApp

On WhatsApp, the attacker tries to get the 6-digit code sent by SMS when WhatsApp is installed on a new phone. To block this, WhatsApp offers an extra PIN:

WhatsApp → Settings → Account → Two-step verification → Turn on
1. Choose a 6-digit PIN (not your date of birth)
2. Add a recovery e-mail address
3. Confirm

From now on, even with the code received by SMS, nobody can install your WhatsApp account on another phone without this PIN. Menus may change slightly from one version of the app to another.

Don't lock yourself out

If you lose your phone, you must be able to recover your accounts. When you turn on two-factor authentication, the site almost always offers backup codes: a list of single-use codes. Write them on paper and keep them with your important documents. Also add an up-to-date recovery e-mail or phone number.

Your turn

Worked exercise

Worked exercise: your list of accounts to protect

Put these accounts in the order in which you should turn on two-factor authentication, from most to least urgent, then say which method to choose for the first one:

- an online game
- your e-mail (Gmail, Outlook…)
- your Facebook account
- your WhatsApp account
- a cooking recipes forum
Hint 1
Which account lets you reset the password of all the others?
Hint 2
Which accounts can a scammer use to ask your relatives for money?
Show the solution and common mistakes
  1. Your e-mail: it receives the reset links of all your other accounts. If it falls, everything falls. Choose an authenticator app or a passkey rather than SMS.
  2. WhatsApp and Facebook: a stolen account is used to write to your contacts and ask them for money in your name.
  3. The online game, especially if it holds a bank card or purchases.
  4. The recipes forum: not very sensitive, but keep a unique password there.

Common mistakes:

  • Starting with social networks and forgetting e-mail: it is what lets you recover every other account.
  • Turning on two-factor authentication without writing down the backup codes: the day the phone is lost, the account is locked.

Summary

  1. 1Two-factor authentication asks for two proofs: something you know and something you have.
  2. 2An authenticator app or a passkey is stronger than an SMS code, which is still much better than nothing.
  3. 3On WhatsApp, turn on two-step verification with a PIN.
  4. 4A verification code is never given to anyone, even to so-called customer service.
  5. 5Write your backup codes on paper so you never lose access to your accounts.

Your progress is saved on this device. Create a free account to keep your progress on all your devices.