Password cracking is the process of recovering a usable password from the data that represents it, almost always a hash taken from a compromised database. An attacker guesses a candidate, hashes it with the same algorithm the system used, and compares the two values. Run with authorization, password cracking is also how a security team measures whether its own credentials would survive the attempt.
In Fluid Attacks' State of Attacks 2026, which covers a full year of testing across client systems during 2025, the weakness "Sensitive information in source code - Credentials" appeared in 37.4% of the systems assessed, with 7,791 instances reported. Those are the credentials nobody has to crack at all.
This page covers how passwords are stored and why that single decision settles the outcome, how online and offline password cracking differ, how we test credential strength at Fluid Attacks, the four attack types that get confused with each other, the tools involved, and what actually prevents password cracking.
What is password cracking?
Password cracking is the recovery of a plaintext password from stored credential material. The attacker already holds the hashes; the work is guessing inputs until one of them produces a matching output. A match means the guess was the password.
MITRE ATT&CK catalogs password cracking as T1110.002, a sub-technique of Brute Force under the Credential Access tactic. The framework notes that it is usually done on systems the adversary controls, outside the target network, after credential material has already been obtained.
Two things it is not. Password cracking is not decryption, because a hash has no key that undoes it. And it is not the live guessing of passwords at a login form, which MITRE tracks as a separate sub-technique. The distinction matters, because the defenses are different.
How passwords are stored, and why storage decides the outcome
Whether password cracking takes an afternoon or several centuries is settled long before the attack, by how the application stored the credential. There are four common approaches, and only one of them was designed to resist this.
Storage method | What the database holds | What a dump gives an attacker |
|---|---|---|
Plaintext | The password exactly as typed | Every password, immediately. No cracking required |
Reversible encryption | The password encrypted under a key | Every password, once the key is recovered |
General-purpose hashing (MD5, SHA-1, SHA-256) | A fixed-length digest | Candidates testable at enormous speed on commodity GPUs |
Password hashing (Argon2id, scrypt, bcrypt, PBKDF2) | A digest plus a unique salt and a cost parameter | Candidates testable only at the rate the defender chose |
The four storage methods and what each one costs someone attempting password cracking.
Two corrections to how hashing is usually described, including in the earlier version of this page. A hash is not ciphertext. It is the output of a one-way function, and nothing about it is meant to be reversed. Calling it encrypted text invites the idea that a key exists somewhere.
And identical outputs from different inputs are possible. Collision resistance is a property a hash function aims for, not a mathematical guarantee. Our own SAST rule for SHA-1 calls the algorithm "cryptographically broken," because collisions can be generated.
Why a general-purpose hash is the wrong tool
MD5, SHA-1 and SHA-256 were built to be fast. That is exactly what you do not want when the input is a password, because the speed belongs to whoever is running the password cracking, testing billions of candidates.
Our Database records this as weakness 263, Insecure encryption algorithm - MD5, whose impact reads "Crack captured credential easily." Our SAST rule SAST-SYFRI flags the same mistake for SHA-1 in TypeScript and shows the fix: bcrypt with a cost factor of 12.

