An adversary may steal web application or service session cookies and use them to gain access to web applications or Internet services as an authenticated user without needing credentials. Web applications and services often use session cookies as an authentication token after a user has authenticated to a website.
Cookies are often valid for an extended period of time, even if the web application is not actively used. Cookies can be found on disk, in the process memory of the browser, and in network traffic to remote systems. Additionally, other applications on the targets machine might store sensitive authentication cookies in memory (e.g. apps which authenticate to cloud services). Session cookies can be used to bypasses some multi-factor authentication protocols.(Citation: Pass The Cookie)
There are several examples of malware targeting cookies from web browsers on the local system.(Citation: Kaspersky TajMahal April 2019)(Citation: Unit 42 Mac Crypto Cookies January 2019) Adversaries may also steal cookies by injecting malicious JavaScript content into websites or relying on User Execution by tricking victims into running malicious JavaScript in their browser.(Citation: Talos Roblox Scam 2023)(Citation: Krebs Discord Bookmarks 2023)
There are also open source frameworks such as Evilginx2 and Muraena that can gather session cookies through a malicious proxy (e.g., Adversary-in-the-Middle) that can be set up by an adversary and used in phishing campaigns.(Citation: Github evilginx2)(Citation: GitHub Mauraena)
After an adversary acquires a valid cookie, they can then perform a Web Session Cookie technique to login to the corresponding web application.
View in MITRE ATT&CK®| Capability ID | Capability Description | Mapping Type | ATT&CK ID | ATT&CK Name | Notes |
|---|---|---|---|---|---|
| CIS-13.10 | Perform Application Layer Filtering | mitigates | T1539 | Steal Web Session Cookie |
Comments
Web filtering and application-layer gateways can block malicious content or destinations used to deliver browser-based session-cookie theft activity.
References
|
| CIS-18.3 | Remediate Penetration Test Findings | mitigates | T1539 | Steal Web Session Cookie |
Comments
This relationship applies when penetration testing identifies the described software configuration weakness and remediation of the finding changes by configuring secure cookie attributes, shorter lifetimes, session invalidation, and reduced persistence in affected applications or browsers.
References
|
| CIS-7.7 | Remediate Detected Vulnerabilities | mitigates | T1539 | Steal Web Session Cookie |
Comments
Remediating vulnerabilities in browsers and related applications reduces exploit-based extraction of session cookies. This does not prevent cookie theft by malware or an adversary that already has sufficient access to browser storage or memory.
References
|
| CIS-7.4 | Perform Automated Application Patch Management | mitigates | T1539 | Steal Web Session Cookie |
Comments
Updating browsers, password managers, and related applications reduces exploitation of known vulnerabilities used to extract session cookies. It does not prevent cookie theft by malware or an adversary that already has sufficient access to browser storage or memory.
References
|
| CIS-9.4 | Restrict Unnecessary or Unauthorized Browser and Email Client Extensions | mitigates | T1539 | Steal Web Session Cookie |
Comments
Malicious browser extensions may access browser cookies and session information. Restricting extensions removes one important cookie-theft path.
References
|
| CIS-9.1 | Ensure Use of Only Fully Supported Browsers and Email Clients | mitigates | T1539 | Steal Web Session Cookie |
Comments
Updating browsers reduces the likelihood that known vulnerabilities can be exploited to extract cookies from browser storage or memory. It does not prevent malware with sufficient local access from directly reading cookies or browser data.
References
|
| CIS-4.11 | Enforce Remote Wipe Capability on Portable End-User Devices | mitigates | T1539 | Steal Web Session Cookie |
Comments
Wiping managed browsers and application data removes locally stored enterprise session cookies before they can be extracted from a lost or stolen device.
References
|
| Capability ID | Capability Description | Mapping Type | ATT&CK ID | ATT&CK Name | Notes |
|---|---|---|---|---|---|
| action.hacking.variety.Forced browsing | Forced browsing or predictable resource location. Child of 'Exploit vuln'. | related-to | T1539 | Steal Web Session Cookie | |
| action.hacking.variety.AiTM | Adversary-in-the-middle attack. Child of 'Exploit vuln' | related-to | T1539 | Steal Web Session Cookie | |
| action.hacking.variety.Session replay | Session replay. Child of 'Exploit vuln'. | related-to | T1539 | Steal Web Session Cookie | |
| action.malware.variety.Capture app data | Capture data from application or system process | related-to | T1539 | Steal Web Session Cookie |