Windows PowerShell Decryption-Like Activity Involving .LNK File Processing

Identifies PowerShell runs that enumerate and process *.lnk content using byte-level reads/writes consistent with decryption staging.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
X__Junior (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-06-30
Updated
2026-07-30

What it detects

This rule flags PowerShell executions (powershell.exe or pwsh.exe) whose command lines reference reading .LNK files and performing decryption-like byte handling. It looks for Get-ChildItem/dir enumeration, content retrieval (e.g., Get-Content/ReadAllBytes), and output via WriteAllBytes with properties expansion on *.lnk files. This matters because attackers can use PowerShell to transform embedded or stored data from shortcut files to stage subsequent payloads. Telemetry relies on Windows process creation data including Image/OriginalFileName and the full CommandLine.

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