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.

6 rules over 2 days Most recent first
DateFormatRule and topicLevelATT&CK
26/11 XQL AI Agent Page Reader User Agent in Web Server LogsAgentic attack frameworks: Cortex XQL pack low T1594
tb-pack-agentic-frameworks-user-agent-de-lecture-de-page-d-un-agent-ia-dans-les-journau.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief · Behaviours shared by the frameworks · AI Agent Page Reader User Agent in Web Server Logs · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| datamodel
| filter (xdm.source.user_agent ~= "Claude-User .claude-code/" or (xdm.source.user_agent ~= "^QwenCode/" or xdm.source.user_agent ~= "^KimiCLI/" or xdm.source.user_agent ~= "^opencode/"))
| fields _time, xdm.source.ipv4, xdm.source.user_agent, xdm.network.http.method, xdm.network.http.domain, xdm.network.http.url, xdm.network.http.response_code
xql: reviewed, not executed datamodel Licence DRL 1.1

Detects the page readers of AI agent CLIs: Qwen Code, Kimi CLI, opencode and Claude Code (which Cairn's workers run with DeepSeek behind it). Agents read target pages with these while curl, Python and Kali tools do the rest. Ordinary users send the same strings, so treat a hit as context and correlate with scanning from the same address. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Developers and users of these agents reading public pages.

26/11 XQL RedAmon Ownership Check LookupAgentic attack frameworks: Cortex XQL pack low T1590.002
tb-pack-agentic-frameworks-requ-te-de-v-rification-de-propri-t-redamon.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief · RedAmon · RedAmon Ownership Check Lookup · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter dns_query_name != null
| filter dns_query_name ~= "^_redamon\-verify\."
| fields _time, agent_hostname, actor_process_image_path, dns_query_name
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects a DNS lookup for _redamon-verify.<domain>, the TXT record RedAmon reads when a project turns on ownership verification. On your resolver it means a host of yours runs RedAmon. On the name servers of your own domain it means someone set up a RedAmon project for that domain. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Authorized tests with RedAmon.

26/11 XQL Xalgorix Configuration, Service or Scan Data WrittenAgentic attack frameworks: Cortex XQL pack low T1543.002
tb-pack-agentic-frameworks-configuration-service-ou-donn-es-de-scan-xalgorix-crits.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief · Xalgorix · Xalgorix Configuration, Service or Scan Data 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 = "/etc/xalgorix.env" or action_file_path = "/etc/systemd/system/xalgorix.service" or action_file_path = "/tmp/xalgorix.log" or action_file_path = "/tmp/xalgorix-crash.log") or action_file_path contains "/.xalgorix/data/" or action_file_path ~= "/\.xalgorix\.env$")
| 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 the files Xalgorix writes on the host that runs it: its environment files, its systemd unit, and the scan data folder with scan.json and events.jsonl for every target. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Bug bounty hunters and security teams running Xalgorix.

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 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.

06/11 SIGMA Invalid or expired service principal secret (AADSTS7000215, 7000222)Microsoft: offensive AI agents move from GitHub secret to Key Vault in five minutes low T1078.004 T1552.001
tb-2026-11-06-secret-de-service-principal-invalide-ou-expir-aadsts7000215-.ymlDownload Sigma rule
title: Entra ID, invalid or expired service principal secret
id: a900942a-2da7-43b1-acc2-63402f0ffcac
status: experimental
description: AADSTS7000215 (invalid secret) or AADSTS7000222 (expired secret) failure on service principal sign-in, correlate with success from the same IP (Microsoft, AI agents and GitHub secrets).
references:
  - https://www.microsoft.com/en-us/security/blog/2026/11/05/threat-actors-use-agentic-ai-tooling-to-find-and-abuse-exposed-secrets/
  - https://www.cybersecuritydive.com/news/hackers-artex-github-repositories-exposed-secrets/874007/
author: Threat Brief (tlpclear.fr)
date: 2026-11-06
tags:
  - attack.initial-access
  - attack.t1078.004
logsource:
  product: azure
  service: signinlogs
detection:
  selection:
    ResultType:
      - 7000215
      - 7000222
  condition: selection
falsepositives:
  - Internal application or pipeline using an expired secret after rotation
level: low
sigma: parsed and converted (splunk, lucene) azure signinlogs (service principals) Licence DRL 1.1

Application sign-in failure with invalid or expired secret: indicates a third party holds an old secret. Correlate with success from the same IP. False positives: Internal application using an expired secret after rotation.