Credential-based attacks are among the most common ways threat actors gain unauthorized access to systems and networks. This content covers the primary methods used to steal or guess passwords, including social engineering, eavesdropping, brute force techniques, rainbow table lookups, and credential stuffing.
Password Hacking Methods
Another way a threat agent is going to get into our networks, into our data, into the areas we don't want them to get into, is by credentials, by hacking our credentials, by hacking our passwords.
When it comes to passwords being hacked, there are really just two categories. Number one, either the hacker knows the password, or they have guessed at the password. If they know the password, then either that password has been told to them or they have stolen it somehow. So that is the know the password, and then there is the guess the password, and there are a few ways that they can actually guess passwords.
There are a lot of different methods in which a password could be stolen. For instance, social engineering is an example, whether it is some sort of phishing campaign that has happened, or some sort of shoulder surfing. They could steal it from the actual user themselves.
Another thing that can happen is eavesdropping. There are times that we type passwords into our machines, or the password is being sent across the network, and if that gets intercepted and listened to. Maybe it is a keylogger as we are typing it into the keyboard, as it is sending it across. Perhaps there is a man in the middle, where they can take a look at the packets that are being sent across and see what your password is.
There are also data breaches. Maybe there is some sort of malware, or the network was hacked, where they got the database of information of a bunch of passwords and usernames of the company.
Just a brief insight into this man-in-the-middle, or on-path. Man-in-the-middle or on-path could be a form of eavesdropping, although there are other purposes for having a man-in-the-middle attack as well. A man-in-the-middle attack is if you have a machine that wants to talk to a server over here, but somehow the information is actually going through some other device that was not intended. Now this is a man in the middle, or a device in the middle, or like I say an on-path attack, and so this is one of the attacks that can happen for eavesdropping.
A hacker could get a hold of your password in one of a couple of different ways. Number one is that password could be just plain text, which means they see what your password is. For instance, let's say they used the keylogger and got your password, and that keylogger just records the keystrokes that you have and sends it to them, and so they would be able to see exactly what your password is in plain text.
But it also could come to them encrypted. An example like this is, let's say they go and get a password database that they have downloaded, that they hacked into somebody's site and they got a hold of their people's usernames and passwords. If it is encrypted correctly, then they have an encrypted form of your password, and that can be difficult for them to actually figure out what your actual password is, because with a good encryption it is going to be almost impossible. With a good encryption they are not going to be able to reverse engineer that and figure out what your actual password is.
But there is this thing called a rainbow table that can actually help them out. A rainbow table is a reference table. Once again, it is hard to reverse engineer from a good encrypted password to figure out what the plain text is, but they do know what the algorithms are to go the other way, to take your password and encrypt it. They do know how that part operates, how that part works. So what they do is they take a bunch of different passwords, or maybe some sort of sequences, and they plug it into the algorithm, and then they figure out what the encrypted version of that looks like and they put it into a table. That is called a rainbow table. The rainbow table is going to record plain text passwords and then the encrypted passwords.
Where this comes into play is now, if they have your encrypted password, they are going to look up on this table to try to find what your plain text password is. The best way to be able to combat this is to have good passwords, long passwords that are well constructed, and then it is going to make it almost impossible for them to use rainbow tables, because rainbow tables definitely have their limits.
Then you have the brute force attack. A brute force attack is just when they are guessing. They are just going to guess a lot of credential combinations to try to gain access to a system. So they are looking at maybe it is a username and a password to get into the system. One thing that is common with a brute force attack is that the username would be given. They would have some sort of given username that they have, and then they are trying a bunch of different passwords that they do not know to see if they can gain access to it.
But spraying kind of works in the opposite. Spraying is actually a type of brute force attack, but spraying is that they have a single password that they are trying on a lot of different usernames or a lot of different accounts. A good example of this might be that there is some sort of company that has a default password to get into a certain system, and the hacker knows this, so they use this default password but then they try a lot of different accounts to try to gain access into that system. If your company uses those default passwords, it makes you susceptible to this type of an attack.
A hacker has ways to be able to shortcut to find out what your password is going to be. They essentially take an educated guess. Let's talk about some guessing methods that they have.
It could be that they are just trying everything. They start out with, let's say it is a system that has three characters as the minimum password. Well, then they could guess 000, 001, 002, 003, and so on and so forth, and just guess every single character all the way up to the end, zzz. And then they start out with four characters and try four characters, and then five characters, and just keep guessing from that perspective to break into that system.
Or perhaps they are trying a bunch of common passwords. It is amazing how the same passwords are used over and over and over again out there. It is kind of insane, actually. So don't use your default passwords, make sure you change those passwords, make sure it is not one of those common passwords that are out there.
There are also dictionary passwords, where they will just try a single dictionary word or multiple dictionary words. So don't use a single or double dictionary word. Make sure that if you are using dictionary words you are using many of them. That is going to be a key with that.
They will also take a look at information they know. Maybe they know your date of birth, maybe they know your kid's date of birth, maybe they know the address that you live at. They will use all of those numbers and sequences, and they will use that information to try to break into your accounts.
Then there is something called credential stuffing. Credential stuffing just means that, let's say there is a company XYZ and sometime in the past you have created an account for XYZ, and that company got compromised and all their passwords were hacked and stolen. Now those get uploaded into this database for all cyber criminals to be able to have access to, and you could actually go out there and download this database of all these past hacked passwords.
What they do then is they find out, well, you have this password at this one site that you got onto, this XYZ site, so what I am going to do is start trying out that same username and password combination for all of these other sites to see if I can break into things like your social media. So credential stuffing is using this database that is accessible to anyone out there, taking the compromised passwords that already exist out there on your account, and trying those on your other accounts that you have.
Then we have the mask attack. A lot of times people will use some sort of pattern that they will have to be able to access different sites. A great example of this is when you require your users to change passwords, they just increment the numbers up. So whatever their password is with a one at the end, and their password with the two at the end, the password with three at the end. Well, it is pretty easily guessable what the sequence is going to be.
Same thing if you have multiple companies that got their sites compromised. Somebody can take a look at what your passwords are and reverse engineer that to figure out what your next password is going to be for any particular site. So if you use some sort of patterns to be able to remember your different passwords to different sites, that could be problematic.
Just as an example, I have gone to this Have I Been Pwned site right here, which I have utilized quite a bit. I typed in one of my past emails that I had at a company that I worked for, to see what other companies I had registered for and it got hacked. As you can see here, these are all of the companies in the databases that got hacked that had information that was compromised. For instance, this one, I had an email address, an employer, geographical location, job titles, names, phone numbers and social media profiles hacked. Here is a LinkedIn one, and as part of it, all sorts of information along that.
As you can see here, this is just one of my many emails that I have that has a ton of information that has been hacked out there. So this is a good site to go to and just check out to see if you have had an issue in the past where your username and password has been hacked out there.
As you can see, threat agents have a few different ways they can approach getting people's usernames and passwords, and it can be quite devastating to those people and the networks that they are on. So we are really going to want to safeguard against that.
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 →