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.
| Question | Phishing proxy (adversary in the middle, AiTM) | Cookie copied from the device |
|---|---|---|
| Where the cookie is taken | In transit, on a fake sign-in page that relays the real one | On the machine, out of the browser's own files |
| What the user did | Typed the password and approved MFA on a lookalike page | Ran something that turned out to be an infostealer |
| How many accounts | Usually one | Every site that browser was signed in to |
| What MFA did | The user completed it for the attacker | It was done long before the theft |
| What else is taken | Nothing | Saved 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.
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
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 folder | What's in it | What it gives a buyer | Past MFA on its own? | Your move |
|---|---|---|---|---|
Passwords.txt | Site, username and password for every login the browser had saved | A login to try, there and wherever it was reused | No, where MFA is on | Reset from a clean device |
Cookies/ | One text file per browser profile, one cookie per line | A session that's already signed in | Yes, while the session lives | Revoke sessions |
Autofills/ | Saved form entries: names, addresses, phone numbers | Answers for a help-desk identity check, and material for phishing | No | Warn the user and the help desk |
UserInformation.txt, InstalledSoftware.txt | Operating system, hardware, locale, installed applications | A way to look like the user's own device | It helps | Read it for whose machine this was |
Wallets/, extension data | Wallet files, data from two-factor browser extensions | Money, or possibly a second factor | Sometimes | Re-enrol the second factor |
FileGrabber/ | Documents picked up from the user's folders | Whatever was in them | No | Ask what was on the desktop |
Screenshot.jpg | The screen at the moment of infection | Context: what the user was doing | No | Look 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.
.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.
| Platform | Default, in the vendor's words | Read 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 |

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.

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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Reset passwords from a clean device. The exposed one, and anywhere it was reused.
- 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".
- Write it up for the client. What was found, what was revoked and when, and what's still open.

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
- XposedOrNot public catalog,
api.xposedornot.com/v1/breaches, pulled 4 December 2026: 803 breaches, 11,728,639,899 records, 73 distinct values inexposedData, one breach listing "Auth tokens". Records are counted per address per source. - ALIEN TXTBASE (AlienStealerLogs): attributed to February 2025 (month precision), added 15 June 2026, 499 days; 299,646,818 unique email addresses by our own extraction.
- OWASP, Session hijacking attack . MITRE ATT&CK T1539 (last modified 3 November 2026) and T1550.004 (12 May 2026).
- Microsoft Digital Defense Report 2025, p. 16 (Defender XDR and Entra ID Protection alerts, April to June 2025) and Digital Defense Report 2026 v1.1, p. 64.
- Microsoft Threat Intelligence, Lumma Stealer: Breaking down the delivery techniques and capabilities of a prolific infostealer , 21 May 2025.
- Eurojust, Malware targeting millions of people taken down by international coalition , 29 October 2024.
- Europol, IOCTA 2025, p. 13.
- Paju, Nurmi, Arroyo, Chica Manjarrez, Casino, Niemelä, Itkonen, Scanlan, Patsakis and Smaragdakis, A Data-Driven Analysis of Infostealer Malware Victims , 2026 (journal version: Computers & Security, doi 10.1016/j.cose.2026.105176): 170,298 victims, 147.09 saved logins each on average.
- Krause, Suray, Schmüser, Oltrogge, Wiese, Golla and Fahl, An Analysis of the Security, Usability, and Automation Capabilities of Password Update Processes on Top-Ranked Websites , SOUPS 2026: 111 top-ranked sites, all sessions terminated on 8 of 96 after a password change and 7 of 109 after a password reset.
- Session lifetimes, each from the vendor's documentation read on 4 December 2026: Microsoft Entra , Google Workspace , GitHub , Okta , AWS .
- Microsoft Learn: Refresh tokens in the Microsoft identity platform , Revoke user access in Microsoft Entra ID , Token theft playbook , Token Protection , Configurable token lifetimes .
- Google: Protecting Cookies with Device Bound Session Credentials , 9 April 2026; Workspace Updates, 28 May 2026; Admin Help, Reset a user's password , Sign a user out of a managed Google Account , Prevent cookie theft with session binding , Investigate and take action on suspicious session cookies .
- MITRE ATT&CK, Lumma Stealer (S1213) , for two-factor extension data.
- Verizon 2025 DBIR, p. 56, and Verizon 2026 DBIR, p. 45.
- curl project, HTTP Cookies , for the cookie file format.
- Product facts: xonThreatIntel+ for MSSPs, read 4 December 2026.