Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cyb3rWard0g/9afb352e5f16a43e3d9922b65eabc5a0 to your computer and use it in GitHub Desktop.
Save Cyb3rWard0g/9afb352e5f16a43e3d9922b65eabc5a0 to your computer and use it in GitHub Desktop.
alert:
- slack
slack_webhook_url: https://hooks.slack.com/services/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
description: Detects suspicious PowerShell invocation with a parameter substring
filter:
- query:
query_string:
query: (process_path:("*\\Powershell.exe") AND event_id:"1" AND process_command_line:("
\-windowstyle h " " \-windowstyl h" " \-windowsty h" " \-windowst h" " \-windows
h" " \-windo h" " \-wind h" " \-win h" " \-wi h" " \-win h " " \-win hi "
" \-win hid " " \-win hidd " " \-win hidde " " \-NoPr " " \-NoPro " " \-NoProf
" " \-NoProfi " " \-NoProfil " " \-nonin " " \-nonint " " \-noninte " " \-noninter
" " \-nonintera " " \-noninterac " " \-noninteract " " \-noninteracti " "
\-noninteractiv " " \-ec " " \-encodedComman " " \-encodedComma " " \-encodedComm
" " \-encodedCom " " \-encodedCo " " \-encodedC " " \-encoded " " \-encode
" " \-encod " " \-enco " " \-en "))
index: logs-endpoint-winevent-sysmon-*
name: Suspicious-PowerShell-Parameter-Substring_0
priority: 2
realert:
minutes: 0
type: any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment