Suspicious PowerShell Invocations - Generic - PowerShell Module

 Original Source: [Sigma source]
Title: Suspicious PowerShell Invocations - Generic - PowerShell Module
Status: test
Description:Detects suspicious PowerShell invocation command parameters
References:
  -Internal Research
Author: Florian Roth (Nextron Systems)
Date: 2017-03-12
modified:2023-01-03
Tags:
  • -'attack.execution'
  • -'attack.t1059.001'
Logsource:
  • product: windows
  • category: ps_module
  • definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
Detection:
  selection_encoded:
    ContextInfo|contains:
      -' -enc '
      -' -EncodedCommand '
      -' -ec '

  selection_hidden:
    ContextInfo|contains:
      -' -w hidden '
      -' -window hidden '
      -' -windowstyle hidden '
      -' -w 1 '

  selection_noninteractive:
    ContextInfo|contains:
      -' -noni '
      -' -noninteractive '

  condition:all of selection*
Falsepositives:
  -Very special / sneaky PowerShell scripts
Level: high