liveBook · Manning

Password authentication

As explained in Fundamentals of Cybersecurity

A password is a secret sequence of characters used to authenticate a user or protect access to a system or resource.

A password is a secret used to verify a person’s identity before granting access to an account, system, or other protected resource. If an attacker learns it, they may be able to sign in as that person. section 12.3.3

Attackers can guess passwords at a login page or obtain a password database and try to crack its stored hashes. A hash is a transformed value stored instead of the plaintext password. During login, the system hashes the password entered and compares the result with the stored value. Hashing does not make weak passwords safe: attackers can hash guesses and look for a match. section 12.3.3

Attack
Definition
Defense
Hash
Login
Brute Force
Systematically tries all possible password combinations until the correct one is found.
Strong passwords, lockouts, MFA
Yes
Yes
Password Spraying
Attempts a small number of common passwords across many accounts to avoid account lockouts.
Lockouts, user training, MFA
No
Yes
Dictionary
Tests a predefined list of common passwords, words, and predictable variations to guess credentials.
Unique, passwords, MFA
Yes
Yes
Rainbow Table
Uses precomputed hash lookup tables to identify passwords from unsalted password hashes.
Salting, complex passwords
Yes
No

Compare attacks on logins with attacks on stored hashes, then match each attack to defenses such as lockouts, strong passwords, salting, and multi-factor authentication. section 12.3.3

A password policy turns this risk into consistent requirements for an organization. It can address length, reuse, recovery, secure handling, and screening for weak or compromised passwords. Password managers help people maintain strong, unique passwords; multi-factor authentication adds another factor when a password alone is not enough. Technical controls, including account lockouts, help enforce the policy. section 16.4 section 15.2.1

When to change a password

Changing Password1 to Password2 on a fixed schedule is predictable. Favor a long password or passphrase, and change it when there is evidence of compromise rather than relying on routine changes alone. section 16.4

How Fundamentals of Cybersecurity covers it

How deep it goes
Explains login guessing, stored-hash cracking, and policy requirements, while deferring deeper cryptography.
Examples
Illustrates attacks with a comparison table and predictable changes with Password1 becoming Password2.
What it assumes
Introduces passwords and hashes in plain terms without requiring prior cryptography knowledge.
What you can do after
Operate/configure password authentication using policy requirements, account lockouts, and multi-factor authentication.
How it connects
Connects password authentication to hashing, password spraying, account lockouts, multi-factor authentication, password managers, and system hardening.

Also explained in

Compare how 10 books explain password authentication →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fundamentals of Cybersecurity. The section links point to the parts of the book it draws on.