T1189: Drive-by Compromise
Tactics: Initial Access. Platforms: Identity Provider, Linux, macOS, Windows.
Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.
MITRE's description
Adversaries may gain access to a system through a user visiting a website over the normal course of browsing. Multiple ways of delivering exploit code to a browser exist (i.e., Drive-by Target), including: A legitimate website is compromised, allowing adversaries to inject malicious code Script files served to a legitimate website from a publicly writeable cloud storage bucket are modified by an adversary Malicious ads are paid for and served through legitimate ad providers (i.e., Malvertising)…
Telemetry that detects it
- Application Log Content
- File Creation
- Logon Session Creation
- Network Connection Creation
- Network Traffic Content
- Process Creation
- Process Modification
- User Account Authentication
- User Account Metadata
Mitigations
- Restrict Web-Based Content
- Adblockers can help prevent malicious code served through ads from executing in the first place. Script blocking extensions can also help to prevent the execution of JavaScript.
- User Training
- Train users to be aware of access or manipulation attempts by an adversary to reduce the risk of successful spearphishing, social engineering, and other techniques that involve…
- Application Isolation and Sandboxing
- Browser sandboxes can be used to mitigate some of the impact of exploitation, but sandbox escapes may still exist.
- Exploit Protection
- Security applications that look for behavior used during exploitation such as Windows Defender Exploit Guard (WDEG) and the Enhanced Mitigation Experience Toolkit (EMET) can be…
- Update Software
- Ensuring that all browsers and plugins are kept updated can help prevent the exploit phase of this technique. Use modern browsers with security features turned on.
D3FEND countermeasures
- D3-APCA: Application Protocol Command Analysis (Detect)
- D3-CSPP: Client-server Payload Profiling (Detect)
- D3-HD: Homoglyph Detection (Detect)
- D3-IAA: Identifier Activity Analysis (Detect)
- D3-NTCD: Network Traffic Community Deviation (Detect)
- D3-NTF: Network Traffic Filtering (Isolate)
- D3-NTSA: Network Traffic Signature Analysis (Detect)
- D3-OTF: Outbound Traffic Filtering (Isolate)
- D3-PHDURA: Per Host Download-Upload Ratio Analysis (Detect)
- D3-PMAD: Protocol Metadata Anomaly Detection (Detect)
- D3-PSEP: Process Segment Execution Prevention (Harden)
- D3-RPA: Relay Pattern Analysis (Detect)
- D3-RTSD: Remote Terminal Session Detection (Detect)
- D3-SAOR: Segment Address Offset Randomization (Harden)
- D3-UA: URL Analysis (Detect)
- D3-UGLPA: User Geolocation Logon Pattern Analysis (Detect)
- D3-URA: URL Reputation Analysis (Detect)
Groups documented using it
Axiom, Darkhotel, RTM, PROMETHIUM, Elderwood, PLATINUM, Dark Caracal, APT19, Leafminer, Machete, Windshift, Windigo, Transparent Tribe, Andariel, CURIUM, Mustard Tempest, Daggerfly
Procedure examples
- During the 3CX Supply Chain Attack, AppleJeus compromised the www.tradingtechnologies[.]com website hosting a hidden IFRAME to exploit visitors, two months before the site was known to deliver a compromised version of the X_TRADER software…
- APT19 performed a watering hole attack on forbes.com in 2014 to compromise targets.
- APT28 has compromised targets via strategic web compromise utilizing custom exploit kits. APT28 used reflected cross-site scripting (XSS) against government websites to redirect users to phishing webpages.
- APT32 has infected victims by tricking them into visiting compromised watering hole websites.
44 documented uses in all. These are a sample.
MITRE ATT&CK Enterprise 19.2. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.