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)

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.

  1. decoded_as=windows_eventchannel AND field win.system.providerName="\.+"
  2. field win.system.channel="^Microsoft-Windows-Sysmon/Operational$"
  3. field win.system.severityValue="^INFORMATION$"
  4. field win.system.eventID="^1$"
  5. field 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$"
  6. 202714 Claude Desktop agent ran a shell command (the command text is not logged) refinement level 5 this rule
    field win.eventdata.commandLine="CLAUDE_CODE_SHELL_LAUNCHER_SCRIPT"

Rule dependencies

Depends on

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.