Skip to content

Tel Aviv University proposes explosive prompts: conditionally triggered indirect prompt injection can bypass nine production agentsDefusing Explosive Prompts: Understanding and Preventing Trigger-Based Prompt Injections in LLM Agents

arXiv: Agent & MCP Security· arXiv:2609.22510· Justin Szczepaniak, Elad Feldman, Naum Viner, Ben Nassi·Indexed by this site · 2026-10-01· Originally publishedSelected AttacksSelectedAttention42

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

The authors evaluated conditionally triggered explosive prompts and found an attack success rate of 34.2% on real tool execution with Grok-4.20, while the imperative form achieved 0.0%.

Threat modelThe victim system is a multi-turn agent with external tools. The attacker controls retrieved content through indirect prompt injection, with no access to system prompts, user inputs, or model weights, and cannot observe the conversation in real time. The goal is to induce unauthorized tool calls through conditional statements, so that the payload lies dormant during retrieval and executes when a later trigger word appears.

Questions
Traditional indirect prompt injection executes immediately when ingested by the model, and is easily identified and blocked by existing defenses. The paper attempts to solve how, through temporal separation of injection and execution, to keep the malicious payload latent when it is retrieved, and trigger a tool call only when specific conditions are met.
Methods
The authors propose explosive prompts, which express the attack objective as a latent statement that depends on a subsequent trigger condition; they also build a combinatorial generator to generate training data, and propose DeFuse, a lightweight detector based on FastText and a linear SVM, for ingestion-stage window detection.
Experiments and results
Across 7 foundation models, explosive prompts achieved an average execution success rate of 16.5%, higher than the 2.4% for imperative injection; across 9 production agents, the bypass rate was 43–83%. DeFuse reduced the residual attack success rate to 3.0% at a 5% FPR.
Limitations and future work
The base experiments use 7 models and the AgentDojo platform; production agents are evaluated with only 30 single trials; DeFuse targets surface forms and adaptive rewriting attacks are not evaluated; the evaluation covers only two-round sessions, and survival in long sessions is not tested.
Experimental setupLlama-3.1-8B-Instruct、Llama-3.1-70B-Instruct et al. · AgentDojo v0.1.35、Enron et al. · Intent、Mutation et al.
Evaluated models
Llama-3.1-8B-InstructLlama-3.1-70B-InstructQwen2.5-32B-InstructQwen2.5-72B-InstructGrok-4.20Gemini-2.5-flashGPT-4.1Llama-3.3-70B-InstructMeta-SecAlign-70BOpenAI CodexGoogle Gemini CLIAnthropic Claude Code CLICursor CLIGitHub CopilotDevin AI CLI
Benchmarks
AgentDojo v0.1.35EnronHillary Clinton EmailsWikipediaC4GovReport
Metrics
IntentMutationASRTPR@1% FPRAUCLatency
AI summaryand selection rationaleResearchers at Tel Aviv University propose the explosive prompt, a form of indirect prompt injection that writes the malicious payload as a conditional statement and remains dormant until an attacker-chosen trigger word appears, requiring no training and able to be implanted at inference time in a single retrieved piece of content. On 896 paired samples, after the same malicious objective is changed to a dormant conditional form, it can still trigger real tool calls on frontier models that refuse direct instructions: Grok-4.20 rises from 0.0% to 34.2%, Llama-3.1-70B rises from 0.1% to 26.1%, and the paired mean across seven models is 16.5% versus 2.4%. The deployed injection classifiers Prompt Guard 2, PIGuard, and PIShield are miscalibrated at their operating thresholds, blocking at most only 52.7% under a 1% false-positive budget; the preference-optimized model SecAlign completely blocks direct injection, yet still executes 11.8% of explosive prompts, all triggered at the trigger turn.

