// sigma convert -t kusto -p microsoft_365_defender, generated 12 Nov 2026 (pack v1.2.0). NOT run against a live tenant.
// ===== dns_query_win_screenconnect_campaign_domains.yml (-p microsoft_365_defender)
// NOT CONVERTED: this pipeline has no table mapping for the rule's logsource. Use the matching KQL hunt in kql/ instead.

// ===== file_event_win_sckit_relaytrap_source.yml (-p microsoft_365_defender)
DeviceFileEvents
| where FolderPath endswith "\\RelayTrap.cs"

// ===== file_event_win_screenconnect_campaign_filenames.yml (-p microsoft_365_defender)
DeviceFileEvents
| where FolderPath endswith "\\Panel-Lateral.ps1" or FolderPath endswith "\\runnew.cmd" or FolderPath endswith "\\ToolboxRelayUploader.exe" or FolderPath endswith "\\Run-Lateral-Full.bat"

// ===== file_event_win_screenconnect_client_writes_script.yml (-p microsoft_365_defender)
DeviceFileEvents
| where (InitiatingProcessFolderPath endswith "\\ScreenConnect.ClientService.exe" or InitiatingProcessFolderPath endswith "\\ScreenConnect.WindowsClient.exe") and (FolderPath endswith ".ps1" or FolderPath endswith ".bat" or FolderPath endswith ".cmd")

// ===== file_event_win_screenconnect_sckit_indicators.yml (-p microsoft_365_defender)
DeviceFileEvents
| where (FolderPath endswith "\\sckit-run.bat" or FolderPath endswith "\\sckit-decoder.ps1" or FolderPath endswith "\\TrapWatch.ps1") or FolderPath contains "\\ProgramData\\RelayTrap\\"

// ===== net_connection_win_screenconnect_campaign_ips.yml (-p microsoft_365_defender)
DeviceNetworkEvents
| where RemoteIP in~ ("185.99.255.28", "155.94.150.39")

// ===== net_connection_win_screenconnect_client_unknown_relay.yml (-p microsoft_365_defender)
DeviceNetworkEvents
| where (InitiatingProcessFolderPath endswith "\\ScreenConnect.ClientService.exe" or InitiatingProcessFolderPath endswith "\\ScreenConnect.WindowsClient.exe") and (not(RemoteUrl endswith "REPLACE-WITH-YOUR-RELAY-HOST"))

// ===== proc_creation_win_non_browser_cookie_store_access.yml (-p microsoft_365_defender)
DeviceProcessEvents
| where ((ProcessCommandLine contains "\\Network\\Cookies" or ProcessCommandLine contains "cookies.sqlite") or FolderPath endswith "\\sqlite3.exe") and (not((FolderPath endswith "\\chrome.exe" or FolderPath endswith "\\msedge.exe" or FolderPath endswith "\\firefox.exe" or FolderPath endswith "\\brave.exe" or FolderPath endswith "\\opera.exe")))

// ===== proc_creation_win_powershell_spawns_csc.yml (-p microsoft_365_defender)
DeviceProcessEvents
| where (InitiatingProcessFolderPath endswith "\\powershell.exe" or InitiatingProcessFolderPath endswith "\\pwsh.exe") and FolderPath endswith "\\csc.exe"

// ===== proc_creation_win_screenconnect_campaign_installer_ioc.yml (-p microsoft_365_defender)
DeviceProcessEvents
| where ProcessCommandLine contains "&c=Exploited" or (ProcessCommandLine contains "2588ef5c15954b10" or ProcessCommandLine contains "ed630cc2c873b091" or ProcessCommandLine contains "newnewnew.gotdns.org" or ProcessCommandLine contains "soxnewwork.homedns.org" or ProcessCommandLine contains "cdn007-digitaldownloads.com" or ProcessCommandLine contains "sc.payproofkit.com" or ProcessCommandLine contains "ns.mo7sen.dev" or ProcessCommandLine contains "/EadF.php")

// ===== proc_creation_win_screenconnect_client_spawns_shell.yml (-p microsoft_365_defender)
DeviceProcessEvents
| where (InitiatingProcessFolderPath endswith "\\ScreenConnect.ClientService.exe" or InitiatingProcessFolderPath endswith "\\ScreenConnect.WindowsClient.exe") and (FolderPath endswith "\\cmd.exe" or FolderPath endswith "\\powershell.exe" or FolderPath endswith "\\pwsh.exe" or FolderPath endswith "\\wscript.exe" or FolderPath endswith "\\cscript.exe" or FolderPath endswith "\\mshta.exe" or FolderPath endswith "\\rundll32.exe" or FolderPath endswith "\\regsvr32.exe" or FolderPath endswith "\\certutil.exe" or FolderPath endswith "\\bitsadmin.exe")

// ===== registry_set_win_screenconnect_client_service_imagepath.yml (-p microsoft_365_defender)
DeviceRegistryEvents
| where (RegistryKey contains "\\Services\\ScreenConnect Client (" and RegistryKey endswith "\\ImagePath") and (not(RegistryValueData contains "h=REPLACE-WITH-YOUR-RELAY-HOST&"))

// ===== webserver_screenconnect_extension_api_request.yml (-p microsoft_365_defender)
// NOT CONVERTED: this pipeline has no table mapping for the rule's logsource. Use the matching KQL hunt in kql/ instead.

// ===== win_system_screenconnect_client_service_installed.yml (-p microsoft_365_defender)
// NOT CONVERTED: this pipeline has no table mapping for the rule's logsource. Use the matching KQL hunt in kql/ instead.

