Session Hijacking: How Stolen Cookies Bypass MFA

Attack coverageUpdated

Session hijacking lets an attacker replay a stolen session cookie or token to act as a signed-in user, skipping password and MFA. Here is how to stop it.

Session hijacking is when an attacker takes over a session a user has already authenticated, usually by stealing the session cookie or token a site issues after login and replaying it from their own browser. Because that cookie is proof the login already happened, the attacker never sees a password prompt or an MFA challenge.

That makes it the obvious workaround once MFA is in place. Google's Chrome team put it plainly: cookie theft "happens after login, so it bypasses two-factor authentication and any other login-time reputation checks" (Google). MITRE ATT&CK tracks it as T1539, Steal Web Session Cookie, and notes that these cookies often stay valid for a long time. Reverse-proxy phishing kits, infostealers, and poisoned extensions are, in the end, different ways of getting that cookie.

How session hijacking works

  1. The user signs in normally. They enter a password and approve MFA. The site sets a session cookie, or the identity provider issues access and refresh tokens, that marks this browser as authenticated.
  2. The attacker gets a copy. There are three common routes. An adversary-in-the-middle (AiTM) phishing proxy captures the cookie as the real site issues it. Infostealer malware copies the browser's cookie store off the device. A malicious extension or injected script reads cookies and storage from inside the page.
  3. The attacker replays it. They load the stolen cookie into their own browser and open the target app. The app sees a valid session and lets them in.
  4. They move quickly. Typical follow-on actions are reading mail, creating inbox rules to hide replies, registering a new MFA method or device for persistence, and pivoting to finance or admin workflows.

Real-world examples

  • AiTM at scale. Microsoft tracked an Evilginx2-based phishing campaign that attempted to target more than 10,000 organizations since September 2021. With the stolen session cookies, the attackers started payment fraud in as little as five minutes and set inbox rules to archive the target's replies so the account owner never saw them.
  • Cookie-stealing malware against creators. Google's Threat Analysis Group described a campaign that sent YouTube creators fake sponsorship offers with software downloads that were actually cookie-stealing malware such as RedLine and Vidar (Google TAG). Hijacked channels were rebranded for crypto scam livestreams or sold.
  • A trusted extension turned thief. In December 2024 a phished Chrome Web Store account let an attacker ship version 24.10.4 of Cyberhaven's extension with code that could "exfiltrate authenticated sessions and cookies" to an attacker domain (BleepingComputer).

Warning signs and detection signals

  • The same session used from two different IP ranges, ASNs, or countries close together, or session activity with no matching interactive sign-in.
  • A session whose device or browser fingerprint suddenly changes mid-lifetime.
  • New inbox rules that move, archive, or delete messages, especially rules that mark replies as read.
  • A new MFA method or device registration right after a sign-in from an unfamiliar location.
  • In the browser: a script or extension reading cookies or storage and sending the values to an unrelated origin, or a newly installed extension holding the cookies permission.
  • A user who reports that a familiar login page "did nothing" or bounced them back to the real site.

How Surface stops it

The lead control is Shadow Sessions, Surface's deception layer. When enabled, it plants decoy values across cookies, localStorage, sessionStorage, the DOM, and JavaScript. Real users and legitimate pages never touch them. Surface raises an alert when a decoy is accessed and a critical alert when a decoy leaves the browser in a cross-origin request, which is exactly what theft by a malicious script or extension looks like. Canary cookies sit in the same set of countermeasures.

Surface also works upstream, on the theft routes themselves:

  • AiTM phishing. Surface Vision detects adversary-in-the-middle pages from protocol, timing, and page-integrity characteristics, alongside lookalike domains and kit signatures for SSO phishing. It runs locally in the browser and keeps working if the server is down.
  • Extensions. Extension inventory runs every 60 minutes with a 0 to 100 risk score, and allowlist enforcement disables anything you have not approved.
  • Correlation. Alerts forward to Splunk HEC, syslog, Elasticsearch, or a signed webhook, so you can line browser events up against your identity provider's sign-in logs.

One honest limit: malware that reads the cookie database straight from disk is an endpoint problem. Pair Surface with EDR for that path.

If it already happened

  1. Revoke every session and refresh token for the affected user. A password reset on its own leaves a stolen session working.
  2. Undo persistence. Remove inbox rules, forwarding, newly added MFA methods, registered devices, and OAuth grants created during the exposure window.
  3. Find the theft route. Check browser alerts and history for a phishing page, the extension list for recent changes, and the endpoint for malware. If you skip this, it happens again.
  4. Scope the damage. Review mail sent, files accessed, and payment changes made by the session. Our incident response and forensics guide covers what browser evidence to pull.
  5. Raise the bar. Microsoft recommends Conditional Access policies that check signals such as device state and location, so a stolen cookie is less useful elsewhere, and phishing-resistant MFA such as FIDO2, which a reverse proxy cannot relay.

Related techniques: AiTM phishing, infostealers, and malicious browser extensions.