Techniques › T1059.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 source | Channel | Data component |
|---|---|---|
| WinEventLog:Sysmon | EventCode=1 | DC0032 Process Creation |
| EDR:hunting | Advanced Hunting: DeviceProcessEvents + DeviceNetworkEvents | DC0085 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.
| Field | Description |
|---|---|
ParentProcess | Non-standard processes spawning python.exe (e.g., winword.exe, mshta.exe). |
ScriptPath | Execution of .py from temp directories or user profile paths. |
TimeWindow | Execution outside maintenance or patch windows. |
UserContext | Execution by low-privileged or service accounts. |
ChildProcess | Python spawning suspicious binaries or scripts (e.g., PowerShell, certutil). |