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.

8 rules over 5 days · technique T1572 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
26/11 XQL RedAmon Stack or Reverse Shell Tunnel on a HostAgentic attack frameworks: Cortex XQL pack medium T1059 T1572
tb-pack-agentic-frameworks-pile-redamon-ou-tunnel-de-reverse-shell-sur-un-h-te.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · RedAmon · RedAmon Stack or Reverse Shell Tunnel on a Host · 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 ((action_process_image_command_line contains "redamon-kali" or action_process_image_command_line contains "redamon-agent" or action_process_image_command_line contains "redamon-webapp" or action_process_image_command_line contains "redamon-recon-" or action_process_image_command_line contains "redamon-docker-broker" or action_process_image_command_line contains "/opt/mcp_servers/run_servers.py" or action_process_image_command_line contains "/opt/mcp_servers/tunnel_manager.py" or action_process_image_command_line contains "redamon.sh ") or action_process_image_command_line contains "ngrok tcp 4444" or (action_process_image_command_line contains "chisel client" and action_process_image_command_line contains "R:4444:localhost:4444"))
| 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 RedAmon Docker stack being run (its container names, control script and sandbox servers) and the tunnels it opens for reverse shells: ngrok or chisel forwarding port 4444 to the Metasploit handler in its Kali sandbox. RedAmon is a penetration testing platform; on a host that is not a tester's, find out who installed it. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Penetration testers and students running RedAmon ; Another tool that forwards port 4444 through ngrok or chisel, which is also worth a look.

21/11 SIGMA Armory Castle post-exploitation commands on a BeyondTrust RS applianceVMware vCenter: CVE-2026-123890 in KEV, Mandiant details the Armory Castle chain from a BeyondTrust zero-day high T1555 T1548 T1070.002 T1572
tb-2026-11-21-commandes-post-exploitation-d-armory-castle-sur-une-applianc.ymlDownload Sigma rule
title: Armory Castle post-exploitation commands on a BeyondTrust Remote Support appliance
id: aacfc826-4956-4232-8b96-02ec7c874cba
status: experimental
description: Detects the vault extraction with bt-secrets, the root shell copy named dbus-authd, the post_boot.d persistence script, log cleanup and the BARECLAW tunneler command line described by GTIG on BeyondTrust Remote Support appliances compromised through CVE-2026-102764.
references:
  - https://cloud.google.com/blog/topics/threat-intelligence/armory-castle-exploits-beyondtrust
author: Threat Brief (tlpclear.fr)
date: 2026-11-21
tags:
  - attack.credential-access
  - attack.t1555
  - attack.privilege-escalation
  - attack.t1548
  - attack.defense-evasion
  - attack.t1070.002
  - attack.command-and-control
  - attack.t1572
  - cve.2026-102764
logsource:
  product: linux
  category: process_creation
detection:
  selection_vault:
    CommandLine|contains|all:
      - '/ns/sbin/bt-secrets get'
      - 'vault'
  selection_shell_copy:
    Image|endswith: '/dbus-authd'
  selection_persist_cleanup:
    CommandLine|contains:
      - 'zz-root-persist'
      - '/home/bomgar/sbin/post_boot.d'
      - 'rm -f /home/bomgar/log/bt-secrets.log'
  selection_tunnel:
    CommandLine|contains|all:
      - '--ws-path'
      - '--obfs'
      - '--token'
  condition: 1 of selection_*
falsepositives:
  - BeyondTrust support or maintenance scripts reading the vault (check the parent process and the time against a change ticket)
level: high
sigma: parsed and converted (splunk, lucene) linux process_creation (auditd, appliance syslog) Licence DRL 1.1

Vault read through bt-secrets, sh copied as dbus-authd, post_boot.d persistence, log wiping and the BARECLAW tunneler command line described by GTIG on BeyondTrust RS appliances compromised through CVE-2026-102764. False positives: BeyondTrust support or maintenance scripts reading the vault (check the parent process and a change ticket).

7 quotes from the sources
21/11 SIGMA Requests to Armory Castle webshell or tunnel paths on BeyondTrust RSVMware vCenter: CVE-2026-123890 in KEV, Mandiant details the Armory Castle chain from a BeyondTrust zero-day high T1190 T1505.003 T1572
tb-2026-11-21-requ-tes-vers-les-chemins-du-webshell-ou-du-tunnel-d-armory-.ymlDownload Sigma rule
title: Requests to Armory Castle webshell or tunnel paths on BeyondTrust Remote Support
id: ad88a9de-a753-4791-80d8-3c5c69b47c95
status: experimental
description: Detects HTTP requests to the staging webshell, the SAWFLY webshell (mangoapi.php) or the BARECLAW WebSocket endpoint (/uidchanarge) that Armory Castle used on BeyondTrust Remote Support appliances after exploiting CVE-2026-102764, the entry point of its vCenter campaign.
references:
  - https://cloud.google.com/blog/topics/threat-intelligence/armory-castle-exploits-beyondtrust
  - https://www.helpnetsecurity.com/2026/11/20/vmware-vcenter-zero-day-cve-2026-123890-exploited/
