You detect session hijacking by looking for a session used in a way that does not match where it was created: a new IP address, country, device or user agent mid-session, activity that continues after a password change, unfamiliar devices in the active-sessions list, or new MFA methods and inbox rules you did not create. Security teams should hunt for token use without a sign-in, session context changes, and post-access persistence.
Key takeaways
- Session hijacking reuses an already-authenticated session, so it often bypasses passwords and MFA entirely.
- The strongest signal is a session context change: same session, new IP, country, device or user agent.
- A password change alone does not fix it; you must revoke sessions and refresh tokens at the identity provider.
You change your password, turn on MFA, and still see activity you did not do. That is the signature of session hijacking: an attacker has stolen the proof that you are already signed in, and they are using it to act as you. No password prompt, no MFA challenge, no failed login to alert on.
What is session hijacking?
Session hijacking is the reuse of a stolen session identifier, usually a session cookie or an access token, by someone other than the user who earned it. The session ID binds your authentication to your web traffic, so whoever holds it is treated as you for as long as the session lasts.
OWASP explains the consequence plainly in its Session Management Cheat Sheet: the disclosure, capture, prediction, brute force or fixation of a session ID can let an attacker fully impersonate a victim user in the web application. An authenticated session ID is, in OWASP's words, temporarily equivalent to the strongest authentication method used by the application.
MITRE ATT&CK splits the behavior into two techniques: the theft, T1539 Steal Web Session Cookie, and the reuse, T1550.004 Use Alternate Authentication Material: Web Session Cookie. The Star Blizzard group, for example, has used EvilGinx to steal session cookies and then bypassed MFA on victim email accounts by reusing them.
How does session hijacking work?
Session hijacking usually follows four stages: steal, package, replay, and persist. Only the first stage involves malware or phishing; the rest looks like normal use.
Steal. An infostealer copies browser cookies, an adversary-in-the-middle phishing proxy relays the sign-in and keeps the post-MFA cookie, or injected script reads a cookie that lacks the HttpOnly flag. Replay. The attacker imports the cookie into a browser and resumes the session. Act. They read mail, export data, or move money as you. Persist. They add a new MFA method, register a new device, create inbox rules, or grant an OAuth app, so they keep access even after the stolen session expires.
The key point for detection is that the theft is often invisible, while the replay shows up as one session used from a new IP address, network, user agent or device. That is where to look.
What are the signs of session hijacking?
Session hijacking often looks like account access that continues even though your password has not obviously been stolen. Watch for these signs, and treat a pattern of two or more as a serious warning.
- Actions you did not make: messages, posts, searches, purchases or settings changes you do not recognize.
- An unfamiliar device or browser in the service's active-session or device list.
- Activity continues after you changed the password. This is the strongest user-level sign, because a password change should end password-based access.
- Security alerts about changes made from a session you do not recognize.
- Recovery or MFA changes: your recovery email, phone number, two-factor method, passkey or recognized device changes without your approval.
- No fresh MFA prompt: the attacker seems able to use the account without triggering a new two-factor challenge.
- New inbox rules, forwarding, or OAuth apps you did not create, especially rules that hide or forward mail.
None of these signs proves session hijacking by itself. A stolen password, a malicious connected app, a compromised email account or a fully taken-over account can produce similar symptoms. The useful clue is the pattern: the attacker appears to have an already authenticated path into the account.
How can I check if my session was hijacked?
Check the service's active sessions or device list first. Google, for example, lets you review individual devices and sessions under Security and sign-in, then Your devices, then Manage all devices. Microsoft, Apple, Meta and most banks offer a similar list.
- Open the active-sessions list for the account and look for devices, browsers, locations or times you do not recognize.
- Review recent activity in the account: sign-ins, security changes, sent mail, downloads and purchases.
- Check recovery methods and MFA settings for changes you did not make, including new phone numbers, emails and passkeys.
- Review connected apps and OAuth consents and remove anything unfamiliar.
- Check inbox rules and forwarding for rules that hide, delete or forward mail.
- Check the device that signed in: run a malware scan and check for unfamiliar browser extensions, which can steal cookies.
If you find an unfamiliar session, do not just change the password. Sign out all sessions first, then change the password from a clean device. Our pwned password checker can tell you whether a password you used appears in known breaches.
How do security teams detect session hijacking?
For a security team, detection means hunting for replay, not theft. The theft happens on an endpoint or in a phishing proxy and is often silent; the replay leaves traces in identity and application logs.
| Signal | What to look for | Why it matters |
|---|---|---|
| Session context change | Same session ID from a new IP, ASN, country or user agent | OWASP recommends treating a mid-session change as a hijacking signal |
| Token use without sign-in | Resource access or token refresh from an IP that never signed in | Shows a stolen token, not a new login |
| Anonymizing infrastructure | Session use from VPN, VPS, Tor or hosting ASNs | Original sign-in came from a corporate or residential network |
| Post-access persistence | New MFA, devices, inbox rules or OAuth consents | Attacker is securing continued access |
| Endpoint signals | Processes reading browser cookie databases | Infostealer harvesting cookies on the device |
| Impossible travel | Same session in two distant locations minutes apart | One person cannot be in both places |
OWASP advises logging session creation, renewal, destruction and privilege changes, and logging a salted hash of the session ID rather than the raw value, so logs do not become a cookie store themselves. It also advises detecting session-ID guessing by counting attempts to use different session IDs from a single IP address and blocking the offender.
In Microsoft Entra, compare interactive and non-interactive sign-in logs for the same session: resource access from an IP that never completed an interactive sign-in is a strong replay signal. In general, build detections around the session, not just the sign-in, because a hijacked session generates no sign-in event at all.
What are the types of session hijacking?
Session hijacking is not one technique. The main variants differ in how the session identifier is obtained, and each leaves different traces.
- Cookie theft by infostealer: malware such as Lumma or RedLine copies browser cookies and tokens from disk or memory (MITRE T1539).
- Adversary-in-the-middle phishing: a reverse proxy relays the password and MFA step to the real site and keeps the post-MFA cookie (MITRE T1557).
- Cross-site scripting (XSS): injected script reads a cookie that lacks the HttpOnly flag and sends it to the attacker.
- Session fixation: the attacker sets a known session ID before the victim signs in, then reuses it afterward.
- Session sidejacking: the attacker intercepts a session cookie on an unencrypted or poorly protected network, historically on public Wi-Fi.
- Token theft: theft of OAuth or API tokens, which are replayed directly against APIs (MITRE T1528).
Infostealer logs deserve special attention: a single log can hold live session cookies, cached cloud tokens and API keys, letting an attacker walk into SaaS and cloud tenants without ever seeing an MFA prompt. That is why endpoint detection and session revocation matter together.
What should you do if a session was hijacked?
Act in this order: revoke, reset, clean, then check for persistence. A password change alone is not enough, and doing the steps out of order lets the attacker keep access.
- Revoke sessions: use the service's "sign out of all sessions" option, revoke refresh tokens at the identity provider, and revoke sessions in each affected app.
- Reset the password: change it from a trusted, clean device, and use a strong, unique password. Check it with our free password generator.
- Clean the device: run a malware scan, remove unfamiliar browser extensions, and update the browser and operating system before signing in again.
- Check for persistence: remove new MFA methods, device registrations, inbox rules, forwarding and OAuth consents you did not create.
- Tell your IT or security team if this is a work account, even if nothing seemed to happen. Others may have been targeted too.
- Report it to the service and, if money was lost, to the FBI's IC3.
How do you prevent session hijacking?
Prevention is about binding a session to the device that earned it, shortening its life, and making the cookie hard to steal in the first place.
- Use HttpOnly, Secure and SameSite cookie flags: HttpOnly blocks script from reading the cookie, Secure restricts it to HTTPS, and SameSite limits cross-site sending.
- Shorten sessions: enforce idle and absolute timeouts server-side. OWASP suggests 2 to 5 minutes of idle time for high-value applications and an absolute timeout measured in hours, not weeks.
- Rotate session IDs: issue a new session ID after sign-in and after privilege changes, and invalidate the old one.
- Use device-bound sessions: passkeys and token binding tie a session to a device, so a stolen cookie alone is not enough.
- Require step-up authentication for sensitive actions such as password changes, payment changes and exports, even inside an existing session.
- Monitor for context changes: alert on mid-session IP, ASN or user-agent changes, and challenge or revoke the session when they occur.
- Keep browsers and endpoints clean: infostealers are the most common source of stolen cookies, so endpoint protection and extension control matter as much as server-side controls.
For individuals, the simplest protections are the same ones that stop most account takeovers: use a password manager, turn on phishing-resistant MFA, and do not install browser extensions you do not need. Our guide to how to know if your phone is hacked covers the device checks that matter when a session looks wrong.
The bottom line
Session hijacking succeeds because it skips the sign-in entirely. The password and MFA you rely on are never tested, so the only defenses that work are the ones that watch the session itself: context-change detection, short lifetimes, device binding, and fast revocation.
If you see activity after a password change, treat it as a hijacked session until proven otherwise: revoke all sessions, reset from a clean device, and check for new MFA methods, rules and connected apps. You can start securing the accounts around it with the free IP checker and our other security tools.
Frequently asked questions
What is session hijacking?
Session hijacking is an attack in which someone steals the proof that you are already signed in, usually a session cookie or access token, and uses it to act as you. The attacker does not need your password, because the session is already authenticated.
How do I know if my session was hijacked?
Look for actions you did not make, unfamiliar devices in the active-sessions list, activity that continues after a password change, and security alerts about changes from a session you do not recognize. None of these proves hijacking alone, but together they form a strong pattern.
Why does changing my password not stop session hijacking?
A password change invalidates the password, not the session. A stolen cookie or refresh token remains valid until the service revokes it, so the attacker can keep using the account. You must sign out all sessions and revoke tokens as well.
Can MFA stop session hijacking?
MFA protects the sign-in, not the session. A cookie or token issued after MFA is replayed as an already authenticated session, which is why pass-the-cookie attacks bypass MFA. Device-bound sessions and short session lifetimes help more.
What is the difference between session hijacking and session fixation?
In session hijacking the attacker steals an existing session after you sign in. In session fixation the attacker sets a known session ID before you sign in, then uses that same ID after you authenticate. Both end with the attacker holding your session.
How do security teams detect session hijacking?
They hunt for session context changes, token use without an interactive sign-in, session use from VPN, Tor or hosting networks, and new MFA methods, device registrations or inbox rules shortly after an unusual session.
What should I do first if I suspect session hijacking?
Sign out of all sessions from the service's security settings, revoke app access and refresh tokens, change the password from a clean device, and check recovery methods and MFA settings. Then check the device that exposed the session for malware.
How long does a hijacked session last?
As long as the session or refresh token remains valid, which can be hours, days or weeks depending on the service. That is why revoking sessions quickly matters more than changing the password quickly.
Sources
- OWASP — Session Management Cheat Sheet
- NHI Mgmt Group — Session Hijacking and Cookie Theft: Defence Guide
- RelyShield — What Is Session Hijacking? Why Password Changes Fail
- MITRE ATT&CK — Steal Web Session Cookie (T1539) via Star Blizzard group page
- Cloudanix — What Is Session Hijacking? Token and Cookie Theft
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the OWASP Session Management Cheat Sheet, MITRE ATT&CK T1539 and T1550.004, and 2026 session-hijacking defence guides.
How we write and fact-check →