强化多态提示组装:针对新兴提示注入攻击的动态分隔符生成
Strengthening Polymorphic Prompt Assembling: Dynamic Separator Generation Against Emerging Prompt Injection Attacks
AI总结:
提出动态每请求分隔符生成方法,利用基于时间戳、会话标识和加密随机数的域分离SHA-256摘要,将攻击成功率从0.88降至0.38,并消除静态分隔符泄露风险。
摘要:
多态提示组装(PPA)通过从固定池中随机选择分隔符对来隔离用户输入与系统指令,从而防御LLM代理免受提示注入攻击。尽管有效,静态池复用暴露了爆炸半径漏洞:一旦分隔符泄露,可在未来请求中被利用。我们提出了一种动态每请求分隔符生成方法,使用基于时间戳、会话标识和加密随机数的域分离SHA-256摘要。每个组装的提示获得唯一的(BEGIN, END)金丝雀对,从而将泄露暴露限制在单个请求内。我们在Llama-3.3-70B-Instruct-Turbo上针对16种注入载荷评估了我们的扩展,并在DeepSeek-V4-Flash模型上进行了跨模型验证。针对M1混淆载荷(leetspeak + 紧迫性),动态模式将攻击成功率(ASR)从0.88降至0.38,实现了统计上显著的2.3倍缓解,通过非重叠的95% Wilson置信区间验证。针对format_breakout_salad,静态分隔符泄露(泄露率=0.467)在动态模式下完全消除(0.000),证实了实际中爆炸半径的减小。该实现无需模型微调,每次请求增加2.7微秒的提示组装开销,并且与现有PPA SDK向后兼容。
英文摘要:
Polymorphic Prompt Assembling (PPA) defends LLM agents against prompt injections by randomly selecting separator pairs from a fixed pool to isolate user input from system instructions. Although effective, static pool reuse exposes a blast-radius vulnerability: once a separator leaks, it can be exploited in future requests. We propose a dynamic per-request separator generation using domain-separated SHA-256 digests keyed on the timestamp, session identifier, and cryptographic nonce. Each assembled prompt receives a unique (BEGIN, END) canary pair, thereby limiting leakage exposure to a single request. We evaluated our extension against 16 injection payloads on Llama-3.3-70B-Instruct-Turbo, with cross-model validation on DeepSeek-V4-Flash model. Against the M1 obfuscation payload (leetspeak + urgency), the dynamic mode reduces the Attack Success Rate (ASR) from 0.88 to 0.38, yielding a statistically significant 2.3 x mitigation verified by non-overlapping 95% Wilson confidence intervals. Against format_breakout_salad, static separator leakage (leak_rate = 0.467) is eliminated entirely in the dynamic mode (0.000), confirming the blast-radius reduction in practice. The implementation requires no model fine-tuning, adds 2.7 microseconds prompt-assembly overhead per request, and is backward compatible with the existing PPA SDK.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。