Suspicious Python Executing Staged Script From Temp Directory via DPRK Pyperclip Loader

PremiumReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
HuntRule
Published
2026-09-18
Updated
2026-09-18

ATT&CK techniques

Execution → C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. Exfiltration

  12. Impact

What it detects

This rule detects a Python interpreter spawning a child process from a file written into the system temporary directory which mirrors the DPRK malicious Pyperclip module that decodes a base64 blob to a temp script and executes it via subprocess. Adversaries stage and run obfuscated Python payloads from temp to retrieve and execute second stage command and control code.

Related detections9 linkedT1105 — drag to rearrange
Suspicious Python HTTP Server Staging for Payload Delivery
Linux process chain for Axios NPM compromise: curl download with nohup and python3
Suspicious PowerShell WebClient DownloadString Payload Retrieval via Script (via ps_script)
Suspicious Plist Download via curl on macOS
Malicious Python Reverse Shell Execution on macOS
Malicious IoT Malware Download and Execution Cradle
Suspicious Payload Download to Temp via curl from CDN
Suspicious File Transfer via bitsadmin
Suspicious certutil Decode or Remote Download
Suspicious Python Executing Staged Script From Temp Directory via DPRK Pyperclip Loader
Pivot detection · T1105 · 9 related

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