Skip to main content

Wolfcore Cyber Security

What are infostealer logs and why does session cookie theft beat MFA?

Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 16 November 2026.

In one sentence: Infostealer logs are bundles of saved passwords, browser cookies and tokens copied off an infected computer, and a stolen login cookie lets a criminal walk into your accounts without needing your password or your MFA code.

What it is

Infostealer malware runs once on a device, collects what the browser has saved, and sends it to the criminal in one package. That package is the “log”. It usually holds saved passwords, autofill data and session cookies. Logs are sold or shared on criminal marketplaces, and buyers search them for company domains.

A session cookie is the small token a website gives your browser after you sign in, so you stay signed in. If MFA was part of that sign-in, the cookie carries the result. MITRE ATT&CK describes the technique (T1550.004): stolen cookies bypass some MFA because the session is already authenticated. The attacker imports the cookie into a browser they control and uses the site as you for as long as the cookie is active. MITRE adds that cookies are often valid for a long time, even if the app is not in use.

How it works

  1. A person installs something they should not, for example cracked software, on a work or personal computer.
  2. The stealer copies passwords, cookies and tokens, then sends them out.
  3. The log is sold or shared. This can be weeks or years later. Mandiant found credentials from infections dating back to November 2020 still working in 2024.
  4. The buyer loads the cookie, or tries the password, and lands inside the account with no MFA prompt.
  5. They read email, download data and set up persistence, such as a mail forwarding rule.

Who it affects and how badly

Any business that lets staff sign in to cloud services from a browser. The riskiest devices are the ones you do not manage. Mandiant’s Snowflake investigation found infections on contractor systems also used for gaming and pirated software, and warned that one contractor laptop can open doors at several organisations.

  • Sole trader to 10 staff: one infected home PC can expose the mailbox that holds every client invoice.
  • 10 to 50 staff (accountancy, recruitment, estate agents): payment fraud through a hijacked mailbox, and clients lost.
  • Regulated firms, health and care providers: personal data access, which can mean regulator reporting, plus downtime while sessions are cleaned up.

Mandiant notified around 165 organisations about the Snowflake campaign. It found that at least 79.7% of the accounts used had prior credential exposure. That campaign used stolen passwords on accounts without MFA, not stolen cookies, but it shows how long stolen material stays useful.

The UK angle

Cyber Essentials (NCSC requirements v3.2; check the current version) says authentication to cloud services must always use MFA, and accounts reachable from the internet should have it. That is the right baseline. It does not on its own stop cookie replay, because the stolen cookie arrives after MFA has been done. Cyber Essentials also requires malware protection on in-scope devices, removal of unsupported software, and separate admin accounts. Those controls cut infection, which is where this attack starts.

What we check on a test

Method only. On a web application test we look at how sessions are handled:

  • Cookie flags (Secure, HttpOnly, SameSite) and how long a session lasts.
  • Whether sessions end on logout and on password change.
  • Whether a session still works from a different network or device.

On a Microsoft 365 or cloud configuration review we look at whether MFA covers every account and app, whether admin portals are reachable from anywhere, and whether conditional access limits sign-in by device or location. Mandiant’s third root cause in the Snowflake case was no network allow list.

Worked example (illustration only)

A 20-person recruitment agency. The finance coordinator signs in to Microsoft 365 from a family PC that is also used for games and downloaded mods. A stealer copies the browser’s cookies. Three weeks later someone replays the session from another country, reads the mailbox and sets a rule that forwards supplier emails. IT sees a phishing scare, resets the password, and thinks it is over. The attacker’s session is still valid, so the forwarding continues and a supplier’s bank details are changed in a real invoice thread. Cost: a redirected payment, days of investigation and awkward calls with suppliers. The fix would have been to revoke sessions as well as reset the password, and to stop work sign-ins from unmanaged devices.

1 Infectioncracked software2 Stealer logcookies, passwords3 Solddays to years4 Replayno MFA prompt5 Accessmail, data, rulesA password reset alone does not end step 4.Revoke sessions, reset the password, rebuild the device.

How to detect it

You rarely see the theft. You see the replay. Look in your identity provider’s sign-in logs, including non-interactive sign-ins, for:

  • A session used from a new country, network or device soon after a normal sign-in.
  • Access without a matching sign-in and MFA event for that user. MITRE’s detection strategy for this technique (DET0074) lists anomalous cloud app access using tokens without MFA validation, and cookie reuse on browsers or client types that do not match the user’s baseline.
  • New mailbox forwarding or inbox rules, and bulk downloads.
  • Endpoint alerts for stealer malware on any device where the user signs in.

How to fix or prevent it

  1. Treat a stealer-log hit or an infection alert as an incident. Revoke the user’s sessions and refresh tokens in your identity provider, reset the password from a clean device, and review mailbox rules, MFA methods and app grants.
  2. Rebuild the infected device. Deleting the file is not enough, and every password, cookie and key on it is exposed.
  3. Rotate API keys and saved passwords that were on that device. Mandiant found credentials unrotated for up to four years.
  4. Require MFA on every cloud service, as Cyber Essentials does, and move admins and finance staff to phishing-resistant MFA.
  5. Keep work sessions off personal and unmanaged devices. Use conditional access to require a managed or compliant device.
  6. Add network or location allow lists for admin portals and crown-jewel systems.
  7. Use Microsoft Entra Token Protection where it applies. Microsoft says it makes sign-in tokens device-bound so a stolen token cannot be used from another device. Support is limited: native Exchange Online, SharePoint Online and Teams apps are supported, while browser support is preview and limited to selected apps that access Azure Resource Manager. Start in report-only mode and capture interactive and non-interactive sign-in logs first.
  8. Shorten session lifetimes for sensitive apps. MITRE suggests configuring browsers to delete persistent cookies regularly.
  9. Block cracked software and keep malware protection on and updated.

Related terms

infostealer malware, how session hijacking works, multi factor authentication, phishing resistant mfa, secret rotation, api key exposure, LLMjacking See also: Citrix Bleed (CVE-2023-4966): How Sessions Were Hijacked.

Back to the credentials, identity and exposure hub.

Related reading: GitHub Account Hijack: Revoke Access Before You Rotate

FAQ

Does MFA stop session cookie theft? Not by itself. MITRE says replaying a stolen cookie bypasses some MFA because the session is already authenticated.

Is a password reset enough after an infostealer infection? No. Sessions and tokens already stolen can still work, so revoke them and rebuild the device.

How long can stolen credentials stay useful? Mandiant found Snowflake credentials from infections dating back to November 2020 still valid in 2024.

How Wolfcore helps

Breachy checks whether your staff email addresses and passwords are already in known breaches and gives you the exact steps to close each exposure. See Breachy. Infostealers often arrive by phishing, and a phishing simulation tool shows how many staff would open the lure.

Wolfcore

Would your staff click a phishing email?

Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.

Start a free phishing testFree website security scanor book a 30 minute call