On November 24, security researcher Jeremiah Fowler published a report with ExpressVPN about a database that was open to anyone. It was not password-protected or encrypted. It held about 2 billion credential records across 8,471 folders, stored in plaintext.

The headline numbers came first in most coverage. Cybernews reported Fowler's estimates of 608 million Gmail records and 114.3 million records for other Google services. His report has a detail that matters more for people who build login systems. In the sample he reviewed, the logs "may contain saved application credentials, browser passwords, cookies, session tokens, authentication artifacts, device information, and other application identifiers." He compares it with a 149 million record set he reported earlier this year, which was mostly usernames, passwords and login URLs. This one, he writes, "goes further, with session tokens, cookies, and device data that give attackers more ways in than a password alone."

A stolen password still has to get past your login form and your 2FA (two-factor authentication) prompt. A stolen session cookie does not. This piece explains why, then walks through the session controls your app owns, from timeout settings to hardware-bound sessions in Chrome.

What the database actually held

The headline number is easy to misread, so here is what the report says:

  • Records are not victims. Fowler is direct about this: the 2 billion figure "should not be interpreted as representing 2 billion individual victims." One infected device can hold logins for dozens of accounts, and the data includes duplicates, expired passwords and records that were resold many times.
  • The source looks like infostealer malware. About 400,000 documents appeared to come from malware that made a separate folder per victim, with subfolders named "cookies", "edge", "applications" and "important files", plus text files for clipboard contents, processes and passwords.
  • Nobody knows who owned it. The files pointed to several suspected criminal sources. Fowler also allows for a research or threat-intelligence collection. He reported it to the hosting provider, and public access was restricted several days later.
  • The domain counts are line matches, so they can overlap and include duplicates.

The Hacker News thread on the report had 203 points and 99 comments at the time of writing. Much of the discussion was about passwords, passkeys and where to store 2FA secrets. One commenter suggested unique passwords per service and keeping 2FA in a separate vault. That is good advice against password reuse. It does not help when the thing that was stolen is a live session.

Why a stolen cookie skips your 2FA

At login, the user types a password, approves a 2FA prompt, and your server sets a session cookie. From then on, every request carries that cookie, and your server treats it as proof that the login happened. The cookie is a bearer token (whoever holds it is treated as the user). Your 2FA check ran once, at the start, and it does not run again for each request.

Infostealer malware takes that cookie from the browser's storage and sends it to the attacker. The attacker loads it into their own browser and arrives already signed in. No password, no 2FA prompt.

Google's security team describes this flow in its April 2026 post on DBSC. Malware "can silently extract existing session cookies from the browser or wait for the user to log in to new accounts," and because cookies often have long lifetimes, attackers "gain unauthorized access to a user's accounts without ever needing their passwords." The post adds that once malware is on a machine, "there is no reliable way to prevent cookie exfiltration using software alone on any operating system."

So you cannot stop the theft from your server. You can control how long a stolen cookie works, whether you can kill it, and, in newer browsers, whether it works on any other device.

Step 1: Put real limits on session lifetime

A cookie that stays valid for 30 days gives a buyer of stolen logs 30 days to use it. Shorter lifetimes make the stolen data worth less.

The OWASP Session Management Cheat Sheet separates three kinds of timeout:

  • Idle timeout ends a session after a period with no activity. OWASP gives common ranges of 2 to 5 minutes for high-value applications and 15 to 30 minutes for low-risk ones.
  • Absolute timeout ends a session a fixed time after it was created, whatever the activity. For an app used through a working day, OWASP suggests 4 to 8 hours.
  • Renewal timeout swaps the session ID in the middle of a session, so a copied ID goes stale even while the real user is still active.

The cheat sheet adds that an idle timeout does not limit an attacker who already holds the session, "as they can generate activity on the session periodically to keep the session active." Against stolen cookies, the absolute timeout is the one that counts.

In Spring Boot, the idle timeout is one property (server.servlet.session.timeout, or spring.session.timeout when you use Spring Session):

server.servlet.session.timeout=15m 

There is no matching property for an absolute timeout, so it takes a small filter. This one checks the session's creation time on each request and ends sessions older than eight hours:

