Powershell script executed "New-Service" command


Description

Powershell script executed "New-Service" command

Query · wazuh

field win.eventdata.scriptBlockText="(?i)new-service"

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. 91818 Powershell script executed "New-Service" command refinement level 4 this rule
    field win.eventdata.scriptBlockText="(?i)new-service"

Rule dependencies

Depends on

Raw source Powershell script executed "New-Service" command · Wazuh XML
Esc
Published by Wazuh Core Ruleset ↗, licensed under GPLv2 ↗. Reproduced here unmodified.
<rule id="91818" level="4">
    <if_sid>91802</if_sid>
    <field name="win.eventdata.scriptBlockText" type="pcre2">(?i)new-service</field>
    <options>no_full_log</options>
    <description>Powershell script executed "New-Service" command</description>
    <mitre>
      <id>T1543.003</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.