Powershell script executed an object deletion


Description

Powershell script executed an object deletion

Query · wazuh

field win.eventdata.scriptBlockText="(?i)Remove-Item\s-Path"

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. 91812 Powershell script executed an object deletion anchor level 0 this rule
    field win.eventdata.scriptBlockText="(?i)Remove-Item\s-Path"

Refined by

1 rule chains off this one, narrowing it further.

Rule dependencies

Depends on

Raw source Powershell script executed an object deletion · Wazuh XML
Esc
Published by Wazuh Core Ruleset ↗, licensed under GPLv2 ↗. Reproduced here unmodified.
<rule id="91812" level="0">
    <if_sid>91802</if_sid>
    <field name="win.eventdata.scriptBlockText" type="pcre2">(?i)Remove-Item\s-Path</field>
    <options>no_full_log</options>
    <description>Powershell script executed an object deletion</description>
    <mitre>
      <id>T1112</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.