agentic-attack-detections

Agentic Attack Detections

validate release license

Open-source detection rules, hunting queries and indicators for security teams. They cover agentic attack frameworks: tools that hand an intrusion to AI agents, which plan, run real attack tools and keep going until they reach a goal.

Free to use under the MIT license. Fixes, false-positive reports and new indicators are welcome.

What is here

  • Framework folders. ARTEX and its AntiFox fork, Cairn, PentAGI, HexStrike, CyberStrikeAI, Strix, Hermes Agent, Agent Zero, RedAmon, Xalgorix and Pentest Swarm AI. Each folder is built from a review of the framework's source code and the public reporting on its use.
  • Shared behaviors. Rules for what these frameworks have in common, whatever the tool or the model behind it.
  • Indicators and feeds. One CSV of 580 sourced indicators, and the feeds generated from it.
  • Exposed consoles. A dated list of addresses where one of these consoles answers on the internet, in exposure/, with a count per framework. It is a record of what is exposed, not a detection feed.

Formats: KQL for Microsoft Sentinel and Defender XDR, Sigma, Suricata, Zeek, YARA and STIX 2.1, plus WAF rules for Cloudflare, AWS WAF and Azure WAF. Splunk and Elastic are covered by a Splunk app and Elastic rules for ARTEX, and by Sigma conversions for everything else.

Try it in a minute

With Suricata installed, run the ARTEX rules over the sample capture in this repository:

git clone https://github.com/ThreatDefence/agentic-attack-detections
cd agentic-attack-detections
mkdir -p out
suricata -r frameworks/artex/tests/artex-sample.pcap -S frameworks/artex/suricata/artex.rules -l out -k none
cat out/fast.log

You should see alerts such as:

[1:3800001:1] TD ARTEX user agent artex-<role>/1.0
[1:3800020:1] TD ARTEX placeholder probe path
[1:3800023:2] TD Unsigned alg none JWT in URI

The capture is test traffic written from the framework source code and published reports. It is not a recorded intrusion.

Start here

You have Do this
Microsoft Sentinel Deploy to Azure One deployment creates every analytics rule (disabled until you enable them), every hunting query and the AGENTIC_IOCs watchlist. Give it the workspace name. deploy/sentinel/ has one template per framework too. Run the hunts in each folder's hunting-order.md order
Defender XDR Run the hunts from frameworks/*/sentinel/hunting/ in advanced hunting. They work where the tables exist
Suricata Add the .rules files from frameworks/*/suricata/ and behaviors/suricata/. HTTP rules need cleartext or decrypted traffic. DNS and TLS SNI rules work on encrypted traffic
Zeek Install the behaviors package with zkg install https://github.com/ThreatDefence/agentic-attack-detections (or load behaviors/zeek/agentic-behaviors/ by path), set server_nets to your server ranges (setup), load the framework scripts frameworks/artex/zeek/artex/, frameworks/cyberstrikeai/zeek/cyberstrikeai/ and frameworks/hexstrike/zeek/hexstrike/, and feed frameworks/*/zeek/intel/*.intel to the Intel framework
YARA Scan container layers, home folders, /tmp and web roots with frameworks/*/yara/
Any SIEM with Sigma Convert frameworks/*/sigma/ and behaviors/sigma/ with sigma convert, or take the conversions in generated/
Splunk or Elastic The ARTEX folder has a Splunk app and Elastic rules. For the other frameworks use generated/
A WAF: Cloudflare, AWS WAF or Azure WAF Deploy the rules in waf/: framework user agents, probe markers and unsigned JWT probes to block, and reported addresses to challenge. A WAF is optional. It adds blocking at the edge to the detections, it doesn't replace them
A threat intelligence platform Import feeds/stix2.1-bundle.json, or the per-framework lists in feeds/by-framework/. Steps for MISP and OpenCTI, and which fields arrive: docs/threat-intelligence-platforms.md

Coverage

