Cybersecurity Foundations·A security baseline you can use

Passwords and MFA

Long unique passphrases plus a second factor beat complex passwords reused everywhere.

Beginner 13 min read Lesson 1 of 300 Challenge included
What you will be able to do
  • Use a password manager so every account gets a unique passphrase.
  • Prefer long passphrases over short passwords with many symbols.
  • Enable phishing-resistant MFA and store recovery codes offline.
  • Keep sessions short so idle logins expire.

In plain English

A password manager is a program that generates, stores and fills in a different password for every account, so you only remember one master password. For guessing resistance, length matters more than complexity, and a five-word passphrase beats a short password full of symbols. Multi-factor authentication (MFA) asks for a second proof of identity, such as a code or a security key, so a stolen password alone is not enough to log in. Phishing-resistant MFA uses a hardware security key or passkey that cannot be typed into a fake login page, while recovery codes are one-time backup codes stored offline for when that key is lost. Session timeouts automatically sign you out after inactivity, so an unattended or stolen session cannot be reused for long.

Step by step

  1. 1Install a password manager and set a long, memorable master password you have never reused.
  2. 2Generate a unique passphrase for your most important account and save it in the manager.
  3. 3Enable multi-factor authentication and choose a phishing-resistant method such as a security key or passkey.
  4. 4Save the recovery codes the service gives you in an offline place you can find later.
  5. 5Confirm the account signs you out after a period of inactivity, or shorten the session timeout.
passwords.shTerminal
shuf -n 5 /usr/share/dict/words | paste -sd ' '
pass generate email/work 20
pass show email/work

Common mistakes

  • Reusing one strong password everywhere means a single leak unlocks every account at once.
  • Adding a symbol and a number to a short password does little, because attackers try those common substitutions first.
  • Storing recovery codes inside the same password manager entry as the password means losing the manager loses both.
  • Leaving sessions logged in indefinitely lets a stolen laptop or shared device stay authenticated for a long time.
Your turn

Generate a random passphrase

Easy

Write a shell command that picks five random words from a word list and prints them on one line.

BASH · starter
shuf -n 5 /usr/share/dict/words
Check your understanding before moving on.
Knowledge checkQuestion 1

Why is a long passphrase usually stronger than a short password with many symbols?

Select an answer to continue
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Next: Safe dependencies
Lesson 1 of 300 · 0% of course