网页级防护工具可有效防止模型提取联系方式类隐私信息。
PIIGuard: Mitigating PII Harvesting under Adversarial Sanitization

- 在网页中嵌入优化的隐藏代码片段,引导模型避开直接披露隐私信息。
- 在三种目标模型上防御成功率超97%,部分场景达100%。
- 适合网站所有者部署,兼顾正常问答功能与隐私保护。
支持浏览的LLM助手可抓取网页并回答联系方式查询,形成从公开页面窃取联系类个人身份信息(PII)的实际渠道。以往多数防御措施部署于模型、服务或代理层,普通网页所有者缺乏可操作选项。本文提出PIIGuard,一种网页级防御机制,将间接提示注入反向利用为保护手段:网页所有者嵌入经优化的隐藏HTML片段,引导模型避免原文或可重构方式披露联系类PII。PIIGuard通过规则漏出评分、进化变异和最终裁判式可恢复性评估,搜索最优片段文本与插入位置。在三款目标模型(GPT-5.4-nano、Claude-haiku-4.5、DeepSeek-chat(latest v3.2))的直接HTML评测中,无论是规则还是裁判评估,防御成功率均不低于97.0%,常达100.0%,同时保持同页良性问答可用性。进一步测试两种更复杂场景:公开URL浏览与攻击方侧LLM对抓取网页的净化。结果表明,网页端防御片段在部分模型-界面组合下仍有效,但鲁棒性随浏览接口与净化提示差异显著变化。总体而言,PIIGuard证明网页所有者可通过网页端片段实现针对基于网页的PII泄露的实用缓解。
原文摘要 · Abstract (English)
Browsing-enabled LLM assistants can fetch webpages and answer contact-seeking queries, creating a practical channel for scraping contact-style personally identifiable information (PII) from public pages. Many prior defenses are deployed at the model, service, or agent layer rather than at the webpage itself, leaving ordinary page owners with limited deployable options. We present PIIGuard, a webpage-level defense that repurposes indirect prompt injection as a protective mechanism: the page owner embeds optimized hidden HTML fragments that steer the model away from verbatim or reconstructible disclosure of contact PII. PIIGuard searches over fragment text and insertion position using rule-based leakage scoring, evolutionary mutation, and final judge-based recoverability assessment. In direct-HTML evaluation on three target models (GPT-5.4-nano, Claude-haiku-4.5, and DeepSeek-chat(latest v3.2)), PIIGuard achieves at least 97.0% defense success rate under both rule-based and judge-based leakage evaluation, often reaching 100.0%, while preserving benign same-page QA utility. We further evaluate two harder settings: public-URL browsing and attacker-side LLM sanitization of fetched webpage. These results show that page-side defensive fragments can remain effective in deployment for some model-position pairs, but robustness varies substantially across browsing interfaces and sanitizer prompts. Overall, PIIGuard demonstrates that page owners can use page-side fragments as a practical mitigation for web-grounded PII leakage.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。