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.

4 rules over 4 days · technique T1098.004 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
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.

02/11 SIGMA ~/.config/.smt and .smtk createdTrojanised "Claude Code" extension on the Cursor marketplace: persistent SSH backdoor high T1098.004 T1564.001
tb-2026-11-02-config-smt-et-smtk-cr-s.ymlDownload Sigma rule
title: .smt / .smtk files from the trojanised Claude Code extension backdoor
id: b6da2ef5-2f58-4443-b686-469168e677d8
status: experimental
description: Creation of ~/.config/.smt or ~/.config/.smtk, SSH backdoor artefacts from the trojanised anthropic.claude-code extension on 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-11-02
tags:
  - attack.persistence
  - attack.t1098.004
logsource:
  category: file_event
detection:
  selection:
    TargetFilename|endswith:
      - '/.config/.smt'
      - '/.config/.smtk'
  condition: selection
falsepositives:
  - Legitimate tool using the same hidden filename, verify
level: high
sigma: parsed and converted (splunk, lucene) file_event (Linux, macOS) Licence DRL 1.1

Backdoor disk artefacts reported by edition sources (immediate hunt recommended). False positives: Legitimate tool using the same filename.

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.