Evaluating Privilege Usage of Agents with Real-World Tools
Organizations: ECNU Shanghai, China · Xinjiang University Urumqi, Xinjiang, China · Tsinghua University Beijing, China
Abstract
Equipping LLM agents with real-world tools can substantially improve productivity. However, granting agents autonomy over tool use also transfers the associated privileges to both the agent and the underlying LLM. Improper privilege usage may lead to serious consequences, including information leakage and infrastructure damage. While several benchmarks have been built to study agents' security, they often rely on pre-coded tools and restricted interaction patterns. Such crafted environments differ substantially from the real-world, making it hard to assess agents' security capabilities in critical privilege control and usage. Therefore, we propose GrantBox, a security evaluation sandbox for analyzing agent privilege usage. GrantBox automatically integrates real-world tools and allows LLM agents to invoke genuine privileges, enabling the evaluation of privilege usage under prompt injection attacks. Our results indicate that while LLMs exhibit basic security awareness and can block some direct attacks, they remain vulnerable to more sophisticated attacks, resulting in an average attack success rate of 84.80% in carefully crafted scenarios.
Figures & tables
| Category | MCP Servers |
|---|---|
| Cloud Infra Management | Langfuse-MCP, Ali-Cloud-OPS-MCP, Ali-Cloud-DMS-MCP |
| External Data Retrieval | Arxiv-MCP, Wikipedia-MCP |
| Personal Data Management | Notion-MCP, Amadeus-MCP, Email-MCP |
| Local Device Operation | Filesystem-MCP, Git-Local-MCP |
| Categories | ReAct Mode | Plan-and-Execute Mode | ||||||
|---|---|---|---|---|---|---|---|---|
| GPT-5 | Gemini3-Flash | Qwen3-Max | Deepseek-v3 | GPT-5 | Gemini3-Flash | Qwen3-Max | Deepseek-v3 | |
| Infra Disruption | 90.21% | 91.37% | 91.04% | 81.75% | 68.18% | 73.91% | 71.31% | 82.84% |
| Data Exfiltration | 91.03% | 95.48% | 89.24% | 86.06% | 71.95% | 74.36% | 85.63% | 88.61% |
| Data Destruction | 87.64% | 95.12% | 97.70% | 87.70% | 74.42% | 72.53% | 83.13% | 93.18% |
| Workspace Tampering | 93.02% | 96.88% | 95.65% | 90.22% | 73.03% | 80.68% | 90.62% | 90.22% |
| Resource Exhaustion | 84.62% | 96.43% | 75.86% | 75.86% | 65.52% | 66.67% | 84.00% | 82.14% |
AI Agent Security Benchmarks
AI agent security benchmarks measure how tool-using and autonomous systems handle attacks, privacy risks, authorization, and harmful actions.
See all 301 papers