kevmap

TechniquesT1059.003 › AN0578

AN0578 Analytic 0578

Windows · attack.mitre.org · ATT&CK Enterprise v19.2

<p>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.</p>
Detects
T1059.003 Windows Command Shell
Part of
DET0202 Behavioral Detection of Windows Command Shell Execution

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
WinEventLog:SecurityEventCode=4688DC0032 Process Creation
WinEventLog:SysmonEventCode=7DC0016 Module Load
EDR:scriptblockProcess Tree + Script Block LoggingDC0029 Script Execution

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
ParentProcessNameCmd.exe launched from uncommon parents (e.g., msedge.exe, winword.exe) may indicate abuse.
TimeWindowCmd or .bat execution during non-working hours may indicate automation or C2 activity.
CommandLinePatternFlags suspicious switches (e.g., /c ping, /k whoami) or command chaining (&&, ^).
ScriptStoragePathBatch file execution from %TEMP%, C:\Users\Public, or external drives.
UserContextFlags admin-level users executing cmd outside expected baselines.

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2021-22899Ivanti Pulse Connect SecureMapped
CVE-2021-40449Microsoft WindowsMapped
CVE-2023-27532Veeam Backup & ReplicationMapped
CVE-2023-42793JetBrains TeamCityMapped
CVE-2025-49704Microsoft SharePointMapped
CVE-2025-49706Microsoft SharePointMapped