Invoke-Obfuscation STDIN+ Launcher - System

 Original Source: [Sigma source]
Title: Invoke-Obfuscation STDIN+ Launcher - System
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:2022-11-29
Tags:
  • -'attack.stealth'
  • -'attack.t1027'
  • -'attack.execution'
  • -'attack.t1059.001'
Logsource:
  • product: windows
  • service: system
Detection:
  selection_main:
    Provider_Name: 'Service Control Manager'
    EventID: '7045'
    ImagePath|contains|all:
      -'cmd'
      -'powershell'

    ImagePath|contains:
      -'/c'
      -'/r'

  selection_other:
ImagePath|contains:'noexit'     - ImagePath|contains|all:
      - 'input'
      - '$'
  condition:all of selection_*
Falsepositives:
  -Unknown
Level: high