public class AbsoluteSessionTimeoutFilter extends HttpFilter { private static final Duration MAX_AGE = Duration.ofHours(8); @Override protected void doFilter(HttpServletRequest req, HttpServletResponse res, FilterChain chain) throws IOException, ServletException { HttpSession session = req.getSession(false); if (session != null) { Instant created = Instant.ofEpochMilli(session.getCreationTime()); if (created.plus(MAX_AGE).isBefore(Instant.now())) { session.invalidate(); res.sendError(HttpServletResponse.SC_UNAUTHORIZED); return; } } chain.doFilter(req, res); } } 

One detail: if a session starts before login (for an anonymous cart, for example), its creation time is earlier than the login time. If you want the eight hours to start at login, save a login timestamp as a session attribute in your success handler and check that value instead. The same idea works in any stack. Django, Rails, Express and ASP.NET all let you store a login timestamp in the session.

Step 2: Make "log out of all devices" actually work

Fowler's advice to victims includes this line: "use a separate clean device to change passwords and revoke active sessions." That only works if your app can revoke sessions. In many apps, a password change updates a hash and leaves every existing session alive, including the attacker's.

To revoke sessions you need to find them, which means a server-side session store you can query by user. Spring Session supports this through FindByIndexNameSessionRepository, which its Redis and JDBC modules implement. The docs note that many implementations index the current Spring Security user name automatically. Revoking every session for a user is then a few lines:

@Service public class SessionRevoker<S extends Session> { private final FindByIndexNameSessionRepository<S> sessions; public SessionRevoker(FindByIndexNameSessionRepository<S> sessions) { this.sessions = sessions; } /** Deletes every stored session for this user. Returns how many were removed. */ public int revokeAll(String username) { Map<String, S> found = sessions.findByPrincipalName(username); found.keySet().forEach(sessions::deleteById); return found.size(); } } 

Both samples compile against Spring Session 4.2.0 and the Jakarta Servlet 6.1 API. They were not run against a live app, so test them in your own setup.

If your sessions are long-lived JWTs (JSON Web Tokens), this step is harder. A self-contained token stays valid until it expires, unless every request checks a denylist or a per-user token version. That is a lookup per request, which is close to a session store anyway. If a long-lived JWT is your session, fix that first.

Step 3: Revoke automatically on the events that matter

A "log out everywhere" button helps users who know to press it. Most victims will not. Call the revoke code yourself when these things happen:

  • Password change or reset. Keep the current session (or issue a fresh one) and end all the others.
  • Account recovery. OWASP lists the completion of recovery or "hacked-lock" flows as a reason to require a fresh login.
  • 2FA changes. Adding, removing or resetting a second factor should end the other sessions.
  • Admin or support action. Your support team needs a way to kill a user's sessions when the user reports a takeover.

After a password reset, show the user how many sessions you ended. The number from revokeAll above is enough.

Step 4: Ask again before sensitive actions

Step-up authentication means asking for a password or second factor again before a high-risk action, even inside a valid session. OWASP's cheat sheet recommends reauthentication after risk events such as password changes and logins from a new or suspicious IP address or device.

Pick the few actions that turn a stolen session into real damage:

  • changing the email address or phone number on the account
  • adding or removing 2FA methods, passkeys or recovery codes
  • creating API keys or personal access tokens
  • payouts, transfers, or changes to payment details
  • exporting all data

An attacker with a stolen cookie can still read what the user can read. They cannot lock the user out or create a long-lived API key without passing a check they cannot answer.

Step 5: Treat changes in the session as signals

OWASP recommends binding the session ID to client properties such as the IP address or User-Agent and reacting when they change in the middle of a session. It is also honest about the limits. A skilled attacker can share the victim's IP through NAT (many users behind one public address), use the same corporate proxy, or copy the User-Agent string exactly.

So use these as risk signals, not as proof:

  • A session that moves to a new country between two requests is worth a step-up prompt.
  • A User-Agent that changes to a different browser or operating system inside one session is unusual, apart from normal version updates.

Log the session lifecycle as well: creation, renewal, destruction and privilege changes. OWASP says not to log raw session IDs. Log a salted hash so you can correlate events without making the logs a source of live sessions.

Step 6: Bind sessions to the device with DBSC

Steps 1 to 5 shorten how long a stolen cookie is useful. Device Bound Session Credentials (DBSC) aim to make it useless on any other machine.

Here is how it works, from Chrome's developer guide. At login, Chrome creates a key pair and keeps the private key in secure hardware: the TPM (Trusted Platform Module) on Windows, and the Secure Enclave on macOS, according to Google's April post. Your site switches to short-lived cookies. When one expires, Chrome must prove it still holds the private key before your server issues a new one. Malware can copy the cookie, but it normally cannot copy a key that never leaves the chip. The copied cookie dies when it expires.

