Program in a user folder set to start at logon (check whether it is a renamed script interpreter) · win.eventdata.targetObject = (?i)\\CurrentVersion\\+Run(Once)?\\+, win.eventdata.image = (?i)\\+(Users|ProgramData|PerfLogs|Windows\\+Temp)\\+|^[a-z…
Description
Program in a user folder set to start at logon (check whether it is a renamed script interpreter): $(win.eventdata.image)
Query · wazuh
field win.eventdata.targetObject="(?i)\\CurrentVersion\\+Run(Once)?\\+" AND field win.eventdata.image="(?i)\\+(Users|ProgramData|PerfLogs|Windows\\+Temp)\\+|^[a-z]:\\+Temp\\+" AND field win.eventdata.image="(?i)\\(py|pyw|wscript|cscript)\.exe$|\\[^\\]*(python|node|java|autoit)[^\\]*$"
No license declared
socfortress/Wazuh-Rules publishes no license, and without an express grant the default is all rights reserved. The query above is synthesized from the rule rather than copied out of it, so you can see what the rule matches on; the rule as written stays upstream.
Read the full rule at Endpoint Threats/203000-endpoint_threats_windows.xml ↗. Why this rule is treated this way.
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.
-
decoded_as=windows_eventchannel AND field win.system.providerName="\.+" -
field win.system.channel="^Microsoft-Windows-Sysmon/Operational$" -
field win.system.severityValue="^INFORMATION$" -
field win.system.eventID="^13$" -
203191Program in a user folder set to start at logon (check whether it is a renamed script interpreter) · win.eventdata.targetObject = (?i)\\CurrentVersion\\+Run(Once)?\\+, win.eventdata.image = (?i)\\+(Users|ProgramData|PerfLogs|Windows\\+Temp)\\+|^[a-z… refinement level 8 this rulefield win.eventdata.targetObject="(?i)\\CurrentVersion\\+Run(Once)?\\+" AND field win.eventdata.image="(?i)\\+(Users|ProgramData|PerfLogs|Windows\\+Temp)\\+|^[a-z]:\\+Temp\\+" AND field win.eventdata.image="(?i)\\(py|pyw|wscript|cscript)\.exe$|\\[^\\]*(python|node|java|autoit)[^\\]*$"
Rule dependencies
Depends on
-
composes · Wazuh if_sid
112169 -
composes · Wazuh if_sid
61615 -
composes · Wazuh if_sid
92300