Powershell script compiling code using CSC.exe, possible malware drop


Description

Powershell script compiling code using CSC.exe, possible malware drop

Query · wazuh

field win.eventdata.image="(?i)\\csc\.exe" AND field win.eventdata.parentCommandLine="(?i)powershell.+ExecutionPolicy\s+bypass"

Rule dependencies

Depends on

  • composes · Wazuh if_group sysmon_event1
    856 rules in this analytic story
Raw source Powershell script compiling code using CSC.exe, possible malware drop · Wazuh XML
Esc
Published by Wazuh Core Ruleset ↗, licensed under GPLv2 ↗. Reproduced here unmodified.
<rule id="92006" level="6">
    <if_group>sysmon_event1</if_group>
    <field name="win.eventdata.image" type="pcre2">(?i)\\csc\.exe</field>
    <field name="win.eventdata.parentCommandLine" type="pcre2">(?i)powershell.+ExecutionPolicy\s+bypass</field>
    <options>no_full_log</options>
    <description>Powershell script compiling code using CSC.exe, possible malware drop</description>
    <mitre>
      <id>T1027.004</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.