Book a free call

How AI Agents Power Credential Stuffing Attacks

AI agents make credential stuffing faster and harder to spot: they test stolen logins at scale, learn which accounts respond, and mimic real users while they do it.

Hertiv engineering teamReviewed by a senior engineer
6 min read
How AI Agents Power Credential Stuffing Attacks
On this page

Short answer

AI agents power credential stuffing by testing stolen usernames and passwords against login pages at scale, learning from each response and adapting like a human attacker would. They rotate addresses, solve challenges and mimic real user behaviour, which makes the attack faster, cheaper and harder to tell apart from normal logins.

What is credential stuffing?

Credential stuffing is an attack where stolen usernames and passwords from one breach are tested against many other sites, because people reuse the same login in several places. The attacker does not need to break anything; they only need a list of leaked credentials and a login page that accepts them.

The attack works because password reuse is common. A list of a million leaked logins can open thousands of accounts on other sites, even if only a small share of people reused their password. The attacker then sells the working accounts or uses them for fraud.

Credential stuffing is different from guessing passwords. Guessing tries random passwords against one account, while stuffing tries known passwords against many accounts. The defence is different too, which is why the two attacks are often confused.

How do AI agents change the attack?

AI agents change credential stuffing by making the attack adaptive. Old bots followed a fixed script: try a login, record the result, move on. An agent watches the response, changes its approach when a site blocks it, and learns which patterns get through.

BehaviourOld botsAgent-driven attacks
Login attemptsFixed list, fixed orderPrioritised by likely success
Blocking responseStops or retries blindlyChanges address and timing
ChallengesFails or skipsSolves or works around them
BehaviourSame timing every timeVaries timing and device signals
LearningNoneRemembers what worked

The result is an attack that looks more like real users. Login attempts arrive at varied times, from varied addresses, with varied device details, so the simple rules that used to catch bots no longer work.

How does an agent-driven attack work, step by step?

An agent-driven credential stuffing attack follows a cycle: prepare, test, learn and adapt. Each step is automated, and the agent adjusts the next step based on what the last one returned.

  1. Prepare the list. The attacker starts with leaked credentials, often bought or collected from public breaches, and sorts them by likely value.
  2. Test a small sample. The agent tries a few hundred logins first, to learn how the site responds to success, failure and blocking.
  3. Adapt to the defence. If the site blocks an address, the agent switches to another; if a challenge appears, it tries to solve it or slow down.
  4. Scale the working pattern. Once the agent finds a pattern that gets through, it applies it to the rest of the list.
  5. Sort the results. Working logins are separated from failures and sold or used, while the agent notes which sites resisted and why.

Understanding this cycle matters for defence, because each step leaves a signal. The sample test, the address changes and the timing shifts are all things a defender can watch for.

Why are these attacks hard to spot?

These attacks are hard to spot because the agent mimics real user behaviour. It varies the time between attempts, uses different device details, and spreads the load across many addresses, so no single signal looks like an attack.

The other problem is volume. A site with thousands of daily logins cannot review each one by hand, and an agent that tries a few hundred logins an hour blends into normal traffic. The attack only becomes visible when the numbers are added up across days.

Finally, the attack reuses real credentials, so a successful login looks exactly like a real user signing in. The site cannot tell from the login alone whether the person typing the password is the owner or someone who bought it. That is why the defence has to look at behaviour, not just the password.

Which accounts and services are targeted?

Attackers target accounts that hold money, data or access. Email accounts are the top target, because an email account can reset passwords on other sites. Shopping, banking, streaming and gaming accounts follow, because they hold payment details or sellable goods.

Business services are targeted too. A working login to a company email or cloud account can open the door to internal systems, so attackers test business logins as well as consumer ones. Small companies are often softer targets, because their defences are thinner.

Accounts with weak or reused passwords are the easiest wins, and agents learn to prioritise them. An account with a strong, unique password and a second factor is rarely worth the agent's time, because the attack moves on to easier targets.

