← All resources
Explainer

Session cookie theft: why MFA doesn't stop a stolen session, and what does

Attackers no longer need a password if they can take the cookie a browser receives after sign-in. Here is how session cookie theft works, the signals that give it away and the controls that limit the damage.

Explainer · 7 min read · By SafeToOpen Research · Published

Session cookie theft is now one of the simplest ways into a cloud account. When someone signs in to Microsoft 365, Google Workspace or Okta, the service hands their browser a session cookie or token that says, in effect, "this person has already signed in, with MFA". Whoever holds that cookie is treated as that person until it expires or is revoked. Steal it, and the password and the MFA prompt never come up. This guide explains how the theft happens, why MFA does not help once it has, and what security teams can do about it.

What is session cookie theft?

A session cookie is a small piece of data that keeps you signed in between page loads. Without it, every click would mean another password and another MFA prompt. Session cookie theft, also called session hijacking or pass-the-cookie, is copying that data and loading it into a different browser on another machine. Microsoft compares it to pass-the-hash and pass-the-ticket attacks in Active Directory: the attacker reuses proof of a sign-in rather than signing in [1].

Why doesn't MFA stop a stolen session cookie?

MFA protects the moment of sign-in. A session cookie is issued after that moment. Microsoft's incident responders put it plainly: tokens are issued to an identity that has already completed multifactor authentication, so a replayed token satisfies the MFA check and access is granted [1]. Describing a large adversary-in-the-middle (AiTM) campaign in 2022, Microsoft stressed that this is not a vulnerability in MFA [2]. The stolen cookie works whatever sign-in method the user chose [2].

That has a practical consequence. Microsoft recommends phishing-resistant MFA, such as FIDO2 security keys and certificate-based authentication, against relay kits that capture a sign-in as it happens [2]. Strong MFA still does nothing about a cookie copied from a laptop by malware after a genuine sign-in.

How do attackers steal session cookies?

Infostealer malware

Infostealers are malware that copy saved passwords, cookies and other secrets from a device and send them to the attacker, who often sells them on. Last month Microsoft led a global action against Lumma, one of the most widely used. Between 16 March and 16 May 2025 it identified more than 394,000 Windows computers infected with Lumma, which spreads through spear-phishing emails and malicious adverts [3]. Lumma's operators were among those who claimed in 2024 to have bypassed new cookie protections in Chrome, and researchers confirmed it could extract cookies from the latest version [4].

394,000+
Windows computers infected with the Lumma infostealer in two months, according to Microsoft [3]

The stolen data feeds bigger attacks. SpyCloud's summary of Verizon's 2025 Data Breach Investigations Report notes that 54% of ransomware victims had credentials exposed in infostealer logs beforehand [5]. The same report found that 46% of compromised systems holding corporate logins were not managed by the company, and that they held personal and business credentials side by side [6]. A contractor's home PC or a family laptop can leak a work session as easily as a company device, and the security team never sees it happen.

Adversary-in-the-middle phishing

AiTM kits put a proxy between the user and the real sign-in page. The victim sees the genuine Microsoft or Google page, types a password, approves the MFA prompt, and the proxy keeps the session cookie that comes back. Microsoft tracked one such campaign that attempted to target more than 10,000 organisations from September 2021 [2]. These kits need somewhere to host the fake page, and Interisle Consulting Group found that 79% of the domains reported for phishing in its 2024 study were registered by the criminals themselves [7]. That is why treating brand-new domains with caution helps, as our guide to URL filtering and newly registered domains explains.

Malicious browser extensions

An extension with permission to read cookies can take them straight from the browser. In April, Varonis researchers published a proof of concept called Cookie-Bite: a Chrome extension that watched for Microsoft sign-ins, read the Entra ID session cookies and sent them to the attacker, who loaded them into another browser [8]. When the researchers uploaded the packed extension to VirusTotal, no security vendor flagged it [8]. The targeted cookies last up to 24 hours, or up to 90 days for the persistent "stay signed in" version [8].

What are the signs of a hijacked session?

Theft itself is hard to see, because it happens on the endpoint or on the attacker's server. Replay is easier to spot, because the attacker's browser is not the victim's. Signals worth watching include:

Some identity providers now evaluate these signals after sign-in, not just at the door. Okta, for example, says its Identity Threat Protection evaluates every request after authentication and can challenge a hijacked session and revoke the Okta session cookie, forcing a fresh sign-in [9].

How to reduce the impact of session cookie theft

No single control stops session theft, so the aim is to shorten the window and raise the cost:

  1. Check the device on every sign-in. Conditional access policies based on device compliance are enforced even when a stolen cookie is replayed [2], and Microsoft advises that allowing only known devices that meet its security baselines helps against credential-theft malware [1].
  2. Shorten sessions where it matters. Reducing session lifetime forces people to re-authenticate more often, which limits how long a stolen cookie works [1]. Apply it to admin portals and finance apps first, not to everyone.
  3. Control browser extensions. Allow only approved extensions by policy and block developer mode, as the Cookie-Bite researchers recommended [8].
  4. Use continuous access evaluation where it exists. Microsoft supports it for Exchange, SharePoint and Teams, so those services can act on events such as a revoked session instead of waiting for a token to expire [1].
  5. Stop infostealers at the endpoint. Endpoint detection and application control remain the main defence against the malware itself. Chrome's newer protections make theft noisier on the device, which gives those tools more to catch [10][4].

