Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attacks
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
We introduce a new family of prompt injection attacks, termed Neural Exec. Unlike known attacks that rely on handcrafted strings (e.g., "Ignore previous instructions and..."), we show that it is possible to conceptualize the creation of execution triggers as a differentiable search problem and use learning-based methods to autonomously generate them. Our results demonstrate that a motivated adversary can forge triggers that are not only drastically more effective than current handcrafted ones but also exhibit inherent flexibility in shape, properties, and functionality. In this direction, we show that an attacker can design and generate Neural Execs capable of persisting through multi-stage preprocessing pipelines, such as in the case of Retrieval-Augmented Generation (RAG)-based applications. More critically, our findings show that attackers can produce triggers that deviate markedly in form and shape from any known attack, sidestepping existing blacklist-based detection and sanitation approaches.
Key facts. Cited by 85 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 15 of its 45 references that are in the map. First posted on arXiv 6 Mar 2024.
Builds on
15 of 45 references.
Closest ancestors · 2
Same direction, newest first
- 2023Prompt Injection attack against LLM-integrated Applications8 Jun
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb
Other references · 13
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Mistral 7Bcited by 3,164
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2023Are aligned neural networks adversarially aligned?cited by 315
- 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 249
- 2016Professor Forcing: A New Algorithm for Training Recurrent Networkscited by 216
1 more
Built on by
Citing papers per year: 2024: 18; 2025: 39; 2026: 28.
85 papers.
Sort:
By area:
- 2025Defeating Prompt Injections by Designcited by 297
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
- 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agentscited by 145
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
- 2024ContextCite: Attributing Model Generation to Contextcited by 98
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 95
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Surveycited by 83
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 81
- 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
- 2024Imprompter: Tricking LLM Agents into Improper Tool Usecited by 68
- 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agentscited by 66
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 65
38 more
- 2024LLMmap: Fingerprinting For Large Language Modelscited by 58
- 2025ACE: A Security Architecture for LLM-Integrated App Systemscited by 55
- 2025Multi-Agent Systems Execute Arbitrary Malicious Codecited by 53
- 2024Phantom: General Backdoor Attacks on Retrieval Augmented Language Generationcited by 49
- 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Modelscited by 42
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocationscited by 38
- 2025A Critical Evaluation of Defenses against Prompt Injection Attackscited by 36
- 2025RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injectioncited by 36
- 2025Defending Against Prompt Injection with DataFiltercited by 35
- 2025Defending Against Prompt Injection With a Few DefensiveTokenscited by 33
- 2025Security Concerns for Large Language Models: A Surveycited by 29
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 28
- 2025Real AI Agents with Fake Memories: Fatal Context Manipulation Attacks on Web3 Agentscited by 24
- 2024Enhancing Prompt Injection Attacks to LLMs via Poisoning Alignmentcited by 21
- 2024GASLITEing the Retrieval: Exploring Vulnerabilities in Dense Embedding-based Searchcited by 20
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 20
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Datacited by 18
- 2024PROMPTFUZZ: Harnessing Fuzzing Techniques for Robust Testing of Prompt Injection in LLMscited by 17
- 2025Fun-tuning: Characterizing the Vulnerability of Proprietary LLMs to Optimization-based Prompt Injection Attacks via the Fine-Tuning Interfacecited by 17
- 2025CPA-RAG:Covert Poisoning Attacks on Retrieval-Augmented Generation in Large Language Modelscited by 17
- 2025ceLLMate: Sandboxing Browser AI Agentscited by 16
- 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systemscited by 16
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomycited by 16
- 2024Hacking Back the AI-Hacker: Prompt Injection as a Defense Against LLM-driven Cyberattackscited by 15
- 2025Position: Adversarial ML for LLMs Is Not Making Any Progresscited by 15
- 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attackscited by 15
- 2026Aligning Provenance with Authorization: A Dual-Graph Defense for LLM Agentscited by 15
- 2025TracLLM: A Generic Framework for Attributing Long Context LLMscited by 13
- 2025How Not to Detect Prompt Injections with an LLMcited by 12
- 2025Building Safe GenAI Applications: An End-to-End Overview of Red Teaming for Large Language Modelscited by 11
- 2026PIArena: A Platform for Prompt Injection Evaluationcited by 11
- 2025GRADA: Graph-based Reranking against Adversarial Documents Attackcited by 10
- 2025SecInfer: Preventing Prompt Injection via Inference-time Scalingcited by 10
- 2025Attention is All You Need to Defend Against Indirect Prompt Injection Attacks in LLMscited by 10
- 2025Stronger Enforcement of Instruction Hierarchy via Augmented Intermediate Representationscited by 9
- 2025Fingerprinting LLMs via Prompt Injectioncited by 8
- 2025Gandalf the Red: Adaptive Security for LLMscited by 7
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruptioncited by 7
50 most cited of 85 All 85 (JSON)
- 2026Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injection4 Oct 2026
- 2026Origin Is All You Need: Provenance-Aware Transformers for Structural Trust-Boundary Separation17 Sep 2026
- 2026Detecting and Localizing Segment-Level Poisoning in Multi-Source LLM-Agent Inputs13 Sep 2026
- 2026LongPIBench: A Long-Context Benchmark for Prompt Injection28 Aug 2026
- 2026Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generation25 Aug 2026
- 2026Beyond Over-Refusal: Defending Indirect Prompt Injection via Latent Instruction Manifolds23 Aug 2026
- 2026Beyond Handcrafted Security: Towards Self-Evolving Defense for LLM Agents13 Aug 2026
- 2026HijackKV: New Threat in Position-Independent KV Cache Reuse22 Jul 2026
- 2026Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems16 Jul 2026
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis14 Jul 2026
- 2026Red-Teaming the Agentic Red-Team23 Jun 2026
- 2026AutoDojo: Adaptive Black-Box Attacks Reveal the Limits of IPI Defenses and Task-Specification Effects in LLM Agents13 Jun 2026
38 more
- 2026Assessing Automated Prompt Injection Attacks in Agentic Environments9 Jun 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
- 2026Aligning Provenance with Authorization: A Dual-Graph Defense for LLM Agents26 May 2026
- 2026A Cross-Modal Prompt Injection Attack against Large Vision-Language Models with Image-Only Perturbation15 May 2026
- 2026Proteus: A Self-Evolving Red Team for Agent Skill Ecosystems12 May 2026
- 2026Rewriting the Response Path: Silent Tampering and Provider-Signed Defense in BYOK LLM Agents4 May 2026
- 2026FlashRT: Towards Computationally and Memory Efficient Red-Teaming for Prompt Injection and Knowledge Corruption30 Apr 2026
- 2026Evaluation of Prompt Injection Defenses in Large Language Models26 Apr 2026
- 2026Hijacking Large Audio-Language Models via Context-Agnostic and Imperceptible Auditory Prompt Injection16 Apr 2026
- 2026PIArena: A Platform for Prompt Injection Evaluation9 Apr 2026
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomy24 Mar 2026
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocations11 Mar 2026
- 2026Extended to Reality: Prompt Injection in 3D Environments6 Feb 2026
- 2026RedVisor: Reasoning-Aware Prompt Injection Defense via Zero-Copy KV Cache Reuse2 Feb 2026
- 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systems11 Jan 2026
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systems7 Jan 2026
- 2025ceLLMate: Sandboxing Browser AI Agents14 Dec 2025
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data10 Dec 2025
- 2025Attention is All You Need to Defend Against Indirect Prompt Injection Attacks in LLMs9 Dec 2025
- 2025MURMUR: Using cross-user chatter to break collaborative language agents in groups21 Nov 2025
- 2025Defending Against Prompt Injection with DataFilter22 Oct 2025
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses17 Oct 2025
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features15 Oct 2025
- 2025PromptLocate: Localizing Prompt Injection Attacks14 Oct 2025
- 2025RAG-Pull: Turning Retrieval into a Code-Injection Channel via Invisible Unicode Perturbations13 Oct 2025
- 2025CoBia: Constructed Conversations Can Trigger Otherwise Concealed Societal Biases in LLMs10 Oct 2025
- 2025RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injection6 Oct 2025
- 2025Fingerprinting LLMs via Prompt Injection29 Sep 2025
- 2025SecInfer: Preventing Prompt Injection via Inference-time Scaling29 Sep 2025
- 2025Explaining Fine Tuned LLMs via Counterfactuals A Knowledge Graph Driven Framework25 Sep 2025
- 2025ImportSnare: Directed "Code Manual" Hijacking in Retrieval-Augmented Code Generation9 Sep 2025
- 2025Transferable Direct Prompt Injection via Activation-Guided MCMC Sampling9 Sep 2025
- 2025UniC-RAG: Universal Knowledge Corruption Attacks to Retrieval-Augmented Generation26 Aug 2025
- 2025Prompt Injection Vulnerability of Consensus Generating Applications in Digital Democracy6 Aug 2025
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruption5 Aug 2025
- 2025Defending Against Prompt Injection With a Few DefensiveTokens10 Jul 2025
- 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attacks10 Jul 2025
- 2025How Not to Detect Prompt Injections with an LLM8 Jul 2025
50 newest of 85 All 85 (JSON)
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 95
- 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Modelscited by 42
- 2025A Critical Evaluation of Defenses against Prompt Injection Attackscited by 36
- 2025Defending Against Prompt Injection with DataFiltercited by 35
- 2025Defending Against Prompt Injection With a Few DefensiveTokenscited by 33
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 28
- 2025Real AI Agents with Fake Memories: Fatal Context Manipulation Attacks on Web3 Agentscited by 24
- 2024Enhancing Prompt Injection Attacks to LLMs via Poisoning Alignmentcited by 21
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 20
- 2024PROMPTFUZZ: Harnessing Fuzzing Techniques for Robust Testing of Prompt Injection in LLMscited by 17
- 2025Fun-tuning: Characterizing the Vulnerability of Proprietary LLMs to Optimization-based Prompt Injection Attacks via the Fine-Tuning Interfacecited by 17
12 most cited of 33 All 33 (JSON)
- 2026Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injection4 Oct 2026
- 2026Origin Is All You Need: Provenance-Aware Transformers for Structural Trust-Boundary Separation17 Sep 2026
- 2026LongPIBench: A Long-Context Benchmark for Prompt Injection28 Aug 2026
- 2026Beyond Over-Refusal: Defending Indirect Prompt Injection via Latent Instruction Manifolds23 Aug 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
- 2026Evaluation of Prompt Injection Defenses in Large Language Models26 Apr 2026
- 2026Hijacking Large Audio-Language Models via Context-Agnostic and Imperceptible Auditory Prompt Injection16 Apr 2026
- 2026PIArena: A Platform for Prompt Injection Evaluation9 Apr 2026
- 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systems11 Jan 2026
- 2025ceLLMate: Sandboxing Browser AI Agents14 Dec 2025
- 2025Defending Against Prompt Injection with DataFilter22 Oct 2025
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses17 Oct 2025
12 newest of 33 All 33 (JSON)
- 2025Defeating Prompt Injections by Designcited by 297
- 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agentscited by 145
- 2024Imprompter: Tricking LLM Agents into Improper Tool Usecited by 68
- 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agentscited by 66
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 65
- 2025Multi-Agent Systems Execute Arbitrary Malicious Codecited by 53
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocationscited by 38
- 2025RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injectioncited by 36
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Datacited by 18
- 2026Aligning Provenance with Authorization: A Dual-Graph Defense for LLM Agentscited by 15
- 2025Attention is All You Need to Defend Against Indirect Prompt Injection Attacks in LLMscited by 10
- 2026Assessing Automated Prompt Injection Attacks in Agentic Environmentscited by 7
12 most cited of 23 All 23 (JSON)
- 2026Detecting and Localizing Segment-Level Poisoning in Multi-Source LLM-Agent Inputs13 Sep 2026
- 2026Beyond Handcrafted Security: Towards Self-Evolving Defense for LLM Agents13 Aug 2026
- 2026Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems16 Jul 2026
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis14 Jul 2026
- 2026Red-Teaming the Agentic Red-Team23 Jun 2026
- 2026AutoDojo: Adaptive Black-Box Attacks Reveal the Limits of IPI Defenses and Task-Specification Effects in LLM Agents13 Jun 2026
- 2026Assessing Automated Prompt Injection Attacks in Agentic Environments9 Jun 2026
- 2026Aligning Provenance with Authorization: A Dual-Graph Defense for LLM Agents26 May 2026
- 2026Proteus: A Self-Evolving Red Team for Agent Skill Ecosystems12 May 2026
- 2026Rewriting the Response Path: Silent Tampering and Provider-Signed Defense in BYOK LLM Agents4 May 2026
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocations11 Mar 2026
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data10 Dec 2025
12 newest of 23 All 23 (JSON)
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Surveycited by 83
- 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
- 2024Phantom: General Backdoor Attacks on Retrieval Augmented Language Generationcited by 49
- 2024GASLITEing the Retrieval: Exploring Vulnerabilities in Dense Embedding-based Searchcited by 20
- 2025CPA-RAG:Covert Poisoning Attacks on Retrieval-Augmented Generation in Large Language Modelscited by 17
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomycited by 16
- 2025GRADA: Graph-based Reranking against Adversarial Documents Attackcited by 10
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruptioncited by 7
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systemscited by 7
- 2025ImportSnare: Directed "Code Manual" Hijacking in Retrieval-Augmented Code Generationcited by 5
- 2025RAG-Pull: Turning Retrieval into a Code-Injection Channel via Invisible Unicode Perturbationscited by 4
- 2025UniC-RAG: Universal Knowledge Corruption Attacks to Retrieval-Augmented Generationcited by 3
12 most cited of 14 All 14 (JSON)
- 2026Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generation25 Aug 2026
- 2026FlashRT: Towards Computationally and Memory Efficient Red-Teaming for Prompt Injection and Knowledge Corruption30 Apr 2026
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomy24 Mar 2026
- 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systems7 Jan 2026
- 2025RAG-Pull: Turning Retrieval into a Code-Injection Channel via Invisible Unicode Perturbations13 Oct 2025
- 2025ImportSnare: Directed "Code Manual" Hijacking in Retrieval-Augmented Code Generation9 Sep 2025
- 2025UniC-RAG: Universal Knowledge Corruption Attacks to Retrieval-Augmented Generation26 Aug 2025
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruption5 Aug 2025
- 2025CPA-RAG:Covert Poisoning Attacks on Retrieval-Augmented Generation in Large Language Models26 May 2025
- 2025GRADA: Graph-based Reranking against Adversarial Documents Attack12 May 2025
- 2024GASLITEing the Retrieval: Exploring Vulnerabilities in Dense Embedding-based Search30 Dec 2024
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Survey16 Sep 2024
12 newest of 14 All 14 (JSON)
- 2026HijackKV: New Threat in Position-Independent KV Cache Reuse22 Jul 2026
- 2024ContextCite: Attributing Model Generation to Contextcited by 98
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 81
- 2024LLMmap: Fingerprinting For Large Language Modelscited by 58
- 2025ACE: A Security Architecture for LLM-Integrated App Systemscited by 55
- 2025Security Concerns for Large Language Models: A Surveycited by 29
- 2025Position: Adversarial ML for LLMs Is Not Making Any Progresscited by 15
- 2025TracLLM: A Generic Framework for Attributing Long Context LLMscited by 13
- 2025Gandalf the Red: Adaptive Security for LLMscited by 7
- 2025Explaining Fine Tuned LLMs via Counterfactuals A Knowledge Graph Driven Frameworkcited by 0
- 2025Explaining Fine Tuned LLMs via Counterfactuals A Knowledge Graph Driven Framework25 Sep 2025
- 2025TracLLM: A Generic Framework for Attributing Long Context LLMs4 Jun 2025
- 2025Security Concerns for Large Language Models: A Survey24 May 2025
- 2025ACE: A Security Architecture for LLM-Integrated App Systems29 Apr 2025
- 2025Position: Adversarial ML for LLMs Is Not Making Any Progress4 Feb 2025
- 2025Gandalf the Red: Adaptive Security for LLMs14 Jan 2025
- 2024ContextCite: Attributing Model Generation to Context1 Sep 2024
- 2024LLMmap: Fingerprinting For Large Language Models22 Jul 2024
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?11 Mar 2024
Similar, not cited
Close in wording, no citation either way
- 2022Neural Architectural Backdoors
- 2025Defending against Indirect Prompt Injection by Instruction Detection
- 2025Exploiting Web Search Tools of AI Agents for Data Exfiltration
- 2026Bypassing Prompt Injection Detectors through Evasive Injections
- 2025Cybersecurity AI: Hacking the AI Hackers via Prompt Injection
- 2026Defense Against Indirect Prompt Injection via Tool Result Parsing
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attacks
- 2025Securing AI Agents Against Prompt Injection Attacks