T1059.004: Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch)

Framework: MITRE ATT&CK · Tactic: Execution · Total Cataloged Families: 9 · Observed Samples: 87 · Primary Threat Categories: Adware · Trojan · Advanced Threat
Operational Executive Summary

T1059.004 (Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch)) is classified under the Execution tactic within the MITRE ATT&CK framework. Techniques that result in adversary-controlled code running on a local or remote target system, including command-line interpreters, PowerShell payloads, and native binary proxy execution. In telemetry gathered across enterprise endpoints and the EMBER 2018 benchmark, this technique was weaponized across 9 distinct malware families, totaling over 87 validated samples.

Technical Anatomy & Adversary Tradecraft

Adversaries leverage Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch) to accomplish operational objectives while minimizing anomalous forensic footprints. When executing Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch), malicious binaries commonly interact directly with low-level Windows APIs, kernel mode drivers, or native scripting interfaces to bypass traditional file-integrity monitors and static antivirus signatures.

In modern multi-stage campaigns, T1059.004 is frequently observed functioning as an intermediate bridge: initial access payloads (such as spearphishing loaders or exploit macros) execute Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch) to establish in-memory execution or persistence before staging secondary ransomware or data-exfiltration implants.

Authoritative MITRE ATT&CK Reference: View official technique documentation, sub-techniques, and adversary groups at https://attack.mitre.org/techniques/T1059/004/.

Detection Engineering & Threat Hunting

Detecting Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch) requires telemetry correlation across endpoint detection and response (EDR) agents, Sysmon event streams, and security information event management (SIEM) pipelines:

SOC Containment & Hardening Guidance

To mitigate risks associated with T1059.004 (Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch)) across production infrastructure, security teams should implement the following defensive controls:

  1. Attack Surface Reduction (ASR): Enforce strict application control policies (WDAC or AppLocker) to restrict execution to signed and verified corporate binaries.
  2. Least Privilege & Credential Hygiene: Restrict local administrative privileges to prevent adversaries from tampering with defensive agents or escalating privileges.
  3. Network Microsegmentation: Restrict lateral communication across endpoint VLANs to prevent wormable payloads from utilizing Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch) across adjacent network segments.
→ Incident Response Guidance: Read our Backdoor & RAT Protection for Businesses

Cataloged Malware Families Utilizing T1059.004 (9 Families)

The following malware families in the SystemHelpDesk catalog have been verified utilizing T1059.004 (Command and Scripting Interpreter: Unix Shell (or Windows CMD/Batch)):

9 families
Family Category Sample Count Technical Summary
installermonetizerAdware14InstallerMonetizer (classified across cybersecurity vendors as Adware:Win32/InstallerMonetizer and PUA:Win32/InstallerMonetizer) is a software monetizing pay-pe...
openinstallAdware14OpenInstall (classified across security vendors as Adware:Win32/OpenInstall and PUA:Win32/OpenInstall) is an aggressive software bundler and adware delivery pla...
installbrainAdware13InstallBrain (classified across cybersecurity vendors as Adware:Win32/InstallBrain and PUA:Win32/InstallBrain) is an aggressive pay-per-install software bundler...
opendownloadmanagerAdware13OpenDownloadManager (classified across endpoint security engines as PUA:Win32/OpenDownloadManager and Adware:Win32/OpenDownloadManager) is a Potentially Unwante...
smartappsAdvanced Threat11Adware:Win32/Smartapps is a widespread Potentially Unwanted Program (PUA) and adware bundler framework. It is designed to act as an aggressive installer wrapper...
silentallAdvanced Threat10HackTool:Win32/Silentall (or simply 'Silent Installers') is a heuristic classification used by endpoint security solutions to flag executable files that act as ...
netpassTrojan9HackTool:Win32/Netpass is a heuristic detection applied to the legitimate NirSoft utility 'Network Password Recovery' (`netpass.exe`), as well as modified varia...
jacksbotTrojan2Backdoor:Java/Jacksbot is a sophisticated, cross-platform Remote Access Trojan (RAT) written entirely in Java. Because it relies on the Java Virtual Machine (JV...
wellmessRansomware1<h3>Executive Summary</h3> WellMess is a highly sophisticated, cross-platform (Windows and Linux) malware family heavily utilized by the Russian state-sponsored...