Cisco has open-sourced Project Quarry, a rule language and engine for spotting harmful behaviour by AI agents. Cisco pitches it as a shared language for agent detections, and The Register notes its rule format looks much like a YARA or Snort rule.
The problem it targets
Attacks on agents often happen across many steps that are each allowed. Reading a credentials file is fine; sending data out is fine; one followed by the other within a short window is a problem. Cisco’s point is that checking one prompt or tool call at a time misses that.
How it works
A Quarry rule can mix two kinds of evidence. “Neural” signals come from classifiers or LLM judges, for questions that need judgment, such as whether a tool result contains a prompt injection. “Symbolic” checks cover exact things: a string match, an unsafe command, or the order of two tool calls. Rules can look at a whole session or a single event, across chat turns, tool use, MCP traffic and images (via OCR and vision models). When a rule matches, Quarry returns the steps that triggered it with short excerpts, masking common secret formats, and leaves the response (alert, block, redact) to the product receiving it.
The repository is Apache-2.0 licensed. It includes the rule language, an evaluation runtime with safety and resource limits, a command-line scanner for traces and datasets, a Python SDK, a plugin for Claude Code, Codex and other MCP-compatible agents, starter rules and a workflow for testing rules against malicious and benign data. Cisco says Quarry already runs in production in its AI Defense product.
Uses
Cisco lists three: runtime guardrails before and after each model call and tool run, scanning stored traces, and running a newly learned attack pattern against old traces during incident response.
Caveat
Cisco has not published detection or false-positive rates for the starter rules, and rules that call LLM judges add cost and latency. The repository was created on 27 October, so expect early-stage rough edges.

The Campfire
CommentsThanks. Your comment is waiting for the desk. Once it is approved it appears here within about a minute.
Add a comment