paper-with-me

홈 › Papers

Automatic and Universal Prompt Injection Attacks against Large Language Models

2024-03-07 · Xiaogeng Liu, Zhiyuan Yu, Yizhe Zhang, Ning Zhang, Chaowei Xiao

Large Language Models (LLMs) excel in processing and generating human language, powered by their ability to interpret and follow instructions. However, their capabilities can be exploited through prompt injection attacks. These attacks manipulate LLM-integrated applications into producing responses aligned with the attacker's injected content, deviating from the user's actual requests. The substantial risks posed by these attacks underscore the need for a thorough understanding of the threats. Yet, research in this area faces challenges due to the lack of a unified goal for such attacks and their reliance on manually crafted prompts, complicating comprehensive assessments of prompt injection robustness. We introduce a unified framework for understanding the objectives of prompt injection attacks and present an automated gradient-based method for generating highly effective and universal prompt injection data, even in the face of defensive measures. With only five training samples (0.3% relative to the test data), our attack can achieve superior performance compared with baselines. Our findings emphasize the importance of gradient-based testing, which can avoid overestimation of robustness, especially for defense mechanisms.

📄 PDF Abstract BibTeX arXiv:2403.04957

Code (1)

sheltonliu-n/universal-prompt-injection 공식 구현 pytorch

Similar Papers 제목 키워드 기반

RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injection

2025-10-06 · Yuxin Wen, Arman Zharmagambetov, Ivan Evtimov, Narine Kokhlikyan 외 arxiv

Prompt injection poses a serious threat to the reliability and safety of LLM agents. Recent defenses against prompt injection, such as Instruction Hierarchy and SecAlign, have shown notable robustness against static atta…

Reinforcement Learning

Maatphor: Automated Variant Analysis for Prompt Injection Attacks

2023-12-12 · Ahmed Salem, Andrew Paverd, Boris Köpf

Prompt injection has emerged as a serious security threat to large language models (LLMs). At present, the current best-practice for defending against newly-discovered prompt injection techniques is to add additional gua…

Bypassing Prompt Injection Detectors through Evasive Injections

2026-01-31 · Md Jahedur Rahman, Ihsen Alouani arxiv

Large language models (LLMs) are increasingly used in interactive and retrieval-augmented systems, but they remain vulnerable to prompt injection attacks, where injected secondary prompts force the model to deviate from …

Assessing Automated Prompt Injection Attacks in Agentic Environments

2026-06-09 · David Hofer, Edoardo Debenedetti, Florian Tramèr arxiv

Indirect prompt injection poses a critical threat to LLM agents that interact with untrusted external data, yet automated attack methods--proven effective for jailbreaking--remain underexplored in realistic agentic setti…

MUZZLE: Adaptive Agentic Red-Teaming of Web Agents Against Indirect Prompt Injection Attacks

2026-02-09 · Georgios Syros, Evan Rose, Brian Grinstead, Christoph Kerschbaumer 외 arxiv

Large language model (LLM) based web agents are increasingly deployed to automate complex online tasks by directly interacting with web sites and performing actions on users' behalf. While these agents offer powerful cap…