Detection rules · Sigma, Cortex XQL, YARA

All rules, every day

The catalogue of Threat Brief rules since day one: filter by format, period, level or ATT&CK technique, open a rule to read its code, and download the selection as one file.

5 rules over 4 days · technique T1547.001 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
30/11 SIGMA Run value DeviceSyncUpdate_b2 (Python RAT from the SoftwareOK installers)Q-Dir and DesktopOK: a consolidated timeline from 9 to 23 November, an unsigned installer, a RAT that inventories 1,206 security processes, and a site whose clean-up is unconfirmed high T1547.001
tb-2026-11-30-valeur-run-devicesyncupdate-b2-rat-python-des-installeurs-so.ymlDownload Sigma rule
title: Run key value DeviceSyncUpdate_b2 (SoftwareOK supply chain Python RAT)
id: 4630d3b0-26ab-477f-8f07-4f607b6725aa
status: experimental
description: Detects the Run registry value used for persistence by the Python RAT delivered through the trojanised Q-Dir and DesktopOK installers.
references:
  - https://www.bleepingcomputer.com/news/security/q-dir-and-desktopok-windows-utilities-compromised-to-push-python-rat/
author: Threat Brief (tlpclear.fr)
date: 2026-11-30
tags:
  - attack.persistence
  - attack.t1547.001
logsource:
  product: windows
  category: registry_set
detection:
  selection:
    TargetObject|endswith: '\DeviceSyncUpdate_b2'
  condition: selection
falsepositives:
  - None known; the value name is specific to this malware
level: high
sigma: parsed and converted (splunk, lucene) windows registry_set Licence DRL 1.1

Flags the Run registry value that keeps the Python RAT delivered by the trojanised Q-Dir and DesktopOK installers persistent. False positives: none known; the value name is specific to the malware.

1 quote from the sources
26/11 XQL CyberStrikeAI Implant Windows Persistence Named SystemUpdateAgentic attack frameworks: Cortex XQL pack high T1053.005 T1547.001
tb-pack-agentic-frameworks-persistance-windows-systemupdate-de-l-implant-cyberstrikeai.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · CyberStrikeAI · CyberStrikeAI Implant Windows Persistence Named SystemUpdate · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter agent_os_type = ENUM.AGENT_OS_WINDOWS
| filter ((action_process_image_command_line contains "reg" and action_process_image_command_line contains " add " and action_process_image_command_line contains "\CurrentVersion\Run" and action_process_image_command_line contains "SystemUpdate") or (action_process_image_command_line contains "schtasks" and action_process_image_command_line contains "/create" and action_process_image_command_line contains "SystemUpdate"))
| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects the Windows persistence commands in the CyberStrikeAI implant: a Run value named SystemUpdate added with reg.exe, or a SystemUpdate scheduled task created with schtasks. Kaspersky saw the SystemUpdate task, running as SYSTEM and also created on remote hosts, in attacks on education organizations. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Software that really names its updater task or Run value SystemUpdate (check the binary it starts).

26/11 XQL CyberStrikeAI Implant Run Key Value SystemUpdateAgentic attack frameworks: Cortex XQL pack high T1547.001
tb-pack-agentic-frameworks-valeur-run-systemupdate-de-l-implant-cyberstrikeai.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief · CyberStrikeAI · CyberStrikeAI Implant Run Key Value SystemUpdate · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.REGISTRY
| alter target_object = concat(action_registry_key_name, arrayindex(split("|\|", "|"), 1), action_registry_value_name)
| filter agent_os_type = ENUM.AGENT_OS_WINDOWS
| filter target_object ~= "\\CurrentVersion\\Run\\SystemUpdate$"
| fields _time, agent_hostname, actor_process_image_path, target_object, action_registry_data
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects a Run value named SystemUpdate, which the CyberStrikeAI implant writes under HKCU\Software\Microsoft\Windows\CurrentVersion\Run to start at logon. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Software that really names its Run value SystemUpdate.

15/11 XQL Persistence files of the trojanised Claude Code extension (Cursor)Cursor: a key held by Fireworks AI, stolen agent traces and a trojanised Claude Code extension served for 11 hours high T1543.001 T1053.005 T1547.001
tb-2026-11-15-fichiers-de-persistance-de-l-extension-claude-code-pi-g-e-cu.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-15 · Cursor trojanised Claude Code extension · experimental
// Persistence files dropped by the backdoored extension.js (Windows, macOS, Linux)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE and (action_file_name in ("com.apple.sysmond.plist", "smt.cmd", ".smt", ".smtk") or (action_file_name = "sysmon.cmd" and action_file_path contains "Programs\Startup") or action_file_name contains ".stk_")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_file_path, action_file_name, action_file_sha256
xql: reviewed, not executed xdr_data (files) Licence DRL 1.1

File events on the persistence artefacts published by Cursor and Microsoft: com.apple.sysmond.plist, ~/.config/.smt and .smtk, smt.cmd, sysmon.cmd in the Startup folder and the .stk_ tunnel identity file. False positives: A file coincidentally named like one of these artefacts.

6 quotes from the sources
12/11 YARA SCKit / RelayTrap kit scripts and source codeScreenConnect: MSP consoles hijacked, SCKit and RelayTrap mass-deployed via Run Command high T1059.001 T1547.001
tb-2026-11-12-scripts-et-sources-du-kit-sckit-relaytrap.yarDownload YARA rule
rule TB_20261112_SCKit_RelayTrap_scripts
{
    meta:
        author = "Threat Brief (tlpclear.fr)"
        date = "2026-11-12"
        reference = "https://cyberpress.org/sckit-worm-connectwise-screenconnect/"
        description = "SCKit / RelayTrap kit scripts and source code (ScreenConnect campaign targeting MSPs): task names, Run key names, and module names specific to the kit"
        status = "experimental"
    strings:
        $s1 = "RelayTrapLiteAlert" ascii wide nocase
        $s2 = "TrapWatch" ascii wide
        $s3 = "RelayTrap.cs" ascii wide nocase
        $s4 = "ToolboxRelayUploader" ascii wide nocase
        $s5 = "Run-Lateral-Full" ascii wide nocase
        $s6 = "sckit-decoder" ascii wide nocase
        $s7 = "Panel-Lateral" ascii wide nocase
    condition:
        uint16(0) != 0x5a4d and filesize < 2MB and 2 of ($s*)
}
yara: compiled script files Licence DRL 1.1

Identifies PowerShell and batch scripts and C# source code from the kit via kit-specific names (RelayTrapLiteAlert, TrapWatch, ToolboxRelayUploader, Run-Lateral-Full, sckit-decoder). False positives: Reports or analysis notes citing these names.