Windows PowerShell script token obfuscation via backtick and dynamic expression patterns

Find PowerShell script blocks that show token obfuscation patterns resembling Invoke-Obfuscation behavior.

FreeReviewedSigma · Medium · v5
Product
windows
Category
ps_script
Author
frack113 (SigmaHQ), DRL 1.1
Published
2022-12-27
Updated
2026-07-31

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 flags PowerShell script block content that matches token obfuscation patterns associated with Invoke-Obfuscation-style transformations. Attackers use these techniques to make malicious commands harder to read and signatures easier to evade, increasing the chance of script-based intrusion and persistence. The detection relies on Script Block Logging telemetry and matches obfuscated script text patterns while excluding specific known benign contexts.

Related detections2 linkedT1027.009 — drag to rearrange
Suspicious VERSION.dll Proxy Sideloading from User AppData Directory (via image_load)
Windows PowerShell Token Obfuscation via Process Command Line
Windows PowerShell script token obfuscation via backtick and dynamic expression patterns
Pivot detection · T1027.009 · 2 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.