Over the course of a morning you logged into your bank, your email and a handful of other accounts. Then you closed your laptop. But a fragment of a file left behind in your browser — the "session cookie" that keeps those sessions open — may now be in an attacker's hands. This type of attack is called session hijacking, and cookie theft is its most common form.

The unsettling part is this: a stolen session cookie completely neutralizes two-factor authentication (2FA/MFA). That's because the cookie already represents a session that is "logged in." The attacker needs neither your password nor your SMS/app code.

What exactly does a session cookie do?

When you log into a site, the server verifies your identity and then leaves a small key in your browser. That key is the session cookie. It exists so you aren't asked for your password again on every new request; the browser presents the cookie, and the server says "this user has already been verified."

The problem is that this cookie is portable. When an attacker pastes the cookie into their own browser, as far as the server is concerned that person is you. The login step has already been passed; so the password screen and the verification code never come into play at all.

Why aren't a strong password + 2FA enough anymore?

The advice repeated for years is clear: use a long password, turn on two-factor authentication. That advice still holds, but it's incomplete. Both measures protect the moment of login. Cookie theft, however, targets what comes after login. No matter how sturdy the lock you put on the door, if the attacker is stealing the key from the pocket of someone already inside, the lock becomes meaningless.

What makes this attack scalable is the infostealer (information-stealing malware) economy that has matured in recent years. Families like RedLine, Raccoon and Lumma are sold as a rental service. Once this software infects a device, it collects saved passwords, autofill data and, most critically, the session cookies in the browser. The harvested data is packaged under the name "logs" and sold in bulk on underground markets. In other words, the person who steals your cookie and the person who uses it are often different; there is a marketplace in between.

The routes of infection are mundane too: a fake software download site, a cracked program, a malicious browser extension or a phishing link is enough. Even if the user never enters a single password, the sessions left open in the browser can be leaked.

Who is affected, and how?

The risk isn't limited to individuals. In the takeover of corporate accounts, stolen session cookies are increasingly decisive. The starting point of many major data breaches comes down to a single session token leaked from one employee's device.

MeasureWhat does it protect?Against cookie theft
Strong passwordThe moment of loginIneffective — login already passed
SMS/app 2FAThe moment of loginIneffective — session already open
Short-lived tokenThe session's durationShortens the lifespan of the stolen cookie
Device-bound sessionTies the session to hardwareCookie is useless on another device

As the table shows, the solution lies not in the user being more careful, but in the architecture of the session. A cookie needs to be made useless on another device.

What's next?

The direction the industry is heading is to tie session tokens to the device. Google's Device Bound Session Credentials (DBSC), which is in development, aims at exactly this: binding the session cookie to a private cryptographic key on the device. That way, when a stolen cookie is used on another machine, it is treated as invalid. The same logic underpins passkey technology, which is becoming widespread in passwordless login: identity resides not in a portable secret, but in a device-bound key.

The second front is shortening the lifespan of session tokens and continuously re-verifying them. If a cookie is valid for minutes rather than hours, then even if it is stolen, the window it opens for the attacker narrows. It's no coincidence that banks log you out after a short period of inactivity.

What users can do is limited but real: don't download software from unknown sources, trim down your browser extensions, log out of critical accounts when you're done (this invalidates the cookie), and periodically check the "active sessions" list in your account security panels, terminating any sessions you don't recognize.

Ultimately, cookie theft is not a new attack; but combined with the infostealer market, it has scaled. That's why the perception that "a password + 2FA is enough" is misleading. The next step in security is to move the proof of identity out of a portable secret and into a device-bound, short-lived key. Until that transition is complete, the weakest link will continue to be not the login screen, but the session left open in the browser after login.