MITRE ATT&CK / Techniques / T1059.003

Command and Scripting Interpreter: Windows Command Shell

ID
T1059.003
Tactics
TA0002 Execution
Sub-technique of
T1059 Command and Scripting Interpreter
Platforms
Windows
Data sources
Process Creation, Module Load, Script Execution
Source
attack.mitre.org
MITRE last modified
12 May 2026

Adversaries may abuse the Windows command shell for execution. The Windows command shell (cmd) is the primary command prompt on Windows systems. The Windows command prompt can be used to control almost any aspect of a system, with various permission levels required for different subsets of commands. The command prompt can be invoked remotely via Remote Services such as SSH.[1]

Batch files (ex: .bat or .cmd) also provide the shell with a list of sequential commands to run, as well as normal scripting operations such as conditionals and loops. Common uses of batch files include long or repetitive tasks, or the need to run the same set of commands on multiple systems.

Adversaries may leverage cmd to execute various commands and payloads. Common uses include cmd to execute a single command, or abusing cmd interactively with input and output forwarded over a command and control channel.

Detection

Mitigations (1)

M1038 Execution Prevention

Use application control where appropriate.

Groups (73)

Showing 60 of 73. Full list on attack.mitre.org.

Software (298)

Showing 60 of 298. Full list on attack.mitre.org.

References

  1. SSH in Windows