The integration is three server changes. First, your login response adds a registration header (this example is from Chrome's guide, which also sets the normal login cookie in the same response):

HTTP/1.1 200 OK Secure-Session-Registration: (ES256 RS256); path="/StartSession" 

Chrome then calls your /StartSession endpoint with the public key inside a JWT. Your server stores the key against the session, replaces the long-lived cookie with a short-lived one, and returns a session configuration. In Chrome's guide the short-lived cookie expires after 10 minutes. The configuration names the refresh URL and the cookie (shortened here from the guide's example):

{ "session_identifier": "session_id", "refresh_url": "/RefreshEndpoint", "scope": { "origin": "https://example.com", "include_site": true }, "credentials": [{ "type": "cookie", "name": "auth_cookie", "attributes": "Domain=example.com; Secure; SameSite=Lax" }] } 

When the short-lived cookie expires, Chrome pauses the user's request and calls the refresh endpoint. Your server answers with a 403 and a Secure-Session-Challenge header. Chrome signs the challenge with the private key and retries with a Secure-Session-Response header carrying a JWT proof. If the signature checks out against the stored public key, you set a fresh cookie and Chrome resumes the original request. The rest of your app keeps checking the cookie as it does today.

Where DBSC works today

  • Chrome on Windows: available from Chrome 145, with public availability in Chrome 146 per Google's April post.
  • Chrome on macOS: rolling out gradually from Chrome 147. Security researcher Scott Helme found in August that the feature is on by default only on Windows in the Chromium source. On macOS it depends on Chrome's staged rollout, and his own Mac was in a control group with the key service switched off.
  • Microsoft Edge: the Edge 147 release notes list Device Bound Session Credentials.
  • Google accounts: Google Workspace made DBSC generally available and on by default in Chrome on Windows in May 2026, including personal Google accounts.
  • Other sites: Vercel began a gradual rollout for vercel.com in November 2026. CTO Malte Ubl wrote on X that OAuth apps created "lots of special cases", which is why the rollout is slow.

The protocol is a W3C First Public Working Draft, published in August 2025. Browsers that do not support it ignore the registration header, and the session continues as a normal cookie session. That is why you can deploy it before every browser supports it.

What DBSC does not fix

Read the caveats in Chrome's guide before you rely on it:

  • Malware present at login can still win. The guide warns that if malware is on the device during registration, "it may be able to extract the private key." The guide calls such attacks more complex and easier to detect, but they are possible.
  • Malware can act from the victim's machine. Ubl's post puts it plainly: "Malware can still do bad things while residing on the device." DBSC stops the stolen cookie from working elsewhere. It does not clean an infected laptop.
  • A stolen short-lived cookie still works until it expires. That window is minutes instead of weeks, but it is not zero. Steps 3 and 4 still matter.
  • Fallbacks exist. Chrome may skip DBSC when your refresh endpoint is unreachable or the TPM is busy (the guide notes TPM rate limits). If you keep a long-lived fallback cookie for resilience, Chrome's guide suggests requiring the short-lived DBSC cookie for sensitive operations, so the fallback cannot do everything.
  • HTTPS only. DBSC does not protect plain HTTP requests, and it does not support partitioned cookies.

For tokens held by apps and CLIs (command-line tools) rather than browsers, the related standard is DPoP (Demonstrating Proof of Possession), defined in RFC 9449. Vercel says it is shipping DPoP for its CLI.

A checklist for this week

If you own a login system, these are in rough order of effort:

  1. Find your current session lifetime. If it is measured in weeks, add an absolute timeout.
  2. Confirm a password change ends every other session. Test it with two browsers.
  3. Add a "sign out of all devices" action backed by a session store you can query by user.
  4. Revoke sessions automatically on password reset, account recovery and 2FA changes.
  5. Put a fresh login check in front of email changes, 2FA changes, API key creation and payouts.
  6. Log session events with hashed IDs, and alert on sessions that change country or User-Agent.
  7. Try DBSC on a staging environment with Chrome on Windows, starting with the registration and refresh endpoints.

When users report a takeover, give them Fowler's order: clean or reset the infected device first, because running malware will capture the new password too. Then change passwords and revoke sessions from a separate clean device. Make sure your revoke button really ends every session.

Does your app have an absolute timeout and a real "log out everywhere" today, or would a stolen cookie keep working for weeks?