Suspicious Python Inline Deobfuscation and Execution One-Liner

PremiumReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
HuntRule
Published
2026-10-24
Updated
2026-10-24

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects a Python process executing an inline one liner that base64 decodes and zlib decompresses a blob and passes it to exec. Stealer payloads wrap their real logic in dozens of nested decode and decompress layers invoked through this pattern to defeat static analysis.

Related detections9 linkedT1027 — drag to rearrange
Suspicious Shell Command Obfuscation via printf Escape Encoding on VMware ESXi (via process_creation)
AutoIt Payload Reassembly via copy /b File Concatenation
PowerShell CommandLine Uses FromBase64String to Decode Base64 Content (Windows)
Suspicious XOR-Encoded PowerShell Command Line (Windows Process Creation)
Windows Ping Hex IP Usage via Command Line
Suspicious PowerShell Payload Extraction from PNG Polyglot via findstr
Suspicious PowerShell Reflective Assembly Load With Registry Property Read via Script Block (via ps_script)
Suspicious Archive Extraction From AppData Staging Folder via Process Creation
Suspicious Base64 Decoded Payload Piped to Shell on Linux
Suspicious Python Inline Deobfuscation and Execution One-Liner
Pivot detection · T1027 · 9 related

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