PowerShell Crypto Namespace Class Invocation for Windows Process Creation

Alerts on PowerShell executions that reference System.Security.Cryptography and common crypto class names.

FreeReviewedSigma · Medium · v5
Product
windows
Category
process_creation
Author
Andreas Braathen (mnemonic.io) (SigmaHQ), DRL 1.1
Published
2023-12-01
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 flags Windows process creation events where PowerShell (powershell.exe or pwsh.exe) is launched with command-line content referencing the System.Security.Cryptography namespace and specific cryptography class names. Attackers may use built-in .NET cryptography APIs to perform on-the-fly decryption or encryption during execution for stealth and payload handling. The detection relies on process creation telemetry containing the process image and the full command line text.

Related detections9 linkedT1059.001 — drag to rearrange
PowerShell Command-Line Obfuscation Constructs (via process_creation)
Windows PowerShell Obfuscated COM MSI Installation via WindowsInstaller.Installer
Windows Registry Set in Shell Open Command Using PowerShell Cryptography .NET Classes
Suspicious Script Interpreter Spawned by Explorer via ClickFix Run Dialog (via process_creation)
Suspicious PowerShell Download Cradle via ClickFix Fake CAPTCHA (via process_creation)
Suspicious PowerShell EncodedCommand Spawned From Command Shell via Process Creation
Suspicious Script Download via Curl and PowerShell by Dohdoor
Malicious Mass Hyper-V Virtual Machine Shutdown via PowerShell by Kraken Ransomware
Suspicious PowerShell WebClient DownloadFile of Archive Payload (UAT-7237)
PowerShell Crypto Namespace Class Invocation for Windows Process Creation
Pivot detection · T1059.001 · 9 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. 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.