Powershell script: MemoryStream usage detected (in-memory execution)
Description
Powershell script: MemoryStream usage detected (in-memory execution)
Query · wazuh
field win.eventdata.scriptBlockText="(?i)IO\.MemoryStream"
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 Windows Powershell/100535-win_powershell_rules.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-PowerShell/Operational$" -
field win.eventdata.ScriptBlockId=".+" -
101331Powershell script: MemoryStream usage detected (in-memory execution) refinement level 10 this rulefield win.eventdata.scriptBlockText="(?i)IO\.MemoryStream"
Rule dependencies
Depends on
-
composes · Wazuh if_sid
91802