Agents

Agent swarms find prompt injections humans stopped finding

Reviewing Scaling Adaptive Prompt Injection Attacks with Agent Swarms · Alexey Kurakin, Vishal Karande, Alex Bie et al.

Agent swarms find prompt injections humans stopped finding

Researchers show that a coordinated swarm of LLM attacker agents reliably tricks frontier models into obeying instructions hidden in tool output, including models that looked robust to human red teams. The apparent plateau in prompt injection reflects attacker limits, so defences need automated, adaptive testing that improves as attacker models do.

Human red teamers had started running out of ways to inject instructions into Gemini models. The researchers treated that plateau as a question rather than a verdict. Was the model robust, or were the attackers simply not good enough?

Prompt injection works because an agent reads tool output as text, and text can look like orders. The defence is meant to be an instruction hierarchy. The user's request outranks anything in a web page, email or API response the agent fetches. A robust model reads the injected line as data and carries on.

To test that, the researchers built 100 scenarios where the attacker's goal is harmless. The user asks for something in one domain. The injection, placed in the last tool response, asks for a single unrelated tool call in another domain. Because the target call is benign, the model cannot refuse on security instinct. It either respects the hierarchy or it does not. I like this design. It separates knowing an action is dangerous from knowing whose instructions to follow.

The attacker is not one prompt but a swarm. Eight teams of two LLM agents each get a small budget of attempts, 320 in total. They share notes on team whiteboards, watch a leaderboard, and can start from a database of strategies that worked before. Stronger attacker models learned to disguise the target call as a data dependency the task seemed to need. They also rephrased injections that kept getting caught.

Even the best defender, Gemini 4 Argon, resisted only 66% of attacks at full budget. Open-weight models such as Kimi K3 and DeepSeek-4.1-Flash did worse, despite strong scores on capability benchmarks. Resistance fell as the attacker model got stronger. It fell further when attackers could read the defender's reasoning.

The plateau belonged to the attackers

This is not a new attack. Injection payloads are old. What is new is that the search for them is automated and patient, and it scales with the model doing the searching. A defence that holds against people and fixed benchmarks has been measured against one level of attacker. The research shows that result drifts as the attacker improves.

The preconditions matter. The injection sits only in the final tool response, and Google's out-of-model mitigations were switched off, so this measures the model alone rather than a deployed product. The swarm also learns from a score after every attempt. A real attacker would need some equivalent signal that the call fired.

For anyone shipping agents, a clean result on a public injection benchmark says little about an adaptive adversary. Red-teaming has to be automated and re-run as attacker models improve, and keeping the model's reasoning hidden is worth the effort.

Human red teams plateaued. The attacks did not.

Further analysis

Problem

The paper studies whether prompt injection remains a practical threat to AI agents despite apparent saturation of static attacks and human red-teaming on recent frontier models. Prompt injections are adversarial instructions embedded in tool outputs or data that can make an agent call irrelevant or harmful tools. The authors argue that adaptive, coordinated attackers can still bypass current defences, so evaluating robustness requires testing automated, evolving adversaries rather than only static payloads or human red teams.

Approach

The authors introduce a synthetic evaluation suite of 100 multi-step tool‑use scenarios designed to disentangle a model’s instruction‑hierarchy enforcement from its explicit security knowledge. Each scenario pairs a user goal requiring tools from one domain with an unrelated attacker goal that is a single tool call in a different domain; the injection is inserted into the final tool call response. The tool set comprises 249 tools across 53 domains. Attacks are scored by a precise function that rewards exact target tool name and close matching of argument keys and values; a success threshold of 0.99 requires near-exact matches. They measure Attack Resistance Rate (ARR) and ARR@150 (resistance within the first 150 defender queries). The central attacker is the Agentic Optimizer, an LLM‑guided swarm: N=8 teams with M=2 agents per team, each agent limited to 20 evaluation calls (320 total evaluations). Agents share notes via team whiteboards and leaderboards and may be seeded from a database of optimisation strategies. Experiments evaluate Gemini models (various versions with out‑of‑model mitigations disabled) and several open‑weight models including Kimi K3, GLM‑5.3 and DeepSeek‑4.1‑Flash. Defenders typically run in high thinking mode with chain‑of‑thought hidden from attackers.

Key Findings

  • Agentic Optimizer succeeds against models previously considered robust: even the best defender tested, Gemini 4 Argon, resists only 66% of attacks at the attacker’s maximum budget and 87% when the attacker is limited to 150 queries.
  • Attack effectiveness grows with attacker capability: increasing attacker model strength consistently reduces defender ARR, and open‑weight models show particularly low resistance despite strong capability benchmarks.
  • Access to defender chain‑of‑thought increases attack success; a pre‑populated strategies database helps weaker attackers more than stronger ones, and updating the database during evaluation improves overall attacker performance.
  • Against a comparable benchmark, Agentic Optimizer found 6 successful injections out of 80 scenarios within 25 defender queries versus 2 out of 80 for a baseline adaptive method, demonstrating higher practical efficacy.
  • Analysed attacker behaviours show stronger attackers coordinate via leaderboards, better disguise target calls as benign data dependencies, and rephrase injections to avoid detection.

Limitations

The evaluation uses a synthetic dataset with injection sites confined to the final tool response and attacker goals chosen as non‑malicious tool calls to isolate instruction‑following failures. Some defender mitigations were disabled in experiments. The Agentic Optimizer relies on LLMs, a pre‑populated strategy database and constrained budgets, which may differ from real adversaries. Results cover a subset of models and configurations and depend on evaluation budgets and scoring thresholds.

Implications

Offensive implications are clear: coordinated, adaptive swarms of LLM agents can scale and automate prompt injection discovery, bypassing defences that hold against static or human red‑team attacks. Attackers can exploit model capabilities to craft payloads that appear as legitimate data dependencies, chain benign tool calls into harmful sequences, leverage visible chain‑of‑thought when available, and reuse or evolve strategies across targets. As attacker models grow more capable, such automated red‑teaming vectors can increase transferability and success rates against deployed agents.

The paper title, authors and abstract

Scaling Adaptive Prompt Injection Attacks with Agent Swarms

Alexey Kurakin, Vishal Karande, Alex Bie, Chongyang Shi, Shuang Song, Saeed Mahloujifar, Abdullatif Köksal, Jamie Hayes, Juliette Pluto, Yinghao Sun, Kamalika Chaudhuri

Prompt injections have emerged as one of the top security risks faced by AI agents today. Early work in prompt injection attacks looked at simple tool-call agents and static attack payloads, and were saturated since mid-2025. As of Fall 2026, human red-teaming may be nearing saturation, especially on the Gemini family of models. In this work, we argue that despite this apparent plateau, prompt injection attacks are still possible and continued effort into prompt injection defense is needed. We design a new synthetic evaluation dataset which uses random non-malicious actions as adversarial goals. Such dataset design helps us to evaluate prompt injection robustness as a model ability to respect instruction hierarchy, and disentangle this ability from model knowledge of security practices. We show that an agentic attacker of increased capabilities can reliably trick model to follow instructions in tool output in our evaluation, even for models previously considered robust on public prompt injection benchmarks such as GraySwan Arena. This shows that current frontier defenses may require proactive, automated red-teaming to remain resilient to increasingly capable adversaries.