Universal and Context-Independent Triggers for Precise Control of LLM Outputs
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Large language models (LLMs) have been widely adopted in applications such as automated content generation and even critical decision-making systems. However, the risk of prompt injection allows for potential manipulation of LLM outputs. While numerous attack methods have been documented, achieving full control over these outputs remains challenging, often requiring experienced attackers to make multiple attempts and depending heavily on the prompt context. Recent advancements in gradient-based white-box attack techniques have shown promise in tasks like jailbreaks and system prompt leaks. Our research generalizes gradient-based attacks to find a trigger that is (1) Universal: effective irrespective of the target output; (2) Context-Independent: robust across diverse prompt contexts; and (3) Precise Output: capable of manipulating LLM inputs to yield any specified output with high accuracy. We propose a novel method to efficiently discover such triggers and assess the effectiveness of the proposed attack. Furthermore, we discuss the substantial threats posed by such attacks to LLM-based applications, highlighting the potential for adversaries to taking over the decisions and actions made by AI agents.
Key facts. Cited by 4 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. First posted on arXiv 22 Nov 2024.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 1.
4 papers.
- 2024Evaluating Language Models as Synthetic Data Generatorscited by 33
- 2025Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instructioncited by 16
- 2025DOGe: Defensive Output Generation for LLM Protection Against Knowledge Distillationcited by 14
- 2026Know Your Agent: Reconnaissance-Driven Pentesting of AI Agentscited by 0
- 2026Know Your Agent: Reconnaissance-Driven Pentesting of AI Agents22 Jul 2026
- 2025DOGe: Defensive Output Generation for LLM Protection Against Knowledge Distillation26 May 2025
- 2025Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction29 Apr 2025
- 2024Evaluating Language Models as Synthetic Data Generators4 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Models
- 2026Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attacks
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey
- 2025Breaking to Build: A Threat Model of Prompt-Based Attacks for Securing LLMs
- 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection
- 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models
- 2026Analysis of LLMs Against Prompt Injection and Jailbreak Attacks
- 2025Attack and defense techniques in large language models: A survey and new perspectives