MITRE ATT&CK T1189: Drive-by Compromise
When to use this skill
Use this skill when the task involves T1189, Drive-by Compromise, enterprise ATT&CK, TTP mapping, detection engineering, hunting, incident-response enrichment, control validation, or authorized adversary-emulation planning. Treat it as a defensive analysis aid: keep outputs focused on understanding, detecting, mitigating, and safely validating this ATT&CK technique.
Technique context
- ATT&CK domain: enterprise
- ATT&CK ID: T1189
- Technique name: Drive-by Compromise
- Type: technique
- ATT&CK URL: https://attack.mitre.org/techniques/T1189
- Tactics: initial-access
- Platforms: Identity Provider, Linux, macOS, Windows
- Required permissions: Not specified
- Effective permissions: Not specified
- Defenses bypassed: Not specified
ATT&CK 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)
- Built-in web application interfaces that allow user-controllable content are leveraged for the insertion of malicious scripts or iFrames (e.g., cross-site scripting)
Browser push notifications may also be abused by adversaries and leveraged for malicious code injection via User Execution. By clicking "allow" on browser push notifications, users may be granting a website permission to run JavaScript code on their browser.(Citation: Push notifications - viruspositive)(Citation: push notification -mcafee)(Citation: push notifications - malwarebytes)
Often the website used by an adversary is one visited by a specific community, such as government, a particular industry, or a particular region, where the goal is to compromise a specific user or set of users based on a shared interest. This kind of targeted campaign is often referred to a strategic web compromise or watering hole attack. There are several known examples of this occurring.(Citation: Shadowserver Strategic Web Compromise)
Typical drive-by compromise process:
- A user visits a website that is used to host the adversary controlled content.
- Scripts automatically execute, typically searching versions of the browser and plugins for a potentially vulnerable version. The user may be required to assist in this process by enabling scripting, notifications, or active website components and ignoring warning dialog boxes.
- Upon finding a vulnerable version, exploit code is delivered to the browser.
- If exploitation is successful, the adversary will gain code execution on the user's system unless other protections are in place. In some cases, a second visit to the website after the initial scan is required before exploit code is delivered.
Unlike Exploit Public-Facing Application, the focus of this technique is to exploit software on a client endpoint upon visiting a website. This will commonly give an adversary access to systems on the internal network instead of external systems that may be in a DMZ.
Agent workflow
- Clarify scope: identify the system, asset class, log sources, cloud or endpoint platform, and whether the user wants triage, detection, coverage assessment, or safe emulation planning.
- Load bundled resources as needed: use
references/technique-profile.json for structured metadata, references/detection-and-mitigation.md for triage and telemetry guidance, references/known-threat-context.md for ATT&CK relationship context, and templates/ for repeatable outputs.
- Map observations to ATT&CK: compare the user's evidence to the ATT&CK description, tactics, platforms, and known procedure patterns before asserting a match.
- Produce defensive outputs: prioritize hypotheses, telemetry requirements, detection logic ideas, validation steps, containment guidance, and mitigations.
- Preserve uncertainty: distinguish confirmed evidence, plausible indicators, assumptions, and gaps. Recommend what to collect next.
- Stay safe: do not provide malware, credential theft, persistence, evasion, destructive automation, or unauthorized exploitation instructions. For adversary emulation, keep steps bounded to approved lab or control-validation contexts and omit operational abuse details.
Bundled resources
references/technique-profile.json: machine-readable ATT&CK metadata for this technique.
references/detection-and-mitigation.md: detection notes, telemetry checklist, triage questions, mitigation candidates, and false-positive considerations.
references/known-threat-context.md: ATT&CK relationship context with attribution cautions.
templates/detection-brief.md: detection engineering brief template.
templates/hunt-plan.md: threat hunt plan template.
templates/incident-response-note.md: incident response note template.
templates/coverage-assessment.md: ATT&CK coverage assessment template.
scripts/render_brief.py: local helper that renders a Markdown defensive brief from technique-profile.json.
assets/output-schema.json: JSON schema for structured technique analysis outputs.
To generate a quick brief, run python scripts/render_brief.py --output brief.md from inside this skill directory, or adapt the templates directly.
Detection guidance
No ATT&CK detection guidance was present in the source STIX object.
Useful telemetry and data sources
- Not specified in the STIX object.
Mitigations to consider
- Application Isolation and Sandboxing
- Exploit Protection
- Restrict Web-Based Content
- Update Software
- User Training
Known threat context
Use these examples only as contextual leads, not as proof that an observed event is this technique:
- 3CX Supply Chain Attack (campaign)
- APT19 (intrusion-set)
- APT28 (intrusion-set)
- APT32 (intrusion-set)
- APT37 (intrusion-set)
- APT38 (intrusion-set)
- Andariel (intrusion-set)
- Axiom (intrusion-set)
- BRONZE BUTLER (intrusion-set)
- Bad Rabbit (malware)
- Bundlore (malware)
- C0010 (campaign)
- CURIUM (intrusion-set)
- Daggerfly (intrusion-set)
- Dark Caracal (intrusion-set)
- Darkhotel (intrusion-set)
- Dragonfly (intrusion-set)
- Earth Lusca (intrusion-set)
- Elderwood (intrusion-set)
- Grandoreiro (malware)
Recommended output pattern
When responding with this skill, structure the answer as:
- Assessment: whether the evidence supports this ATT&CK mapping and why.
- Evidence: specific indicators, logs, behaviors, and assumptions.
- Detection: telemetry sources, analytic logic, and tuning considerations.
- Response: containment, eradication, recovery, and validation actions.
- Coverage gaps: missing logs, sensors, controls, or environmental details.
- References: include the ATT&CK URL and any user-provided evidence references.
ATT&CK contributors
- Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)
- Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)
- Frank Angiolelli
1---2name: attack-ent-t1189-drive-by-compromise3description: Analyze MITRE ATT&CK T1189 Drive-by Compromise in the enterprise matrix. Use for TTP triage, detection engineering, hunting, defensive emulation planning, mitigations, incident response mapping, ATT&CK coverage, or questions mentioning T1189, Drive-by Compromise, or enterprise ATT&CK. Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.4license: MITRE ATT&CK Terms of Use apply to ATT&CK-derived content. See h5---67# MITRE ATT&CK T1189: Drive-by Compromise89## When to use this skill1011Use this skill when the task involves T1189, Drive-by Compromise, enterprise ATT&CK, TTP mapping, detection engineering, hunting, incident-response enrichment, control validation, or authorized adversary-emulation planning. Treat it as a defensive analysis aid: keep outputs focused on understanding, detecting, mitigating, and safely validating this ATT&CK technique.1213## Technique context1415- ATT&CK domain: enterprise16- ATT&CK ID: T118917- Technique name: Drive-by Compromise18- Type: technique19- ATT&CK URL: https://attack.mitre.org/techniques/T118920- Tactics: initial-access21- Platforms: Identity Provider, Linux, macOS, Windows22- Required permissions: Not specified23- Effective permissions: Not specified24- Defenses bypassed: Not specified2526## ATT&CK description2728Adversaries 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](https://attack.mitre.org/techniques/T1608/004)), including:2930* A legitimate website is compromised, allowing adversaries to inject malicious code31* Script files served to a legitimate website from a publicly writeable cloud storage bucket are modified by an adversary32* Malicious ads are paid for and served through legitimate ad providers (i.e., [Malvertising](https://attack.mitre.org/techniques/T1583/008))33* Built-in web application interfaces that allow user-controllable content are leveraged for the insertion of malicious scripts or iFrames (e.g., cross-site scripting)3435Browser push notifications may also be abused by adversaries and leveraged for malicious code injection via [User Execution](https://attack.mitre.org/techniques/T1204). By clicking "allow" on browser push notifications, users may be granting a website permission to run JavaScript code on their browser.(Citation: Push notifications - viruspositive)(Citation: push notification -mcafee)(Citation: push notifications - malwarebytes)3637Often the website used by an adversary is one visited by a specific community, such as government, a particular industry, or a particular region, where the goal is to compromise a specific user or set of users based on a shared interest. This kind of targeted campaign is often referred to a strategic web compromise or watering hole attack. There are several known examples of this occurring.(Citation: Shadowserver Strategic Web Compromise)3839Typical drive-by compromise process:40411. A user visits a website that is used to host the adversary controlled content.422. Scripts automatically execute, typically searching versions of the browser and plugins for a potentially vulnerable version. The user may be required to assist in this process by enabling scripting, notifications, or active website components and ignoring warning dialog boxes.433. Upon finding a vulnerable version, exploit code is delivered to the browser.444. If exploitation is successful, the adversary will gain code execution on the user's system unless other protections are in place. In some cases, a second visit to the website after the initial scan is required before exploit code is delivered.4546Unlike [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190), the focus of this technique is to exploit software on a client endpoint upon visiting a website. This will commonly give an adversary access to systems on the internal network instead of external systems that may be in a DMZ.4748## Agent workflow49501. Clarify scope: identify the system, asset class, log sources, cloud or endpoint platform, and whether the user wants triage, detection, coverage assessment, or safe emulation planning.512. Load bundled resources as needed: use `references/technique-profile.json` for structured metadata, `references/detection-and-mitigation.md` for triage and telemetry guidance, `references/known-threat-context.md` for ATT&CK relationship context, and `templates/` for repeatable outputs.523. Map observations to ATT&CK: compare the user's evidence to the ATT&CK description, tactics, platforms, and known procedure patterns before asserting a match.534. Produce defensive outputs: prioritize hypotheses, telemetry requirements, detection logic ideas, validation steps, containment guidance, and mitigations.545. Preserve uncertainty: distinguish confirmed evidence, plausible indicators, assumptions, and gaps. Recommend what to collect next.556. Stay safe: do not provide malware, credential theft, persistence, evasion, destructive automation, or unauthorized exploitation instructions. For adversary emulation, keep steps bounded to approved lab or control-validation contexts and omit operational abuse details.5657## Bundled resources5859- `references/technique-profile.json`: machine-readable ATT&CK metadata for this technique.60- `references/detection-and-mitigation.md`: detection notes, telemetry checklist, triage questions, mitigation candidates, and false-positive considerations.61- `references/known-threat-context.md`: ATT&CK relationship context with attribution cautions.62- `templates/detection-brief.md`: detection engineering brief template.63- `templates/hunt-plan.md`: threat hunt plan template.64- `templates/incident-response-note.md`: incident response note template.65- `templates/coverage-assessment.md`: ATT&CK coverage assessment template.66- `scripts/render_brief.py`: local helper that renders a Markdown defensive brief from `technique-profile.json`.67- `assets/output-schema.json`: JSON schema for structured technique analysis outputs.6869To generate a quick brief, run `python scripts/render_brief.py --output brief.md` from inside this skill directory, or adapt the templates directly.7071## Detection guidance7273No ATT&CK detection guidance was present in the source STIX object.7475## Useful telemetry and data sources7677- Not specified in the STIX object.7879## Mitigations to consider8081- Application Isolation and Sandboxing82- Exploit Protection83- Restrict Web-Based Content84- Update Software85- User Training8687## Known threat context8889Use these examples only as contextual leads, not as proof that an observed event is this technique:9091- 3CX Supply Chain Attack (campaign)92- APT19 (intrusion-set)93- APT28 (intrusion-set)94- APT32 (intrusion-set)95- APT37 (intrusion-set)96- APT38 (intrusion-set)97- Andariel (intrusion-set)98- Axiom (intrusion-set)99- BRONZE BUTLER (intrusion-set)100- Bad Rabbit (malware)101- Bundlore (malware)102- C0010 (campaign)103- CURIUM (intrusion-set)104- Daggerfly (intrusion-set)105- Dark Caracal (intrusion-set)106- Darkhotel (intrusion-set)107- Dragonfly (intrusion-set)108- Earth Lusca (intrusion-set)109- Elderwood (intrusion-set)110- Grandoreiro (malware)111112## Recommended output pattern113114When responding with this skill, structure the answer as:115116- Assessment: whether the evidence supports this ATT&CK mapping and why.117- Evidence: specific indicators, logs, behaviors, and assumptions.118- Detection: telemetry sources, analytic logic, and tuning considerations.119- Response: containment, eradication, recovery, and validation actions.120- Coverage gaps: missing logs, sensors, controls, or environmental details.121- References: include the ATT&CK URL and any user-provided evidence references.122123## ATT&CK contributors124125- Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)126- Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)127- Frank Angiolelli