Invoke-Obfuscation STDIN+ Launcher - Powershell

 Original Source: [Sigma source]
Title: Invoke-Obfuscation STDIN+ Launcher - Powershell
Status: test
Description:Detects Obfuscated use of stdin to execute PowerShell
References:
  -https://github.com/SigmaHQ/sigma/issues/1009
Author: Jonathan Cheong, oscd.community
Date: 2020-10-15
modified:2024-04-05
Tags:
  • -'attack.stealth'
  • -'attack.t1027'
  • -'attack.execution'
  • -'attack.t1059.001'
Logsource:
  • product: windows
  • category: ps_script
  • definition: Requirements: Script Block Logging must be enabled
Detection:
  selection_4104:
    ScriptBlockText|re: 'cmd.{0,5}(?:/c|/r).+powershell.+(?:\$?\{?input\}?|noexit).+"'
  condition:selection_4104
Falsepositives:
  -Unknown
Level: high