TL;DR
Large language models (LLMs) are increasingly used in complex agentic systems, but current safety evaluations miss critical vulnerabilities that emerge only in these multi-step, tool-using contexts. This paper introduces AgentSeer, a novel observability framework that visualizes agentic executions as action graphs, revealing "agentic-only" risks and enabling targeted prompt hardening. Their findings highlight a significant gap between model-level and agentic-level security, emphasizing the need for deployment-aware evaluation.
What Problem Does This Paper Address?
As LLMs evolve from simple text generators to sophisticated agents that interact with tools, memory, and environments, traditional safety evaluation methods fall short. These methods, often focused on single-turn model responses, fail to capture the emergent vulnerabilities that arise from the complex interplay of components within an agentic system. This "evaluation gap" means that LLM agents deployed in real-world scenarios might possess hidden risks that are invisible to standard testing, posing a significant threat to their safe and reliable operation. The authors aim to bridge this gap by providing a more granular and context-aware approach to evaluating agentic AI safety.
Methods
The core contribution is AgentSeer, an observability framework that decomposes agentic executions into detailed action-component graphs. This allows for a fine-grained analysis of each LLM operation (action) and its interaction with system components (agents, tools, memory). AgentSeer leverages MLFlow's generative AI tracing capabilities to capture these execution spans and represent them as a knowledge graph.
The authors then use this framework to:
- Quantify the gap between model-level and agentic-level jailbreaking risks using the HarmBench dataset.
- Identify "agentic-only" vulnerabilities that appear specifically in agentic contexts, particularly those involving tool-calling.
- Automate prompt hardening by using the action-graph risk signals to iteratively improve agent system prompts, making them more robust against attacks.
- Validate cross-model transferability of these hardening techniques.
Datasets
- HarmBench: Used for evaluating the safety guardrails of LLMs against various attack objectives.
- GPT-OSS-20B and Gemini-2.0-flash: Two LLMs used for cross-model validation.
- LangGraph: Used to construct a representative 6-agent hierarchical system for evaluation.
Key Insights and Ideas
- The "Agentic Gap": Traditional model-level evaluations are insufficient. Vulnerabilities emerge specifically from the interactions and multi-step reasoning within agentic systems, especially when tools are involved.
- Tool-Calling Amplifies Risk: Agentic systems that utilize tools, particularly "agent transfer" operations (where one agent delegates to another), are significantly more vulnerable to jailbreaking.
- Semantic Vulnerabilities: The vulnerabilities observed are primarily semantic (related to the meaning and intent of the interaction) rather than syntactic (related to the structure of the prompt), suggesting that attackers exploit the agent's reasoning process.
- Iterative Attacks are More Potent: Context-aware iterative attacks, which leverage the full execution history, are more successful at compromising objectives than direct, single-turn attacks, especially in agentic contexts.
- Prompt Hardening Works and Transfers: Automatically hardening system prompts based on action-level analysis significantly reduces jailbreaking success and, importantly, these improvements can transfer across different LLMs.
Key Results
- Model-Level Baseline: Gemini-2.0-flash (50.00% ASR) showed higher jailbreak success than GPT-OSS-20B (39.47% ASR) on HarmBench objectives.
- Agentic-Only Vulnerabilities: Tool-calling increased ASR by 24-60% across models. Agent transfer operations were the highest-risk tools.
- Attack Transfer Degradation: Direct transfer of model-level successful prompts to agentic contexts showed reduced performance (GPT-OSS-20B: 57% ASR for human injection; Gemini-2.0-flash: 28% ASR).
- Iterative Attack Success: Context-aware iterative attacks successfully compromised objectives that failed at the model level.
- Prompt Hardening Impact: Action-based prompt improvement substantially reduced agentic jailbreak success:
- GPT-OSS-20B: Direct ASR dropped from 45.3% to 8.2%; Iterative ASR dropped from 43.0% to 8.0%.
- Gemini-2.0-flash: Direct ASR dropped from 16.7% to 6.4%.
Limitations and Future Work
- Scope of Evaluation: The study evaluated a single 6-agent LangGraph testbed and one application domain. Broader conclusions would require testing diverse architectures, tool ecosystems, memory designs, and task families.
- Model and Attack Diversity: Only two models and a limited set of objectives/attack strategies were studied. Future work should include more threat models (e.g., environment injection, memory poisoning) and larger-scale evaluations.
- LLM-in-the-Loop: The prompt improvement and judging processes relied on GPT-40-mini, introducing potential bias and non-determinism.
- Adaptive Adversaries: Prompt hardening was primarily validated via reinjection of previously successful jailbreaks, which might not generalize to adaptive adversaries.
- Utility Regression: The study did not comprehensively measure utility regressions or over-defensiveness on benign tasks.
- Tracing Assumptions: The approach assumes accurate tracing and action-agent attribution, which might be incomplete for opaque tools.
Future work should explore these limitations, including testing a wider range of agentic systems and attack types, and developing more robust methods for evaluating utility alongside safety.
Summary updated