Threat hunting at the perimeter requires shifting focus from Network telemetry to Endpoint telemetry. While a Secure Email Gateway (SEG) or Web Application Firewall (WAF) might miss a novel Initial Access vector, the resulting Execution phase will always leave indelible, behavioral traces on the host operating system.
By operationalizing ATT&CK Data Sources—specifically Process: Process Creation and Command: Command Execution—defenders can catch the handoff between TA0001 and TA0002.
Phishing remains the undisputed king of Initial Access. While analyzing the email headers and delivery mechanisms is covered in our Suspicious Email Analysis Playbook, Threat Hunters must focus on what happens after the user clicks the malicious link or opens the attachment.
The Click (T1566.002 - Spearphishing Link): The user clicks a link, spawning a browser process (e.g., chrome.exe, msedge.exe).
The Download: A payload is downloaded to C:\Users\<User>\Downloads\.
The Detonation (T1204.002 - Malicious File): The user double-clicks the file.
The highest-fidelity indicator of compromised phishing attachments (like macro-enabled Word documents) is Abnormal Process Lineage.
If winword.exe, excel.exe, or AcroRd32.exe spawns a command interpreter (cmd.exe, powershell.exe) or a scripting engine (wscript.exe), it is a near-certain indicator that an Initial Access payload has successfully transitioned into the Execution phase.
3. Hunting T1059: Command and Scripting Interpreter (Execution)
Once inside, adversaries rarely drop custom, compiled .exe files immediately. Instead, they rely on native Operating System utilities—Living Off The Land Binaries and Scripts (LOLBAS)—to proxy their execution.
T1059.001 - PowerShell
PowerShell provides unprecedented access to the Windows API and .NET framework. Adversaries use it to download next-stage payloads, reflectively inject DLLs into memory, and execute fileless malware.
Hunting Focus: Monitor Event ID 4688 or Sysmon Event 1 for arguments designed to evade defenses, such as -ExecutionPolicy Bypass (-ep bypass), -WindowStyle Hidden (-w hidden), and -EncodedCommand (-enc).
T1059.003 - Windows Command Shell
The legacy cmd.exe remains highly abused for batch script execution and reconnaissance chaining.
Hunting Focus: Look for rapid, sequential executions of discovery commands (whoami, net user, ipconfig) or the usage of command chaining characters (&&, &, |) to execute multiple payloads in a single line.
4. Hunting T1047: Windows Management Instrumentation
Windows Management Instrumentation (WMI) is Microsoft’s implementation of Web-Based Enterprise Management (WBEM). Attackers abuse WMI for both local execution and highly stealthy lateral movement.
Tools like Impacket’s wmiexec.py or native PowerShell cmdlets (Invoke-WmiMethod) allow an adversary to spawn processes on local or remote systems. When execution is triggered via WMI, it bypasses standard parent-child relationships.
The Forensic Signature: As detailed in our deep-dive on WMI Forensics, any process executed via WMI is spawned by the WMI Provider Host (WmiPrvSE.exe).
Hunting Strategy: A Threat Hunter observing WmiPrvSE.exe spawning cmd.exe, which then executes a Base64-encoded PowerShell string, has identified a critical, high-confidence T1047 execution.
To translate these ATT&CK techniques into operational SIEM alerts, utilize the following queries focusing on the intersection of Initial Access and Execution.
description: Detects Windows Management Instrumentation (WmiPrvSE.exe) spawning command shells, indicative of remote execution via tools like wmiexec.py or WMI lateral movement.
logsource:
category: process_creation
product: windows
detection:
selection:
ParentImage|endswith: '\WmiPrvSE.exe'
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
- '\pwsh.exe'
# Optional: Exclude known benign IT management scripts
By viewing Initial Access and Execution as an interconnected sequence rather than isolated events, defenders can significantly reduce alert fatigue. A user launching powershell.exe is common; an email client launching a word processor that subsequently launches powershell.exe to decode a Base64 string is a definitive intrusion.
Mastering the hunting methodologies for T1566, T1059, and T1047 ensures that DFIR teams can neutralize adversaries before they have the opportunity to establish persistence or move laterally across the domain.