Windows Process Creation: Python One-Liners Decoding Base64 via Command Line

Alerts on Windows Python command-line one-liners that import base64 and call decode functions.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
Hugh Ryan (HueCodes), Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2026-03-09
Updated
2026-07-30

ATT&CK techniques

Execution → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags Windows process executions where the command line indicates a Python one-liner importing base64 and invoking decoding functions. Attackers commonly use one-liners to decode obfuscated payloads or retrieve staged content, which can help evade simple content inspection. Detection relies on process creation telemetry, matching the executable image/name containing Python and the command line containing base64-related imports and decode function calls.

Related detections9 linkedT1059.006 — drag to rearrange
Linux Process Execution of Python Base64 Decode One-Liners
Suspicious Child Process Spawned by Python Interpreter via Process Creation
Suspicious Kimsuky Python Backdoor Staging in Winii Directory (via file_event)
SynkLoader Python Stager Execution from AppData via pythonw (via process_creation)
Malicious TeamPCP durabletask Payload python3 managed.pyz from tmp (via process_creation)
Suspicious Python Startup .pth File Creation for Interpreter Persistence
AteraAgent malicious installations
PowerShell Command-Line Obfuscation Constructs (via process_creation)
Suspicious Python Execution from WebDAV Share via PowerShell (via process_creation)
Windows Process Creation: Python One-Liners Decoding Base64 via Command Line
Pivot detection · T1059.006 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.