Security

How hackers steal passwords — 7 methods

Understand the threats to protect yourself. These are the most common methods attackers use — and how to defend against each one.

updated 5 min read

Contents

Alarming context

22%
Of breaches start with abuse of stolen credentials, the most common initial vector (Verizon DBIR 2025)
10 bln
Stolen passwords published in a single leak "RockYou2024" in July 2024
Instantly
That's how long "cracking" the password "123456" takes — it tops every attacker's list
1,513
Reported cyber incidents in Croatia in 2025 (National CERT, 2025)

1. Brute Force attack

How it works
The attacker uses software that automatically tries all possible character combinations until it guesses your password. Modern graphics cards can try an enormous number of combinations, so short and simple passwords can fall very quickly — especially if a service stores them poorly.
How to protect yourself
Use long, random passwords or passphrases of several randomly chosen words — the more words, the better. For important accounts and your master password we recommend 5 words or more. Geslar generates such phrases from a Croatian wordlist and dialects; their strength comes from random selection and length.

Example: The password "Marko2024" (a name and a year) is among the first guesses on any attacker's list. A phrase of randomly chosen words from Geslar's wordlist of thousands of words is a different story: every extra word multiplies the number of possibilities, and with memory-hard hashing every guess is expensive for the attacker.

2. Phishing

How it works
You receive an email, SMS, or message that looks like it comes from your bank, Facebook, or Google. You click a link that leads to a fake page identical to the real one. You enter your credentials — and they end up with the attacker. 32% of reported incidents in Croatia are phishing (National CERT, 2025).
How to protect yourself
Never click links from unexpected messages. Always check the URL in the address bar. Enable 2FA on all accounts — even if an attacker gets your password, they can't get in without the second factor.

Red flags: Urgency ("Your account will be blocked!"), grammatical errors, suspicious links (goog1e.com instead of google.com), requests for personal data via email.

3. Credential Stuffing

How it works
Hackers take email + password pairs from previous data breaches and automatically try them on hundreds of other services. If you use the same password across multiple sites, one breach compromises all your accounts. Bots test thousands of combinations per second.
How to protect yourself
Never use the same password on two services. Use a password manager that generates a unique password for every account. Geslar's generator creates a new, random password or phrase for every account, and Škrinjar remembers it for you.

Check if you're affected: Use Geslar's breach check to check your password against billions of leaked passwords, and your email address on the official HaveIBeenPwned site. If it appears in a breach — immediately change the password on that service and everywhere else you've used it.

4. Keyloggers

How it works
Malware installs on your computer and records every keystroke. Everything you type — passwords, card numbers, private messages — is sent to the attacker. Keyloggers often spread through pirated software, fake updates, or infected USB drives.
How to protect yourself
Use an up-to-date antivirus. Don't install software from unverified sources. Use a password manager with an autofill function — the Geslar browser extension fills in passwords without typing, so a keylogger has less to record (you still type your master password — which is why a clean device matters).

5. Rainbow Table attack

How it works
The attacker uses a precomputed table that maps hashes (one-way digests of passwords) to original passwords. If a service hashes passwords poorly (without "salt"), the attacker can almost instantly find your password in the table.
How to protect yourself
Use long, random passwords that don't exist in dictionaries. Geslar derives a key from your master password with Argon2id (a memory-hard KDF resistant to GPU attacks) and a random salt unique to your account — precomputed tables don't help, and every guess is slow and expensive for the attacker.

6. Social Engineering

How it works
The attacker manipulates you into revealing your password. They pretend to be IT support, a colleague, or a boss. "I need your password to fix something on the server" or "Send me the access credentials, it's urgent." It works because it targets human psychology — trust, authority, and urgency.
How to protect yourself
Never give your password to anyone — no legitimate service will ever ask for your password by phone or email. If you need to share access, use Geslar's Secure send — an encrypted link with an optional PIN and automatic expiration.

7. Man-in-the-Middle (MitM)

How it works
The attacker inserts themselves between you and the server, usually on public Wi-Fi (cafe, airport, hotel). They intercept traffic and read everything you send — including passwords. Especially dangerous on unencrypted networks or with fake access points.
How to protect yourself
Avoid logging into sensitive accounts on public Wi-Fi. Make sure the URL starts with https://. Use a VPN for additional protection. Geslar encrypts your passwords on your device before sending — the server never sees them in plain text.

Protect yourself

Hackers have an arsenal of tools, but you have the power to make their job nearly impossible. Here's a summary:
A unique password for every service
One breach should not compromise all your accounts. A password manager solves this automatically.
2FA on everything
Two-factor authentication is your second line of defense. Even if an attacker gets your password, they can't get in without the second factor.
Skepticism toward messages
Every unexpected request for a password or personal data is suspicious — no matter how legitimate it looks.

How we solve this at Geslar

Geslar encrypts your passwords on your device before sending, so the server never sees them in plain text. Škrinjar generates and remembers a unique password for every service.

Meet Škrinjar →
Make a password an attacker will not guessA generator of Croatian phrases — free, no account.
Try the generator →
Author
Geslar
Geslar d.o.o. builds Škrinjar and Vezar — password and access protection for people and businesses.
More about Geslar →