🪪 Security · Security Fundamentals
Authentication
Verify the identity of a user or system.
Before granting access, establish who is requesting it.
A user signs in with password plus MFA.
💡 Think of a passport check at the airport: before you board, someone confirms you really are who your ticket says you are.
💡 Why it matters
If you cannot trust who is on the other end, every other control falls apart. Weak sign-in is one of the easiest doors for attackers to walk through. Strong authentication is the foundation that authorization, logging, and privacy all sit on top of.
🛠️ How to achieve it
⚠️ Signs of trouble
- •Passwords are stored in plain text or with weak hashing.
- •There is no option for a second factor anywhere.
- •Sessions never expire, so an old login works forever.
- •The same error reveals whether a username exists, helping attackers guess.
🎯 Quick check
Score: 0/3Three questions to test the idea.
1. What does authentication actually answer?
Answer: Who is this user or system?
Authentication establishes identity. What you are then allowed to do is authorization.
2. How should user passwords be stored?
Answer: Hashed with a slow, salted password algorithm
Passwords should be salted and hashed with a slow algorithm so the original value is never stored or recoverable.
3. Why add multi-factor authentication (MFA)?
Answer: So a stolen password alone is not enough to get in
MFA adds a second, different proof of identity, so a leaked password by itself cannot unlock the account.