Our SAST-SYFRI rule marks SHA-1 hashing of sensitive data and shows the bcrypt correction.
Purpose-built password hashing functions invert the economics of password cracking. Argon2id, scrypt, bcrypt and PBKDF2 take a tunable work factor, so the defender sets how expensive a single guess is. NIST SP 800-63B-4 states that verifiers "SHALL store passwords in a form that is resistant to offline attacks," salted and hashed with a suitable password hashing scheme.
Online vs. offline password cracking
Offline password cracking is the dangerous case, and the reason this is treated as a storage problem rather than a login problem. The attacker works on hashes already in hand, on hardware nobody is watching, with no rate limit and no lockout.
Online attempts go through the authentication mechanism, so they inherit its defenses. Our internal password policy states that "After 10 failed attempts, the system locks the account of the user automatically to prevent brute force attacks." Ten attempts is not a meaningful budget.
Offline, that budget is unlimited. This is why the storage decision above carries so much weight: once the hashes leave the building, the only thing still standing between an attacker and your users is the cost of each password cracking guess.
Password cracking at Fluid Attacks
We treat resistance to password cracking as something to be tested against the running system and the source code, not asserted in a policy document. Our scanners find the implementation mistakes; our pentesters find the ones that only appear when you try them.
What we test, and under what rules
Credential testing happens only inside an agreed scope, against systems the client owns or controls, with findings reported into the platform rather than retained. Our Pentesting as a Service (PTaaS) and Secure Code Review cover the manual side of password cracking work; SAST and Secret Scanning cover the automated side, including hardcoded credentials left in a repository.
What it looks like in practice
Every password cracking finding maps to an entry in our public Database, with the requirements that close it.
What we look for | Database entry | Evidence it produces |
|---|---|---|
Hashes weak enough to crack | The algorithm in use and the recovered credential | |
A credential policy that permits guessable passwords | The accepted password that should have been rejected | |
Low-complexity credentials guessed in testing | The working credential and how long it took | |
SHA-1 or MD5 used on sensitive data | The vulnerable line and a corrected version | |
A hardcoded or predictable salt | The static salt value found in the code |
What we instrument for the weaknesses behind password cracking, and the evidence each check returns.
What our scanners find, and what our pentesters find
Password cracking sits on both sides of the automated and manual split, which is why the numbers are worth separating. Across a year of client testing reported in State of Attacks 2026, our automated tools accounted for 55.8% of the total risk exposure detected, while our pentesters reported 87% of the critical-severity vulnerabilities. In Fluid Attacks' benchmark of 36 third-party tools against a web application with 1,201 known vulnerabilities, a pentester found 1,076 of them with zero false positives — 89.6% recall at 100% precision. The best automated result came from our own scanner, at 22.7% recall; the average recall across the other 34 tools was 1.7%.
What a scanner can prove, and what it cannot
A scanner can prove that SHA-1 is in your code. SAST-SYFRI will point at the line. What no scanner can prove is that your credential policy actually rejects a password that already appears in a breach corpus, because that answer only exists in the running system's response.
The split shows up in our own plans. The requirement 367. Proper generation of temporary passwords is verified in the Advanced plan and not in the Essential one, for exactly that reason: somebody has to request a temporary password and look at what comes back.
What we enforce on ourselves
Our internal policy sets a minimum of 16 characters, keeps a history of the previous 24 passwords, locks an account after 10 failed attempts, and checks that a password contains neither the username nor the person's name nor common words. New and reactivated accounts get randomly generated passwords of up to 64 characters, which puts them outside any practical cracking range.
Cracking, guessing, spraying and stuffing are not the same attack
These four are routinely treated as synonyms, and they are four different sub-techniques with four different defenses. MITRE ATT&CK separates them under T1110, with password cracking as only one of the branches.
Sub-technique | ID | What the attacker does | What stops it |
|---|---|---|---|
Password guessing | T1110.001 | Tries likely passwords against a live account | Lockout, rate limiting, MFA |
Password cracking | T1110.002 | Recovers plaintext from stolen hashes, offline | Salting plus a high work factor |
Password spraying | T1110.003 | Tries one common password across many accounts | Detection across accounts, not per account |
Credential stuffing | T1110.004 | Replays credentials leaked from other services | Breached-password screening, unique credentials |
The four sub-techniques grouped under MITRE ATT&CK T1110.
Only the second one is password cracking in the strict sense. Password spraying and credential stuffing never touch a hash; they aim at the login form with credentials the attacker already has, so hardening your password cracking defenses does nothing against them.
How attackers crack hashes
Password cracking uses three main strategies against a stolen hash, and they differ in what they trade. Exhaustive search trades time for certainty, dictionaries trade coverage for speed, and precomputed tables trade storage for computation. Hardware acceleration then multiplies whichever one the attacker chose.
Brute force
A brute-force attack walks the whole candidate space, every combination of allowed characters up to a given length. It always works eventually, which is a weak promise: what matters is whether "eventually" falls inside a human lifetime. This is the slowest form of password cracking and the only one with a guarantee.
Length moves that answer far more than complexity does. Our security analyst Rafael Ballestas laid out the arithmetic in Requiem for a p455w0rD:
Credential type | Composition | Example | Time to brute-force |
|---|---|---|---|
Password, 8 characters | Upper, lower, numbers, symbols | Pas$w0rd | 9 hours |
Password, 14 characters | Upper, lower, numbers, symbols | Pas$w0rddddddd | 204 million years |
Passphrase, 4 non-random words | Lowercase | code hacks rule risk | 41 quadrillion years |
Passphrase, 4 random words | Lowercase | debased heron passes native | 343 septillion years |
Password cracking times by credential type, from Fluid Attacks' passphrase analysis.
As Ballestas puts it:
"Truly randomly generated, long enough passphrases are virtually crack and guess-proof."
Dictionary attacks
A dictionary attack tests a prepared wordlist instead of the full space: real passwords from past breaches, common words, and the substitutions people reach for. Substitutions like p@55word and suffixes like PassWord123 are exactly what the mangling rules in these tools generate. The trade is coverage for speed, and it usually wins, because most passwords were chosen by a person. That makes the dictionary the most productive route in real password cracking.
Rainbow tables, and what a password salt actually does
Rainbow tables precompute hashes so the attacker looks up rather than calculates. Our security analyst Jonathan Armas walked through recovering a SHA-1 hash this way, using a public lookup service rather than any custom tooling.
A salt defeats that shortcut. A unique random value per password makes a precomputed table worthless, since every password would need a table of its own. Which is why a predictable password salt is as bad as none: our rule SAST-SSCAA exists to catch hardcoded values like "app-static-salt-2024". Requirement 135 sets the floor at a salt that is random and at least 48 bits long.
GPU acceleration
Graphics hardware runs the same hash function across thousands of candidates in parallel, which is why password cracking moved off CPUs years ago. There is no single rate to quote: it depends on the algorithm, its work factor, the hardware, and the size of the search space. The point is comparative. A fast general-purpose hash hands the attacker that parallelism; a memory-hard function like Argon2id takes most of it back.
Password cracking tools
The same password cracking tools serve authorized credential audits and unauthorized attacks; the difference is the engagement letter, not the software.
Hashcat: advanced password recovery, GPU-accelerated, with a wide range of hash formats and attack modes.
John the Ripper: Openwall's open source password security auditing and recovery tool; the jumbo build covers hundreds of hash and cipher types.
Used in an audit, the output of password cracking is a list: which hashes fell, to which method, and how fast. That list is the only measurement of a credential standard that rests on evidence rather than intent.
How to prevent password cracking
Preventing password cracking splits cleanly in two: make each guess expensive, and make the right password impossible to guess.
On storage, use a password hashing function with a salt and a tuned work factor. The OWASP Password Storage Cheat Sheet puts Argon2id first, at a minimum of 19 MiB of memory, two iterations and one degree of parallelism. Our Database requires the same two halves: 127 asks that passwords be hashed with algorithms such as PBKDF2 or bcrypt, and 134 that each one carry its own salt.
On the credentials themselves, weakness 035 sets out what a password policy has to do: accept passphrases of at least four words or passwords of at least 20 characters, reject passwords found in known breach databases, reject context-specific words such as the username or the service name, and give every account its own credential. Requirement 332 puts a number on the screening: new passwords get checked against a list of 1,000 to 10,000 breached ones.
One practice worth retiring, because it does nothing against password cracking: forced periodic rotation. NIST SP 800-63B-4 advises against arbitrary expiration without evidence of compromise, and our own weakness 035 says the same, on the grounds that rotation pushes people toward weaker, predictable choices. Change credentials when there is a reason to.
Finally, screen for the credentials already sitting in plain view. Hardcoded credentials in a repository make the whole password cracking question irrelevant, which is what the 37.4% figure above describes.
Conclusions
Password cracking is not really a contest between an attacker and a password. It is a contest between an attacker's hardware and a decision a developer made about storage, usually years earlier. A 20-character passphrase behind MD5 is a worse starting position against password cracking than a shorter password behind Argon2id with a serious work factor.
That makes resistance to password cracking testable. A weak algorithm is visible in the source code, a weak password policy is visible in what the login accepts, and an exposed credential is visible in the repository. All three are findings with a fix attached, not matters of user discipline, and all three can be measured before password cracking is attempted for real.
Frequently asked questions
How long does password cracking take?
There is no universal figure. The time depends on the hashing algorithm and its work factor, the attacker's hardware, and the size of the search space. The comparison that matters is relative: in Fluid Attacks' analysis of passphrases, an eight-character password with mixed characters falls in about nine hours, while four random lowercase words hold for an interval with no practical meaning.
What is the difference between password cracking and credential stuffing?
Password cracking recovers plaintext from stolen hashes, offline, on the attacker's own hardware. Credential stuffing replays username and password pairs already leaked from another service against a live login. MITRE ATT&CK separates them as T1110.002 and T1110.004, and the defenses differ: stronger hashing stops the first, screening for breached credentials stops the second.
Why are MD5 and SHA-1 unsafe for storing passwords?
Because they are fast and unsalted by default, which is the opposite of what password storage needs. Our Database lists MD5 hashing of passwords as weakness 263, with the impact "Crack captured credential easily." Our SAST-SYFRI rule also describes SHA-1 as cryptographically broken, because collisions can be generated for it.
Should people change their passwords every few months?
Not on a schedule alone. NIST SP 800-63B-4 recommends against arbitrary periodic expiration, and our own catalog of weaknesses agrees, because forced rotation leads people to pick predictable variations of what they had. Change a credential when there is evidence it was compromised, and screen new ones against breach corpora. Neither habit changes much against offline password cracking, which is settled by how the hash was stored.
Does Fluid Attacks test password security?
Yes, through both automated scanning and manual testing. SAST and Secret Scanning flag weak hashing, predictable salts and hardcoded credentials in source code, while PTaaS and Secure Code Review test what a credential policy actually accepts. In Fluid Attacks’ benchmark of 36 third-party tools against an application with 1,201 known vulnerabilities, a pentester reached 89.6% recall at 100% precision. The best automated result, from our own scanner, was 22.7% recall.
Test what your credentials would survive
Our scanners and pentesters check how your passwords are stored and what your login accepts, so your exposure to password cracking comes from evidence rather than from policy. Start free trial · Contact us.
Get started with Fluid Attacks' SCA solution right now















