跳到正文
arXiv cs.AI· Tushar Nayan, Pratik Poudel, Qian Lou, Yuede Ji, Jason Liu, Ruimin Sun·· 13 小时前AI 评分34

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

Detecting and Mitigating Query-Based System Prompt Leakage Attacks

AI 导读

AdvGuard 是一个模型无关的框架,用于检测和缓解 LLM 系统提示词泄露攻击,通过有界语义交互图建模跨查询关系并用 GCN 分类。在混合查询评测中,其召回率比最强基线最高提升 36%,误报率不超过 3.4%;多轮负载下达到 97.23%-99.1% F1 和 100% 召回。集成到 PLeak 与 LeakAgent 攻击循环后,精确匹配泄露被限制在 0.00-0.01。

正文 · 原文

View PDF HTML (experimental)

Abstract: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.
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.36295 [cs.CR]
  (or arXiv:2610.36295v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2610.36295

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Tushar Nayan [view email]
[v1] Mon, 26 Oct 2026 21:23:10 UTC (740 KB)

来源:arXiv cs.AI · arxiv.org