kevmap

TechniquesT1059.006 › AN0172

AN0172 Analytic 0172

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

<p>Detects Python execution via python.exe or py.exe with anomalous parent lineage (e.g., Office macros, LOLBAS), execution from unusual directories, or chained network/PowerShell/system-level activity.</p>
Detects
T1059.006 Python
Part of
DET0063 Cross-Platform Behavioral Detection of Python 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:SysmonEventCode=1DC0032 Process Creation
EDR:huntingAdvanced Hunting: DeviceProcessEvents + DeviceNetworkEventsDC0085 Network Traffic Content

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
ParentProcessNon-standard processes spawning python.exe (e.g., winword.exe, mshta.exe).
ScriptPathExecution of .py from temp directories or user profile paths.
TimeWindowExecution outside maintenance or patch windows.
UserContextExecution by low-privileged or service accounts.
ChildProcessPython spawning suspicious binaries or scripts (e.g., PowerShell, certutil).