Possible discovery activity: Powershell executed "Get-ChildItem" command on a system folder


Description

Possible discovery activity: Powershell executed "Get-ChildItem" command on a system folder

Query · wazuh

field win.eventdata.scriptBlockText="(?i)(Get-ChildItem|gci).+(env\:windir|system32|windows)"

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. 91833 Possible discovery activity: Powershell executed "Get-ChildItem" command on a system folder refinement level 3 this rule
    field win.eventdata.scriptBlockText="(?i)(Get-ChildItem|gci).+(env\:windir|system32|windows)"

Rule dependencies

Depends on

Raw source Possible discovery activity: Powershell executed "Get-ChildItem" command on a system folder · Wazuh XML
Esc
Published by Wazuh Core Ruleset ↗, licensed under GPLv2 ↗. Reproduced here unmodified.
<rule id="91833" level="3">
    <if_sid>91802</if_sid>
    <field name="win.eventdata.scriptBlockText" type="pcre2">(?i)(Get-ChildItem|gci).+(env\:windir|system32|windows)</field>
    <options>no_full_log</options>
    <description>Possible discovery activity: Powershell executed "Get-ChildItem" command on a system folder</description>
    <mitre>
      <id>T1083</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.