author: Threat Brief (tlpclear.fr)
date: 2026-11-21
tags:
  - attack.initial-access
  - attack.t1190
  - attack.persistence
  - attack.t1505.003
  - attack.command-and-control
  - attack.t1572
  - cve.2026-102764
logsource:
  category: webserver
detection:
  selection:
    cs-uri-stem|contains:
      - '/app_84304470'
      - '/mangoapi.php'
      - '/uidchanarge'
  condition: selection
falsepositives:
  - Unlikely; the BARECLAW WebSocket path is configurable, so its absence does not clear an appliance
level: high
sigma: parsed and converted (splunk, lucene) reverse proxy, WAF or web logs Licence DRL 1.1

HTTP requests to the staging webshell, the SAWFLY webshell (mangoapi.php) or the BARECLAW WebSocket endpoint (/uidchanarge) planted by Armory Castle on BeyondTrust Remote Support after CVE-2026-102764, the initial access of the vCenter campaign. False positives: Unlikely; the WebSocket path is configurable, so no match does not clear an appliance.

4 quotes from the sources
21/11 XQL BARECLAW tunnel, sh copied as dbus-authd or bt-secrets read (Cortex XDR)VMware vCenter: CVE-2026-123890 in KEV, Mandiant details the Armory Castle chain from a BeyondTrust zero-day high T1572 T1548 T1555
tb-2026-11-21-tunnel-bareclaw-copie-de-sh-en-dbus-authd-ou-lecture-bt-secr.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-21 · Armory Castle BeyondTrust tooling (CVE-2026-102764) · experimental
// BARECLAW tunneler, sh copy named dbus-authd or bt-secrets vault read on a Linux host with a Cortex agent
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter (action_process_image_command_line contains "--ws-path" and action_process_image_command_line contains "--obfs") or action_process_image_name = "ingredi_ws" or action_process_image_name = "dbus-authd" or action_process_image_command_line contains "/ns/sbin/bt-secrets get"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_path, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Process start carrying the BARECLAW command line (--ws-path, --obfs), the ingredi_ws binary, the sh copy named dbus-authd or the bt-secrets vault read, on a Linux host with a Cortex agent. False positives: Legitimate WebSocket proxies using similar options (check the binary hash and path).

4 quotes from the sources
15/11 SIGMA SysMon task or reverse SSH tunnel from 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 T1053.005 T1572 T1098.004
tb-2026-11-15-t-che-sysmon-ou-tunnel-ssh-inverse-de-l-extension-claude-cod.ymlDownload Sigma rule
title: Cursor trojanised Claude Code extension, SysMon task or reverse SSH tunnel
id: 0dc2e2ef-6902-4e4c-a857-dea895cb0309
status: experimental
description: Detects the scheduled task SysMon and the reverse SSH tunnel command line used by the trojanised Anthropic.claude-code 2.1.312 and 2.1.313 extension served by the Cursor marketplace on 29 October 2026.
references:
  - https://cursor.com/blog/claude-code-extension-security-notice
  - https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/
author: Threat Brief (tlpclear.fr)
date: 2026-11-15
tags:
  - attack.persistence
  - attack.t1053.005
  - attack.command-and-control
  - attack.t1572
logsource:
  category: process_creation
detection:
  selection_task:
    CommandLine|contains: 'schtasks /create /tn SysMon'
  selection_tunnel:
    CommandLine|contains: "-N -R '*:0:localhost:22'"
  condition: 1 of selection_*
falsepositives:
  - Administrator-created task genuinely named SysMon
  - Legitimate reverse SSH tunnels using the same remote forwarding syntax
level: high
sigma: parsed and converted (splunk, lucene) process_creation (Windows, macOS, Linux) Licence DRL 1.1

Process creation of the SysMon scheduled task or of the ssh -N -R '*:0:localhost:22' reverse tunnel described by Cursor for the trojanised Anthropic.claude-code 2.1.312 and 2.1.313 extension. False positives: Administrator-created task genuinely named SysMon ; Legitimate reverse SSH tunnels using the same remote forwarding syntax.

