Infostealer malware - how passwords get stolen from your own device
A strong, unique password stored in a manager can still end up in criminal hands, because some theft happens on your computer rather than at the company you signed up to. Infostealers copy saved logins and session cookies, and the cookies bypass two-factor entirely.
The short answer
- An infostealer is malware that copies saved passwords, browser cookies and autofill data off a device and uploads them, usually in under a minute.
- It also takes session cookies - the tokens that keep you logged in. A stolen session can be replayed without a password or a two-factor code.
- Password strength does not help here. The password is copied, not guessed, so length and uniqueness make no difference to this one attack.
- The main delivery routes are fake software downloads, cracked apps, malicious ads and copy-paste instructions on fake verification pages.
- Recovery needs the malware removed first. Changing passwords on an infected device just hands over the new ones.
There is a question that comes up whenever someone follows all the advice and still gets breached: my password was long, random and used nowhere else — how did anyone get it?
Usually the answer is that nobody guessed it. It was copied off a device.
Quick answer
An infostealer is malware that copies saved passwords, browser cookies and other credentials off a computer or phone and uploads them to an attacker. It runs once, finishes in seconds, and generally leaves no visible damage — the theft is the whole operation.
Two things make it different from the attacks most password advice is written for:
- It does not guess. Password length and randomness are irrelevant when the password is being read out of storage.
- It steals sessions, not just passwords. That is what lets it walk past two-factor authentication.
What actually gets taken
A single run typically collects:
- Passwords saved in the browser — every site, in one file
- Session cookies — the tokens that keep you signed in
- Autofill data — names, addresses, phone numbers, sometimes card details
- Cryptocurrency wallet files and browser wallet extensions
- Files matching common patterns, such as documents with "password" in the name
- A screenshot and a list of installed software, for context
The whole package is called a stealer log, and logs are traded and resold in bulk. This is why a credential can surface publicly years after an infection nobody noticed.
Why session cookies matter more than passwords
This is the part most guides skip, and it is the reason two-factor authentication sometimes fails to help.
That is the mechanism. Two-factor authentication protects the moment of signing in. A stolen session cookie skips that moment entirely.
It is not unstoppable, and the industry has started to close it. Google's Device Bound Session Credentials ties a session to hardware in the device — the TPM on Windows, the Secure Enclave on macOS — so a copied cookie is useless on another machine. It became generally available for Windows users in Chrome 146 in April 2026, with macOS following. Sites have to adopt it, so coverage is partial, but the direction is clear.
How devices get infected
Almost every route requires someone to run something. The persuasion is the sophisticated part; the malware is bought off a shelf.
- Cracked or pirated software, and key generators — the single most reliable delivery method there has ever been
- Fake installers for popular free apps, served by lookalike download sites
- Malicious search adverts that sit above the real result for a well-known program
- Files shared through gaming platforms, Discord or messaging apps, often as a mod, cheat or beta invite
- Fake job tests and briefing documents sent to freelancers and developers
- Copy-and-paste instructions on a page claiming to verify you are human, fix a broken video, or repair a document
That last one deserves its own warning, because it is the growth area and it does not look like a download at all. A page shows what appears to be a routine verification step and asks you to press a key combination and paste something. The paste is the malware. CAPTCHA scams covers how those pages are built and why the instruction is always the tell.
Why this changes what "good password hygiene" means
It does not make the usual advice wrong. It makes it incomplete.
| Habit | Stops guessing | Stops reuse cascades | Stops an infostealer |
|---|---|---|---|
| Long, random password | Yes | No | No |
| Unique password per site | No | Yes | No |
| Password manager | Yes | Yes | No, but limits the blast radius |
| SMS or app two-factor codes | Yes | Partly | Not if the session is stolen |
| Passkey or hardware key | Yes | Yes | Partly — no reusable secret to copy |
| Keeping the device clean | — | — | Yes |
The honest summary: password practices protect you from attacks against the services you use. Device hygiene protects you from attacks against you. Both are needed, and only one of them is what most advice talks about.
This also explains a pattern that confuses people. Credentials from stealer logs are what feed credential stuffing — automated attempts of leaked email-and-password pairs across hundreds of other sites. A password stolen from your laptop on Monday can be tried on your bank on Tuesday.
Are password managers still worth it?
Yes, and the reasoning is worth being precise about.
A password manager does not stop an infostealer. A vault that is unlocked when the malware runs can be read like anything else.
But it changes the shape of the damage in ways that matter. Your passwords are unique, so the log cannot be replayed across your other accounts. The vault locks after inactivity, so the exposure window is narrower than a browser's always-available saved passwords. And a manager will not autofill on a lookalike domain, which removes the phishing route entirely. How password managers work covers the trade-off in full.
How to reduce the risk
- Install software only from official sources — the vendor's own site, the platform's app store. Type the address rather than searching for it, because the advert above the real result is a known delivery route.
- Never run cracked software. There is no safe version of this.
- Keep the operating system and browser updated. Automatic updates close the vulnerabilities that let files run without you agreeing.
- Leave built-in protection on — Microsoft Defender, Gatekeeper and XProtect on macOS, Google Play Protect on Android.
- Do not paste commands you did not write into a terminal, the Run box, or PowerShell.
- Use passkeys where offered. There is no stored secret for a stealer to copy. Are passkeys safer than passwords covers what they do and do not fix.
- Sign out of things you are not using, especially on shared or work machines. A session that has ended cannot be replayed.
If you think you have been hit
Order matters here more than in most incidents.
- Clean the device first. Run a full scan with reputable security software. If the infection is confirmed or you cannot be sure, reset the device and restore from a backup made before the infection. The NCSC publishes plain malware removal guidance.
- Do not change passwords on the infected device. The new ones are captured the same way the old ones were.
- From a clean device, change your email password first, then sign out of all sessions. The sign-out is essential — it invalidates the stolen cookies, which a password change alone may not.
- Work through the rest in order of damage: banking, cryptocurrency, cloud storage, social media, shopping accounts with saved cards.
- Sign out everywhere on each one. Every service that offers a "sign out of all devices" or "revoke sessions" option — use it.
- Check for changes the attacker left: email forwarding rules, new recovery addresses, added phone numbers, connected apps, and unfamiliar devices.
- Turn on two-factor authentication everywhere it is missing, and prefer an app or passkey over SMS.
What to do when a password is exposed in a breach covers the follow-up steps — credit freezes, monitoring, and the phishing that arrives afterwards.
Key takeaways
- Infostealers copy credentials off your device rather than guessing them.
- Session cookies are part of the haul, and a replayed session can bypass two-factor authentication.
- Password strength is no defence against this one attack, though it remains essential against others.
- Infection almost always requires running something — cracked software, fake installers, or pasted commands.
- Recovery starts with cleaning the device, then signing out of all sessions everywhere.
Learn the delivery tricks before you meet one
SafeSurf IQ shows you the fake download pages, adverts and verification prompts that install this, using real examples.
Try it freeFrequently asked questions
- What is infostealer malware?
- An infostealer is a type of malware built to copy credentials and other useful data off a device and send it to the attacker. Typical targets are passwords saved in the browser, cookies, autofill entries, cryptocurrency wallet files and documents. It usually runs once, finishes in well under a minute, and does not stay to cause visible damage - which is why infections often go unnoticed.
- How can someone get my password if it was strong and unique?
- Because this attack copies rather than guesses. A password saved in your browser or typed on an infected machine is read directly, so its length and uniqueness are irrelevant to that theft. Strength and uniqueness still matter enormously - they stop guessing and stop one leaked password unlocking your other accounts - but they are not a defence against malware already running on the device.
- Can infostealers bypass two-factor authentication?
- Often, yes, by stealing session cookies rather than codes. A session cookie is the token a site gives your browser after you sign in successfully, so that it does not ask again. If an attacker copies that token and loads it in their own browser, the site treats them as already authenticated. No password and no code is requested, because from the site's point of view the login already happened.
- How do devices get infected with an infostealer?
- Almost always through something the person was persuaded to run. Common routes are cracked or pirated software, fake installers for popular apps, malicious search adverts imitating a real download page, files sent through gaming or messaging platforms, and fake verification pages that instruct you to paste a command into your computer. Keeping software updated and installing only from official sources removes most of the exposure.
- How do I know if my device has an infostealer?
- Usually you do not, from the device itself - they are built to leave little trace. The realistic signals are external - a breach alert naming credentials you never leaked, sign-ins from unfamiliar locations, sessions you did not start, or a service forcing a password reset. If you suspect it, run a full scan with reputable security software and treat every password saved on that device as exposed.
- What should I do first if I think my passwords were stolen this way?
- Clean the device before changing anything. Passwords changed on an infected machine are captured again immediately. Run a full scan, or in a serious case reset the device from a known-good backup. Then, from a different clean device, change your email password, sign out of all sessions everywhere, and work through your other accounts starting with anything financial.
Sources
- 2026 Data Breach Investigations Report — Verizon Business, 2026
- 2025 Internet Crime Report — FBI Internet Crime Complaint Center, 2026
- Fighting cookie theft using device bound sessions — Google, 2024
- Device Bound Session Credentials — Google Chrome for Developers, 2026
- NIST SP 800-63B: Digital Identity Guidelines — National Institute of Standards and Technology, 2025
- Malware Removal Guidance — UK National Cyber Security Centre, 2025
About the author
Cybersecurity & Digital Literacy
Subash Poudel builds SafeSurf IQ, a digital literacy platform that teaches people to recognise scams by putting them in front of real ones. He writes the online-safety reference material here, working from primary reporting — FBI IC3, the FTC, Verizon's DBIR, NCSC and Ofcom — rather than secondhand summaries.
- Founder and engineer, SafeSurf IQ
- Writes and reviews the platform's phishing, scam and privacy curriculum
- Works from primary incident and fraud reporting, cited on every article
Last reviewed . Figures are checked against the primary sources listed above at each review.
Read next
- Password Security
What is credential stuffing? How one breach becomes many
Credential stuffing is not password guessing. It is taking email-and-password pairs already leaked from one service and trying them, automatically, on hundreds of others — which works because people reuse passwords.
- Password Security
Password managers: how they work and whether to trust one
The objection to password managers is that they put every password in one place. The answer is that the realistic alternative is not perfect memory — it is reusing six passwords across two hundred accounts.
- Password Security
Your password was exposed in a data breach. What to do
A breach notice, a browser warning and a Have I Been Pwned hit all mean the same thing - that password is now public and must be retired everywhere. What to do beyond that depends entirely on what else was taken.