xonPlus Logo
Session hijacking and cookie theft: a "Where you're signed in" panel showing three sessions, one of them an unknown device using the same cookie with no password asked and no MFA prompt, above a "Sign out everywhere" button.
Guide14 min read

Session Hijacking and Cookie Theft: What a Stealer Log Really Holds

A client's finance lead turns up in a stealer-log alert on a Tuesday. By lunch her password is changed and her MFA has been checked twice. On Thursday somebody is still working in the company's CRM under her name, from another country, and nobody was ever asked for a code.

That's session hijacking, and the thief didn't need her password. Her laptop had picked up an infostealer (malware that copies what a browser has saved and sends it off), and it took the browser's cookies too. A session cookie is the site's own proof that the login, MFA included, already happened.

(We made that week up. Every mechanism in it is documented, and each one is linked below.)

So a stealer log is a folder, and the passwords are one file in it. The cookie files next to them are what let a stranger step into a session that's already open. A password reset only reaches the passwords.

What follows is the folder, opened file by file for the people who have to act on it. Which file does what, how long a stolen cookie can keep working, and the order we'd run the response in for a client.

What is session hijacking?

Session hijacking is taking over a login that has already happened, by getting hold of the token that proves it. The OWASP definition says the attack "compromises the session token by stealing or predicting a valid session token to gain unauthorized access to the Web Server".

In a browser, that token usually lives in a cookie. You sign in once, the site hands your browser a cookie, and every request after that shows the cookie instead of asking for the password again.

Copy the cookie into another browser and the site sees the same signed-in user.

MITRE ATT&CK files the theft under T1539 and the reuse under T1550.004 . The second entry says the technique "bypasses some multi-factor authentication protocols since the session is already authenticated". Some, mind you.

There are two common ways to get the cookie, and they need different answers from you.

QuestionPhishing proxy (adversary in the middle, AiTM)Cookie copied from the device
Where the cookie is takenIn transit, on a fake sign-in page that relays the real oneOn the machine, out of the browser's own files
What the user didTyped the password and approved MFA on a lookalike pageRan something that turned out to be an infostealer
How many accountsUsually oneEvery site that browser was signed in to
What MFA didThe user completed it for the attackerIt was done long before the theft
What else is takenNothingSaved passwords, autofill, details of the machine

This post is about the right-hand column, the one that produces a stealer log and the one a breach feed can warn you about.

How common is it? Less than the headlines suggest.

Microsoft's alerts for April to June 2025 give the scale. More than 97% of identity attacks were password spray or brute force, and token theft by malware was about 2.4% (Digital Defense Report 2025 , p. 16).

But it was the biggest item in the small group Microsoft charts outside password guessing, ahead of proxy phishing at about 0.2%.

And the 2026 edition says the share of proxy phishing and token theft together "more than doubled" in the first six months of 2026. Microsoft adds that it's still "comparatively small" (p. 64).

For a client conversation that's the right size to give it: a small slice of attacks, and the slice their MFA rollout doesn't cover. It's also why a stealer-log hit gets handled differently from an ordinary breach hit, which we come to further down.

What's inside one stealer log?

A stealer log is what one infected machine gave up, packed as a folder. One machine, one folder. It's usually zipped, then passed around or sold as a unit.

Below is a typical layout. We drew it as an example with made-up values, using file names common in RedLine-style logs.

The names change from one malware family (and one version) to the next, so treat it as a map of what's there, not a file listing to match on.

one stealer log (example, made-up values)
US_203.0.113.24_2026-11-18/
├── Passwords.txt
├── Cookies/
│   ├── Chrome_Default.txt
│   └── Edge_Profile 1.txt
├── Autofills/
│   └── Chrome_Default.txt
├── Wallets/
├── FileGrabber/
├── UserInformation.txt
├── InstalledSoftware.txt
└── Screenshot.jpg
Annotated folder tree of one example stealer log: each file and folder carries a short label saying what it holds and what it lets a buyer do, with the Cookies folder marked as the one that opens a live session

The contents themselves aren't in dispute. Microsoft's analysis of Lumma says it "extracts saved passwords, session cookies, and autofill data" from Chromium and Mozilla browsers, and goes on to wallets, VPN and email clients, documents and "system metadata". Eurojust said much the same about RedLine and META when those two were taken down in October 2024.

Here's the folder again as a table, sorted by the question an analyst actually has.

