T1608.004 CrowdStrike LogScale · LogScale

Detect Drive-by Target in CrowdStrike LogScale

Adversaries prepare operational websites to infect systems that visit over the normal course of browsing. This involves staging malicious JavaScript, exploit kit landing pages, browser profiling code (e.g., ScanBox), or trojanized downloads on adversary-controlled or compromised legitimate websites — including watering hole attacks targeting specific communities such as government agencies, industries, or regional groups. Staging methods include injecting malicious scripts into existing web pages, modifying files served from publicly writable cloud storage buckets, and purchasing malvertising space. Because staging occurs entirely on adversary infrastructure, direct detection is not possible from the victim side. Detection strategy focuses on victim-side downstream artifacts: browsers spawning unexpected child processes (exploitation indicator), executable files dropped by browser processes to temp directories, and browser network connections to newly registered or cloud-hosted infrastructure serving executable content.

MITRE ATT&CK

Tactic
Resource Development
Technique
T1608 Stage Capabilities
Sub-technique
T1608.004 Drive-by Target
Canonical reference
https://attack.mitre.org/techniques/T1608/004/

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
#event_simpleName=ProcessRollup2
| ImageFileName = /certutil|bitsadmin|curl|wget/i
| CommandHistory = /urlcache|transfer|download|http/i
| case {
    CommandHistory = /\.exe|\.dll|\.bin/i | FileType := "Executable";
    CommandHistory = /\.ps1|\.bat|\.vbs/i | FileType := "Script";
    * | FileType := "Other"
  }
| table([@timestamp, UserName, ComputerName, ImageFileName, CommandHistory, FileType])
high severity medium confidence

CrowdStrike Falcon LogScale CQL query for T1608.004 detection. Detects victim-side indicators of drive-by targeting using Microsoft Defender for Endpoint tables. I

Data Sources

ProcessRollup2 (Falcon sensor)NetworkConnectIP4 (Falcon sensor)

Required Tables

ProcessRollup2NetworkConnectIP4DetectionSummaryEvent

False Positives & Tuning

  • Browser extensions or plugins that legitimately spawn helper processes — e.g., PDF readers (AcroRd32.exe), video codec installers, accessibility tools launched via browser
  • Legitimate software update mechanisms triggered through the browser — Chrome or Firefox update pipelines may invoke msiexec.exe or cmd.exe to apply updates
  • Developer workflows using browser-based IDEs, build tools, or debugging extensions that spawn local script interpreters or Node.js processes
  • Enterprise protocol handlers (custom URI schemes such as myapp://) that allow browsers to launch registered desktop applications or scripts
  • Download managers integrated with browsers that save executable files to standard temp directories before user-initiated installation
Download portable Sigma rule (.yml)

Other platforms for T1608.004


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Simulate Browser-Spawned Command Shell (Drive-by Exploitation Process Artifact)

    Expected signal: Sysmon Event ID 1: Process Create with Image=cmd.exe, CommandLine containing 'driveby-spawn-test'. ParentImage=powershell.exe in this test (in a real attack, ParentImage would be chrome.exe or msedge.exe). Sysmon Event ID 11: File Create for driveby-spawn-test.txt in %TEMP%. Security Event ID 4688 (if command line auditing enabled) showing cmd.exe process creation with full command line.

  2. Test 2Browser Executable File Drop to Temp Directory (Drive-by Payload Staging)

    Expected signal: Sysmon Event ID 11: File Create with TargetFilename=%TEMP%\driveby-payload-test.exe, initiating process=powershell.exe (would be chrome.exe/msedge.exe in a real attack). File has MZ magic bytes confirming PE format. SHA256 hash of the 8-byte file will be logged by Defender.

  3. Test 3Drive-by Browser Fingerprinting Page Simulation (ScanBox-Style Reconnaissance)

    Expected signal: Sysmon Event ID 1: Process Create for msedge.exe with --headless flag and file:// URI pointing to staged HTML. Sysmon Event ID 11: File Create for scanbox-sim.html in %TEMP% by PowerShell. Sysmon Event ID 3: Network Connection attempt from msedge.exe to 127.0.0.1:19876 (connection will fail — no listener — but the event fires). Browser console output (captured via --dump-dom) shows the fingerprinting script execution.

  4. Test 4Watering Hole Injection Simulation — Malicious Script Tag in Web Page

    Expected signal: Sysmon Event ID 11: File Create for watering-hole-sim.html in %TEMP% by PowerShell. The file contains hex-encoded JavaScript obfuscation patterns (\x64\x6f\x63...) and Base64-encoded lure text matching SocGholish-style fake browser update prompts. SHA256 of the file can be submitted to threat intel platforms. In a real attack, this content would be injected into a legitimate website's HTML and served to visitors.

Unlock Pro Content

Get the full detection package for T1608.004 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections