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.

10 rules over 3 days · technique T1059 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
26/11 XQL AI Agent CLI Starts an Attack ToolAgentic attack frameworks: Cortex XQL pack medium T1046 T1059
tb-pack-agentic-frameworks-cli-d-agent-ia-qui-lance-un-outil-d-attaque.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · Behaviours shared by the frameworks · AI Agent CLI Starts an Attack Tool · 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_path ~= "/nmap$" or action_process_image_path ~= "\\nmap\.exe$" or action_process_image_path ~= "/naabu$" or action_process_image_path ~= "\\naabu\.exe$" or action_process_image_path ~= "/masscan$" or action_process_image_path ~= "\\masscan\.exe$" or action_process_image_path ~= "/nuclei$" or action_process_image_path ~= "\\nuclei\.exe$" or action_process_image_path ~= "/katana$" or action_process_image_path ~= "\\katana\.exe$" or action_process_image_path ~= "/dalfox$" or action_process_image_path ~= "\\dalfox\.exe$" or action_process_image_path ~= "/ffuf$" or action_process_image_path ~= "\\ffuf\.exe$" or action_process_image_path ~= "/gobuster$" or action_process_image_path ~= "\\gobuster\.exe$" or action_process_image_path ~= "/feroxbuster$" or action_process_image_path ~= "\\feroxbuster\.exe$" or action_process_image_path ~= "/sqlmap$" or action_process_image_path ~= "\\sqlmap\.exe$" or action_process_image_path ~= "/nikto$" or action_process_image_path ~= "\\nikto\.exe$" or action_process_image_path ~= "/wpscan$" or action_process_image_path ~= "\\wpscan\.exe$" or action_process_image_path ~= "/hydra$" or action_process_image_path ~= "\\hydra\.exe$" or action_process_image_path ~= "/kerbrute$" or action_process_image_path ~= "\\kerbrute\.exe$" or action_process_image_path ~= "/netexec$" or action_process_image_path ~= "\\netexec\.exe$" or action_process_image_path ~= "/nxc$" or action_process_image_path ~= "\\nxc\.exe$" or action_process_image_path ~= "/crackmapexec$" or action_process_image_path ~= "\\crackmapexec\.exe$" or action_process_image_path ~= "/bloodyAD$" or action_process_image_path ~= "\\bloodyAD\.exe$" or action_process_image_path ~= "/coercer$" or action_process_image_path ~= "\\coercer\.exe$" or action_process_image_path ~= "/chisel$" or action_process_image_path ~= "\\chisel\.exe$" or action_process_image_path ~= "/evil\-winrm$" or action_process_image_path ~= "\\evil\-winrm\.exe$" or action_process_image_path ~= "/cloudfox$" or action_process_image_path ~= "\\cloudfox\.exe$" or action_process_image_path ~= "/msfconsole$" or action_process_image_path ~= "\\msfconsole\.exe$" or action_process_image_path ~= "/dirsearch$" or action_process_image_path ~= "\\dirsearch\.exe$" or action_process_image_path ~= "/medusa$" or action_process_image_path ~= "\\medusa\.exe$" or action_process_image_path ~= "/enum4linux\-ng$" or action_process_image_path ~= "\\enum4linux\-ng\.exe$" or action_process_image_path ~= "/pwncat$" or action_process_image_path ~= "\\pwncat\.exe$" or action_process_image_path ~= "/pwncat\-cs$" or action_process_image_path ~= "\\pwncat\-cs\.exe$" or action_process_image_path ~= "/responder$" or action_process_image_path ~= "\\responder\.exe$" or action_process_image_path ~= "/searchsploit$" or action_process_image_path ~= "\\searchsploit\.exe$" or action_process_image_path ~= "/hashcat$" or action_process_image_path ~= "\\hashcat\.exe$") or ( (action_process_image_path contains "/python" or action_process_image_path contains "\python" or action_process_image_path contains "/ruby" or action_process_image_path contains "\ruby" or action_process_image_path contains "/perl" or action_process_image_path contains "\perl") and ((action_process_image_command_line contains "/sqlmap " or action_process_image_command_line contains "/nikto " or action_process_image_command_line contains "/wpscan " or action_process_image_command_line contains "/netexec " or action_process_image_command_line contains "/nxc " or action_process_image_command_line contains "/crackmapexec " or action_process_image_command_line contains "/bloodyAD " or action_process_image_command_line contains "/coercer " or action_process_image_command_line contains "/evil-winrm " or action_process_image_command_line contains "/msfconsole " or action_process_image_command_line contains "/dirsearch " or action_process_image_command_line contains "/enum4linux-ng " or action_process_image_command_line contains "/pwncat " or action_process_image_command_line contains "/pwncat-cs " or action_process_image_command_line contains "/responder " or action_process_image_command_line contains "/sqlmap.py" or action_process_image_command_line contains "\sqlmap.py" or action_process_image_command_line contains " sqlmap.py" or action_process_image_command_line contains "/nikto.pl" or action_process_image_command_line contains "\nikto.pl" or action_process_image_command_line contains " nikto.pl" or action_process_image_command_line contains "/bloodyAD.py" or action_process_image_command_line contains "\bloodyAD.py" or action_process_image_command_line contains " bloodyAD.py" or action_process_image_command_line contains "/dirsearch.py" or action_process_image_command_line contains "\dirsearch.py" or action_process_image_command_line contains " dirsearch.py" or action_process_image_command_line contains "/enum4linux-ng.py" or action_process_image_command_line contains "\enum4linux-ng.py" or action_process_image_command_line contains " enum4linux-ng.py" or action_process_image_command_line contains "/Coercer/Coercer.py" or action_process_image_command_line contains " Coercer/Coercer.py" or action_process_image_command_line contains "\Coercer\Coercer.py" or action_process_image_command_line contains " Coercer\Coercer.py" or action_process_image_command_line contains "/Responder/Responder.py" or action_process_image_command_line contains " Responder/Responder.py" or action_process_image_command_line contains "\Responder\Responder.py" or action_process_image_command_line contains " Responder\Responder.py") or (action_process_image_command_line ~= "/sqlmap$" or action_process_image_command_line ~= "/nikto$" or action_process_image_command_line ~= "/wpscan$" or action_process_image_command_line ~= "/netexec$" or action_process_image_command_line ~= "/nxc$" or action_process_image_command_line ~= "/crackmapexec$" or action_process_image_command_line ~= "/bloodyAD$" or action_process_image_command_line ~= "/coercer$" or action_process_image_command_line ~= "/evil\-winrm$" or action_process_image_command_line ~= "/msfconsole$" or action_process_image_command_line ~= "/dirsearch$" or action_process_image_command_line ~= "/enum4linux\-ng$" or action_process_image_command_line ~= "/pwncat$" or action_process_image_command_line ~= "/pwncat\-cs$" or action_process_image_command_line ~= "/responder$")) ) ) and ((actor_process_command_line contains "shell-snapshots" or actor_process_command_line contains "CLAUDE_CODE_SHELL_LAUNCHER_SCRIPT" or actor_process_command_line contains "--provider cairn" or actor_process_command_line contains "/tmp/cairn-pi/") or (actor_process_image_path ~= "/claude$" or actor_process_image_path ~= "\\claude\.exe$" or actor_process_image_path ~= "/codex$" or actor_process_image_path ~= "\\codex\.exe$" or actor_process_image_path ~= "/qwen$" or actor_process_image_path ~= "\\qwen\.exe$" or actor_process_image_path ~= "/kimi$" or actor_process_image_path ~= "\\kimi\.exe$" or actor_process_image_path ~= "/opencode$" or actor_process_image_path ~= "\\opencode\.exe$" or actor_process_image_path ~= "/hermes$" or actor_process_image_path ~= "\\hermes\.exe$") or (actor_process_command_line contains "@anthropic-ai/claude-code" or actor_process_command_line contains "@anthropic-ai\claude-code" or actor_process_command_line contains "@qwen-code/" or actor_process_command_line contains "@qwen-code" or actor_process_command_line contains "@openai/codex" or actor_process_command_line contains "@openai\codex" or actor_process_command_line contains "opencode-ai" or actor_process_command_line contains "kimi-cli" or actor_process_command_line contains "kimi_cli"))
| 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 an attack tool whose parent is an AI agent CLI or the shell Claude Code runs commands through (zsh -c source ~/.claude/shell-snapshots/... on Linux and macOS, the CLAUDE_CODE_SHELL_LAUNCHER_SCRIPT PowerShell launcher on Windows). Auto-approve flags are not part of the rule: staff use them too, and an agent can run an attack tool without one. Qwen Code, Kimi CLI, Codex and opencode start tools through a plain shell, which puts the agent one level above the parent, so this rule only sees them when they start the tool directly; the KQL hunt in behaviors/sentinel/hunting covers the grandparent. The model behind the agent does not matter. Tools written in Python, Ruby or Perl (sqlmap, NetExec, Metasploit, nikto and others) run under their interpreter, so the image is python3, ruby or perl and the tool is the script in the command line; the script selections cover them. A tool started as a module (python3 -m) is not covered. Agents installed with npm or pip run under node or python and are found by their package path in the parent command line. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Staff who use an AI agent for authorized security testing or network troubleshooting.

26/11 XQL Hermes Agent With Approvals Off or Its Jailbreak SkillAgentic attack frameworks: Cortex XQL pack medium T1059
tb-pack-agentic-frameworks-hermes-agent-lanc-sans-approbation-ou-avec-sa-skill-de-jailb.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · Hermes Agent and Carbonato · Hermes Agent With Approvals Off or Its Jailbreak Skill · 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 ~= "(^|[/\\\s])hermes(\.exe)?(\s|$)|hermes_cli|run_agent\.py|/\.hermes/" and (action_process_image_command_line contains "--yolo" or action_process_image_command_line contains "HERMES_YOLO_MODE") ) or (action_process_image_command_line contains "load_godmode.py" or action_process_image_command_line contains "auto_jailbreak.py" or action_process_image_command_line contains "parseltongue.py" or action_process_image_command_line contains "godmode_race.py")
| 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 Hermes Agent started with approvals switched off (--yolo, HERMES_YOLO_MODE) and the scripts of its bundled godmode jailbreak skill. Attackers ran Hermes this way against Thailand's Ministry of Finance (Hunt.io) and with godmode on DeepSeek (Unit 42). Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Developers running Hermes unattended in a sandbox ; Red teams testing model guardrails.

26/11 XQL Cairn Task Snapshot, Pi Provider Key or Competition Skill WrittenAgentic attack frameworks: Cortex XQL pack high T1059
tb-pack-agentic-frameworks-snapshot-de-t-che-cairn-cl-de-fournisseur-pi-ou-skill-de-com.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief · Cairn · Cairn Task Snapshot, Pi Provider Key or Competition Skill Written · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE and event_sub_type in (ENUM.FILE_CREATE_NEW, ENUM.FILE_WRITE, ENUM.FILE_RENAME)
| filter agent_os_type = ENUM.AGENT_OS_LINUX
| filter (action_file_path contains "/tmp/cairn-prompts/" or action_file_path contains "/tmp/cairn-pi/" or action_file_path contains "/skills/tsec-actions/SKILL.md")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_file_path
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects files Cairn writes on a worker host: graph.yaml task snapshots under /tmp/cairn-prompts/, the Pi worker's models.json with the provider API key under /tmp/cairn-pi/, and the tsec-actions skill from the Tencent TCH competition setup that operators' worker images still carry. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Authorized red team use of Cairn.

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.

26/11 XQL Pentest Swarm AI Authorization Record WrittenAgentic attack frameworks: Cortex XQL pack low T1059
tb-pack-agentic-frameworks-journal-d-autorisation-de-pentest-swarm-ai-crit.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief · Pentest Swarm AI · Pentest Swarm AI Authorization Record Written · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE and event_sub_type in (ENUM.FILE_CREATE_NEW, ENUM.FILE_WRITE, ENUM.FILE_RENAME)
| filter (action_file_path contains "/.pentestswarm/authorization." or action_file_path contains "\.pentestswarm\authorization.")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_file_path
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects Pentest Swarm AI writing its consent file and log under the user's home folder. authorization.log gets one JSON line for every real target (time, target, scope, method, user), so it is also the first file to read on a host where the tool was found. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Penetration testers running Pentest Swarm AI.

26/11 XQL Pentest Swarm AI Started on a HostAgentic attack frameworks: Cortex XQL pack medium T1059
tb-pack-agentic-frameworks-pentest-swarm-ai-d-marr-sur-un-h-te.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · Pentest Swarm AI · Pentest Swarm AI Started 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_path ~= "/pentestswarm$" or action_process_image_path ~= "\\pentestswarm\.exe$") or (action_process_image_command_line contains "armur-ai/pentestswarm" or action_process_image_command_line contains "PENTESTSWARM_AUTHORIZED" or action_process_image_command_line contains "pentestswarm scan " or action_process_image_command_line contains "pentestswarm serve" or action_process_image_command_line contains "pentestswarm-lab-"))
| 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 pentestswarm binary or its container image, and the switches that skip its consent prompt (PENTESTSWARM_AUTHORIZED=1, --authorized). Pentest Swarm AI runs a swarm of agents that scan and exploit a target with no approval for each action unless assist mode is on. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Penetration testers running Pentest Swarm AI.