File or folderWhat's in itWhat it gives a buyerPast MFA on its own?Your move
Passwords.txtSite, username and password for every login the browser had savedA login to try, there and wherever it was reusedNo, where MFA is onReset from a clean device
Cookies/One text file per browser profile, one cookie per lineA session that's already signed inYes, while the session livesRevoke sessions
Autofills/Saved form entries: names, addresses, phone numbersAnswers for a help-desk identity check, and material for phishingNoWarn the user and the help desk
UserInformation.txt, InstalledSoftware.txtOperating system, hardware, locale, installed applicationsA way to look like the user's own deviceIt helpsRead it for whose machine this was
Wallets/, extension dataWallet files, data from two-factor browser extensions Money, or possibly a second factorSometimesRe-enrol the second factor
FileGrabber/Documents picked up from the user's foldersWhatever was in themNoAsk what was on the desktop
Screenshot.jpgThe screen at the moment of infectionContext: what the user was doingNoLook for what was on screen when it ran

The first row is the one everybody plans for. A peer-reviewed study of 170,298 infected users (Paju and colleagues, 2026) found an average of 147 saved logins per person, so that file alone is a long afternoon.

The cookies row is the reason for this post, and the machine-details row is the one people skip.

Why does a file of machine details matter? Europol's IOCTA 2025 explains it. The device and browser details in a log "can then be used to imitate the target's digital fingerprint" (p. 13).

A cookie replayed from a strange machine can trip a risk check. Dress the machine up to look like the user's own and, in Europol's words, criminals can "bypass some security features".

One caution for your own planning. Most MSSPs never hold the raw folder, and you shouldn't want to (it's somebody's whole browser). What you get from a monitoring service is far narrower, and we'll be exact about that below.

What one stolen cookie looks like

Open a file in the Cookies folder and you'll usually find plain text, one cookie per line, in the old Netscape cookie-file layout. The format is still documented by curl : seven fields with a tab between each.

one line of a cookie file (example)
.login.example.com   TRUE   /   TRUE   1802770200   SESSIONAUTH   0.AXoA7c...(value removed)

Reading left to right: the domain the cookie belongs to, whether subdomains get it too, the path, whether it's sent over HTTPS only, the expiry, the cookie's name and its value.

The expiry is the field to read first. It's a count of seconds since 1970, and this one works out to 16 February 2027. Anything already past its date is noise.

The lines that matter most are the ones from the client's identity provider (the sign-in service, such as Entra ID or Google Workspace).

Microsoft's documentation notes that a user who signs in to an app through Entra ID "receives two session tokens. One from Microsoft Entra ID and another from the application" (Revoke user access ).

The first of those opens everything behind single sign-on. The second opens one app. And (this matters later) it's a separate thing to switch off.

How long does a stolen cookie keep working?

Nobody has measured it, at least not in a source we'd put in front of a client. The pages ranking for this question give answers from about an hour to months on end, mostly with no source attached.

What can be checked is how long each platform lets a session live by default, in its own documentation.

PlatformDefault, in the vendor's wordsRead it as
Microsoft Entra ID (Microsoft 365)Sign-in frequency is "a rolling window of 90 days"; session token max age "Until-revoked" No fixed end while it's in use
Google Workspace "By default, the web session length for Google services is 14 days."Two weeks
GitHub "typically marks a user session for deletion after two weeks of inactivity"Two weeks idle, and use resets the count
Okta "The default session lifetime is two hours."Two hours idle
AWS console (IAM users)"IAM user sessions are 12 hours by default."Half a day
Horizontal bars on a light ground comparing default session lifetimes from each platform's own documentation: AWS console 12 hours, Okta 2 hours idle, Google Workspace 14 days, GitHub 14 days idle, Microsoft Entra ID 90 days rolling with no fixed end

Those are ceilings under default settings, and your client's admin may have changed them. Find out before the first hit, because it's the number that sets how fast you have to move.

Three of those rows count from the last use (Entra, GitHub and Okta). A thief who keeps using the cookie keeps it alive.

Everything in a log has one of two shelf lives. A stolen password works until someone changes it, and a stolen cookie works until it expires or someone revokes the session. That's why the age of a log matters more for its cookies than for its passwords.

Often you can't tell how old the log in front of you is. The Paju team found a single date on each record: the day it was collected. In their words, the logs "record neither when a stealer produced them nor when they were first published".

Does a password reset end a stolen session?

Sometimes. That's a weaker answer than most runbooks assume, and it varies by platform.

Take Microsoft Entra ID. When a user changes their password, cookies and tokens that were created with a password are revoked, according to Microsoft's own table . Sessions that started without a password (a passkey sign-in, say) are marked "Stays alive".

