4.6
In progress
Authentication Design
Summary
Authentication proves that a subject is who it claims to be before any access is granted. A good design keeps credentials confidential, makes sure they can't be tampered with or replayed, and stays available so legitimate users can always sign in. Evidence of identity falls into factors such as something you know, have or are.
In plain words
Authentication checks that you are who you claim to be by comparing what you present with what the system has stored. A good design keeps credentials secret, is hard to fool, and is still easy enough that people can get their work done.
Detailed explanation
- Authentication: Verifying a claimed identity using one or more credentials.
Design requirements
- Confidentiality: Credentials must never be exposed in storage or transit; passwords are stored as salted hashes and sent only over encrypted channels.
- Integrity: The authentication process must resist forged or replayed credentials.
- Availability: Users must be able to authenticate when needed, so the system needs redundancy and recovery options such as account recovery and backup authenticators.
Authentication factors
- Something you know: A knowledge factor, such as a password, passphrase, PIN or answer to a security question.
- Something you have: A possession factor, such as a smart card, security key or phone with an authenticator app.
- Something you are: An inherence factor, a biometric such as a fingerprint or face.
- Somewhere you are: A location attribute, such as a network address or GPS position, used to add context rather than as a standalone factor.
- Something you do: A behavioral attribute, such as typing rhythm or gait.
Important terms
taken from the text above- Authentication
- Verifying a claimed identity using one or more credentials.
- Confidentiality
- Credentials must never be exposed in storage or transit; passwords are stored as salted hashes and sent only over encrypted channels.
- Integrity
- The authentication process must resist forged or replayed credentials.
- Availability
- Users must be able to authenticate when needed, so the system needs redundancy and recovery options such as account recovery and backup authenticators.
- Something you know
- A knowledge factor, such as a password, passphrase, PIN or answer to a security question.
- Something you have
- A possession factor, such as a smart card, security key or phone with an authenticator app.
- Something you are
- An inherence factor, a biometric such as a fingerprint or face.
- Somewhere you are
- A location attribute, such as a network address or GPS position, used to add context rather than as a standalone factor.
- Something you do
- A behavioral attribute, such as typing rhythm or gait.
Examples & real-world scenarios
- Typing a username and password (a knowledge factor).
- Using a long passphrase instead of a short password.
- Unlocking a laptop with a PIN tied to that device.
Scenario
A company adds so many login steps that staff start writing passwords on sticky notes. The design failed on availability (usability), which in turn weakened confidentiality.
Common mistakes
- Forgetting usability. An authentication system people work around isn't secure.
- Thinking a username is a secret. Usually it's public; the password is the secret.
Practical skills
- Judge an authentication method against confidentiality, integrity and availability.
What I should remember
- Knowledge factor: Something you know, such as a password or PIN.
- Possession factor: Something you have, such as a security key or smart card.
- Inherence factor: Something you are, such as a fingerprint.
- Location: Somewhere you are; usually supports a decision rather than proving identity alone.