Find sigma rule
Attack: Command and Scripting Interpreter: Windows Command Shell
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.(Citation: SSH in Windows)
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.
MITRE
Tactic
- execution
technique
- T1059.003
Test : Create and Execute Batch Script
OS
- windows
Description:
Creates and executes a simple batch script. Upon execution, CMD will briefly launch to run the batch script then close again.
Executor
powershell
Sigma Rule
- posh_ps_susp_execute_batch_script.yml (id: b5522a23-82da-44e5-9c8b-e10ed8955f88)