Skip to content

Automated universal prompt injection attacks against large language modelsAutomatic and Universal Prompt Injection Attacks against Large Language Models

arXiv· arXiv:2403.04957· Xiaogeng Liu, Zhiyuan Yu, Yizhe Zhang, Ning Zhang, Chaowei Xiao·Indexed by this site · 27 days ago· Originally publishedAttacks
AI summary

The researchers propose an automated universal prompt injection attack method against large language models, and provide a unified framework to characterize the goals of such attacks. The method automatically generates prompt injection data based on gradients, requires no manual construction, and remains effective in the presence of defenses; trained with only five training samples (about 0.3% of the test data), its attack effectiveness surpasses baseline methods. The authors point out that evaluations relying on manually constructed prompts tend to overestimate the robustness of models and defense mechanisms, and that gradient-based testing can more realistically reflect prompt injection risk.

Related events and news

1 events · 1 news mentions

News that mentions this paper

LLM 应用提示注入的防御思路

  • Kenodocites the paper's id or link
    提示注入:如何真正保护 LLM 应用免受其害
    not a theoretical worry: researchers behind an automatic and universal prompt injection attack method demonstrated that adversarial instructions can be generated systematically, without hand-crafting
Read originalarxiv.org