arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.22853cs.CRcs.AI
收藏

代理审计:用于大语言模型代理应用的安全分析系统

Agent Audit: A Security Analysis System for LLM Agent Applications

University of Southern California(南加州大学)

Haiyue Zhang, Yi Nian, Yue Zhao

AI总结:

本文提出Agent Audit系统,用于检测LLM代理应用中的安全漏洞,通过数据流分析、凭证检测等方法,提高召回率并保持快速扫描速度。

摘要:

在部署LLM代理之前,开发者应检查模型、工具代码还是部署配置?实际中,许多安全故障并非源于模型权重,而是来自周围软件栈:工具函数将不受信任的输入传递给危险操作、部署 artifacts 中暴露的凭证、以及过度特权的Model Context Protocol (MCP)配置。我们提出了Agent Audit,一个用于LLM代理应用的安全分析系统。Agent Audit通过代理-aware的管道分析Python代理代码和部署 artifacts,结合数据流分析、凭证检测、结构化配置解析和特权风险检查。系统将发现报告为终端、JSON和SARIF格式,使直接集成到本地开发流程和CI/CD管道成为可能。在22个样本的基准测试中,Agent Audit检测到40个漏洞,其中6个为假阳性,显著提高了召回率,同时保持亚秒扫描时间。Agent Audit是开源的,可通过pip安装,使代理系统的安全审计变得容易。在演示中,参与者扫描易受攻击的代理仓库,观察Agent Audit如何识别工具函数、提示等中的安全风险。发现与源位置和配置路径链接,并可导出到VS Code和GitHub Code Scanning进行交互检查。

英文摘要:

What should a developer inspect before deploying an LLM agent: the model, the tool code, the deployment configuration, or all three? In practice, many security failures in agent systems arise not from model weights alone, but from the surrounding software stack: tool functions that pass untrusted inputs to dangerous operations, exposed credentials in deployment artifacts, and over-privileged Model Context Protocol (MCP) configurations. We present Agent Audit, a security analysis system for LLM agent applications. Agent Audit analyzes Python agent code and deployment artifacts through an agent-aware pipeline that combines dataflow analysis, credential detection, structured configuration parsing, and privilege-risk checks. The system reports findings in terminal, JSON, and SARIF formats, enabling direct integration with local development workflows and CI/CD pipelines. On a benchmark of 22 samples with 42 annotated vulnerabilities, Agent Audit detects 40 vulnerabilities with 6 false positives, substantially improving recall over common SAST baselines while maintaining sub-second scan times. Agent Audit is open source and installable via pip, making security auditing accessible for agent systems. In the live demonstration, attendees scan vulnerable agent repositories and observe how Agent Audit identifies security risks in tool functions, prompts, and more. Findings are linked to source locations and configuration paths, and can be exported into VS Code and GitHub Code Scanning for interactive inspection.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