Penetration Testing of Agentic AI: A Comparative Security Analysis Across Models and Frameworks
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
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.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 12 of its 29 references that are in the map. First posted on arXiv 16 Dec 2025.
Builds on
12 of 29 references.
Closest ancestors · 4
Same direction, newest first
- 2025Bridging AI and Software Security: A Comparative Vulnerability Assessment of LLM Agent Deployment Paradigms8 Jul
- 2025Seven Security Challenges in Cross-domain Multi-agent LLM Systems28 May
- 2024Security of AI Agents12 Jun
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
Other references · 8
- 2024GPT-4o System Cardcited by 4,588
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
- 2024LLM Defenses Are Not Robust to Multi-Turn Human Jailbreaks Yetcited by 151
- 2025Lessons from Defending Gemini Against Indirect Prompt Injectionscited by 43
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Calibrated Decision Models for Autonomous Penetration-Testing Harnesses: JEV and Laya as System One Decision Layers for LLM-Driven Pentest Agentscited by 4
- 2026From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementationcited by 1
- 2026Fully Homomorphic Encryption on Llama 3 model for privacy preserving LLM inferencecited by 0
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challengescited by 0
- 2026Calibrated Decision Models for Autonomous Penetration-Testing Harnesses: JEV and Laya as System One Decision Layers for LLM-Driven Pentest Agents24 Sep 2026
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challenges20 Sep 2026
- 2026From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementation19 Sep 2026
- 2026Fully Homomorphic Encryption on Llama 3 model for privacy preserving LLM inference14 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents
- 2024AutoPenBench: Benchmarking Generative Agents for Penetration Testing
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives
- 2026Evaluating System One Models for Agent Security Decisions: Reliability, Calibration, and Selective Automation
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomy
- 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing
- 2026Assessing Automated Prompt Injection Attacks in Agentic Environments