Information Security

Your MFA Didn’t Fail. It Just Wasn’t Guarding the Thing That Got Stolen

MFA Blog Thumbnail

You rolled out MFA, told leadership you were covered, and an attacker still got into a mailbox. Stop me if you’ve heard this one.

I’ve watched it happen more than once. The team swears MFA was enforced, and they’re right. It was. It just wasn’t what failed.

WHAT MFA ACTUALLY PROTECTS

MFA protects the login. That’s it. It proves who you are at one moment in time.

After you authenticate, the site hands your browser a session cookie or token. From then on, that token is your identity. Whoever holds it is you.

No password. No prompt. No second factor. The server has no reason to ask again.

PATH ONE: ADVERSARY-IN-THE-MIDDLE PHISHING

This is T1557, Adversary-in-the-Middle in ATT&CK. Open-source phishing kits like Evilginx make it easy, and phishing-as-a-service platforms have packaged the same idea for people who can’t build it themselves.

Here’s how it works. The victim clicks a link and lands on a page that looks exactly like the real login. It isn’t a copy. It’s a reverse proxy sitting between the victim and the real site.

The victim types their password. The proxy relays it. The real site asks for the MFA code. The proxy relays that prompt too. The victim approves it, and the real site issues a session cookie.

The proxy grabs that cookie on its way past. The victim sees a normal login. The attacker now has a valid, fully authenticated session.

MFA worked perfectly. The user did everything right and still lost the session.

PATH TWO: INFOSTEALERS

The second route skips phishing entirely. This is T1539, Steal Web Session Cookie.

Infostealer malware such as Lumma and RedLine runs on an infected machine and pulls saved credentials, cookies, and tokens straight out of the browser. The logs get packaged and sold or traded. The buyer imports the cookie into their own browser and walks in.

Here’s the thing. The victim never sees a phishing page. They might have just run a cracked installer or a fake software download. The MFA they completed last week is irrelevant, because the stolen cookie is already past that gate.

WHY THIS KEEPS SURPRISING PEOPLE

Most security awareness treats MFA as a finish line. Enable it, report the percentage, move on.

That’s the wrong question. “Is MFA enabled?” tells you almost nothing about whether an attacker can get a valid session. The better question is whether your MFA is phishing-resistant, and whether a stolen session would still work.

Those two questions have very different answers.

WHAT ACTUALLY HELPS

No single control fixes this. Layer these, in roughly this order of impact:

  1. Move to phishing-resistant authentication. FIDO2/WebAuthn security keys and passkeys bind the authentication to the real domain. A proxy page on a lookalike domain can’t relay it, so the AiTM attack breaks at the first step. Start with admins and executives, then work outward.
  2. Shorten session lifetimes. A cookie that expires in hours is worth far less than one that lives for weeks. Require re-authentication for sensitive actions and privileged roles. Yes, users will complain. Do it anyway.
  3. Use token binding and device-bound sessions where you can. Support varies by identity provider and application, so check what yours offers. The goal is that a cookie lifted from one machine fails when replayed from another.
  4. Tie conditional access to device compliance. Don’t just check the user. Check whether the device is managed and healthy. A valid token from an unmanaged device should not get you into sensitive systems.
  5. Build detections for anomalous token use. Alert on impossible travel, new user agents, and a session suddenly appearing from a different IP or ASN than the one that authenticated. Watch for new inbox rules and OAuth app consents right after a login, since those are common attacker follow-ups.
  6. Stop infostealers at the endpoint. The cookie is only as safe as the machine holding it. Keep EDR deployed, restrict software installs, and block the cracked-software habit that feeds these infections.
  7. Have a revocation plan. Resetting a password does not always kill an active session. Know how to revoke refresh tokens and sessions in your identity provider, and practice it before you need it.
FOR LEADERS

Ask your team a pointed question: is our MFA phishing-resistant, and how fast can we revoke a stolen session? If the answer is a pause and a guess, you’ve found your gap.

Don’t accept “MFA is enabled” as a status report. It’s a starting point.

FOR STUDENTS

I tell my students the same thing every term. Learn how session tokens work before you chase the next tool.

Understand what a cookie is, where it’s stored, how a server decides to trust it, and what happens when it moves to another machine. Everything in identity security builds on that. Once you see it, AiTM and infostealers stop looking like two separate problems. They’re two ways of stealing the same thing.

THE TAKEAWAY

This week, pick one thing. Find out which of your accounts still use SMS or app-push MFA, and put the privileged ones first in line for FIDO2. Then check how long your sessions actually live.

If you want practical material to build your skills and your team’s, head over to jrobertsonsecurity.gumroad.com.

← CISA KEV Catalog Compliance Problems: No Patches Available
← Back to Blog

Want to Go Deeper?

Browse online courses that cover these topics with the depth and clarity you need to apply them.