26/11 XQL Agent Zero Container, UI or Tunnel StartedAgentic attack frameworks: Cortex XQL pack low T1059
tb-pack-agentic-frameworks-conteneur-interface-ou-tunnel-agent-zero-d-marr.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · Agent Zero · Agent Zero Container, UI or Tunnel Started · 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 "agent0ai/agent-zero" or action_process_image_command_line contains "self_update_manager.py docker-run-ui" or action_process_image_command_line contains "/a0/run_tunnel.py")
| 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 Agent Zero image being run, its UI starting inside the container, and its tunnel server that publishes the UI to the internet. Agent Zero ships a hacker profile on a Kali base; GTIG reported threat-actor experimentation with it. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Developers and researchers running Agent Zero.

20/11 XQL A4. ARTEX artifact names in command linesARTEX: Cortex XQL pack high T1059 T1136
tb-pack-artex-a4-artefacts-artex-dans-les-lignes-de-commande.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · ARTEX · A4 · ARTEX artifact names in command lines · experimental
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS
| filter action_process_image_command_line ~= "artex-probe-|artexprobe|artx5v|art18-|artex_write_probe|artx_persist_ok|artex_control_marker_zz9q"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Probe markers, the ArtexProbe account created by the agents, the artx5v working folder (VAPOR PANDA) and the art18- command prefix. Adapted from ThreatDefence rules (MIT licence). False positives: Authorised red team exercises using ARTEX.

20/11 XQL A5. ARTEX intrusion files: JSP web shells, probe files and working folderARTEX: Cortex XQL pack critical T1505.003 T1059
tb-pack-artex-a5-fichiers-d-intrusion-artex-web-shells-jsp-sondes-et-dossi.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · ARTEX · A5 · ARTEX JSP web shells and probe files · experimental
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE
| filter action_file_name in ("cl1217.jsp", "f1219a.jsp", "z1219.jsp", "zzartx0000.php") or action_file_name ~= "^artex-probe-" or action_file_path ~= "programdata.artx5v."
| fields _time, agent_hostname, actor_process_image_name, actor_process_command_line, action_file_path, action_file_sha256
xql: reviewed, not executed xdr_data Licence DRL 1.1

JSP web shells written through MySQL log redirection, artex-probe- files and the artx5v folder. Adapted from ThreatDefence rules (MIT licence). False positives: Authorised red team exercises using ARTEX.

18/11 XQL Shell spawned by the JVM of an application exposed to Java4ShellJava4Shell (CVE-2026-114938): pre-auth RCE in OpenJDK's Base64 decoder, scanning under way, exploitation not confirmed medium T1190 T1059
tb-2026-11-18-shell-lanc-par-la-jvm-d-une-application-expos-e-java4shell.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-18 · Java4Shell CVE-2026-114938 · experimental
// Shell or downloader started by the JVM of an application where Calif demonstrated pre-auth RCE
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 ("java", "java.exe")
| filter actor_process_command_line contains "keycloak" or actor_process_command_line contains "jira" or actor_process_command_line contains "confluence" or actor_process_command_line contains "artifactory" or actor_process_command_line contains "pingfederate"
| filter action_process_image_name in ("sh", "bash", "dash", "curl", "wget", "nc", "cmd.exe", "powershell.exe", "pwsh.exe")
| fields _time, agent_hostname, agent_ip_addresses, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data (processes) Licence DRL 1.1

Same logic on Cortex XDR / XSIAM telemetry, Linux and Windows: a java process whose command line contains keycloak, jira, confluence, artifactory or pingfederate starting a shell or a download tool. False positives: administration scripts or add-ons that legitimately call a shell from these applications.

2 quotes from the sources
  • “Unauthenticated RCE: Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, and PingFederate.” www.bleepingcomputer.com
  • “post-exploitation scenarios such as arbitrary command execution or processes and web or application servers spawning shells” blog.talosintelligence.com