Linux Process Execution of Python Base64 Decode One-Liners

Alerts on Linux process creations running Python -c one-liners that import base64 and invoke decoding functions.

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

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 identifies Linux command-line executions that include Python imports and base64 decoding activity via common base64 decode functions within a Python one-liner style (e.g., using -c). Such usage is frequently associated with attackers decoding obfuscated content during execution to evade inspection. The detection relies on process creation telemetry that provides Image and CommandLine fields matching Python and base64 decode-related substrings.

Related detections9 linkedT1059.006 — drag to rearrange
Windows Process Creation: Python One-Liners Decoding Base64 via Command Line
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)
Linux Process Execution of Python Base64 Decode One-Liners
Pivot detection · T1059.006 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

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