// sigma convert -t kusto -p azure_monitor, pack v1.1.0 (15 Nov 2026). NOT run against a live tenant.
// ===== claude_code_ext_2_1_312_cursor_folder.yml (-p azure_monitor)
SecurityEvent
| where ObjectName contains "/.cursor/extensions/anthropic.claude-code-2.1.312" or ObjectName contains "/.cursor-server/extensions/anthropic.claude-code-2.1.312" or ObjectName contains "\\.cursor\\extensions\\anthropic.claude-code-2.1.312" or ObjectName contains "\\.cursor-server\\extensions\\anthropic.claude-code-2.1.312"

// ===== claude_code_ext_authorized_keys_by_editor.yml (-p azure_monitor)
SecurityEvent
| where (ObjectName endswith "/.ssh/authorized_keys" or ObjectName endswith "\\.ssh\\authorized_keys" or ObjectName endswith "\\ssh\\administrators_authorized_keys") and (NewProcessName endswith "\\Cursor.exe" or NewProcessName endswith "\\Code.exe" or NewProcessName endswith "\\Code - Insiders.exe" or NewProcessName endswith "\\Windsurf.exe" or NewProcessName endswith "\\node.exe" or NewProcessName endswith "\\powershell.exe" or NewProcessName endswith "\\cmd.exe" or NewProcessName endswith "/Cursor" or NewProcessName endswith "/Code Helper (Plugin)" or NewProcessName endswith "/Cursor Helper (Plugin)" or NewProcessName endswith "/node" or NewProcessName endswith "/code" or NewProcessName endswith "/cursor" or NewProcessName endswith "/sh" or NewProcessName endswith "/bash" or NewProcessName endswith "/zsh")

// ===== claude_code_ext_linux_editor_persistence.yml (-p azure_monitor)
// NOT CONVERTED: this pipeline has no table or field mapping for the rule. Use the matching KQL hunt in kql/ instead.

// ===== claude_code_ext_macos_editor_persistence.yml (-p azure_monitor)
// NOT CONVERTED: this pipeline has no table or field mapping for the rule. Use the matching KQL hunt in kql/ instead.

// ===== claude_code_ext_malicious_version_folder.yml (-p azure_monitor)
SecurityEvent
| where ObjectName contains "/anthropic.claude-code-2.1.313" or ObjectName contains "\\anthropic.claude-code-2.1.313"

// ===== claude_code_ext_network_attacker_ip.yml (-p azure_monitor)
SecurityEvent
| where DestinationIp =~ "134.209.82.225"

// ===== claude_code_ext_payload_files.yml (-p azure_monitor)
SecurityEvent
| where (ObjectName endswith "/.config/.smt" or ObjectName endswith "/.config/.smtk" or ObjectName endswith "\\.config\\smt.cmd" or ObjectName endswith "\\.config\\smtk" or ObjectName endswith "/Library/LaunchAgents/com.apple.sysmond.plist" or ObjectName endswith "\\Start Menu\\Programs\\Startup\\sysmon.cmd") or ObjectName matches regex "[/\\\\]\\.stk_[0-9a-f]{10}$"

// ===== claude_code_ext_proxy_beacon.yml (-p azure_monitor)
// NOT CONVERTED: this pipeline has no table or field mapping for the rule. Use the matching KQL hunt in kql/ instead.

// ===== claude_code_ext_smt_script_execution.yml (-p azure_monitor)
SecurityEvent
| where CommandLine matches regex "[/\\\\]\\.config[/\\\\]\\.smt(\\s|\"|$)" or (CommandLine contains "\\.config\\smt.cmd" or CommandLine contains "\\Start Menu\\Programs\\Startup\\sysmon.cmd")

// ===== claude_code_ext_ssh_reverse_tunnel.yml (-p azure_monitor)
SecurityEvent
| where (NewProcessName endswith "/ssh" or NewProcessName endswith "\\ssh.exe" or NewProcessName endswith "/autossh" or NewProcessName endswith "\\autossh.exe") and ((CommandLine contains "tunnel@134.209.82.225" or CommandLine contains "134.209.82.225") or (CommandLine contains " -R " and CommandLine matches regex "[*:]0:localhost:22") or (CommandLine contains " -R " and CommandLine contains "StrictHostKeyChecking=no" and CommandLine contains "UserKnownHostsFile=/dev/null" and CommandLine contains "ExitOnForwardFailure=yes") or CommandLine matches regex "\\.stk_[0-9a-f]{10}|\\.config[/\\\\]\\.?smtk")

// ===== claude_code_ext_windows_editor_persistence.yml (-p azure_monitor)
SecurityEvent
| where ((ParentProcessName endswith "\\Cursor.exe" or ParentProcessName endswith "\\Code.exe" or ParentProcessName endswith "\\Code - Insiders.exe" or ParentProcessName endswith "\\Windsurf.exe" or ParentProcessName endswith "\\node.exe") and ((NewProcessName endswith "\\schtasks.exe" and CommandLine contains "/create") or (CommandLine contains "Add-WindowsCapability" and CommandLine contains "OpenSSH.Server") or (CommandLine contains "Set-Service sshd" or CommandLine contains "Set-Service -Name sshd" or CommandLine contains "Start-Service sshd" or CommandLine contains "sc config sshd" or CommandLine contains "sc.exe config sshd" or CommandLine contains "net start sshd") or (NewProcessName endswith "\\ssh.exe" and CommandLine contains " -R "))) or (NewProcessName endswith "\\schtasks.exe" and (CommandLine contains "/create" and CommandLine contains "SysMon") and (CommandLine contains "smt.cmd" or CommandLine contains ".config"))

