针对编码攻击的大语言模型系统指令提取评估与加固 Evaluation and Hardening of LLM System Instructions Against Extraction via Encoding Attacks 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-04-01
👁️ 预览文献
💡 AI 中文简介
大语言模型系统指令常包含API密钥、内部策略等敏感信息,但现有防护仅靠拒绝直接请求。本研究构建自动化评估框架,将提取请求伪装成编码或结构化输出任务,测试7个模型和46条系统指令。结果发现,模型虽拒绝直接提取,却会在序列化格式中泄露内容,攻击成功率超0.7。研究进一步提出用思维链模型一次性重塑指令的缓解策略,无需重训练即可显著降低攻击成功率。
领域人工智能安全 / 大语言模型安全
适合谁读需要一定专业背景(了解LLM应用与安全基础)
核心贡献1. 提出自动化评估框架,揭示将提取请求伪装为编码/结构化任务可绕过拒绝机制;2. 提出基于思维链模型的一次性指令重塑加固策略,无需重训练即可显著降低攻击成功率。
关键数据在7个模型和46条系统指令上,结构化序列化攻击成功率超过0.7;指令重塑后攻击成功率显著下降。
推荐理由如果你关心大模型应用安全,这篇论文用简单实验揭示了系统指令泄露的隐蔽风险,并给出低成本加固方案,值得一读。
关键词["大语言模型安全", "系统指令提取", "编码攻击", "提示注入", "指令加固", "OWASP LLM Top 10"]

原文摘要

查看英文原文摘要

System Instructions in Large Language Models (LLMs) are commonly used to enforce safety policies, define agent behavior, and protect sensitive operational context in agentic AI applications. These instructions may contain sensitive information such as API credentials, internal policies, and privileged workflow definitions, making system instruction leakage a critical security risk highlighted in the OWASP Top 10 for LLM Applications. Without incurring the overhead costs of reasoning models, many LLM applications rely on refusal-based instructions that block direct requests for system instructions, implicitly assuming that prohibited information can only be extracted through explicit queries. We introduce an automated evaluation framework that tests whether system instructions remain confidential when extraction requests are re-framed as encoding or structured output tasks. Across seven common models and 46 verified system instructions, we observe high attack success rates (>0.7) for structured serialization where models refuse direct extraction requests but disclose protected content in the requested serialization formats. We further demonstrate a mitigation strategy based on one-shot instruction reshaping using a Chain-of-Thought reasoning model, indicating that even subtle changes in wording and structure of system instructions can significantly reduce attack success rate without requiring model retraining.