Credential stuffing is an attack technique that uses stolen username and password pairs to gain unauthorized access to systems. This content covers how the attack works and demonstrates it using Hydra on a Kali Linux machine against an FTP target.
Credential Stuffing
Another type of attack is credential stuffing. Just a reminder that this is for ethical hacking purposes only. Don't use this for any illegal, malicious, or unethical activities.
There are times when an adversary will get a hold of a list of usernames and passwords, so they know what the usernames and passwords are. Maybe they don't know if the username and password has changed yet, but they want to run a bunch of usernames and passwords to try to log into a system. We call this credential stuffing.
Really, anybody can do this, because there are free databases out there full of hacked usernames and passwords.
Here's a website, haveibeenpwned.com, that accesses those resources, those free databases that are out there. What you can do is type in your email address and do a check on it. What it will do is find any accounts that are associated with that email account that you type in here, and it will let you know if it's been compromised at any one of the sites you may have used that before.
More likely than not, if that email account has been around for a while and you've used it for several different companies to log into several different accounts, probably one of those companies out there has been compromised and that information has been leaked out. Maybe it's a username and password, maybe it's some other information. It will let you know on this website what information was leaked.
So let's see what that looks like, to use Hydra to run a credential file against a host.
I'm on that Kali Linux box, and what we're going to do, I'm just going to do a list here. This credential stuffing.txt is the one we're going to look at. So let's take a look at that — credential stuffing, and we'll hit enter here. You can see what it has is a list of usernames with an associated password with it. So it's going to check this username and password combination, and then go to the next username and password combination, and then the next. So it's not mixing and matching these, it's just going to run through this list.
So let's see what that looks like now. We're going to do Hydra, and we're going to do a capital C with that file credential stuffing.txt, going to 10.110.40, and we are trying FTP. So let's go ahead and hit enter here.
What it found was all three of those, with the username and password combination that we gave it. So that's an example of credential stuffing. Really, you just need one of those accounts to hit to be able to log into the system, so we really just need one of these to be successful.
Here's that attack card on credential stuffing. We're just using a stolen database of credentials to test it out on some sort of system.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →