Security operations

Is Credential Stuffing Illegal? Laws, Penalties and Defences

Credential stuffing — testing stolen passwords at scale — is illegal in the US, the UK and the EU. Here is which laws apply, what the penalties are, and how to protect yourself.

Cysoro Security TeamPublished · 9 min read
user: [email protected]password: •••••••• ✕ deniedMFA + passkey ✓ allowed!Stolen passwords, tested at scale. SECURITY OPERATIONS Is credentialstuffing illegal? Yes — and the penalties are serious.
Quick answer

Yes, credential stuffing is illegal. In the United States it can violate the Computer Fraud and Abuse Act (18 U.S.C. 1030), which criminalises unauthorised access, and can also be charged as wire fraud or aggravated identity theft, with up to 10 years in prison for a first CFAA offence. It is also illegal in the UK under the Computer Misuse Act 1990 and in the EU under national computer-crime laws.

Key takeaways

  • Credential stuffing is unauthorised access, not clever testing: the passwords were stolen from another breach.
  • In the US, the CFAA, wire fraud and identity theft laws can all apply, with prison time and civil liability.
  • MFA, especially passkeys, is the strongest defence: Microsoft analysis cited by OWASP says MFA would have stopped 99.9 percent of account compromises.

Credential stuffing sounds technical, almost harmless — a bot trying passwords. It is not harmless, and it is not a grey area. It is the automated reuse of stolen passwords, and in the US, the UK and the EU it is a crime.

What is credential stuffing?

Credential stuffing is an attack that tests username and password pairs stolen from one breach against many other websites, using automated bots. It works because people reuse passwords: a pair stolen from a forum in 2019 may still open an email, banking or shopping account in 2026.

OWASP, the web security community, classifies credential stuffing as OAT-008 in its Automated Threats to Web Applications taxonomy. It is distinct from brute force, which guesses many passwords against a single account, and from password spraying, which tests one weak password against many accounts.

The scale is what makes it dangerous. Attackers test millions of pairs, often through residential proxy networks that spread the traffic across thousands of home IP addresses, so a simple per-IP rate limit does not stop them. A small success rate — even one in a thousand — yields thousands of compromised accounts.

Once an account is open, the attacker can steal money, read email, reset other passwords, or sell the account. That is why the law treats the login attempt itself as the crime,

OWASP defines credential stuffing as testing username and password pairs obtained from the breach of another site, in its credential stuffing prevention cheat sheet. The FBI’s 2025 report, linked in the sources, records 191,561 phishing and spoofing complaints, the context in which most account takeover begins.

not only the theft that follows.

Is credential stuffing illegal?

Yes. Credential stuffing is illegal in the United States, the United Kingdom and the European Union. The short answer is that you are accessing someone else's account without permission, using credentials you know were stolen, and the law calls that unauthorised access.

In the US, the main law is the Computer Fraud and Abuse Act, or CFAA, codified at 18 U.S.C. 1030. It criminalises intentionally accessing a computer without authorisation, or exceeding authorised access, to obtain information. A computer connected to the internet counts as a protected computer, so almost every website is covered.

That is not the only law that can apply. Prosecutors can also charge wire fraud, which covers schemes to defraud carried out over interstate communications, and aggravated identity theft under 18 U.S.C. 1028A, which carries a mandatory two-year sentence that runs consecutively to the underlying offence. State computer-crime laws can apply at the same time.

The UK position is similar. The Computer Misuse Act 1990 criminalises unauthorised access to computer material, and fraud and identity offences can also apply. In the EU, member states have their own computer-crime laws implementing the EU directive on attacks against information systems, and data protection law adds further duties.

How credential stuffing works1Breachpasswords stolenfrom one site2Bot testingpairs tried atscale, via proxies3Matches foundreused passwordsopen accounts4Takeovertheft, fraud,resaleThe reused password is the vulnerability. A unique password breaks the chain.
Credential stuffing turns one breach into many compromised accounts. Illustration by Cysoro.

Which US laws apply to credential stuffing?

The CFAA is the main federal law, and it covers several kinds of conduct that credential stuffing involves. The table below summarises the provisions prosecutors most often use.

LawWhat it coversMaximum penalty, first offence
CFAA 1030(a)(2)Access without authorisation to obtain information1 year (misdemeanour), or 5 years if for gain or over $5,000 damage
CFAA 1030(a)(4)Access to commit fraud, obtaining value over $5,0005 years
CFAA 1030(a)(5)Knowingly causing damage, including transmitting code10 years
CFAA 1030(a)(6)Trafficking in passwords or access devices1 year
Wire fraud (18 U.S.C. 1343)Scheme to defraud using interstate communications20 years
Aggravated identity theft (1028A)Using another person's identity in a felony2 years mandatory, consecutive

