RAS-Eval: A Comprehensive Benchmark for Security Evaluation of LLM Agents in Real-World Environments

Yuchuan Fu, Xiaohan Yuan, Dongxia Wang
6/18/2025
cs.CRcs.AI

Official code: lanzer-tree/RAS-Eval (6 stars, last commit 2025-09-18).

Abstract

The rapid deployment of Large language model (LLM) agents in critical domains like healthcare and finance necessitates robust security frameworks. To address the absence of standardized evaluation benchmarks for these agents in dynamic environments, we introduce RAS-Eval, a comprehensive security benchmark supporting both simulated and real-world tool execution. RAS-Eval comprises 80 test cases and 3,802 attack tasks mapped to 11 Common Weakness Enumeration (CWE) categories, with tools implemented in JSON, LangGraph, and Model Context Protocol (MCP) formats. We evaluate 6 state-of-the-art LLMs across diverse scenarios, revealing significant vulnerabilities: attacks reduced agent task completion rates (TCR) by 36.78% on average and achieved an 85.65% success rate in academic settings. Notably, scaling laws held for security capabilities, with larger models outperforming smaller counterparts. Our findings expose critical risks in real-world agent deployments and provide a foundational framework for future security research. Code and data are available at https://github.com/lanzer-tree/RAS-Eval.

View on arXivView PDF

Code Implementations(1)

61PythonFeb 21, 20251 years ago

Similar Papers

Cite this paper

@article{fu2025raseval,
  title  = {RAS-Eval: A Comprehensive Benchmark for Security Evaluation of LLM Agents in Real-World Environments},
  author = {Yuchuan Fu and Xiaohan Yuan and Dongxia Wang},
  year   = {2025},
  eprint = {2506.15253},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.15253v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.15253.svg)](https://codeofpaper.com/paper/2506.15253)

Discussion