T1189 Drive-by Compromise
Initial Accesson attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0176 Drive-by Compromise — Behavior-based, Multi-platform Detection Strategy (T1189)
AN0498 Windows
Correlated evidence of anomalous browser/network behavior (suspicious external resource fetches and script injection patterns) followed by atypical child processes, ephemeral execution contexts, memory modification or process injection, and unexpected file drops. Defender sees network requests to previously unseen/suspicious domains or resources + browser process spawning unusual children or loading unsigned modules + file writes or registry changes shortly after those requests.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SecurityEventCode=4624, 4648 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:SecurityEventCode=4688 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:SysmonEventCode=3, 22 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:ApplicationBrowser or plugin/application logs showing script errors, plugin enumerations, or unusual extension load events |
|
etw:Microsoft-Windows-Kernel-ProcessMemory Modification / Unmapped module load or suspicious RWX allocations in the process space of a browser process | Not mapped to Sentinel yet. |
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
NSM:Flowhttp.request: HTTP requests and responses for specific script resources, unexpected content-types (application/octet-stream for script URLs), suspicious referrers, or obfuscated javascript resources | Not mapped to Sentinel yet. |
AN0499 Linux
Correlated evidence of browser or webview fetches to uncommon domains or mutated JS resources (proxy/NGFW logs + Zeek/HTTP logs) followed by unexpected interpreters or script engines executing (python, ruby, sh) spawned from browser processes or user sessions, rapid on-disk staging in /tmp, and outbound connections that deviate from baseline. Defender sees: uncommon resource fetch → short-lived child process executions from user browser context → file writes in temp directories → anomalous outbound C2-like connections.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLexecve: execve calls where a browser/webview process is parent and child is interpreter (python, sh, ruby) or downloader (curl, wget) | Not mapped to Sentinel yet. |
linux:syslogApplication or browser logs (webview errors, plugin enumerations) indicating suspicious script evaluation or plugin loads | Not mapped to Sentinel yet. |
NSM:Flowhttp::response: HTTP responses with suspicious content-type for scripts, long obfuscated javascript bodies, or redirects to exploit kit domains | Not mapped to Sentinel yet. |
linux:SysmonNew files in /tmp, /var/tmp, $HOME/.cache, executed within TimeWindow after browser HTTP fetch |
|
NSM:ConnectionsOutbound connections from newly spawned child processes or from the browser to uncommon endpoints or on anomalous ports | Not mapped to Sentinel yet. |
AN0500 macOS
Correlated evidence where Safari/Chrome/WebKit-based processes issue network requests for uncommon or obfuscated JS resources followed by spawning of script interpreters, launchd or ad-hoc binaries, unusual child processes, or dynamic library loads into browser processes. Defender sees: proxy/HTTP logs with suspicious resource content + unifiedlogs/ASL showing browser/plugin crashes or extension loads + process events indicating child process creation and file writes to /var/folders or /tmp shortly after the fetch.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogLogs from unifiedlogging that show browser crashes, plugin enumerations, extension installs or errors around the same time as suspicious network fetches | Not mapped to Sentinel yet. |
macos:unifiedlogprocess_create: Process creation where parent is Safari/Google Chrome and child is script interpreter or signed-but-unusual helper binary | Not mapped to Sentinel yet. |
macos:unifiedlogNew files written to /var/folders, /tmp, ~/Library/Caches, or ~/Downloads by browser context or its children | Not mapped to Sentinel yet. |
NSM:FlowHTTP/HTTPS requests for script resources flagged by content inspection (excessive obfuscation, eval usage, unusual redirects) | Not mapped to Sentinel yet. |
macos:unifiedlogAnomalous dyld dynamic library loads or RWX memory mappings in browser process | Not mapped to Sentinel yet. |
AN0501 Identity Provider
Post-compromise identity & session anomalies that follow a drive-by compromise: token reuse from new/unfamiliar IPs, anomalous sign-in patterns for previously inactive users, unexpected consent/grant events, or provisioning changes. Defender sees an endpoint/browser compromise (network + endpoint signals) followed by unusual IdP events: new refresh token issuance, consent/consent-grant events, odd MFA bypass patterns, or unusual OAuth client registrations.
| MITRE log source | In Microsoft Sentinel |
|---|---|
azure:signinlogsSignIn: Sign-ins flagged as atypical (new geographic region, unfamiliar device id) shortly after correlated endpoint/browser compromise times |
|
m365:unifiedApplication Consent grants, new OAuth client registrations, or unusual admin-level activities executed by a user account shortly after suspected drive-by compromise | interpreted
The Office 365 connector brings the Exchange, SharePoint and Teams workloads of the unified audit log; Entra sign-ins in it are in SigninLogs; CloudAppEvents carries Microsoft 365 app activity. |
saas:authRefresh token issuance or refresh token usage from new IPs or user agents | Not mapped to Sentinel yet. |
AWS:CloudTrailConsoleLogin: If IdP backed by cloud provider, Console login from new IP/agent after correlated endpoint compromise | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (75)
- Apache - Request to sensitive files
- App Gateway WAF - XSS Detection
- Application Gateway WAF - XSS Detection
- Box - Executable file in folder
- Box - Forbidden file type downloaded
- Cisco Cloud Security - Request to blocklisted file type
- Cisco SDWAN - Intrusion Events
- Cisco SDWAN - IPS Event Threshold
- Cisco WSA - Internet access from public IP
- Cisco WSA - Multiple attempts to download unwanted file
- Cisco WSA - Multiple errors to resource from risky category
- Cisco WSA - Multiple infected files
- Cisco WSA - Unexpected file type
- Cisco WSA - Unscannable file or scan error
- Critical Risks
- CTE - Blocked URL Attempted
- CTE - CTI Blocked URL Attempted
- CTE - Device Repeatedly Blocked Across Multiple Days
- CTE - Risky Device (Multiple IOC URL Hits)
- CTE - Sudden Block Spike Detected
- CYFIRMA - High severity Malicious Network Indicators Associated with Malware - Block Recommended Rule
- CYFIRMA - High severity Malicious Network Indicators Associated with Malware - Monitor Recommended Rule
- CYFIRMA - High severity Malicious Network Indicators with Block Action Rule
- CYFIRMA - High severity Malicious Network Indicators with Monitor Action Rule
- CYFIRMA - High severity TOR Node Network Indicators - Block Recommended Rule
How the Content Hub rules for T1189 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
3 SigmaHQ community rules name it or one of its sub-techniques in their tags.
- Cross Site Scripting Strings
- Flash Player Update from Suspicious Location
- Suspicious Browser Child Process - MacOS
Mitigations
M1017User TrainingM1021Restrict Web-Based ContentM1048Application Isolation and SandboxingM1050Exploit ProtectionM1051Update Software
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.