Agentic AI Red-Teaming for Prompt Injection Detection in Multi-Agent Systems
Abstract
Multi-agent large language model (LLM) systems introduce security risks beyond single-model deployments because malicious instructions can propagate through agent messages, tool responses, shared memory, and orchestration layers. This paper presents an integrated red-team/blue-team framework for prompt-injection detection in agentic AI systems. The framework defines five attack classes—direct injection, indirect tool-response injection, agent-to-agent manipulation, tool-chain privilege escalation, and memory poisoning—and combines automated adversarial payload generation with a lightweight detector using TF-IDF representations and 16 interpretable structural security indicators. Evaluation on a 1,475-sample controlled benchmark yields 99.92% indistribution F1, while detection against the four evaluated non-adaptive surface mutations reaches 99.29% at 0.056 ms mean inference latency (17,907 messages/s). Because the training and controlled evaluation samples share underlying template families and mutation processes, these near-perfect results primarily establish detection consistency within the evaluated adversarial distribution rather than open-world robustness. Cross-benchmark evaluation on WildJailbreak- and AgentDojo-style samples provides a stronger test of generalization, yielding 81.0% accuracy $(\mathrm{F} 1=0.829)$ and exposing failures on benign security discussions and semantically disguised role-play attacks. These findings demonstrate both the operational value and limitations of lightweight structural detection. We therefore position the proposed detector as a high-throughput first layer in a defense-in-depth architecture, with uncertain messages escalated to semantic analysis and behavioral monitoring for adaptive and context-dependent attacks.