A CFAA conviction can carry up to 10 years for a first offence and 20 years for repeat or aggravated conduct. Prosecutors often stack charges: one login can support a CFAA count, a wire fraud count, and an identity theft count, which is why the total exposure is much larger than any single provision suggests.

The CFAA also allows civil claims. A victim company can sue for losses and the cost of responding to the attack, which is a separate risk from any criminal prosecution. That civil exposure is one reason companies invest in bot detection and rate limiting.

Two Supreme Court cases shape how the CFAA is read. In Van Buren v. United States (2021), the Court narrowed the meaning of exceeding authorised access, holding that it does not cover someone who is allowed to access a system but uses it for an improper purpose. That ruling helps employees who misuse access they were given; it does not help an outsider who was never authorised at all, which is the position of a credential stuffer.

Is credential stuffing illegal in the UK and the EU?

Yes. In the UK, the Computer Misuse Act 1990 makes it an offence to cause a computer to perform a function with intent to secure unauthorised access to any program or data. Testing stolen credentials against someone else's account is unauthorised access, even if the login succeeds because the password is correct.

UK prosecutors can also charge fraud offences where the attacker goes on to steal money or goods, and identity offences where personal data is misused. The National Crime Agency and the police have investigated credential stuffing operations, and the activity is treated as a serious cybercrime, not a prank.

In the EU, each member state has computer-crime laws implementing the EU directive on attacks against information systems, which requires criminal penalties for illegal access to information systems. The GDPR adds a separate layer: companies must protect personal data with appropriate technical measures, and a failure to defend against credential stuffing can lead to regulatory action.

The practical point is the same in every jurisdiction. The password being correct does not make the access authorised. Authorisation comes from the account owner and the service, not from knowing the secret.

What is not illegal: testing your own accounts

Not every password test is a crime. The line is authorisation, and it is worth stating plainly, because security professionals test logins every day as part of their job.

  • Your own accounts: testing your own passwords, or checking whether your password appears in a known breach, is legal. You can safely test a password with our pwned password checker.
  • Authorised security testing: testing a system with written permission, under a contract or a bug bounty programme, is legal within the scope of that permission.
  • Defensive testing: a company testing its own login defences against credential stuffing, using its own test accounts, is legal.

What is not legal is testing someone else's credentials without permission, selling or sharing lists of stolen credentials, or running bots against a service in breach of its terms in a way that amounts to unauthorised access. A website's terms of service alone do not always make conduct a federal crime after Van Buren, but the CFAA still covers access that was never authorised at all.

If you are a security researcher, get written scope before you test anything. If you are a curious beginner, practise only in your own home lab or on authorised platforms. That is the safe side of the line, and it is where the learning happens anyway.

What penalties do credential stuffing attackers face?

Penalties depend on scale, losses and jurisdiction, but they are serious. In the US, a first CFAA offence can mean up to 10 years in prison, and repeat or aggravated conduct up to 20 years. Wire fraud adds up to 20 years, and aggravated identity theft adds a mandatory two years on top.

Sentences in real cases reflect the harm, not just the login. Courts look at how many accounts were compromised, how much money was stolen, whether the attacker sold access to others, and whether the conduct was part of an organised operation. Large-scale operations that sell account access attract the longest sentences.

Financial consequences go beyond prison. Victims can sue under the CFAA for losses and response costs, regulators can fine companies that failed to protect accounts, and attackers can face asset forfeiture. For a young person tempted by a bot script, the cost of a conviction — a criminal record, lost employment prospects, and years in prison — is wildly out of proportion to any gain.

Enforcement is also more active than many attackers assume. The FBI's Internet Crime Complaint Center received 191,561 phishing and spoofing complaints in 2025, and account takeover is a priority for the FBI and the Secret Service. Credential stuffing leaves logs, payment trails and infrastructure fingerprints that investigators use to build cases.

How do companies defend against credential stuffing?

OWASP's credential stuffing guidance is clear: multi-factor authentication is by far the best defence, with analysis by Microsoft suggesting it would have stopped 99.9 percent of account compromises. Passkeys and FIDO2 security keys are the strongest form, because they cannot be phished or replayed.

Five layers that stop credential stuffing1. MFA and passkeys — a stolen password alone is not enough2. Breached-password checks — block passwords known to be leaked3. Rate limits per account and per IP — slow the bots down4. Bot detection — device, behaviour and reputation signals5. Monitoring — alert on login spikes and impossible travel
Layered defences against credential stuffing, based on OWASP guidance. Illustration by Cysoro.

