Powershell script used "Invoke-command" cmdlet to execute sub script


Description

Powershell script used "Invoke-command" cmdlet to execute sub script

Query · wazuh

field win.eventdata.scriptBlockText="(?i)Invoke-Command"

Fires when

Wazuh evaluates a chain top-down. Every rule above this one must match on the same event before this rule is tested at all.

  1. decoded_as=windows_eventchannel AND field win.system.providerName="\.+"
  2. field win.system.channel="^Microsoft-Windows-PowerShell/Operational$"
  3. field win.eventdata.ScriptBlockId=".+"
  4. 91822 Powershell script used "Invoke-command" cmdlet to execute sub script anchor level 12 this rule
    field win.eventdata.scriptBlockText="(?i)Invoke-Command"

Rule dependencies

Depends on

Raw source Powershell script used "Invoke-command" cmdlet to execute sub script · Wazuh XML
Esc
Published by Wazuh Core Ruleset ↗, licensed under GPLv2 ↗. Reproduced here unmodified.
<rule id="91822" level="12">
    <if_sid>91802</if_sid>
    <field name="win.eventdata.scriptBlockText" type="pcre2">(?i)Invoke-Command</field>
    <options>no_full_log</options>
    <description>Powershell script used "Invoke-command" cmdlet to execute sub script</description>
    <mitre>
      <id>T1059.001</id>
    </mitre>
  </rule>

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.