Règles de détection · Sigma, Cortex XQL, YARA

Toutes les règles, tous les jours

Le catalogue des règles Threat Brief depuis le début : filtrez par format, période, niveau ou technique ATT&CK, ouvrez une règle pour lire son code, et récupérez la sélection en un fichier.

105 règles sur 28 jours · 6 répétitions masquées (afficher) Plus récentes d'abord
DateFormatRègle et sujetNiveauATT&CK
01/11 SIGMA LaunchAgent com.apple.sysmond.plist (macOS)Extension « Claude Code » trojanisée sur le Cursor Marketplace élevé T1543.001
tb-2026-11-01-launchagent-com-apple-sysmond-plist-macos.ymlTélécharger la règle Sigma
title: LaunchAgent com.apple.sysmond created (trojanised Claude Code extension)
id: a691160f-78d6-4737-91e4-7f78091da15a
status: experimental
description: Creation of LaunchAgent com.apple.sysmond.plist, macOS persistence for the backdoor from the trojanised anthropic.claude-code extension on 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-01
tags:
  - attack.persistence
  - attack.t1543.001
logsource:
  product: macos
  category: file_event
detection:
  selection:
    TargetFilename|contains: '/Library/LaunchAgents/'
    TargetFilename|endswith: '/com.apple.sysmond.plist'
  condition: selection
falsepositives:
  - None known: Apple does not ship a user LaunchAgent with this name
level: high
sigma : analysée et convertie (splunk, lucene) macos file_event Licence DRL 1.1

Persistance macOS de la backdoor : faux LaunchAgent Apple déposé dans un dossier LaunchAgents. Faux positifs : aucun connu.

01/11 XQL authorized_keys modifié depuis CursorExtension « Claude Code » trojanisée sur le Cursor Marketplace élevé T1098.004
tb-2026-11-01-authorized-keys-modifi-depuis-cursor.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// Threat Brief 2026-11-01 · trojanised Claude Code extension (Cursor) · experimental
// Write to authorized_keys by a process chain originating from Cursor
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE and action_file_path contains "authorized_keys"
| filter causality_actor_process_image_name contains "cursor" or actor_process_command_line contains "anthropic.claude-code"
| fields _time, agent_hostname, actor_effective_username, causality_actor_process_image_name, actor_process_image_name, actor_process_command_line, action_file_path
| sort desc _time
xql : relue, non exécutée xdr_data Licence DRL 1.1

Le loader ajoute une clé Ed25519 svc-telemetry à authorized_keys depuis l'extension : une écriture de ce fichier sous Cursor est anormale. Faux positifs : développeur ajoutant lui-même une clé depuis le terminal intégré de Cursor.

31/10 XQL Shell suspect enfant d'un worker PHPPHP2Shell (CVE-2026-109618/109619) : root sur des pare-feux PAN-OS élevé T1190 T1505.003 T1059.004
tb-2026-10-31-shell-suspect-enfant-d-un-worker-php.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// Threat Brief 2026-10-31 · PHP2Shell (CVE-2026-109618/109619) · experimental
// Shell spawned by a PHP worker or web server with download, reverse shell, or decoding activity
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_process_image_name in ("php-fpm", "php-cgi", "lsphp", "frankenphp", "httpd", "apache2") or actor_process_image_name ~= "^php-fpm"
| filter action_process_image_name in ("sh", "bash", "dash", "zsh", "ksh")
| filter action_process_image_command_line contains "curl" or action_process_image_command_line contains "wget" or action_process_image_command_line contains "/dev/tcp" or action_process_image_command_line contains "base64 -d" or action_process_image_command_line contains "/etc/shadow"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, action_process_image_name, action_process_image_command_line
| sort desc _time
xql : relue, non exécutée xdr_data Licence DRL 1.1

Post-exploitation PHP2Shell : shell enfant de php-fpm, php-cgi, lsphp ou Apache avec curl, wget, /dev/tcp ou base64 -d (logique Elastic et Unit 42). Faux positifs : applications PHP appelant légitimement curl via un shell ; mail() via sendmail.

31/10 XQL Flux vers 134.209.82.225 ou ssh -R vers localhost:22Extension « Claude Code » trojanisée sur le marketplace Cursor : backdoor SSH persistante élevé T1572 T1071
tb-2026-10-31-flux-vers-134-209-82-225-ou-ssh-r-vers-localhost-22.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// 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 : relue, non exécutée xdr_data Licence DRL 1.1

Postes Cortex XDR joignant l'IP du tunnel de la backdoor (ports 22 et 8099) ou lançant le tunnel SSH inverse décrit par Microsoft. Faux positifs : tunnels SSH inverses d'administration légitimes.

31/10 SIGMA ssh/autossh -R *:0:localhost:22 (extension Claude Code piégée)Extension « Claude Code » trojanisée sur le marketplace Cursor : backdoor SSH persistante élevé T1572 T1098.004
tb-2026-10-31-ssh-autossh-r-0-localhost-22-extension-claude-code-pi-g-e.ymlTélécharger la règle Sigma
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 : analysée et convertie (splunk, lucene) process_creation (Linux, macOS, Windows) Licence DRL 1.1

Détecte le tunnel SSH inverse ouvert par le loader de l'extension piégée, ou toute connexion ssh vers tunnel@134.209.82.225. Faux positifs : tunnels SSH inverses d'administration légitimes.