Resetting a password does not end a stolen session. Microsoft advises revoking refresh tokens as well as resetting the password, and notes that an access token can stay valid for up to an hour after revocation [1].

What are device-bound session credentials?

The lasting fix is to make a stolen cookie useless on any other machine. Google's Device Bound Session Credentials (DBSC), announced in April 2024, let a website tie a session to one browser on one device [11]. The browser creates a key pair and stores the private key in a way that is hard to export. The website issues short-lived cookies and asks the browser to prove it still holds the key before refreshing them [11]. A copied cookie then stops being useful elsewhere, so attackers would be forced to act on the device itself, where endpoint tools have a better chance of catching them [11].

There are two catches. Google described DBSC as a prototype when it announced it, and a website has to add support before its sessions are protected [11]. Google also says that, because of how cookies and desktop operating systems interact, browsers cannot protect cookies against malware with the same level of access as the browser itself [11]. Earlier hardening shows the arms race: Chrome 127 added app-bound encryption for cookies on Windows in July 2024 [10], and within weeks several infostealer families claimed to have bypassed it [4].

What to look for in session theft protection

When you assess tools, ask how each one helps at each stage of the attack:

Session theft often starts with a phishing page or a malicious download, so stopping those early still pays. SafeToOpen Browser Security judges every page as it loads and blocks brand-new phishing pages before a password is typed.

Frequently asked questions

Not on its own. MFA checks the person at sign-in, but the session cookie is issued afterwards and already counts as proof that MFA was completed. Microsoft says a replayed token satisfies the MFA check. Phishing-resistant MFA makes it much harder for relay kits to capture a sign-in, but it cannot help once malware copies a cookie from a device.

Look for a session that changes IP address, country, network provider or browser without a new sign-in, access from anonymising networks, and new inbox rules that hide or forward mail. Identity providers with session risk features can flag these automatically. A record from the browser of real sign-ins helps confirm whether the person actually signed in on that device.

Not always. A session cookie or refresh token can keep working after a password change. Microsoft advises revoking the user's refresh tokens and sessions as well as resetting the password, and notes that an existing access token can remain valid for up to an hour after revocation. Revoke first, then investigate how the cookie was taken.

See how SafeToOpen protects the browser

Browser Security judges every page as it loads and stops brand-new phishing before a password is typed.

Browser Security for organisations →

Sources

  1. Microsoft Security Blog, Token tactics: How to prevent, detect, and respond to cloud token theft (2022-11) www.microsoft.com
  2. Microsoft Security Blog, From cookie theft to BEC: Attackers use AiTM phishing sites as entry point to further financial fraud (2022-07) www.microsoft.com
  3. Microsoft On the Issues, Disrupting Lumma Stealer: Microsoft leads global action against favored cybercrime tool (2025-05) blogs.microsoft.com
  4. BleepingComputer, Infostealer malware bypasses Chrome's new cookie-theft defenses (2024-09) www.bleepingcomputer.com
  5. SpyCloud, Breaking Down the 2025 Verizon Data Breach Investigations Report (2025-04) spycloud.com
  6. Help Net Security, 2025 Data Breach Investigations Report: Third-party breaches double (2025-04) www.helpnetsecurity.com
  7. Interisle Consulting Group, Phishing Landscape 2024: An Annual Study of the Scope and Distribution of Phishing (2024-07) interisle.net
  8. BleepingComputer, Cookie-Bite attack PoC uses Chrome extension to steal session tokens (2025-04) www.bleepingcomputer.com
  9. Okta, Identity Threat Protection with Okta AI (2024-08) www.okta.com
  10. BleepingComputer, Google Chrome adds app-bound encryption to block infostealer malware (2024-07) www.bleepingcomputer.com
  11. Chromium Blog (Google), Fighting cookie theft using device bound sessions (2024-04) blog.google

External statistics are attributed to their original publishers and were accurate at the time of writing. Figures from industry reports vary by methodology and period; we link to primary sources so you can verify them.

Could you spot the fake?

Put this into practice: 12 real-world scams and genuine messages, two minutes, no sign-up.

12 examples · 2 minutes
Parcel Delivery
SMS · just now

Your package is on hold. A redelivery fee of $1.99 is required: parcel-redeliver.info/pay

Warm-up question

Real, or a scam?

Correct. It’s a scam.
It got you. This one’s a scam.
  • A fee to release a parcel (couriers don’t do this)
  • The link isn’t the courier’s real domain
  • Urgency: pay now or lose the package

That was the warm-up. 12 more are waiting.