PowerShell Base64 Download Cradle via FromBase64String and Invoke-Expression (via ps_script)

PremiumReviewedSigma · Medium · v1
Product
windows
Category
ps_script
Author
HuntRule
Published
2026-08-11
Updated
2026-08-28

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 detects PowerShell that decodes a base64 blob with FromBase64String and immediately runs it through Invoke-Expression, the staged download-and-execute cradle used by the LNK phishing chains analyzed by STRT to fetch and launch a second-stage script. Adversaries leverage this pattern to reconstruct and execute obfuscated code in memory, so this behavior warrants review during phishing investigation.

Related detections9 linkedT1059.001 — drag to rearrange
Hidden PowerShell Archive Extraction via ExtractToDirectory
CastleLoader ClickFix PowerShell Hex Decode and Re-Execution
Windows Process Command-Line Indicators of BlackByte Ransomware Activity
PowerShell CommandLine Uses FromBase64String to Decode Base64 Content (Windows)
PowerShell FromBase64String CommandLine Base64 Encoded Usage (Windows)
Suspicious XOR-Encoded PowerShell Command Line (Windows Process Creation)
Suspicious Scheduled Task Running PowerShell Every Minute (via process_creation)
Malicious Script Host Spawning PowerShell With Invoke-Expression (via process_creation)
Malicious Shell Payload Piped from curl to zsh
PowerShell Base64 Download Cradle via FromBase64String and Invoke-Expression (via ps_script)
Pivot detection · T1059.001 · 9 related

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