语义保持提示劫持:针对自动提示优化的黑盒对抗攻击
Semantic-Preserving Prompt Hijacking: A Black-Box Adversarial Attack on Auto-Prompt Optimization
AI总结:
提出一种黑盒条件下的自适应贪婪局部搜索方法,通过层次化分解输入文本、掩码关键语言单元并动态调整候选词,在保持语义相似度的同时最大化模型输出与原始意图的偏差,在2400+测试用例中取得更高攻击成功率。
摘要:
LLM 越来越多地集成自动建议优化模块,使其能够在生成最终响应之前重写和显示用户输入。虽然这种设计旨在增强透明度和信任,但其从多个候选解中自主选择单个最佳结果的过程,允许攻击者通过诱导细微、不可察觉的语义偏移来劫持这一优化过程。为此,我们提出一种基于黑盒条件的语义保持劫持攻击方法:自适应贪婪局部搜索。该方法层次化地分解输入文本,掩码关键语言单元,并在预定义的语义检查点动态调整候选替换词。这最大化模型输出与原始意图的偏差,同时严格保持与原始文本的语义相似性。在商业和开源 LLM 上的实验结果表明,在相同语义相似性约束下,该方法在超过 2400 个测试用例中实现了比现有攻击方法更高的攻击成功率。代码可在以下网址获取:this https URL
英文摘要:
LLMs increasingly integrate auto-suggestion optimization modules, enabling them to rewrite and display user input before generating the final response. While this design aims to enhance transparency and trust, its process of autonomously selecting a single best result from multiple candidate solutions allows attackers to hijack this optimization process by inducing subtle, imperceptible semantic shifts. To address this, we propose a semantic preservation hijacking attack method based on black-box conditions: Adaptive Greedy Local Search. This method hierarchically decomposes the input text, masks key language units, and dynamically adjusts candidate replacement words at predefined semantic checkpoints. This maximizes the deviation between the model output and the original intent while strictly maintaining semantic similarity to the original text. Experimental results on commercial and open-source LLMs demonstrate that, under the same semantic similarity constraints, this method achieves a higher attack success rate than existing attack methods in over 2400 test cases. Code is available at: https://github.com/franz-chang/DOBS
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。