A drive-by compromise is an infection that happens when a user visits a malicious or compromised website, without knowingly downloading anything. MITRE ATT&CK tracks it as T1189 Drive-by Compromise. Browser patching, script controls and web filtering are the main defences.
How drive-by compromise works
Drive-by compromise is dangerous because the user does not need to click a download prompt or grant explicit consent. The attack succeeds by turning routine web access into an infection path, so the victim often only sees a normal page load while the browser processes malicious content in the background.
That makes the browser, its plugins, and any script or rendering engine a security boundary. A compromised site, a malicious ad delivery path, or a weaponised redirect chain can all become the entry point, which is why web filtering and patch hygiene matter even when users are careful.
Why drive-by compromise is effective
The technique works well because it exploits trust in ordinary browsing. Attackers prefer it when they want a low-friction initial access method that can reach many users at once, especially where browsers are outdated, exposed to risky content, or allowed to execute active web content without strong isolation.
Its effectiveness also comes from timing and invisibility. The malicious page may be short-lived, the exploit chain may only run under specific browser or plugin conditions, and the visible symptom may be delayed. That makes the technique harder to spot than a direct download or obvious phishing lure.
In ATT&CK terms, it sits alongside other initial access techniques that use the web as a delivery surface. The same defensive logic that reduces exploit-based browser compromise also helps against related web entry paths such as malicious links and compromised content.
What organisations should check
Exposure starts with knowing which browsers, extensions, PDF readers, and internet-facing endpoints can be reached from user workstations. Organisations should assume that any endpoint with web access can become a target if it can render untrusted content, especially when local patching lags behind browser and engine releases.
Control review should focus on browser patch status, script execution controls, reputation-based blocking, safe browsing features, DNS and proxy filtering, and sandbox or isolation settings. For defence-in-depth, browser hardening should be paired with endpoint controls that reduce exploitability if the page content does execute.
Detection should look for suspicious browser behaviour, unexpected child processes, script host spawning, exploit protection events, and unusual web requests around the time a user visited a site. Post-event review should include session tokens, saved credentials, and any downloaded payloads because the compromise often becomes visible only after the initial browser execution chain has completed.
Useful defensive guidance on watering hole attacks and MITRE ATT&CK T1189 Drive-by Compromise maps the same exposure pattern to browser hardening and detection priorities.
How to reduce impact
When drive-by compromise is a concern, the practical goal is to make browser exploitation fail or contain it quickly. Browser isolation, application sandboxing, exploit protection, and strong web filtering reduce the chance that a malicious page can turn into code execution on the endpoint.
That is also why prevention and response need to be linked. A team that only patches browsers but does not monitor browser-exploit indicators may still miss an intrusion window; a team that only monitors but leaves exposure open will keep reintroducing the same risk. The strongest posture combines rapid patching with layered controls that narrow the attacker’s margin for success.
For organisations that want a broader ATT&CK view of this entry path, the Initial Access Techniques Guide and Drive-by Downloads Guide help place the technique in the wider initial access and browser-compromise landscape.
Risk and Threat Considerations
Drive-by compromise is high risk because it turns ordinary browsing into a silent infection path, which means exposure can exist even in organisations with relatively cautious users. The main threat is not only initial malware delivery, but the follow-on access gained when browser sessions, credentials, or endpoint trust are abused after the first compromise.
Failure mechanism: A vulnerable browser, extension, or rendering component processes hostile web content and executes attacker-controlled code before the user recognises anything unusual.
Impact: Attackers can plant malware, steal session material, pivot into internal resources, or set up later credential theft and lateral movement from a trusted endpoint.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8, OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1189 — Drive-by Compromise | Defines browser-based initial access through malicious or compromised websites. |
| TA0001 — Initial Access | Drive-by compromise is an initial access technique that opens the intrusion chain. | |
| T1203 — Exploitation for Client Execution | Drive-by compromise often relies on client-side browser exploitation for execution. | |
| Recommendation — Map web-compromise detections to T1189 and harden browsers, script controls and web filtering. Track browser-entry events as initial access and prioritise containment before follow-on execution. Hunt for client-exploit indicators and enforce exploit protection and patching on endpoints. | ||
| CIS Controls v8 | CIS-7 — Continuous Vulnerability Management | Browser and plugin patching are central to reducing exposure to drive-by compromise. |
| CIS-10 — Malware Defenses | Drive-by compromise is a malware delivery path that benefits from web and endpoint blocking. | |
| Recommendation — Prioritise browser and plugin vulnerability remediation on internet-facing user endpoints. Use malware defenses to block malicious web payloads and contain browser-delivered code. | ||
| OWASP ASVS | V12 — Secure Communication | Browser-delivered compromise depends on unsafe web content and trust in web transport paths. |
| Recommendation — Enforce secure web handling and reduce exposure to untrusted content delivery paths. | ||
| NIST SP 800-53 Rev 5 | SI-3 — Malicious Code Protection | Drive-by compromise delivers malicious code through web content and browser execution. |
| SI-4 — System Monitoring | Detection depends on observing browser exploitation, script execution and follow-on activity. | |
| SC-39 — Process Isolation | Isolation limits the impact of browser-based exploitation on the host system. | |
| Recommendation — Deploy malicious code protection to block and contain web-delivered payloads. Monitor browser and endpoint telemetry for exploit chains and abnormal post-visit behaviour. Use process isolation to contain browser execution and limit exploit blast radius. | ||
Practitioner Guidance
What to watch for: Treat browser patching, script control, and web filtering as a single control set rather than separate tasks. If one layer is weak, the others have to absorb more of the exploit chain, and that usually shows up later as harder containment and noisier incident response.
Governance implication: Ownership should be explicit across endpoint, browser, and web gateway teams so that unpatched browser exposure is not left between control domains. If users browse untrusted sites or need broad web access, isolation and reputation controls should be part of the standard baseline, not an exception path.
Related resources from NHI Mgmt Group
- Why do human errors still drive so many successful phishing and business email compromise attacks?
- What are the signs that a browser compromise may have occurred through a drive-by download?
- What are the signs that supplier account compromise is being used to drive business email compromise?
- What happens when email compromise is used to drive fraud, data theft, or wire transfer manipulation?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org