T1059.003 Windows Command Shell
Executionon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0202 Behavioral Detection of Windows Command Shell Execution
AN0578 Windows
Detects interactive or scripted abuse of cmd.exe, batch files, or shell invocation chains. Focuses on parent-child relationships (e.g., cmd.exe launched from unusual parents), anomalous command-line parameters, and chaining with discovery, credential access, or lateral movement behaviors.
| MITRE log source | In Microsoft Sentinel |
|---|---|
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=7 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
EDR:scriptblockProcess Tree + Script Block Logging | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (8)
- CYFIRMA - High severity File Hash Indicators with Block Action and Malware
- CYFIRMA - Medium severity File Hash Indicators with Block Action and Malware
- Exchange Worker Process Making Remote Call
- Execution attempts stateful anomaly on database
- Powershell Empire Cmdlets Executed in Command Line
- WMI Spawning Suspicious Child Process (Living off the Land)
- MeshAgent Suspicious Child Process - Potential Malicious RMM Tool Usage
- Suspicious SQL Stored Procedures
How the Content Hub rules for T1059.003 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
46 SigmaHQ community rules name it in their tags.
- HackTool - CrackMapExec Execution Patterns
- Elise Backdoor Activity
- Rorschach Ransomware Execution Activity
- ZxShell Malware
- AWS EC2 Startup Shell Script Change
- Conhost.exe CommandLine Path Traversal
- Exploited CVE-2020-10189 Zoho ManageEngine
- Exploiting SetupComplete.cmd CVE-2019-1378
- HTML Help HH.EXE Suspicious Child Process
- HackTool - CrackMapExec Execution
- HackTool - Koadic Execution
- HackTool - RedMimicry Winnti Playbook Execution
- Operator Bloopers Cobalt Strike Commands
- Operator Bloopers Cobalt Strike Modules
- Potential Baby Shark Malware Activity
- Potential CommandLine Path Traversal Via Cmd.EXE
- Sofacy Trojan Loader Activity
- Suspicious HH.EXE Execution
- Suspicious HWP Sub Processes
- AppLocker Prevented Application or Script from Running
- Command Line Execution with Suspicious URL and AppData Strings
- HackTool - Jlaive In-Memory Assembly Execution
- Headless Process Launched Via Conhost.EXE
- PUA - AdvancedRun Execution
- Potential APT FIN7 Exploitation Activity
Mitigations
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.