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

检测与缓解基于查询的系统提示泄露攻击

Detecting and Mitigating Query-Based System Prompt Leakage Attacks

Florida International University(佛罗里达国际大学);University of Central Florida(中佛罗里达大学);University of Texas at Arlington(德克萨斯大学阿灵顿分校)

Tushar Nayan, Pratik Poudel, Qian Lou, Yuede Ji, Jason Liu, Ruimin Sun

AI总结:

本文提出AdvGuard框架,通过语义交互图与GCN分类检测并缓解基于查询的系统提示泄露攻击,在多场景评估中表现出高检测性能,可有效减少提示泄露。

摘要:

大型语言模型(LLMs)依赖专有系统提示来执行任务指令、安全策略和访问控制,这些提示易受基于查询的泄露攻击,黑盒攻击者可通过自适应多轮交互提取机密指令。现有防御措施常独立评估查询,忽略交互中出现的恶意行为。本文提出AdvGuard,一种与模型无关的系统提示泄露检测与缓解框架。AdvGuard使用有界语义交互图建模跨查询关系,通过统计过滤候选组件,并将其转换为线图供图卷积网络(GCN)分类,该方法可捕捉查询相似性中的多跳模式,以区分协同提取与良性工作流。轻量级提示级检测器可在积累足够交互历史前提供保护,且该框架支持黑盒LLM部署。在混合查询评估中,AdvGuard较最强基准的召回率提升最高达36%,同时保持至多3.4%的误报率;在多轮工作负载中,其F1值达97.23%-99.1%,召回率为100%;留一攻击族测试的平均召回率达99.98%,平均F1达99.99%,未观察到误报。集成至自适应PLeak和LeakAgent攻击循环后,AdvGuard使评估的受害模型的精确匹配泄露限制为0.00-0.01,子串匹配泄露限制为0.01-0.09。这些结果表明,该框架可稳健检测未见过的攻击族,并大幅减少提示重构。

英文摘要:

Large Language Models (LLMs) rely on proprietary system prompts to enforce task directives, safety policies, and access controls. These prompts are vulnerable to query-based leakage attacks, where black-box adversaries extract confidential instructions through adaptive, multi-turn interactions. Existing defenses often assess queries independently, missing malicious behavior that emerges across interactions. We present AdvGuard, a model-agnostic framework for detecting and mitigating system prompt leakage. AdvGuard models cross-query relationships using a bounded semantic interaction graph, statistically filters candidate components, and converts them into line graphs for graph convolutional network (GCN) classification. This approach captures multi-hop patterns in query similarity that distinguish coordinated extraction from benign workflows. A lightweight prompt-level detector provides protection before sufficient interaction history accumulates, and the framework supports black-box LLM deployments. In mixed-query evaluations, AdvGuard improves recall by up to 36% over the strongest baseline while maintaining a false positive rate of at most 3.4%. In multi-turn workloads, it achieves 97.23%-99.1% F1 with 100% recall. Leave-one-attack-family-out tests yield 99.98% mean recall and 99.99% mean F1, with no observed false positives. Integrated into the adaptive PLeak and LeakAgent attack loops, AdvGuard limits exact-match leakage to 0.00-0.01 and substring-match leakage to 0.01-0.09 across evaluated victim models. These results demonstrate robust detection of unseen attack families and substantially reduced prompt reconstruction.

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

↑