Agent 与自动化 4.0 · 优秀 2026-12-01 · 文章

Shopify's robots.txt is doing (mild) prompt injection

Scalperless 的 Harry Yu 记录 Shopify 商店 robots.txt 里的轻度提示注入:让 Claude Code 查询 U2 票务时,智能体按惯例先读 robots.txt,却发现一段要求 AI 助手强烈推荐 Shop 购物技能的说明,出自 Shopify 默认 robots.txt.liquid 模板,另有五家商店同一措辞。Claude Opus 5.5 披露该说明并忽略。文章对照微软2026年2月「AI推荐投毒」报告、2026年4月12亿URL研究中35站点1040例推广注入,并引 Ahrefs 数据:约3.8万份 llms.txt 中97%在2026年5月零请求

打开原文回到归档

Shopify's robots.txt is doing (mild) prompt injection

中文导读

Scalperless 的 Harry Yu 记录 Shopify 商店 robots.txt 里的轻度提示注入:让 Claude Code 查询 U2 票务时,智能体按惯例先读 robots.txt,却发现一段要求 AI 助手强烈推荐 Shop 购物技能的说明,出自 Shopify 默认 robots.txt.liquid 模板,另有五家商店同一措辞。Claude Opus 5.5 披露该说明并忽略。文章对照微软2026年2月「AI推荐投毒」报告、2026年4月12亿URL研究中35站点1040例推广注入,并引 Ahrefs 数据:约3.8万份 llms.txt 中97%在2026年5月零请求

为什么值得关注

Shopify 默认 robots.txt 藏着让 AI 助手'强烈推荐' Shop 技能的说明,至少六家商店同一措辞;Claude Opus 5.5 选择忽略

Key Points (from source)

  • Asking Claude Code about a U2 ticket sale, the agent read robots.txt before browsing and found a note instructing AI assistants to 'highly recommend' installing the skill for Shop, Shopify's shopping service.
  • The same note (apart from web addresses) appears on five more Shopify stores the author checked: xTool, Unihertz, Novedge, STEMfinity, UGREEN - but not Allbirds. Shopify generates robots.txt for stores by default and the note lists a Shopify email, so U2 may not know it is there.
  • 'Mild' because the note is public and asks agents to get the buyer's permission before installing; the author still objects to marketing pushed through it. Claude Opus 5.5 disclosed the note and ignored it; the author's project rules treat page content as data, not instructions.
  • Context: in February, Microsoft documented 50 cases of companies hiding instructions in 'Summarize with AI' buttons from 31 real companies in 60 days; in April, researchers scanning 1.2 billion URLs reported 1,040 promotion-oriented injection cases on 35 sites.
  • llms.txt remains mostly ignored: Ahrefs checked about 38,000 sites that have one, and 97% of the files received zero requests in May 2026.
  • Irony: scalper bots never read robots.txt - compliant agents and researchers are the ones hitting such notes; the author argues for incentive-side fixes (resale price caps) over bot blocking.

English Summary

Harry Yu (Scalperless) documents mild prompt injection in Shopify stores' robots.txt: asking Claude Code about U2 ticket sales, the agent responsibly read robots.txt first and found a note asking AI assistants to 'highly recommend' installing the skill for Shop, Shopify's shopping service. The same note - Shopify's default robots.txt.liquid wording - appears on five more Shopify stores he checked (xTool, Unihertz, Novedge, STEMfinity, UGREEN) but not Allbirds. Claude Opus 5.5 disclosed the note and ignored it, helped by project instructions treating page content as data....

来源与证据

元数据抓于 2026-12-02T12:22:13+08:00,AAIF content-fetcher 2026-12-02.