How do you defend a login page?

You defend a login page by making stolen credentials useless and making the attack expensive. No single control stops credential stuffing, but several together make the attack slow, costly and easy to spot.

  • Require a second factor. A password alone should not open an account; a code or a passkey should be needed too.
  • Limit login attempts. Slow down or block repeated failures from one address, and add a delay after several wrong tries.
  • Watch for bot behaviour. Look for logins at odd hours, from new devices, or with timing that no human matches.
  • Check leaked passwords. Warn users whose password appears in a known breach and ask them to change it.
  • Use passkeys where possible. Passkeys cannot be stuffed, because there is no password to steal and reuse.

For teams that need help, cybersecurity threat detection covers how to spot these attacks in practice.

Defenders also use agents of their own, as AI agents for cybersecurity explains.

Protecting the systems that run those agents is covered by AI security.

Example (hypothetical): a login page under attack

Example (hypothetical): a shopping site sees 10,000 login attempts in one day, while a normal day brings 2,000. The extra 8,000 come from many addresses, at varied times, and 120 of them succeed.

The site's team checks the numbers. Of the 120 successes, 90 come from accounts whose passwords appear in a known breach, and 30 are first-time logins from new devices. The team locks those 120 accounts, forces a password reset, and asks the owners to turn on a second factor.

The attack cost the site a day of work, but the numbers show why the defence matters: 120 accounts out of 8,000 attempts is a 1.5% success rate, and without the second factor the attacker would have kept all 120. With it, the next attack gets almost nothing.

What are the common mistakes?

The most common mistakes in defending against credential stuffing are relying on passwords alone, ignoring small attack signals, and warning users too late.

  • Passwords alone. A password that can be reused can be stuffed; a second factor breaks the attack.
  • Ignoring small signals. A few hundred extra logins a day is easy to miss, and it is often the start of a larger attack.
  • Blocking too broadly. Blocking whole regions or networks punishes real users and pushes attackers to new addresses.
  • Warning users too late. Telling users their password leaked months after the breach leaves the account open.
  • No passkey option. Sites that offer no password-free login leave every account exposed to stuffing.

Key takeaways

  • Credential stuffing tests stolen logins from one breach against other sites
  • AI agents adapt: they learn from blocks, vary timing and solve challenges
  • A successful stuffed login looks exactly like a real user signing in
  • A second factor and passkeys break the attack, because there is no password to reuse
  • Watch for small signals: a few hundred extra logins a day is often the start

Frequently asked questions

What is the difference between credential stuffing and brute force?

Brute force guesses many passwords against one account, while credential stuffing tests known passwords from a breach against many accounts. Stuffing is more dangerous because the passwords are real, so a match opens the account.

Where do attackers get the credential lists?

Mostly from data breaches, where usernames and passwords leak and are then shared or sold. Some lists are built from phishing pages that collect logins directly. Once a list exists, it can be used for years.

Can AI agents solve CAPTCHAs?

Some can solve simple challenges, and others work around them by slowing down or switching addresses. That is why a single challenge is not a defence on its own; it has to sit alongside attempt limits and behaviour checks.

Does a strong password stop credential stuffing?

Only if it is unique. A strong password that is reused on another site is still in the leaked list, so it can be stuffed. A strong, unique password plus a second factor is the combination that actually stops the attack.

How do I know if my account was stuffed?

Signs include login alerts from places you have never been, password reset emails you did not ask for, and orders or changes you did not make. If you see any of those, change the password and turn on a second factor at once.

Should small businesses worry about credential stuffing?

Yes. Small businesses are often softer targets because their defences are thinner, and a working login to a company email can open internal systems. The same defences apply: second factors, attempt limits and leaked-password checks.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Worried your login pages could be the next target? Talk to Hertiv.

A senior engineer replies within one business day. Or see our AI Security service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call