Hacked even though 2FA was on
2FA protects the moment you log in. After that, the site gives your browser a cookie so you stay logged in, and that cookie is what an infostealer copies. Whoever has it doesn't log in at all, so 2FA is never asked. That's how one PC infection can open several “protected” accounts at once.
Updated
How they got past 2FA
Stealing session cookies is a known attack, listed by MITRE: a valid session cookie lets an attacker use a web service as the user, and can get past some kinds of 2FA1. Infostealers on Windows have even taken Google's own sign-in tokens and used them to make fresh cookies after the victim changed the password; Google's answer was to sign out, or remove the device from the account, to kill them2.
Other ways 2FA gets around, to rule them out: a fake login page that passes your code on in real time, a SIM swap (for text-message codes), or a sign-in prompt you approved without meaning to. If several accounts were taken around the same time, and you'd run something new on the PC, it was almost certainly a stealer.
What to do now
- Take the PC off the internet. Turn off its Wi-Fi or pull the cable. Don't log in to anything on it, not even to “check”, until it's clean: whatever you type or log in to there can be taken again.
- From your phone, start with your email: the account that can reset all the others.
- For each account: change the password, then sign out of all other sessions or devices. The second part is what kills a stolen cookie.
- Check what they changed: recovery email and phone, 2FA methods, connected apps, and in email, forwarding rules and filters3.
- Clean the PC, or reset it. Run a full scan and a Microsoft Defender Offline scan (how, step by step). If anything turns up that you can't explain, or you're not sure, reset Windows with Remove everything (what a reset does and doesn't fix). Only then log in to your accounts on it again.
Account by account
Google and Gmail
Google's page for a hacked account walks through it: review recent security events, then Your devices, and sign out of any device or session you don't recognise3,4. If several sessions show the same device name and you're not sure, sign out of all of them4. In Gmail, remove labels, filters and forwarding you didn't set up3. Google also suggests running antivirus, or resetting the computer and reinstalling its system, when harmful software is involved3.
Microsoft (Outlook, Xbox, Minecraft)
Microsoft's own order: clear the PC of malware first, then change the password5. Use the sign-in helper on its hacked account page if you can't get in5.
Use Instagram's own page for hacked accounts, instagram.com/hacked, typed in yourself. Once you're back in, check the list of places you're logged in, in the app's security settings, and log out of the ones you don't know.
TikTok, X, Snapchat and others
Look in the app's security settings for the list of logged-in devices or sessions, and log out of every one you don't know. Then change the password. If you can't get in, use the help centre on the service's own website, never a “recovery” account that messages you.
Stop it happening again
- Keep 2FA on. It still stops anyone who only has your password.
- Log out of important accounts on PCs you share or don't fully trust, and don't stay logged in to everything everywhere.
- Keep Windows Defender (or your antivirus) on, and never switch it off because a download tells you to. A cheat or “free” tool that asks for that is telling you what it is.
- Turn on 2FA everywhere, with an authenticator app rather than text messages where you can. It doesn't stop a stolen cookie, but it stops the thief from logging in with a stolen password.
- Add a tripwire for the next one. ABA plants fake passwords, wallets, Discord tokens and game logins where infostealers look, and freezes any program that opens one, usually within 0.1 s. It isn't an antivirus and it catches only stealers that open a bait, so it goes next to Defender, not instead of it (why both).
Questions
So is 2FA useless?
No. Most account takeovers start with a leaked or guessed password, and 2FA stops those. It just can't help once a program on your own PC hands over the logged-in session.
The login came from another country. Was I hacked from there?
Not necessarily. Thieves often route their traffic through proxies: Lumma's operators added proxies to get around Google's location-based checks2. The place on the list may not be where they are.
I changed my password and they're still in.
Then the session was never signed out, or the stealer is still on the PC. Why that happens.
Sources
- MITRE ATT&CK, Steal Web Session Cookie (T1539).
- The Register, Google password resets not enough to stop these info-stealing malware strains (January 2024).
- Google Account Help, Secure a hacked or compromised Google Account.
- Google Account Help, See devices with account access.
- Microsoft Support, How to recover a hacked or compromised Microsoft account.
More guides
- Changed my password and got hacked againThe four usual reasons an account is taken again after a password change, and how to close each one.
- Discord hacked even with 2FA onWhy 2FA didn't stop it (a stolen token), and how to get the account back and keep it.
- What is an infostealer?What they take, how they get in, and why a stolen cookie gets past your password and 2FA.
- How to check your PC for an infostealerThe signs, the scans to run, and what to change first, from another device.