Only the rows where refresh tokens are revoked outright show "Revoked" in every column (refresh tokens are the long-lived ones that keep issuing new sessions). A password reset by an admin gets close, but the cookie from a passwordless sign-in still survives it.

There's a twist in that for anyone moving clients to passkeys. Passkeys protect the sign-in, and the Paju paper is blunt that they "do not protect against session replay attacks". The stronger the login, the less a password reset does afterwards.

Then there's the second token. An app's own session is out of the identity provider's reach: "Microsoft Entra ID can't directly revoke a session token issued by an application," says Microsoft's Revoke user access page. The CRM in our opening scene is that case.

Google treats it as two jobs as well. Its admin help says that "after resetting a user's password, you should also reset the user's sign-in cookies" (Reset a user's password ).

And the rest of the web? Researchers at CISPA tested the password-change process on top-ranked sites for a SOUPS 2026 paper . All sessions were terminated on only 8 of the 96 sites that offered a password change (another 12 ended some of them), and on 7 of the 109 that offered a reset.

For any client app outside the identity provider, then, assume the session is still open until the app's owner tells you it isn't.

Two bars on a light ground showing two shelf lives: a stolen password stays usable until it is changed, a stolen cookie stays usable until it expires or the session is revoked, with a marker showing that a password change ends the first and may not end the second

Will a breach feed show you the stolen cookie?

No. A breach feed built on email addresses won't hand you one, and ours doesn't either.

We checked our catalog on 4 December 2026: 803 breaches, 11,728,639,899 records, 73 different kinds of exposed data. Exactly one of the 803 lists auth tokens among what was exposed. Session material hardly ever reaches an index like this, because the index is keyed on addresses.

Our index holds its first stealer-log source, with more coming. It's the collection known as ALIEN TXTBASE (AlienStealerLogs in the catalog), 299,646,818 unique email addresses by our extraction, as of 4 December 2026.

The catalog entry lists two kinds of exposed data for it, email addresses and passwords, with no cookies or session tokens in what we indexed.

What reaches you is this: addresses on your client's domain appear in a source typed as a stealer log. No password, cookie or device detail comes with it (the data page lists what's kept).

In our experience that's enough to act on. An address in a stealer log means a login using that address was saved in a browser on an infected machine. We can't see whether cookies went with it (stealers usually take both), so treat the hit as a reason to check sessions and nothing stronger.

On xonThreatIntel+, the alert goes out under 15 minutes for onboarded domains, after a breach lands in our index. Every tier gets it by email, Slack or Teams, and the account webhook is there from the $243 tier.

The webhook notification names each affected client domain and never carries addresses. For those you call GET /v2/partner/domain-summary with details=true and read breach_type on each row.

Do mind the age, though.

ALIEN TXTBASE is attributed to February 2025 and reached our index on 15 June 2026, 499 days later. The log in our opening scene was fresh, and this one wasn't. At 499 days, every default in the lifetimes table above has run out, bar an Entra session that somebody kept using.

The question of whose machine it was hasn't. That's the case we took apart in the infostealer check for your domain. Our earlier stealer logs explainer for MSSPs covers why this category arrives in lumps.

The runbook: a stealer-log hit on a client domain

The order below is ours. Microsoft's token theft playbook opens its containment list with a password change. Its remediation list puts "Revoke current tokens" ahead of "Reset passwords", with "Remediate infected devices" as a step of its own.

It doesn't explain the order. Ours is built around one idea: don't type a new password on a machine that may still be infected.

  1. Pull the addresses and rank them. Admins, finance, shared mailboxes and executives first. Our 15-minute triage workflow covers which hits get a phone call.
  2. Check whose hands are on the controls. Revoking sessions takes an admin role in the client's identity provider. If the client's IT holds that role, send a ticket that names the exact action, and ask for a time it was done.
  3. Revoke at the identity provider. In Entra ID that's "Revoke sessions" on the user's Overview page. In Google Workspace it's the sign-in cookie reset. Neither is instant or total: Entra access tokens already issued last up to an hour by default, and Google says its reset doesn't sign users out of apps such as Gmail and Google Drive for desktop.
  4. Then the apps with their own sessions. CRM, finance, code hosting, anything that kept the user signed in after step 3. Each has its own sign-out-everywhere control, and the client's app owner usually has to press it.
  5. Find the machine. Company laptop or home PC? Ask the person directly. A managed device gets scanned or rebuilt, and the browser profile gets wiped either way.
  6. Reset passwords from a clean device. The exposed one, and anywhere it was reused.
  7. Look back through the sign-in logs. New devices, new countries, new mail rules, a second factor nobody remembers adding. Google Workspace even has an audit event for it : "User signed out due to suspicious session cookie".
  8. Write it up for the client. What was found, what was revoked and when, and what's still open.