2 quotes from the sources
03/11 SIGMA Reverse SSH tunnel to localhost:22 from Cursor or NodeTrojanised "Claude Code" extension on the Cursor marketplace: SSH backdoor high T1572 T1098.004
tb-2026-11-03-tunnel-ssh-inverse-vers-localhost-22-depuis-cursor-ou-node.ymlDownload Sigma rule
title: Reverse SSH tunnel to localhost:22 spawned from Cursor or Node (weaponised Claude Code extension)
id: eb97060c-943d-42aa-b329-0cab9f65b68b
status: experimental
description: ssh process opening a reverse tunnel to local port 22, spawned by Cursor or Node, or targeting tunnel@134.209.82.225, matching the loader in anthropic.claude-code extension 2.1.312 and 2.1.313 from the Cursor marketplace.
references:
  - https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor
  - https://www.helpnetsecurity.com/2026/10/30/claude-code-extension-ssh-backdoor/
author: Threat Brief (tlpclear.fr)
date: 2026-11-03
tags:
  - attack.command-and-control
  - attack.t1572
  - attack.persistence
  - attack.t1098.004
logsource:
  category: process_creation
detection:
  selection_ssh:
    Image|endswith:
      - '/ssh'
      - '\ssh.exe'
    CommandLine|contains: ' -R '
  selection_target:
    CommandLine|contains: 'localhost:22'
  selection_parent:
    ParentImage|contains:
      - 'Cursor'
      - 'node'
  selection_ioc:
    CommandLine|contains: 'tunnel@134.209.82.225'
  condition: (selection_ssh and selection_target and selection_parent) or selection_ioc
falsepositives:
  - Developers manually opening a reverse tunnel from the editor integrated terminal
level: high
sigma: parsed and converted (splunk, lucene) process_creation (Windows, macOS, Linux) Licence DRL 1.1

ssh -R to local port 22 spawned by the editor or Node, or targeting tunnel@134.209.82.225: backdoor tunnel from the weaponised extension. False positives: Reverse tunnel opened intentionally from the integrated terminal.

31/10 XQL Traffic to 134.209.82.225 or ssh -R to localhost:22Trojanised "Claude Code" extension on the Cursor marketplace: persistent SSH backdoor high T1572 T1071
tb-2026-10-31-flux-vers-134-209-82-225-ou-ssh-r-vers-localhost-22.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-10-31 · trojanised Claude Code extension (Cursor) · experimental
// Reverse SSH tunnel or traffic to 134.209.82.225 infrastructure (22, 8099)
config case_sensitive = false
| dataset = xdr_data
| filter (event_type = ENUM.NETWORK and action_remote_ip = "134.209.82.225") or (event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START and action_process_image_name in ("ssh", "autossh", "ssh.exe") and action_process_image_command_line contains ":0:localhost:22")
| fields _time, agent_hostname, actor_effective_username, causality_actor_process_image_name, actor_process_image_name, action_process_image_command_line, action_remote_ip, action_remote_port
| sort desc _time
xql: reviewed, not executed xdr_data Licence DRL 1.1

Cortex XDR endpoints connecting to the backdoor tunnel IP (ports 22 and 8099) or launching the reverse SSH tunnel described by Microsoft. False positives: legitimate administrative reverse SSH tunnels.

31/10 SIGMA ssh/autossh -R *:0:localhost:22 (trojanised Claude Code extension)Trojanised "Claude Code" extension on the Cursor marketplace: persistent SSH backdoor high T1572 T1098.004
tb-2026-10-31-ssh-autossh-r-0-localhost-22-extension-claude-code-pi-g-e.ymlDownload Sigma rule
title: Reverse SSH tunnel from trojanised Claude Code extension (Cursor)
id: 9f2989bf-f6e0-46fd-90db-e78371716124
status: experimental
description: Execution of ssh or autossh opening a reverse tunnel to local port 22, backdoor pattern of the anthropic.claude-code 2.1.312/2.1.313 extension from the Cursor marketplace.
references:
  - https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/
  - https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor
author: Threat Brief (tlpclear.fr)
date: 2026-10-31
tags:
  - attack.command-and-control
  - attack.t1572
  - attack.persistence
  - attack.t1098.004
logsource:
  category: process_creation
detection:
  selection_img:
    Image|endswith:
      - '/ssh'
      - '/autossh'
      - '\ssh.exe'
      - '\autossh.exe'
  selection_tunnel:
    CommandLine|contains|all:
      - '-R'
      - ':0:localhost:22'
  selection_ioc:
    CommandLine|contains: 'tunnel@134.209.82.225'
  condition: selection_img and (selection_tunnel or selection_ioc)
falsepositives:
  - Legitimate administrative or support reverse SSH tunnels exposing local sshd
level: high
sigma: parsed and converted (splunk, lucene) process_creation (Linux, macOS, Windows) Licence DRL 1.1

Detects the reverse SSH tunnel opened by the trojanised extension loader, or any ssh connection to tunnel@134.209.82.225. False positives: legitimate administrative reverse SSH tunnels.