KQL hunts Sentinel analytics Sigma Suricata YARA Zeek Indicators
ARTEX 31 7 36 43 4 script, intel 247
Cairn 6 2 3 26 6 intel 73
PentAGI 5 2 3 10 3 intel 39
HexStrike 4 2 3 7 3 script, intel 22
CyberStrikeAI 5 2 7 11 4 script, intel 74
Strix 3 1 3 5 3 intel 49
Hermes Agent 4 2 3 7 4 intel 79
Agent Zero 2 1 3 1 intel 8
RedAmon 3 3 10 1 intel 19
Xalgorix 3 3 10 1 intel 24
Pentest Swarm AI 3 3 11 1 intel 15
Shared behaviors 9 2 6 18 package

Suricata counts are hand-written rules; each framework also has address rules generated from its indicators. Some indicators belong to more than one framework. ARTEX also has a Splunk app, Elastic rules and ES|QL queries, and an osquery pack.

Frameworks

Framework What it is Seen in
ARTEX Go planner and worker agents with a web console. AntiFox is the same code renamed Storm-0940, Storm-3358, VAPOR PANDA and criminal groups, against Microsoft 365, Okta, AWS, Azure, web applications and Active Directory
Cairn Python engine that drives Claude Code, Codex and Pi coding agents in Kali containers Online retailers, payment sites, Japanese web applications and WSUS servers
PentAGI Go multi-agent platform that runs Kali tools in a container per engagement Intrusions GTIG and Mandiant reported since August 2026, and a PaperCut exploitation operator's infrastructure
HexStrike Python MCP server that gives any AI assistant about 150 security tools over an unauthenticated API NetScaler exploitation discussion in 2025, and intrusions GTIG and Mandiant reported
CyberStrikeAI Go operator console whose agents run about 90 tools, with its own implants, C2 listeners and webshell manager FortiGate mass-exploitation infrastructure, an AWS intrusion, and education organizations in Africa and Latin America
Strix Python AI pentest agent that runs teams of agents in a Kali sandbox, on any model The retail card-theft campaign Gambit reported, where it found the flaws Cairn exploited
Hermes Agent A legitimate general-purpose agent turned into an attack console: approvals off, a bundled jailbreak skill, red-team personas The Gambit retail operator, the Carbonato Docker botnet, and Thailand's Ministry of Finance
Agent Zero General-purpose agent in a Kali container with a built-in hacker profile and an open web UI Threat-actor experimentation GTIG reported, with no published indicators
RedAmon Self-hosted penetration testing platform: a web console, a recon pipeline and an agent that exploits from a Kali sandbox with Metasploit No public report of use in an attack. Covered from its source code
Xalgorix Go binary with a web dashboard whose agent tests web applications and APIs without approval steps and re-exploits each finding No public report of use in an attack. Covered from its source code
Pentest Swarm AI Go command-line tool that runs recon, exploit and report agents over about 40 security tools No public report of use in an attack. Covered from its source code

Each folder has a README, the hunts and rules, and a source-code-signals.md that explains what the framework leaves behind and where in its code each signal comes from.

Exposed consoles

Hosts on the internet that serve the web console of each framework, found in internet-wide scan data with the fingerprints the rules here use: favicons, page titles, page text that survives a rename, and certificates.

An active host is one seen in the seven days to November 23, 2026. Hosts the scan data flags as honeypots are left out of both counts.

