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

代理AI的渗透测试:跨模型和框架的比较安全分析

Penetration Testing of Agentic AI: A Comparative Security Analysis Across Models and Frameworks

Viet K. Nguyen, Mohammad I. Husain

AI总结:

本文通过测试五个代理AI模型和两个框架,揭示了代理AI在安全方面的显著差异,发现超过一半的恶意提示成功,提出了新的防御策略和部署建议。

摘要:

代理AI引入了传统LLM安全措施无法解决的安全漏洞。尽管最近由帕洛阿尔托网络Unit 42的研究表明,ChatGPT-4o作为代理执行攻击的能力超过了其在聊天模式下的拒绝能力,但目前尚无在多个模型和框架上的比较分析。我们进行了首次系统的代理AI系统渗透测试和比较评估,测试了五个主要模型(Claude 3.5 Sonnet、Gemini 2.5 Flash、GPT-4o、Grok 2和Nova Pro)在两个代理AI框架(AutoGen和CrewAI)中的表现,使用一种七代理架构来模拟大学信息管理系统功能,并测试了13种不同的攻击场景,涵盖提示注入、服务器端请求伪造(SSRF)、SQL注入和工具滥用。我们的130个总测试用例揭示了显著的安全差异:AutoGen的拒绝率为52.3%,而CrewAI为30.8%,模型性能从Nova Pro的46.2%到Claude和Grok 2的38.5%不等。最关键的是,Grok 2在CrewAI上的拒绝率仅为2/13(15.4%),所有配置的总体拒绝率为41.5%,表明尽管有企业级安全机制,超过一半的恶意提示仍成功。我们识别出六种不同的防御行为模式,包括一种新的“幻觉合规”策略,其中模型伪造输出而不是执行或拒绝攻击,并为安全代理部署提供了可行的建议。完整的攻击提示也包含在附录中,以实现可重复性。

英文摘要:

Agentic AI introduces security vulnerabilities that traditional LLM safeguards fail to address. Although recent work by Unit 42 at Palo Alto Networks demonstrated that ChatGPT-4o successfully executes attacks as an agent that it refuses in chat mode, there is no comparative analysis in multiple models and frameworks. We conducted the first systematic penetration testing and comparative evaluation of agentic AI systems, testing five prominent models (Claude 3.5 Sonnet, Gemini 2.5 Flash, GPT-4o, Grok 2, and Nova Pro) across two agentic AI frameworks (AutoGen and CrewAI) using a seven-agent architecture that mimics the functionality of a university information management system and 13 distinct attack scenarios that span prompt injection, Server Side Request Forgery (SSRF), SQL injection, and tool misuse. Our 130 total test cases reveal significant security disparities: AutoGen demonstrates a 52.3% refusal rate versus CrewAI's 30.8%, while model performance ranges from Nova Pro's 46.2% to Claude and Grok 2's 38.5%. Most critically, Grok 2 on CrewAI rejected only 2 of 13 attacks (15.4% refusal rate), and the overall refusal rate of 41.5% across all configurations indicates that more than half of malicious prompts succeeded despite enterprise-grade safety mechanisms. We identify six distinct defensive behavior patterns including a novel "hallucinated compliance" strategy where models fabricate outputs rather than executing or refusing attacks, and provide actionable recommendations for secure agent deployment. Complete attack prompts are also included in the Appendix to enable reproducibility.

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

↑