Where MFA is not possible, OWASP recommends layered alternatives: breached-password checks at registration and login, rate limiting keyed to both the account and the IP address, device fingerprinting, and CAPTCHA challenges for suspicious logins. No single control is enough on its own,

OWASP’s companion guidance on bot management, in the OWASP bot management cheat sheet, explains how to layer edge, application and backend controls against automated abuse.

because residential proxies defeat per-IP limits and human solving services defeat CAPTCHAs.

Companies should also monitor for the signs of an attack: a spike in failed logins, logins from many IPs against many accounts, and a rise in password-reset requests. Early detection lets a team force password resets and notify affected users before accounts are drained.

If you run a website, the single most effective step is to require MFA for privileged accounts and offer passkeys to everyone else. The second is to check new passwords against breach lists, so a password that is already public cannot be chosen. Both are cheap compared with an incident.

How do you protect yourself from credential stuffing?

You cannot stop attackers from testing passwords, but you can make sure your passwords are not the ones that work. The defence is simple, even if it takes an afternoon to set up.

  1. Use a unique password for every site. A password manager makes this practical, and it will not autofill on a fake login page.
  2. Turn on MFA everywhere it is offered. Prefer an authenticator app or a security key over SMS codes.
  3. Use passkeys where available. Passkeys are bound to the real site, so a stolen password database is useless against them.
  4. Check whether your passwords have leaked. Use our pwned password checker to test a password against known breaches, and change any that appear.
  5. Watch for breach notifications. When a service you use reports a breach, change that password immediately — and check whether you reused it anywhere else.

If you learn an account was accessed without your permission, act quickly: change the password from a trusted device, sign out of all sessions, check for new forwarding rules and unknown devices, and report the incident to the service and, if money was lost, to the FBI's IC3 at ic3.gov.

Reuse is the vulnerabilityCredential stuffing only works because passwords are reused. One unique password per site, plus MFA, breaks the attack completely — even if your password leaks in a future breach.

The bottom line

Credential stuffing is illegal. In the US it can violate the CFAA, wire fraud and identity theft laws, with prison sentences up to 10 years for a first CFAA offence and more when charges are stacked. The UK and the EU criminalise it too, under computer misuse and illegal-access laws.

The defence, for individuals and for companies, is the same: unique passwords, MFA or passkeys, breached-password checks, and monitoring for login abuse. If you reuse passwords, change them now, starting with email, banking and your password manager.

Generate a strong replacement with our free password generator.

Frequently asked questions

Is credential stuffing illegal?

Yes. Credential stuffing is illegal in the United States, the United Kingdom and the European Union. In the US it can violate the Computer Fraud and Abuse Act, wire fraud laws and identity theft laws.

What is the punishment for credential stuffing?

Under the CFAA, a first offence can carry up to 10 years in prison, and repeat or aggravated conduct up to 20 years. Additional charges such as wire fraud and aggravated identity theft can add more time, and victims can also sue for damages.

Is it illegal to test someone else's password?

Yes, if you do not have permission. Trying a password you found in a breach, even once, is unauthorised access. Testing your own accounts, or testing with written permission as part of authorised security work, is different.

Is credential stuffing the same as brute force?

No. Brute force guesses many passwords against one account. Credential stuffing tests username and password pairs stolen from another breach, at scale, against many accounts. Password spraying tests one weak password against many accounts.

Can you go to jail for credential stuffing?

Yes. Credential stuffing that leads to account takeover has been prosecuted as a federal crime in the US, with prison sentences. The exact sentence depends on the scale, the losses and the other charges.

Is credential stuffing illegal in the UK?

Yes. In the UK it can be an offence under the Computer Misuse Act 1990, which criminalises unauthorised access to computer material. Fraud and identity offences can also apply.

How do I protect myself from credential stuffing?

Use a unique password for every site, turn on multi-factor authentication, and use passkeys where available. A password manager makes unique passwords practical, and it will not autofill on a fake login page.

Sources

  1. OWASP — Credential Stuffing Prevention Cheat Sheet
  2. OWASP — Bot Management and Anti-Automation Cheat Sheet
  3. FBI Internet Crime Complaint Center — 2025 IC3 Annual Report
  4. LegalWin — The Computer Fraud and Abuse Act (CFAA): A Complete Guide
  5. Manshoory Law — Computer Crimes and Internet Fraud Laws in California
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the Computer Fraud and Abuse Act (18 U.S.C. 1030), OWASP credential stuffing guidance, and the FBI IC3 2025 report.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free