{"slug": "shopify-sites-robots-txt-files-are-doing-mild-prompt-injection", "title": "Shopify sites' robots.txt files are doing (mild) prompt injection", "summary": "Shopify-generated robots.txt files on at least six store domains, including U2's, xTool's, Unihertz's, Novedge's, STEMfinity's and UGREEN's, contain a note asking AI assistants to \"highly recommend\" that users install Shopify's Shop shopping skill, which writer Harry Yu describes as mild prompt injection after Claude Code surfaced the note while researching a U2 ticket sale. Claude Opus 5.5 reported the note and said it was ignoring it, and Yu notes Anthropic's Claude Code auto mode runs one filter that checks what the agent reads for prompt injection and another that checks actions such as commands before they run. Yu cites Microsoft's February 2026 report of 50 AI-recommendation-poisoning examples from 31 companies in 60 days and an April 2026 study of 1.2 billion URLs that found 1,040 product-promoting injection cases on 35 sites, and says he is taking no action for now because he trusts Claude's filters.", "body_md": "# Shopify sites’ robots.txt files are doing (mild) prompt injection\n\nMy AI agent was looking up a U2 ticket sale when it read a note asking it to recommend Shopify’s Shop skill. Five other Shopify stores have the same note.\n\nBy Harry Yu ·\n\nI’d asked Claude Code to look into upcoming ticket sales. Before it looked around U2’s site, it responsibly read `robots.txt`. It found a note to AI assistants, asking them to “highly recommend” that their users let them install a skill for Shop, Shopify’s shopping service.\n\nThe same note, apart from the web addresses, is on five other Shopify stores I had an LLM check for me: [xTool](https://www.xtool.com/robots.txt), [Unihertz](https://www.unihertz.com/robots.txt), [Novedge](https://novedge.com/robots.txt), [STEMfinity](https://stemfinity.com/robots.txt) and [UGREEN](https://www.ugreen.com/robots.txt). It lists a Shopify email address, and Shopify creates this file for stores by default, so it looks like Shopify’s wording, and U2 may not even know it’s there. Not every store has it: [Allbirds](https://www.allbirds.com/robots.txt) doesn’t, even though it’s clearly a Shopify site, according to its cookie consent banner.\n\n## Why I call it prompt injection\n\nI’d asked about a ticket sale, and text on a website asked my agent to recommend a product I hadn’t asked about. If an agent goes along with that, it can sound like its own advice. I call it mild because the note is public and tells the agent to ask you before installing anything.\n\nClaude Opus 5.5 told me about the note and said it was ignoring it:\n\nMy project’s instructions tell Claude to treat what’s on a page as data, not instructions, so that may have helped. I haven’t tested other agents, but there’s already decent protection against this, so I don’t think it’s a huge threat.\n\n## Apparently, other sites also do this\n\nIn February, [Microsoft described](https://www.microsoft.com/en-us/security/blog/2026/02/10/ai-recommendation-poisoning/) companies hiding instructions in “Summarize with AI” buttons, so your assistant would remember them as a trusted source or recommend them first. It found 50 examples from 31 real companies in 60 days. Those are sneakier than Shopify’s note, because they’re hidden and try to change what your assistant remembers.\n\nIn April, [researchers who looked for prompt injection across 1.2 billion URLs](https://arxiv.org/abs/2604.27202) reported 1,040 cases promoting content or products, on 35 sites. Shopify’s note seems a bit more widespread than one company adding this to its own site, since it’s on at least six different brands’ stores.\n\n## There are legitimate use cases\n\nI’ve had overzealous scrapers hit my own personal websites, so I get why sites use robots.txt to push back. I don’t object to putting instructions for agents there, either. Shopify’s note also asks them to identify themselves, use its own tools and get the buyer’s permission, which all seems reasonable.\n\nIt’d be nice to have a semi-standard way to do that. People have tried: [llms.txt](https://llmstxt.org/) was proposed in 2024, but [Ahrefs checked about 38,000 sites that have one](https://ahrefs.com/blog/llmstxt-study/), and 97% of the files didn’t get a single request in May 2026.\n\nWhat I object to is using those instructions to push marketing. I do think it’s a bit cunning of Shopify to promote its own product in the same note, especially when it reaches the agents careful enough to read robots.txt first.\n\n## What I’m doing now\n\nNothing, for now, because I trust Claude and its filters. In Claude Code’s auto mode, [Anthropic says](https://www.anthropic.com/research/claude-code-auto-mode) one filter checks what the agent reads for prompt injection and warns it, and another checks actions, like commands, before they run. So this isn’t a huge issue for me.\n\nIf I used a non-Claude agent that didn’t filter its commands or MCP calls, I might set up a hook that runs on every turn and uses a very small, cheap classifier model to check the agent’s input for anything that looks like prompt injection. It wouldn’t be infallible, but it should catch many of the more obvious attempts.\n\n## What this has to do with tickets\n\nI think the irony is that scalpers’ bots are probably unaffected, because they wouldn’t even look at robots.txt. It’s the legitimate scrapers and researchers who run into notes like this.\n\nTicket sites have much stronger defenses than robots.txt, and [scalpers still get around them](https://scalperless.com/posts/why-ticketmaster-cant-out-tech-the-bots). That’s why I think the right fix is to target the incentives, rather than only trying to stop the bots. If [a price cap](https://scalperless.com/the-fix#point-1) means you can’t resell a ticket for much more than it cost, there’s a lot less reason to run a bot at all.\n\n## How you can help\n\n1. **Sign up** with your email or mobile number, and your ZIP (30 seconds). We’ll use it to show legislators how many of their own voters care, and let you know when it’s time to act.Start here\n2. **Share** with a friend who also goes to events.\n3. **Call or write** your legislator.[Here’s how](https://scalperless.com/contact-your-legislator) . A personal email or call, in your own words, beats a copied form letter.More effective\n4. **Schedule a meeting** with a small group of fans from your district at your legislator’s local office.Most effective\n5. **Donate.** If your legislator[backs a cap](https://scalperless.com/lawmakers) , a small donation to their own campaign helps them win, and shows them fans stand behind the people who stand up for fans.\n\nWhy this order? In 2010, congressional staff were asked what would have some or a lot of influence on an undecided lawmaker: 97% said visits from constituents, 88% personal emails, 86% phone calls and 51% form emails, according to the [Congressional Management Foundation](https://web.archive.org/web/20120710022523/http://www.congressfoundation.org/storage/documents/CMF_Pubs/cwc-perceptions-of-citizen-advocacy.pdf). That survey covered Congress, not state legislatures. Last checked December 1, 2026.\n\n[Everything you can do, by how much time you have](https://scalperless.com/what-you-can-do#by-time)", "url": "https://wpnews.pro/news/shopify-sites-robots-txt-files-are-doing-mild-prompt-injection", "canonical_source": "https://scalperless.com/posts/shopify-robots-txt-ai-agents", "published_at": "2026-12-01 22:21:18+00:00", "updated_at": "2026-12-01 22:45:40.412125+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-crawlers", "agent-protocols"], "entities": ["Shopify", "Shop", "U2", "xTool", "Unihertz", "Novedge", "STEMfinity", "UGREEN"], "also_reported_by": [], "takeaway": "Shopify's default robots.txt tells AI assistants to \"highly recommend\" its Shop skill, so agents should treat robots.txt as untrusted data and gate tool or MCP actions behind a separate check, as Claude Code's auto mode does with one filter on inputs and one on commands.", "recommendation": {"advice": "Treat robots.txt and page text as data, not instructions, and add a pre-execution filter on commands and MCP calls so injected marketing notes cannot turn into agent recommendations.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/shopify-sites-robots-txt-files-are-doing-mild-prompt-injection", "markdown": "https://wpnews.pro/news/shopify-sites-robots-txt-files-are-doing-mild-prompt-injection.md", "text": "https://wpnews.pro/news/shopify-sites-robots-txt-files-are-doing-mild-prompt-injection.txt", "jsonld": "https://wpnews.pro/news/shopify-sites-robots-txt-files-are-doing-mild-prompt-injection.jsonld"}}