Framework Active hosts Seen in 30 days Honeypots left out
ARTEX and AntiFox 2,117 2,816 0
Hermes Agent 1,019 2,194 1
CyberStrikeAI 489 671 506
PentAGI 329 500 0
Agent Zero 116 175 0
HexStrike 25 30 0
RedAmon 20 34 0
Cairn 17 30 0
Xalgorix 6 13 0
Strix 5 12 0
Pentest Swarm AI 0 0 0
All, each host counted once 3,968 6,200 507
  • An exposed console is not proof of an attack. Researchers, students and security teams run these tools, and some hosts are decoys.
  • More than half of the pages titled CyberStrikeAI are flagged as honeypots, which is why that count is so much lower than a title search suggests. The flagged hosts stay in the list with honeypot set to yes.
  • One network that is not flagged holds more than a third of the remaining CyberStrikeAI hosts and of the PentAGI hosts. That looks like one mass deployment or a set of decoys, not that many operators (#21).
  • Hermes Agent and Agent Zero are general-purpose agents, so their numbers count exposed agents, not attack consoles. Hermes is counted on its default port only.
  • Consoles served by host name only, or on a port that has not been scanned, are not counted.

The addresses, with the port and the fingerprint that found each one, are in exposure/consoles.csv. The counts of every snapshot are kept in exposure/history.csv, so the numbers can be followed over time.

Behaviors shared by agentic frameworks

behaviors/ holds rules that do not depend on any one framework.

Behavior Rules
An attack tool started under an AI agent CLI (Claude Code, Qwen Code, Kimi CLI, Codex, opencode, Hermes, Cairn's workers), found from the process tree KQL hunt, Sentinel analytics rule, Sigma
Servers calling AI model APIs: Chinese models (DeepSeek, Qwen, GLM, Kimi, MiniMax, Doubao), gateways such as OpenRouter, and Western APIs KQL hunt, Sigma, Zeek
An AI agent's page reader on your application next to attack traffic from the same address KQL hunt, Sigma, Suricata, Zeek
One site probed through hundreds of rotating proxy addresses KQL hunt, Zeek
Configuration and backup file theft, and probes of WSUS administration services KQL hunt, Sentinel analytics rule, Sigma, Suricata, Zeek
An attack agent proving it can write to a container registry: a push to a repository named after the agent (artex-i<id>, hermes-h<id>-writecheck, csai-push-probe) or after a write test Sigma, Suricata
Kerberos user enumeration and SMB or WinRM fan-out from one address KQL hunt, Zeek
A server calling back to the address that was probing it KQL hunt, Suricata (PentAGI worker ports), Zeek
AWS credentials used at machine speed from one outside address KQL hunt
Servers looking up out-of-band testing domains (interactsh, Burp Collaborator, dnslog.cn), which means a blind payload ran on them KQL hunt, Sigma, Suricata, Zeek

The ARTEX folder also carries behavior hunts that apply to every framework: user agent family bursts (hunt 17), web and database services starting shells (hunt 11), servers calling webhook and tunnel services (hunt 12), scripts written into web folders (hunt 13), and Kerberoasting, DCSync and WinRM fan-out (hunt 16).

Indicators and feeds

Path Contents
iocs/indicators.csv 580 indicators. Each row has its source, confidence, a review date for addresses and the framework it belongs to. This file is the single source for every feed
feeds/ Generated from the CSV: a STIX 2.1 bundle, a Sentinel watchlist, and plain lists of addresses, domains, URLs, user agents and hashes. The plain lists carry medium and high confidence rows only. Low confidence rows, which include legitimate services such as AI model APIs, need their context, so they stay in the CSV, the watchlist and the STIX bundle. feeds/by-framework/ has the lists per framework
generated/ Every Sigma rule converted to Splunk SPL, Sentinel and Defender XDR KQL, and Elastic ES|QL and Lucene. SUMMARY.md shows which rule converted to which backend
waf/ Cloudflare, AWS WAF and Azure WAF rules built from waf/signatures.yaml and the CSV. The README covers when a WAF helps and how to deploy
exposure/ Addresses where one of these consoles answers on the internet, with the fingerprint that found each one. A record of what is exposed, kept out of the feeds above. tools/exposure_snapshot.py rebuilds it
tools/ Feed builder, WAF builder, release file builder, Sigma converter and validator
docs/ Adding a framework

Each framework folder also has a Zeek intel file and Suricata address rules, generated from the same CSV.

Downloads

Each release carries the same content as ready-made files. These links always point at the newest release:

File Contents
agentic-attack-detections.rules Every Suricata rule in one file
agentic-attack-detections-yara.zip The YARA rules, one file per framework
agentic-attack-detections-stix2.1.json The STIX 2.1 bundle
agentic-attack-detections-indicators.zip iocs/indicators.csv and every feed
agentic-attack-detections-waf.zip The WAF rules for Cloudflare, AWS WAF and Azure WAF
SHA256SUMS.txt SHA-256 of each file

To keep the Suricata rules current with suricata-update:

suricata-update add-source agentic-attack-detections https://github.com/ThreatDefence/agentic-attack-detections/releases/latest/download/agentic-attack-detections.rules
suricata-update

How the rules are built and checked

  • From source. A signature string comes from the framework's code at a named commit, or from a report that published it. source-code-signals.md gives the file and line.
  • From reports. Every indicator names the report it came from, and each value was checked against that report.
  • Tested. Each Suricata rule has a test flow and a near miss. Sigma rules are run against test events, and hunts and analytics rules against sample rows in Microsoft's Kusto emulator, where cases have been written: tests/sigma/ and tests/kql/ have the formats, and new cases are welcome. Every KQL query is parsed with Microsoft's parser and its columns checked. The Zeek packages run against test captures. CI runs the validator and the Suricata, Sigma and KQL tests on every push.
  • Run on real data. Version 2.7.0 was run over 30 days of production telemetry to remove rules that could not fire and to quiet rules that were noisy.

No rule has been tested against a captured intrusion. Treat every rule as experimental until it has run on your own data.

Confidence

Level Meaning How to use it
High Specific to a framework or its campaigns: its user agents, command lines, paths, prompt strings, probe artifacts, reported C2 and skimmer domains, file hashes Alert
Medium Seen in a framework's activity but changeable or shared: reported addresses, generic agent user agents, prompt text shared with similar tools Alert after baselining, or hunt
Low Common or legitimate: AI model APIs, request-collection services, agent CLI user agents, hosting ASNs, proxy providers Context for another finding only

Addresses from cloud and VPS providers are reassigned. Every address has a review_by date 180 days after it was reported. Addresses past that date are left out of the plain lists, the Zeek intel files and the Suricata address rules; they stay in the CSV and the STIX bundle as history. Check before you block.

Testing

pip install -r tools/requirements.txt
python3 tools/validate.py                              # Sigma, KQL, ES|QL, TOML, Splunk, Suricata SIDs, YARA, Zeek, osquery, feeds
python3 -m unittest discover -s tests/feeds            # indicator confidence, expiry and SID policy
python3 tests/sigma/run_tests.py                       # Sigma rules against test events
python3 tests/kql/run_tests.py                         # hunts and analytics against sample rows; needs the Kusto emulator
python3 tools/convert.py                               # regenerate generated/
python3 tools/build_waf.py                             # regenerate waf/
python3 tests/waf/run_tests.py                         # offline checks of the WAF rules on every platform
python3 tools/build_release.py                         # build the release downloads into dist/
python3 tests/suricata/run_tests.py                    # one flow per Suricata rule; needs suricata and openssl
bash frameworks/artex/tests/run_network_tests.sh       # needs zeek and suricata on the PATH
bash behaviors/zeek/tests/run_tests.sh                 # needs zeek on the PATH
bash frameworks/cyberstrikeai/tests/run_zeek_tests.sh  # needs zeek on the PATH
bash frameworks/hexstrike/tests/run_zeek_tests.sh      # needs zeek on the PATH

validate.py checks KQL with Microsoft's parser when dotnet is installed, and Zeek scripts when zeek is.

Contributing

Pull requests are welcome. The most useful contributions are false-positive reports, missed detections and new indicators with a source. See CONTRIBUTING.md for the checks to run, and docs/adding-a-framework.md to add a framework.

Where the project is going is in the roadmap.

Getting help

Open an issue. There are forms for a false positive, a missed detection, a new indicator and a new framework. Describe the shape of the event; never paste customer data. For a security problem in the repository itself, see SECURITY.md.

License

MIT. See LICENSE. Each indicator names its source in iocs/indicators.csv. Use them in your own products and feeds.

Disclaimer

Provided as is, without warranty. A match is a lead, not a verdict. Absence of a match does not mean absence of compromise.

Credits

Started and maintained by ThreatDefence, with fixes from @jack51706, @tridev-tej, @Bropdrop, @blitzcrieg1 and @nerdyhacks. Background on ARTEX: the advisory and the source code signals article.

History

This repository was artex-detections. GitHub redirects the old address. The ARTEX rules moved from the root to frameworks/artex/; iocs/indicators.csv and feeds/ kept their paths.

Package Version :