When an attacker controls code inside or alongside a user's running browser, they do not need the user's password or cookies: they can act through the authenticated session where it already lives, from the user's own device and network address. MITRE ATT&CK T1185 Browser Session Hijacking covers adversaries taking advantage of browser functionality and weaknesses to "change content, modify user-behaviors, and intercept information". In ATT&CK v20 it is a Collection (TA0009) technique on Windows with no sub-techniques, and its procedures range from post-exploitation browser pivoting to banking trojan web injects, form grabbing and session replay services. This guide covers how the technique differs from cookie theft, what the v20 detection strategy looks for, the endpoint and browser controls that raise the cost, and how to test. It is for detection engineers, endpoint owners and identity teams. Browser governance as a programme is covered in the Enterprise Browser Security Maturity Model; this page stays on the ATT&CK technique view.
Key takeaways
- Hijacking is not theft. T1539 Steal Web Session Cookie copies the session to use elsewhere; T1185 uses it in place, so identity provider checks on new IP addresses or devices often see nothing unusual.
- Injection into the browser is the detectable step. ATT&CK's analytic AN1398 looks for privilege use (events 4672 and 4673), handle access to a browser process (Sysmon 10), remote thread creation (Sysmon 8) and unexpected module loads (Sysmon 7).
- Admin rights are the gate. ATT&CK notes browser pivoting may need
SeDebugPrivilegeor high integrity; M1018 User Account Management is one of only two listed mitigations. - Browser hardening changes the attacker's options. Chrome's App-Bound Encryption pushes cookie theft towards injection, and disabling remote debugging by policy removes a common automation path.
- Short sessions limit the window. M1017 asks users to close browser sessions when no longer needed; session lifetime and re-authentication for sensitive actions enforce the same idea centrally.
What the technique covers
ATT&CK v20 describes three broad patterns. In the first, an adversary injects software into a browser so that it can "inherit cookies, HTTP sessions, and SSL client certificates of a user" and then uses the browser to pivot into an authenticated intranet. In the second, the adversary sets up a proxy in the user's browser so their own browser traffic flows through it; the proxy "does not alter the user's traffic in any way" and the adversary assumes the security context of the injected browser process, reaching resources such as SharePoint or webmail. ATT&CK notes that browser pivoting "may also bypass security provided by 2-factor authentication". The third, visible in the procedure examples, is classic man-in-the-browser behaviour: web injects, redirection, overlays and form grabbing.
| Pattern | What the attacker gains | Where it differs from related techniques |
|---|---|---|
| Browser pivot (injected proxy) | Live access to every site the user is signed in to, including client certificate authentication | No credential or cookie leaves the device, unlike T1539 or T1550 |
| Web injects and redirection | Credentials and transaction data typed into modified pages; altered page content | Happens inside the endpoint browser, unlike network T1557 Adversary-in-the-Middle |
| Form grabbing and event listening | Form field values before encryption in transit | Captures data at submission rather than reading stored data as in T1555 |
| Overlays | User actions blocked or redirected while a session is manipulated in the background | Combines social engineering with session control |
| Session replay services | Stolen browser sessions replayed in the adversary's environment | Overlaps with T1539; ATT&CK files it under T1185 for the software concerned |
How adversaries use it
Attribution below is as ATT&CK v20 records it.
- Post-exploitation frameworks: Cobalt Strike "can perform browser pivoting and inject into a user's browser to inherit cookies, authenticated HTTP sessions, and client SSL certificates".
- Banking trojans: TrickBot uses web injects and browser redirection to capture credentials on fake or modified pages; Dridex, QakBot, IcedID and Ursnif use web injects; Grandoreiro and Melcoz monitor for online banking sessions and display overlays to manipulate the session or block the user. See the Latin American Banking Trojans Guide.
- Form grabbing: Agent Tesla and XLoader grab form data, and XLoader can also steal cookies and extract data from HTTP sessions. Kimsuky used TRANSLATEXT, a malicious browser extension, for form grabbing and event listening to capture emails and passwords. See the Kimsuky Threat Actor Profile and the Browser Extension Security Guide.
- Browser automation: Chaes used the Puppeteer module to hook and monitor Chrome and collect user information, which is why remote debugging controls matter.
- Phishing proxies and replay: evilginx2 can inject POST arguments that silently enable "Remember Me" during authentication, and Kali365 gathers browser session information so affiliates can replay stolen sessions in their own environment. See the Phishing-Resistant MFA Guide.
What to detect and where
ATT&CK v20 detection strategy DET0507, "Detect browser session hijacking via privilege, handle access, and remote thread into browsers", has one Windows analytic, AN1398. It describes an adversary gaining high integrity or special privileges, locating a running browser, opening it with write or inject rights, and modifying it with remote threads or DLL loads, optionally creating a new logon session or using explicit credentials.
| Data component (v20) | Log source | What to look for |
|---|---|---|
| Logon Session Metadata | Security 4672 (special privileges assigned) | A non-administrative user session receiving debug privilege shortly before browser access |
| User Account Metadata | Security 4673 (privileged service called) | SeDebugPrivilege use by a process that is not a known debugger or security agent |
| Logon Session Creation | Security 4624 and 4648 | New or explicit-credential logons on a workstation followed by browser manipulation |
| Process Access | Sysmon 10 | Handles to chrome.exe, msedge.exe or firefox.exe with memory write or thread creation rights from an unusual source process |
| Process Modification | Sysmon 8 (CreateRemoteThread) | Any remote thread created in a browser process by a process other than the browser itself or approved security tooling |
| Module Load | Sysmon 7 | Unsigned DLLs, or DLLs from user-writable paths, loaded into browser processes |
Additional signals (NHI Mgmt Group recommendations)
- Remote debugging launches: browsers started with
--remote-debugging-portor--remote-debugging-pipeby anything other than an approved test or automation tool. - App-Bound Encryption failures: Google documents Chrome logging failed verification as Event ID 257 from the "Chrome" source in the Application log; investigate where it appears on managed devices without a known compatibility cause.
- Extension changes: extensions installed outside the allowlist or with new permissions; see the Malicious Browser Extension Incident Playbook.
- Behaviour at the application: because the session comes from the real device, look for actions rather than location: bulk downloads from SharePoint or webmail, new mailbox rules, or payment changes at hours the user is not active.
Noise
Security agents, accessibility software, password managers and some data loss prevention tools legitimately inject into or hold handles to browsers. Baseline the signer and path of every process that opens browser handles with write rights, and alert on anything new rather than on the access type alone. See the Sysmon Guide for Sysmon 8 and 10 filtering.
Mitigations and hardening
ATT&CK v20 lists two mitigations: M1017 User Training ("Close all browser sessions regularly and when they are no longer needed") and M1018 User Account Management, because browser pivoting needs a high integrity process, so restricting user permissions and closing privilege escalation and UAC bypass paths limits exposure. The rest of the table is NHI Mgmt Group recommendations.
| Control | Setting or approach | Effect on T1185 |
|---|---|---|
| Remove local administrator rights | Standard user accounts on workstations, just-in-time elevation for support (M1018) | Denies SeDebugPrivilege and high integrity to most malware |
| Disable remote debugging | Chrome policy RemoteDebuggingAllowed set to Disabled (the default is enabled; supported from Chrome 93) | Removes the DevTools automation path used by tools such as Puppeteer |
| Keep App-Bound Encryption on | Chrome 127 and later on Windows; do not disable ApplicationBoundEncryptionEnabled except for documented roaming profile needs | Google states malware must then gain system privileges or inject into Chrome, which endpoint agents detect more easily |
| Extension allowlisting | Block all extensions by default and allow by ID. See the Browser Security Hardening Guide | Stops extension-based form grabbing such as TRANSLATEXT |
| Device-bound sessions | Device Bound Session Credentials where supported. See the Device-Bound Session Credentials (DBSC) Guide | Stops replay elsewhere (the Kali365 pattern); does not stop an in-place pivot, and Chrome notes malware present at registration may extract the key |
| Session lifetime and step-up | Short idle timeouts and re-authentication for payments, admin consoles and data export (M1017 applied centrally) | Shrinks the window and adds friction at the actions attackers want |
| Phishing-resistant authentication | FIDO2 or passkeys for sign-in | Defeats the evilginx2 proxy route into a session, though not on-device injection |
Where identity fits
Browser sessions increasingly carry more than a person's access. Administrators sign in to cloud consoles, CI/CD platforms and secrets managers in the browser, and from there can create API keys, OAuth applications and service account credentials. A hijacked session in one of those consoles can mint non-human credentials that outlive the session itself. Require step-up authentication for credential creation in admin consoles, alert on new keys or tokens created from interactive sessions, and review them in the Session Token Theft Response Playbook when a browser compromise is suspected. See also the Privileged Session Management Guide.
How to test
- Confirm telemetry: Security 4672, 4673, 4624 and 4648 and Sysmon 7, 8 and 10 (or EDR equivalents) from a pilot group of workstations.
- Emulate in a lab: use an approved adversary emulation tool to perform browser handle access and remote thread creation against a test browser profile signed in to test accounts only.
- Verify the policy: confirm on managed devices that remote debugging is refused and that extension installation outside the allowlist is blocked.
- Run audit first: deploy AN1398-style detections in alert-only mode for 14 days and record every legitimate injector by signer.
- Roll back individual browser policies through the management channel if a business application breaks, with a time-limited exception for the affected group.
Metrics
- Percentage of workstations where users have no local administrator rights.
- Percentage of managed browsers with remote debugging disabled and extension allowlisting enforced.
- Count of unexplained remote thread or write-access events against browser processes per week.
- Median session lifetime for high-value applications, and the share of sensitive actions requiring step-up.
Lessons from incidents
The CircleCI breach shows the neighbouring technique: malware on an engineer's laptop took an SSO session that had already passed two-factor authentication, and the attacker reused it. That is cookie theft rather than in-place hijacking, but the lesson carries over: MFA protects the sign-in, not the session that follows, and an engineer's browser session can lead to production tokens. Against T1185 specifically, device binding helps less because the attacker is already on the device, which puts the weight on endpoint privilege, injection detection and step-up for sensitive actions.
Common failure patterns
- Relying on impossible travel and new-device alerts: a browser pivot uses the user's own device and address.
- Local admin by default: gives malware the privileges ATT&CK says browser pivoting needs.
- Remote debugging left on: the policy default allows it, so automation frameworks can attach to a running browser.
- Disabling App-Bound Encryption to fix a compatibility issue without a time limit or scope.
- Long-lived sessions to admin consoles: a single hijacked session can create persistent API keys and service credentials.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| MITRE ATT&CK v20 | T1185 (TA0009 Collection); related T1539, T1557, T1550, T1555, T1176, T1055 | The technique and its neighbours |
| ATT&CK detection | DET0507 with AN1398 | Official analytic |
| ATT&CK mitigations | M1017 User Training; M1018 User Account Management | Official mitigations |
| NIST SP 800-53 Rev. 5 | AC-6 Least Privilege; AC-12 Session Termination; SI-4 System Monitoring; CM-7 Least Functionality | Removing debug privilege, ending sessions, watching injection, disabling unneeded browser features |
| NIST CSF 2.0 | PR.AA-05; PR.PS-01; DE.CM-09 | Least privilege access; configuration management; endpoint monitoring |
Practitioner checklist
- Remove standing local administrator rights from workstation users.
- Set
RemoteDebuggingAllowedto Disabled on managed Chrome and the equivalent setting on other managed browsers. - Keep App-Bound Encryption enabled and collect Chrome Event ID 257.
- Enforce extension allowlisting by ID.
- Collect Sysmon 7, 8 and 10 and Security 4672 and 4673, and deploy an AN1398-style analytic for browser processes.
- Shorten sessions for high-value applications and require step-up for payments, exports and credential creation.
- Alert on API keys, OAuth apps and service credentials created from interactive admin sessions.
- Adopt phishing-resistant MFA and device-bound sessions where supported.
Standards and references
- MITRE ATT&CK: Browser Session Hijacking (T1185)
- MITRE ATT&CK: Steal Web Session Cookie (T1539)
- MITRE ATT&CK: Cobalt Strike (S0154)
- Google Security Blog: Improving the security of Chrome cookies on Windows
- Chrome for Developers: Device Bound Session Credentials
- Chromium: RemoteDebuggingAllowed policy definition
- Microsoft Sysinternals: Sysmon
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
Related NHI Mgmt Group resources: Enterprise Browser Security Maturity Model · Enterprise Browser and Browser Security Guide · MITRE ATT&CK T1539 Steal Web Session Cookie · Infostealer Logs and Session Token Abuse Guide