arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.21233cs.AI
收藏

Just Ask: 好奇的代码代理揭示前沿大语言模型中的系统提示

Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMs

Xiang Zheng, Yutao Wu, Hanxun Huang, Yige Li, Xingjun Ma, Bo Li, Yu-Gang Jiang, Cong Wang

AI总结:

提出JustAsk框架,利用代码代理的自主交互能力,通过在线探索策略自动提取大语言模型的隐藏系统提示,揭示了系统提示作为新兴安全漏洞。

摘要:

基于大语言模型的自主代码代理通过工具使用、长程推理和自导向交互正在重塑软件和AI开发。然而,这种自主性引入了一种以前未被认识到的安全风险:代理交互从根本上扩展了LLM攻击面,使得能够系统地探测和恢复指导模型行为的隐藏系统提示。我们将系统提示提取识别为代码代理固有的新兴漏洞,并提出了\textbf{\textsc{JustAsk}},一个自进化框架,仅通过交互自主发现有效的提取策略。与之前的提示工程或基于数据集的攻击不同,\textsc{JustAsk}不需要手工制作的提示、标记监督或超出标准用户交互的特权访问。它将提取形式化为一个在线探索问题,使用基于上置信界的策略选择和跨原子探测与高层编排的分层技能空间。这些技能利用了不完善的系统指令泛化以及有用性与安全性之间的固有张力。在来自多个提供商的\textbf{41}个黑盒商业模型上评估,\textsc{JustAsk}始终实现完全或接近完全的系统提示恢复,揭示了反复出现的设计和架构级漏洞。我们的结果暴露了系统提示作为现代代理系统中一个关键但基本上未受保护的攻击面。

英文摘要:

Autonomous code agents built on large language models are reshaping software and AI development through tool use, long-horizon reasoning, and self-directed interaction. However, this autonomy introduces a previously unrecognized security risk: agentic interaction fundamentally expands the LLM attack surface, enabling systematic probing and recovery of hidden system prompts that guide model behavior. We identify system prompt extraction as an emergent vulnerability intrinsic to code agents and present \textbf{\textsc{JustAsk}}, a self-evolving framework that autonomously discovers effective extraction strategies through interaction alone. Unlike prior prompt-engineering or dataset-based attacks, \textsc{JustAsk} requires no handcrafted prompts, labeled supervision, or privileged access beyond standard user interaction. It formulates extraction as an online exploration problem, using Upper Confidence Bound-based strategy selection and a hierarchical skill space spanning atomic probes and high-level orchestration. These skills exploit imperfect system-instruction generalization and inherent tensions between helpfulness and safety. Evaluated on \textbf{41} black-box commercial models across multiple providers, \textsc{JustAsk} consistently achieves full or near-complete system prompt recovery, revealing recurring design- and architecture-level vulnerabilities. Our results expose system prompts as a critical yet largely unprotected attack surface in modern agent systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