VeriKQL by Kaushik Saha

T1059 Command and Scripting Interpreter

Executionon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0516 Behavioral Detection of Command and Scripting Interpreter Abuse

AN1428 Windows

Detects the execution of scripting or command interpreters (e.g., powershell.exe, cmd.exe, wscript.exe) outside expected administrative time windows or from abnormal user contexts, often followed by encoded/obfuscated arguments or secondary execution events.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN1429 Linux

Detects use of shell interpreters (e.g., bash, sh, python, perl) initiated by users or processes not normally executing them, especially when chaining suspicious utilities like netcat, curl, or ssh.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecveNot mapped to Sentinel yet.

AN1430 macOS

Detects launch of command-line interpreters via Terminal, Automator, or hidden `osascript`, especially when parent process lineage deviates from user-initiated applications.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedloglog stream --info --predicate 'eventMessage CONTAINS "exec"'Not mapped to Sentinel yet.

AN1431 ESXi

Detects use of 'esxcli system' or direct interpreter commands (e.g., busybox shell) invoked from SSH or host terminal unexpectedly.

MITRE log sourceIn Microsoft Sentinel
esxi:vobdshell session startNot mapped to Sentinel yet.

AN1432 Network Devices

Identifies CLI interpreter access (e.g., Cisco IOS, Juniper JUNOS) via `enable` mode or scripting-capable sessions used by uncommon accounts or from unknown IPs.

MITRE log sourceIn Microsoft Sentinel
networkdevice:clishell commandNot mapped to Sentinel yet.
networkdevice:syslogauthentication & authorizationNot mapped to Sentinel yet.

Content Hub rules tagged with it (127)

Showing 25 of 127.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1059 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

426 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Showing 25 of 426: stable rules first, then by level.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

Sub-techniques

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.