Password Cracking: How Guesses Work Against a Stolen Database
A stolen password database may contain no readable passwords and still be valuable to an attacker. If it holds the values used to check passwords, the attacker can try guesses against those values. Trying possible passwords and checking the results is password cracking.
In an offline attack, the guesses happen on the attacker's own system. The real website doesn't receive each attempt and can't apply its usual login limit to those calculations.
The theft of the database, the search for a password and a later attempt to use it are separate steps. MITRE's Password Cracking description focuses on the search against copied verification data.
- Stop typing passwords: the key enters them for you.
- Add a second factor to your accounts with the same device.
- Relax if you lose it: it is PIN-protected and built to resist tampering.
How a Guess Becomes a Match
With password hashing, a service can store a calculated value, or hash, to check against future sign-ins. In a basic salted-hash arrangement, it also stores a salt, a value combined with the password for that calculation, and the calculation's settings.
Someone with that stored record can choose a candidate password, run the same process with the recorded salt and settings, and compare the result. A match supplies a working candidate.
That is computation and comparison, not decryption. The attacker doesn't need a key that reverses the hash. They need a promising guess and a way to test it.
The software-security nonprofit OWASP's Password Storage Cheat Sheet explains why hashing and guess resistance have to be considered together. An attacker can repeat the calculation with a guess without having a method for running it backward.
Guessing Starts With What People Tend to Choose
Candidates needn't be random. A dictionary attack can draw on leaked passwords, familiar words and predictable variations. Adding an expected capital letter, year or punctuation mark may leave a password among the guesses worth trying early.
An exhaustive brute-force search works through a defined set of possibilities. The size of that set matters, but it is only part of the problem. The password's predictability, the storage method, the cost of each calculation and the attacker's resources all affect the search.
There is consequently no useful universal time-to-crack for “a password.” A long but familiar choice and a long, unpredictable choice can present very different opportunities.
Other attacks obtain the secret without this search. Phishing uses deception to persuade someone to hand it over. A keylogger can record what they type. Those are password theft, but not the same candidate-testing mechanism.
Two Ways Attackers Guess a Password
Put the Obstacles Where the Guesses Happen
For online guessing, the actual service checks each attempt. It can slow attempts or limit them. With copied password records, the attacker has taken that checking process elsewhere. Locking the website account doesn't stop the offline computation.
Storage defenses therefore make the computation more expensive. Unique salts stop one precomputed result from being reused across all accounts; salts normally sit beside the hashes and needn't be secret. A deliberately costly password-hashing method increases the work required for each guess.
The National Institute of Standards and Technology's authentication guidance treats resistance to offline attacks separately from online rate limits.
Long, less predictable passwords make good candidates harder to find. Unique passwords keep a result from one service from unlocking other accounts. Multifactor authentication adds another kind of proof at sign-in, such as proof from a registered device. The attacker may recover the password and still lack that second proof.
Dictionary Attacks: Why Familiar Password Tricks Fail

Work Factor: Making Each Password Guess Cost More

What Is Salting in Password Security and How Does It Work?

QUOTE:
"Amateurs hack systems, professionals hack people."
