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
Linux process chain for Axios NPM compromise: curl download with nohup and python3
Suspicious Downloaded Shell Stager Made Executable Via Chmod 777
Suspicious PIKABOT PowerShell Download to Public Directory via Process Creation
Suspicious KANDYKORN Python Loader Execution via Process Creation
Suspicious curl Download Spawned by Excel via IQY Attachment (via process_creation)
Suspicious FRP Proxy Download via wget to Temporary Directory (via process_creation)
Suspicious Remote Payload Staging via curl Piped to Shell (via process_creation)
Suspicious DLL Download to ProgramData via Start-BitsTransfer (via process_creation)
Suspicious PowerShell Script Fetching Remote Batch File From Paste Site (via ps_script)
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.