arXiv:2605.13706cs.CRcs.AI2026-05

用独特令牌检测哪些爬虫在给大模型提供数据

Identifying AI Web Scrapers Using Canary Tokens

论文配图:Identifying AI Web Scrapers Using Canary Tokens
图 1 · 摘自论文原文
  • 为每个访问者生成唯一令牌,追踪数据来源
  • 22个主流大模型中成功识别出未知爬虫
  • 适合关注数据安全与爬虫控制的网站方

从预训练到查询时增强,网络爬取数据有助于提升大语言模型(LLMs)生成内容的质量和语境相关性。然而,大规模网络爬取可能影响网站稳定性,并引发法律、隐私或伦理问题。若网站所有者希望限制其站点上的LLM相关爬取行为,可借助机器人排除协议等访问控制机制。但这些机制的有效性依赖于准确识别目标爬虫(如通过User-Agent字符串)。现有识别方法依赖企业自愿披露、研究人员单次实验或众包报告,均不可靠且难以扩展。本文提出一种新方法,可精确自动推断与LLM相关的爬虫。我们在动态网站上为每个访问爬虫分配唯一蜜罐令牌,随后向LLMs提问关于我们站点的信息。若某LLM持续生成包含特定爬虫唯一令牌的内容,则表明该模型暴露于该爬虫的数据。在22个生产级LLM系统上的实验表明,该方法能可靠识别出喂养各模型的爬虫,包括多个未公开或未被公司披露的爬虫。该方法为非特权第三方提供了推断哪些爬虫为哪些LLM供源的可行路径,有望实现对不当爬取更好的控制。

原文摘要 · Abstract (English)

From pre-training to query-time augmentation, web-scraped data helps to improve the quality and contextual relevancy of content generated by large language models (LLMs). However, large-scale web scraping to feed LLMs can affect site stability and raise legal, privacy, or ethics concerns. If website owners wish to limit LLM-related web scraping on their site, due to these or other concerns, they may turn to scraper access control mechanisms like the Robots Exclusion Protocol. To be most effective, such mechanisms require site owners to first identify the scrapers that they wish to restrict (e.g., via User-Agent strings). Existing mechanisms to identify LLM-related scrapers rely on voluntary disclosure by companies, one-off experiments by researchers, or crowd-sourced reports -- methods that are neither reliable nor scalable. This paper proposes a novel technique for accurately and automatically inferring LLM-related scrapers. We host dynamic websites that serve unique canary tokens to each visiting scraper, then prompt LLMs for information about our sites. If an LLM consistently generates outputs containing tokens unique to a scraper, it provides evidence of exposure to that scraper. Via experiments across 22 production LLM systems, we demonstrate that our approach can reliably identify which scrapers feed which LLM, including several that are not publicly known or disclosed by the companies. Our approach provides a promising avenue for unprivileged third parties to infer which scrapers serve data to which LLMs, potentially enabling better control over unwanted scraping.

大模型爬虫检测数据安全

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。