Runbook flow on a light ground in eight numbered steps: rank the addresses, confirm who holds admin rights, revoke sessions at the identity provider, sign out of apps with their own sessions, find and clean the device, reset passwords from a clean device, review sign-in logs, report to the client

Step 2 is where we'd expect the most time to go. Sort out the admin rights when you onboard the client. Then put the answer in the runbook, next to their session length.

The hard case in step 5 is the machine nobody manages. In the Verizon 2025 DBIR , 46% of the infected systems holding a likely business login were not enterprise-managed (p. 56). Verizon says it doesn't know whether those companies had a BYOD policy.

You can't rebuild somebody's home PC. What you can do is end the sessions, reset from a work device, and get work logins out of that browser for good.

How often will you run this? The Verizon 2026 DBIR puts small organisations in its ransomware-victim dataset at a median of seven credential leak events a year, and larger ones at around 20 (p. 45). Only some of those are stealer logs, so read seven as the ceiling for a small client.

That's often enough to make this a template, with the sign-in signals from our corporate account takeover checklist attached to step 7.

Is the cookie problem being fixed?

It's started. The fix is to tie a session to the device it began on, so a cookie copied elsewhere stops working.

Google's version is Device Bound Session Credentials. It reached public availability in Chrome on Windows in 2026, and since late May it's been on by default for Google Workspace accounts in Chrome on Windows.

Read the small print before you tell a client they're covered. It's one browser on one operating system, it protects only the sites that have adopted it, and Google's help page says protection "applies only to new sessions". Anyone who was already signed in has to sign out and back in.

Microsoft's equivalent, Token Protection , is generally available for native apps. For browser sessions, which is where a stealer's cookies come from, it's still a preview limited to a few web apps.

So the practical advice for 2027 is plain enough. Turn these on where the client's platform has them, shorten session lengths where the business can live with it, and keep the runbook.

If you'd like the alert that starts that runbook, the MSSP plans are $99, $243 and $447 a month for 10, 25 and 50 client domains, flat. The account webhook and JSON feeds come with the $243 tier and up. Your own company's domain you can watch free on XposedOrNot .

Quick answers

What is session hijacking in simple terms?

It's taking over a login that already happened. The attacker gets the session cookie a site gave the user's browser after sign-in and presents it from another machine, so the site treats them as that signed-in user.

Can a stolen session cookie get past MFA?

It can. MITRE says replaying a stolen cookie "bypasses some multi-factor authentication protocols since the session is already authenticated". The MFA step was completed by the real user before the cookie was taken.

Does changing the password stop session hijacking?

Not reliably. In Microsoft Entra ID a password change revokes sessions that began with a password, and others are marked "Stays alive" until the refresh tokens are revoked. In a 2026 study of top-ranked websites, all sessions were terminated on only 8 of 96 sites after a password change.

How long do stolen session cookies last?

As long as the service lets that session live. Defaults in the vendors' own documentation run from two hours idle (Okta) and 12 hours (AWS console) to 14 days (Google Workspace) and a rolling 90 days (Microsoft Entra ID).

Does a breach monitoring feed contain the stolen cookies?

Ours doesn't. It tells you which addresses on a domain appear in a stealer-log source, with no password, cookie or device attached. Treat that hit as the reason to check sessions, and revoke them.

Where the numbers came from

Related posts

All posts →
MSSP Playbook
Stealer Logs, Explained for MSSPs

Stealer Logs, Explained for MSSPs

What a stealer log is, how it differs from a breach dump, and what monitoring for one can honestly tell you. With our own catalog numbers.

August 25, 2026
Guide
Infostealer Check for Your Domain: What Logs Show, What to Do

Infostealer Check for Your Domain: What Logs Show, What to Do

A stealer-log hit on your domain usually means an infected browser, not a breached company. What the row shows, what it can't, the three dates on it, and what to do, in order.

October 24, 2026
Guide
Dark Web Alert to Client Call: A 15-Minute MSSP Triage Workflow

Dark Web Alert to Client Call: A 15-Minute MSSP Triage Workflow

A dark web alert lands for a client domain. Verify, scope, decide and log it in 15 minutes, with a written call rule, a ticket note and dated numbers.

November 13, 2026