Powershell executed a creation or update of a WMI instance with encoded values


Description

Powershell executed a creation or update of a WMI instance with encoded values

Query · wazuh

field win.eventdata.scriptBlockText="(?i)Text\.Encoding"

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. field win.eventdata.scriptBlockText="(?i)Set-WmiInstance"
  5. 91828 Powershell executed a creation or update of a WMI instance with encoded values refinement level 6 this rule
    field win.eventdata.scriptBlockText="(?i)Text\.Encoding"

Rule dependencies

Depends on

Raw source Powershell executed a creation or update of a WMI instance with encoded values · Wazuh XML
Esc
Published by Wazuh Core Ruleset ↗, licensed under GPLv2 ↗. Reproduced here unmodified.
<rule id="91828" level="6">
    <if_sid>91827</if_sid>
    <field name="win.eventdata.scriptBlockText" type="pcre2">(?i)Text\.Encoding</field>
    <options>no_full_log</options>
    <description>Powershell executed a creation or update of a WMI instance with encoded values</description>
    <mitre>
      <id>T1027</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.