Researchers at Tel Aviv University propose the explosive prompt, a form of indirect prompt injection that writes the malicious payload as a conditional statement and remains dormant until an attacker-chosen trigger word appears, requiring no training and able to be implanted at inference time in a single retrieved piece of content. On 896 paired samples, after the same malicious objective is changed to a dormant conditional form, it can still trigger real tool calls on frontier models that refuse direct instructions: Grok-4.20 rises from 0.0% to 34.2%, Llama-3.1-70B rises from 0.1% to 26.1%, and the paired mean across seven models is 16.5% versus 2.4%. The deployed injection classifiers Prompt Guard 2, PIGuard, and PIShield are miscalibrated at their operating thresholds, blocking at most only 52.7% under a 1% false-positive budget; the preference-optimized model SecAlign completely blocks direct injection, yet still executes 11.8% of explosive prompts, all triggered at the trigger turn.

Why it was selectedThe paper conducts paired empirical tests of condition-triggered prompt injection against ordinary injection, and reports the bypass rates of nine production agents, so teams deploying agents can use this to check the ingestion stage of retrieved content.

Related events and news

1 events · 2 news mentions

News that mentions this paper

Adversa AI 汇总 10 月 AI Agent 安全资源

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Explosive prompts achieve temporal separation of injection and execution through conditional phrasing, bypass defenses, and execute tool calls when triggered.

    Traditional indirect prompt injection is easily blocked by defenses because it executes immediately; the paper attempts to achieve temporal separation of injection and execution through conditional phrasing.

    • Problem scenario and importance: As large language models integrate external tools and become autonomous agents, the threat of indirect prompt injection intensifies. The authors point out that traditional injection mostly uses direct imperative sentences, which execute immediately when content is ingested, and are easily blocked by the application layer, input sanitization, and model alignment.
    • Shortcomings of existing methods: Existing indirect prompt injection does not support temporal separation of injection and execution. Well-aligned frontier models can stably refuse direct imperative instructions, causing traditional injection to mostly fail on these models.
    • Core observation of the paper: Rewriting malicious instructions as latent statements that depend on specific trigger conditions can exploit the model's normal instruction-following ability, remain silent during the ingestion stage, and activate only after a later user input trigger word.
    • Proposed approach of the paper: The authors formalize Explosive Prompts, conduct empirical research on their bypass capability on base models, defense components, and production agents, and propose the ingestion-stage detector DeFuse.
    • Threat model:
      • Victim system: A multi-turn conversational agent equipped with tools such as terminal, search, and API, and capable of retrieving external untrusted data.
      • Attacker knowledge: No access to system prompts, user inputs, or model weights, no ability to observe the conversation in real time, and only able to anticipate the retrieval context.
      • Attacker capability: Tamper with external data retrieved by the agent (such as emails, web pages, repository files) through indirect prompt injection.
      • Attacker goal: Induce the agent to call destructive tools when specific conditions are met, supporting delayed activation targeting specific users, high-value workflows, or everyday pleasantries.
  2. What related research exists?

    The paper compares indirect prompt injection, agent attacks, existing detection defenses, and backdoor mechanisms, emphasizing temporal separation and the lack of persistence.

    The paper positions explosive prompts at the intersection of indirect prompt injection, runtime defenses, and inference-time backdoors, emphasizing that they achieve conditional latency without training.

    • Prompt injection and agent attacks:
      • Perez and Ribeiro (2022), Greshake et al. (2023) — established the forms and harms of direct and indirect prompt injection; Liu et al. (2024), Debenedetti et al. (2024), and Zhan et al. (2024) — respectively built benchmarks for prompt injection and agent tool calls (such as AgentDojo, InjecAgent).
      • Nakash et al. (2025), Zhan et al. (2025) — studied multi-turn escalation or adaptive adversarial attacks. The authors point out that these methods are still imperative and execute immediately, whereas explosive prompts achieve temporal separation of injection and activation.
      • Rehberger (2024, 2025), Nassi et al. (2025), and Reddy et al. (2025) — disclosed delayed tool invocation (DTI), promptware, or persistent memory implantation. The authors state that previous disclosures were mostly single instances and that DTI depends on hard-coded tool triggers, whereas this paper systematically explores arbitrary payload activation based on natural-language trigger words.
    • Defense and mitigation techniques:
      • Chen et al. (2025), Wallace et al. (2024), and An et al. (2025) — proposed endogenous defenses such as structured queries (StruQ), preference optimization (SecAlign), or tool dependency graphs (IPIGuard). The authors state that these methods assume the payload will override user instructions or exceed authority, and are difficult to defend against conditional instructions that comply with the current request.
      • Chennabasappa et al. (2025), Li et al. (2025), and Zou et al. (2025) — respectively developed external or internal state classifiers such as Prompt Guard 2, PIGuard, and PIShield. The authors state that these classifiers are trained for imperative injection and face distribution shift on conditional explosive prompts.
    • Comparison with backdoor attack mechanisms:
      • Gu et al. (2017), Hubinger et al. (2024), Zou et al. (2025), and Chen et al. (2024) — respectively studied weight poisoning (BadNets), sleeper agents, or retrieval and memory poisoning (PoisonedRAG, AgentPoison). The authors argue that explosive prompts can implant a backdoor rule at inference time with only a single retrieved document, without modifying model weights or persistent storage.
    • Baseline methods and evaluation benchmarks:
      • Baseline methods: Direct imperative indirect prompt injection (IPI), Prompt Guard 2, PIGuard, PIShield, and Meta-SecAlign-70B.
      • Evaluation benchmarks: The AgentDojo agent environment (including the four suites workspace, travel, banking, slack) and text corpora such as Enron, Wikipedia, C4, and GovReport.
    • Difference as positioned by the authors: The authors emphasize that previous work all assumes the injected payload will execute immediately and override user intent, whereas explosive prompts break the assumption that existing defenses rely on immediate conflict by complying with the context and activating at a later benign trigger word.
  3. How does the paper address this problem?

    The paper formalizes the explosive prompt generation space, reveals the mechanism of conditional bypassing, and proposes a lightweight sliding-window detector, DeFuse.

    The paper systematically measures the activation mechanism of temporal separation by formalizing the five-component space of explosive prompts, and builds the ingestion-stage detector DeFuse based on bag-of-words features and a sliding window.

    Formalization and generation space of explosive prompts

    • Formal definition: An explosive prompt is defined as a combination of a jailbreak prefix jlbk, a conditional connective cond, a trigger word t, and a malicious payload pld, in the form EP = patterni(jlbk, cond, t, pld).
    • Execution semantics: A benign request normally executes its original tool when the context containing the EP is ingested at turn j1; at turn j2 (j2 ≥ j1), when the user input contains the trigger word t, the model activates and executes an unauthorized tool call.
    • Five-component pool:
      • Template library (P): Contains 32 sentence templates encoding conditional sentence structures.
      • Prefix library (F): About 89 context-setting fragments, randomly added with probability pf = 0.4 to eliminate statistical shortcuts.
      • Conditional word library (W): 10 conditional conjunction synonyms (such as if, when, once, etc.).
      • Trigger word library (T): 24 trigger objects, covering three major categories: pleasantries (such as Thanks), daily activities, and text features, using subjectless gerund forms.
      • Payload library (L): 104 natural-language imperative sentences covering 9 categories of malicious intent, avoiding function-call syntax bias.
      • Space size: Before introducing prefix randomness, the generator can already generate 32 × 10 × 24 × 104 ≈ 798,720 surface combinations.

    Attack evaluation protocol and paired design

    • Paired experimental design: For each malicious objective, construct two sets of inputs with completely identical environment, carrier document, and intent, changing only the sentence form (direct imperative IPI vs. conditional EP), to isolate the effect of the temporal separation dimension.
    • Two-turn interaction process: The first turn executes a benign task and ingests the payload; the second turn has the user issue a benign statement containing the trigger word; both sets of inputs run through both turns in full.
    • Tool-call determination: Intent is determined by whether the model actually issues a malicious tool call conforming to the schema definition to the environment and causes a state change.

    Design and inference process of the detector DeFuse

    • Positioning and architecture: DeFuse is positioned downstream of a standard IPI firewall, using 384-dimensional FastText word vectors fitted on the training corpus, together with a probability-calibrated linear support vector machine (Linear SVM).
    • Clean-data training: The training set contains 7,844 samples (1:1 balanced), with positives being isolated EPs generated by the generator and negatives being original Enron emails, without introducing host concatenation, to avoid the model memorizing host-topic shortcuts.
    • Sliding-window inference: In the inference stage, a sliding window with window size W = 15 words and stride S = 5 words traverses the retrieved document, and the maximum score across all windows is taken as the malicious score of the entire document, also supporting localization of suspicious fragments.
  4. What experiments did the paper conduct?

    The experiments cover 7 base models, 4 types of defenses, and 9 production agents, confirming that explosive prompts significantly increase the bypass rate and can be detected at ingestion time.

    The experiments cover 7 base models, 4 representative types of defense mechanisms, and 9 production agents, confirming that conditional phrasing can effectively bypass existing defenses, and that ingestion-stage detection can greatly reduce the attack success rate.

    Experimental setup

    • Models tested: 7 base instruction-tuned models, including 4 open-source models (Llama-3.1-8B-Instruct, Llama-3.1-70B-Instruct, Qwen2.5-32B-Instruct, Qwen2.5-72B-Instruct, deployed at 4-bit NF4 precision) and 3 proprietary API models (xAI Grok-4.20, Google Gemini-2.5-flash, OpenAI GPT-4.1); defense evaluation uses Llama-3.3-70B-Instruct and Meta-SecAlign-70B; 9 production agents (OpenAI Codex, Google Gemini CLI, Anthropic Claude Code CLI, Cursor CLI, GitHub Copilot, Devin AI CLI, Amazon Kiro CLI, Qwen Code, Google Assistant).
    • Dataset and scale: The main experiment uses a paired dataset totaling 896 pairs of samples, covering 9 harm objective categories, 3 trigger word families, and 4 AgentDojo application suites (banking, Slack, travel, workspace); defense evaluation includes a static test set (3,998 benign, 1,870 de-leaked EP, and 2,002 IPI) and AgentDojo dynamic evaluation (2,002 pairs of attacks).
    • Baselines and metrics: The attack comparison baseline is direct imperative injection (IPI) for the corresponding objective; defense baselines are Prompt Guard 2, PIGuard, PIShield, and SecAlign. Core metrics are real tool execution success rate (intent, %) and residual ASR (%), and classification metrics include AUC, ACC, F1, TPR@1% FPR, FPR@100% TPR.
    • Review and quality control: Intent and state mutation are automatically determined through a target tool whitelist and environment state snapshots, without relying on a scoring model; the first-turn tool call rate (Turn-1 engagement) is set as a quality-control threshold, and all reported models reach near-complete calling.
    • Sample size and testing: For base models, n = 896 per setting, reporting 95% Wilson confidence intervals and paired McNemar tests; for production applications, n = 30 per group.

    Main results

    According to Table 1, the real tool execution success rates (intent, %) of the 7 base models on AgentDojo are as follows:

    Swipe horizontally to read the table

    ModelIPI (%)EP (%)EP 95% confidence intervalIncrement Δ
    Grok-4.200.034.2[31.1, 37.3]+34.2
    Llama-3.1-70B0.126.1[23.3, 29.1]+26.0
    Gemini-2.5-flash3.019.4[17.0, 22.1]+16.4
    Llama-3.1-8B13.418.6[16.2, 21.3]+5.2
    GPT-4.10.013.1[11.0, 15.4]+13.1
    Qwen2.5-72B0.02.1[1.4, 3.3]+2.1
    Qwen2.5-32B0.02.1[1.4, 3.3]+2.1
    Paired mean2.416.5Not reported+14.2
    • Susceptibility of alignment-robust models: The authors report that the models most resistant to direct imperative injection show the most obvious increase under the conditional form; Grok-4.20 completely refuses the imperative form (0.0%), but its execution rate under the conditional form reaches 34.2%; paired McNemar tests show that the difference between EP and IPI on all models reaches the p < 0.001 significance level.
    • Latency test: Table 2 shows that for all models, the IPI second-turn tool execution rate is 0.0%; while for Grok-4.20, Llama-3.1-70B, and GPT-4.1, EP execution is almost entirely concentrated at the second-turn trigger moment (33.9%, 26.1%, and 12.8%, respectively), which the authors say confirms the true latency of the payload.
    • Exceptional phenomenon: Llama-3.1-8B shows a 10.3% execution rate already in the first turn, and 12.8% in the second turn; the authors explain that weaker models have low instruction selectivity and tend to immediately follow instructions whose trigger conditions are not met.

    Trigger word families and harm objective distribution

    • Trigger word effectiveness: According to Table 3, everyday conversation closers (thanks, bye) are the most effective on all susceptible models; Grok-4.20 and Llama-3.1-70B reach execution rates of 59.6% and 40.4% respectively in this category, while agentic action words have an execution rate ≤ 20.6%, and meta-descriptive words ≤ 2.3%.
    • Harm objective coverage: According to Table 16, Grok-4.20 is triggered on all 9 objective categories (resource abuse 64%, permission bypass 47%, phishing 37%); Llama-3.1-70B covers 7 categories; the Qwen models are almost only triggered on the Slack permission bypass objective (≤ 19%), and most other objectives are directly identified and refused.

    End-to-end penetration of production agents

    • End-to-end bypass: According to Table 4, in tests on 9 real production agents (n = 30 each), the success rate of direct imperative IPI is 0–3%, while the success rate of explosive prompts reaches 43–83% (Gemini CLI reaches 83%, Copilot reaches 70%).
    • Real harm achieved: All 8 code agents were successfully triggered to send back code or credentials, and the voice assistant Google Assistant achieved 50% actual harmful operations such as IoT control and calendar event deletion.

    Defense mechanism evaluation and retraining performance

    • Out-of-the-box defenses fail: According to Table 5, under a 1% FPR budget, the detection rates of Prompt Guard 2, PIGuard, and PIShield on static EP samples are only 52.7%, 40.5%, and 13.4%; although Meta-SecAlign-70B completely blocks first-turn injection, its second-turn residual ASR is still 11.8%.
    • Retraining bridges the gap: According to Table 6, after fine-tuning with explosive prompt data, the residual ASR of Prompt Guard 2 and PIGuard under dynamic traffic drops from 34.3% to 7.5% and 8.1%, respectively; DeFuse suppresses residual ASR to 3.0% at a calibrated 5% FPR.

    Other ablations and analyses

    • Classifier and representation choice: FastText with Linear SVM reaches ROC AUC 0.9997 under a sliding window, outperforming MPNet, BGE, SBERT, and GloVe (Table 7).
    • Inference latency: The average latency of DeFuse for processing 100-word and 500-word documents is 0.90 ms and 2.89 ms, respectively, and 9.83 ms on average for 2000-word documents (Table 8).
    • Insertion position robustness: Inserting the payload at 0%, 25%, 50%, 75%, and 100% of the document, DeFuse's AUC remains stable between 0.9998–0.9999 (Table 9).
    • Document length effect: As documents increase from 20 words to 2000 words, DeFuse's AUC remains at 0.9978–1.0000, but the FPR at a fixed 0.5 threshold rises from 0.064 to 1.000 (Table 10).
    • Cross-corpus generalization: Under 100-word truncation, the AUC on Hillary, Wikipedia, C4, and GovReport reaches 0.9996–1.0000 (Table 11); at native length, window accumulation causes the FPR on GovReport to rise to 83.9% (Table 12).
    • Unseen payload generalization: In 10-fold cross-validation, for natural-language variants of completely unseen components (v2), DeFuse reaches AUC 0.9767, with a recall of 88.0% at a calibrated 4.7% FPR (Table 13).
  5. What are some points that can be further explored?

    The authors point out limitations such as adaptive rewriting and long-session survival; the actual evaluation covers 7 base models and 9 production tools.

    Future research needs to focus on adversarial adaptive rewriting, survival persistence in multi-turn long conversations, and generalization validation across models and across tool environments.

    Limitations and future directions pointed out by the authors

    • Model scope limitation: The authors point out in Section 7 that the study evaluated only 7 models on a single real execution test environment; larger closed-source models and other tool suites remain untested, and broader generalization is an inference rather than a direct measurement.
    • Metric and tool dependence: The authors point out in Section 7 that the attack success rate is computed for specific models and tool suites; since the safety model executes almost entirely at the trigger turn, the effect itself is not a metric artifact, but the specific rates may not transfer directly outside the tested systems.
    • Application evaluation sample size: The authors point out in Section 7 that the production application tests use a single-baseline trial with n = 30 per system, which is feasibility evidence rather than a precise effect size, and a stronger or adaptive imperative baseline might narrow the gap.
    • Adversarial adaptive attacks: The authors point out in Section 7 that DeFuse mainly targets the surface grammatical form of conditional sentences, and has not yet been evaluated in adaptive adversarial scenarios where an attacker actively rewrites conditional sentence forms to evade detection; this is a core direction for strengthening defenses.
    • Multi-turn conversation length: The authors point out in Section 7 that the evaluation experiments are fixed at two-turn interactions, and whether the latent payload can survive longer conversations involving context eviction, summary compression, or topic drift remains to be explored in future work.

    Experimental coverage

    • Base models and environment: The experiments evaluated 7 instruction-tuned base models (4 open-source, 3 commercial API), and ran two-turn interactions in 4 AgentDojo application suites (banking, Slack, travel, workspace).
    • Production application samples: The end-to-end production evaluation covered 9 applications (8 code assistance tools and 1 voice assistant), with each application tested 30 times for injection in the GitHub repository README.md.
    • Defense baseline comparison: It evaluated 4 types of existing defense schemes (Prompt Guard 2, PIGuard, PIShield, Meta-SecAlign-70B), and conducted a retraining comparison based on the Llama-3.3-70B-Instruct backbone.
    • Unreported information: The paper does not report the decay curve of payload retention rate under longer interaction turns, nor does it test non-English trigger contexts.
  6. Summarize the main content of the paper

    The paper reveals that conditional triggers allow prompt injection to bypass defenses and execute tools when triggered, and proposes a lightweight detector that effectively prevents this during the ingestion phase.

    Aiming at the threat of indirect prompt injection faced by large language model agents, the paper studies explosive prompts that use conditional sentence forms to achieve temporal separation.

    • Core problem: Traditional indirect prompt injection executes immediately upon ingestion, easily triggering safety alignment and filtering rules; the paper investigates whether an attacker can make a malicious payload remain silently latent upon ingestion through conditional statements, and execute later when triggered by a subsequent benign interaction.
    • Method design: It formalizes the generation space of explosive prompts composed of a jailbreak prefix, conditional word, trigger word, and payload; and proposes DeFuse, a lightweight sliding-window detector based on FastText word vectors and a linear SVM, to locally scan untrusted text at ingestion time.
    • Base model evaluation: Paired experiments on 7 base models show that the real tool execution rate of the conditional phrasing is no lower than the imperative form on every model; on the more strongly aligned Grok-4.20, the execution rate rises from 0.0% for imperative injection to 34.2% (Table 1), and 99% of successful executions are concentrated at the second-turn trigger moment.
    • Production applications and defense bypass: On 9 production agents, the bypass rate of explosive prompts reaches 43–83%, while the imperative baseline is only 0–3% (Table 4); existing classifiers and the preference-aligned model (Meta-SecAlign-70B) cannot block tool calls at the trigger turn.
    • Defense effectiveness: After fine-tuning with data generated using explosive prompts, the residual ASR of existing classifiers drops by 76–78%; DeFuse compresses residual ASR to 3.0% at 5% FPR, with a single-document processing time of 1.16 ms (Table 5, Table 6).
    • Authors' conclusions and implications: The authors argue that explosive prompts expose a structural blind spot in existing defense systems that rely on the property of immediate conflict, suggesting that prompt injection defenses must move forward to the ingestion stage, and that detection and alignment mechanisms need to be deployed collaboratively in layers.

Related papers

Read originalarxiv.org