Claude Desktop agent ran a shell command (the command text is not logged)
Description
Claude Desktop agent ran a shell command (the command text is not logged)
Query · wazuh
field win.eventdata.commandLine="CLAUDE_CODE_SHELL_LAUNCHER_SCRIPT"
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 Claude Desktop/202700-claude_desktop.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="^1$" -
202704Claude Desktop started · win.eventdata.parentImage = (?i)\\(claude|cowork-svc)\.exe, win.eventdata.image = (?i)\\(cmd|powershell|pwsh|wscript|cscript|mshta|rundll32|r… anchor level 12field win.eventdata.parentImage="(?i)\\(claude|cowork-svc)\.exe$" AND field win.eventdata.image="(?i)\\(cmd|powershell|pwsh|wscript|cscript|mshta|rundll32|regsvr32|certutil|bitsadmin|msiexec|wmic|bash|wsl|curl|schtasks|sc|reg)\.exe$" -
202714Claude Desktop agent ran a shell command (the command text is not logged) refinement level 5 this rulefield win.eventdata.commandLine="CLAUDE_CODE_SHELL_LAUNCHER_SCRIPT"