Cisco releases Quarry to detect risky AI agent behavior
Technologies2026-11-09, 10:23
On October 28, Cisco introduced Project Quarry, an open-source rule language and engine for analyzing AI agent activity. Quarry examines a session trace, a step-by-step record of messages, tool calls, and tool results. A rule can link several actions that each look permissible on their own.
How detection works
In Cisco’s example, a rule looks for a read_file call with .env, credentials, or secrets in its path, followed by an http_request call whose URL contains a specified substring. If the trace contains the same two calls in reverse order, the rule does not match. A match confirms that the calls occurred in the required order and that their arguments met the rule’s conditions. Confirming that data left the system requires checking the file-read result and the contents of the HTTP request.
Quarry compiles rules into finite automata when it loads them. As an automaton processes the trace, it keeps track of which parts of the condition have been met. The rule language lets authors specify event order, limit how far apart events can occur, and compare values across calls.
Checks on strings, arguments, and event order can run without a model. For checks that require interpreting content, a rule can call a configured classifier or language model. For example, a rule can combine a prompt injection score for a tool result with checks on subsequent calls. The model’s assessment may vary between scans of the same trace.
What penetration testers can verify
In explain mode, Quarry shows which events support a match. If a rule limits how far apart those events can occur, check their positions in the original trace. The explanation may omit intervening events.
With access to the deployed rules and session traces, a penetration tester can check how changing the order of actions, switching tools, or modifying arguments affects detection. For example, a rule that specifically checks for http_request may miss the same operation performed through another tool. Coverage depends on which events are recorded, which rules are enabled, and how the models are configured. A timeout or evaluation error produces an incomplete scan. Treat that status separately from a completed scan with no matches.
Quarry can scan stored traces or run as part of an application to check agent activity at runtime. The application decides how to respond to a match, such as logging it, raising an alert, or blocking the action.
Cisco says Quarry is already in production in AI Defense and plans to integrate it with DefenseClaw. The open-source project is in alpha and available under the Apache 2.0 license. The rule syntax may change before version 1.0.
Vendors
Products