New open format to detect AI agent threats
Agent Threat Rules (ATR) is an open-source detection format specifically for AI agent security threats, which operate within coding assistants, MCP servers, and multi-agent frameworks. While useful, these agents expose systems to risks such as prompt injection, tool poisoning, and credential theft. Vulnerabilities related to agent execution often reach production faster than the tools designed to detect them.
Quick Response
Agent Threat Rules (ATR) is an open-source detection format for AI agent threats. It uses YAML documents that define attack patterns, input fields to inspect, and validation test cases. The project includes over 400 rules covering categories such as prompt injection, agent manipulation, and skill compromise. Performance varies significantly across different test corpora, with peaks of 98% recall but also cases with 0% detection.
Structure and functionality of ATR rules
ATR rules are YAML documents following a versioned schema. Each rule declares the attack pattern it identifies, the input field to inspect (such as LLM input, tool call arguments, or SKILL.md content), and the test cases that demonstrate its effectiveness. The project includes a reference engine written in TypeScript and a Python wrapper called pyATR, both released under the MIT license.
Framework performance
ATR provides benchmark metrics for each test corpus. Against the NVIDIA garak corpus of real jailbreaks, it achieves a recall of 98%. However, against the entire garak set covering all probe families, recall drops to 38.5%. On HackaPrompt, recall is 66%.
Some corpora show significantly lower performance: AdvBench at 1.3%, HarmBench at 2.5%, and JailbreakBench at 5%. Two adversarial academic sets, PromptBench and PromptInject, register 0% recall.
Performance analysis
Adam Lin, the project maintainer, explained the discrepancy between performance on individual tests and aggregated benchmarks. Rules that pass individual tests can fail in aggregated detection due to differences in pattern matching level. Well-defined attack structures are detectable, while paraphrased or semantically reformulated attacks often escape. The project documents this coverage gap and recommends integrating ATR with other countermeasures such as credential brokering, sandbox execution, and human review for high-risk actions.
Adoption and integration
Four organizations are already using ATR or have integrated it into their tools. Microsoft has included a rule package in its Agent Governance Toolkit that syncs weekly with ATR. Cisco AI Defense runs a rule package in production. MISP at CIRCL has joined a threat-intel cluster, and Gen Digital (the parent company of Norton, Avast, and AVG) has integrated a rule package. Adopters self-declare via pull request, without requiring approval from the maintainer.
Mapping to external frameworks
The ATR rule set aligns with major security frameworks. It covers all 10 OWASP Agentic Top 10 categories and 78 of the 85 SAFE-MCP techniques, equating to 91.8% coverage. Individual rules include references to specific CVEs, including recent vulnerabilities affecting Microsoft Semantic Kernel, Spring AI, LiteLLM, and Claude Code.
Availability and resources
Agent Threat Rules is freely available on GitHub. For further insights into open-source cybersecurity tools, you can consult the article 25 open-source cybersecurity tools that don’t care about your budget and GitHub CISO on security strategy and collaborating with the open-source community.
of AI agent security
The rapid development of AI agents has led to a proliferation of specific vulnerabilities that exploit the unique characteristics of these technologies. Recent analyses show that 67% of vulnerabilities reported in the last 18 months directly concern AI agents, a 300% increase over the previous period. This context justifies the emergence of specialized solutions like ATR, which positions itself as an integral part of a broader security ecosystem.
Implications for developers
For developers working with AI agents, adopting ATR represents both an opportunity and a challenge. On one hand, the framework offers a structured way to identify and mitigate threats, but on the other, it requires specific skills in managing YAML documents and interpreting benchmark results. Microsoft has published a detailed guide for integrating ATR into the Agent Governance Toolkit, which syncs weekly with the project.
Frequently asked questions
1. Can ATR be used with any AI agent?
Yes, ATR is designed to be compatible with various AI agent frameworks, including those based on LLMs, call tools, and SKILL.md content.
2. What are the system requirements to run ATR?
ATR requires Node.js for the reference engine and Python 3.8+ for pyATR. Detailed specifications are available in the README file of the GitHub repository.
3. How can I contribute to the development of ATR?
You can contribute by developing new rules, improving existing ones, or participating in documentation. The project also accepts donations to support ongoing development.
4. Is ATR suitable for production use?
Yes, several organizations, including Microsoft and Cisco, are already using ATR in production environments. However, it is advisable to test the framework in a staging environment before deployment.
5. What are the alternatives to ATR?
Some alternatives include machine learning-based security agents like AI Guard and sandboxing frameworks like SafeFrame. However, ATR offers a unique rule-based approach that can be combined with other solutions for layered defense.
Editorial Note and Disclaimer
The guides and content published on GoYou are the result of independent research and analysis activities, for informational, educational, and in-depth purposes.
GoYou does not constitute a journalistic publication or an editorial product pursuant to Law No. 62/2001 and does not perform real-time information activities.
The GoYou project does not provide professional, technical, legal, or financial advice and disclaims all liability for the improper use of the information published.
In the Crypto sector, every investment involves risks: readers are invited to always inform themselves autonomously before making any decision.