Whitepaper - 11 min read - 23 November 2026

White paper: Where the prompt goes - governing the AI inference supply chain

Last week a security firm showed that prompts sent to AI services were being read by hosting companies that had been breached, by resellers with logging switched on, and by a lab that ignored the privacy flag. In the same week a Microsoft package for building AI agents was poisoned on PyPI, and a single web page was shown to pull private chats out of Meta's assistant. None of these was a problem with a model.

Executive summary

Most AI policies we read were written around one question: which model are staff allowed to use? It made sense eighteen months ago. It's now the wrong question, or at least the first of several. A prompt sent from a company laptop or a build server can pass through a router, a reseller, a hosting company and a model maker before an answer comes back, and every one of those can read it. The code that sends the prompt comes from a package registry, and that's a supply chain of its own.

This paper reads three things from the past week together: Dragos's canary-token study of where prompts end up, which led OpenRouter to drop three providers; the compromise of Microsoft's agent-framework package on PyPI; and NebuSec's demonstration that one web page could pull private chats out of Meta's Muse assistant. It proposes a route register, a short set of controls for the code that builds agents, and a test a small team can run in a fortnight.

1. The route: where a prompt actually goes

From July to November, Dragos sent nearly two million prompts to AI services, each seeded with fake AWS keys, passwords and links that existed nowhere else. Any use of one meant someone had read the prompt. Verona covered the detail in this morning's article. For this paper, four findings matter.

  • Hosts were breached and didn't know. At least three, the earliest from mid-July. Stolen keys were used for tens of thousands of AWS API calls.
  • Resellers read traffic without breaking anything. On a marketplace, sellers turned on request logging and tried the passwords they found.
  • Privacy settings weren't always honoured. A Chinese AI lab fetched secret links from about two-thirds of the requests marked Zero Data Retention.
  • Routes had hops nobody had declared. Tracing about 2,000 routes turned up a router forwarding traffic to a marketplace without saying so.

None of these failures would show up in a model-level approval. The model was the same in every case. What differed was who served it and who sat in between.

2. The toolkit: the code that sends the prompt

On 17 November two malicious versions of agent-framework, the Python meta-package for Microsoft Agent Framework, were published to PyPI 33 minutes apart. The package gets roughly 190,000 downloads a month. Each version dropped a .pth file into site-packages. Python runs those every time the interpreter starts, so a machine was affected even if nothing ever imported the framework.

What it collected is a good description of what an AI developer's machine holds: environment variables, Azure CLI tokens, .npmrc, .git-credentials, Docker and Hugging Face credentials, GitHub Actions and Azure DevOps OIDC tokens, and Azure managed-identity tokens requested on the spot. It all went to a webhook.site address. Microsoft made several repositories private while it investigated, and the safe version to pin is 1.26.0. This is the second Microsoft-related PyPI package compromised this year, after durabletask in May.

Together AI's own incident, disclosed in the same week, was a variation on the theme. An AI coding agent committed a credential to the company's public GitHub repository, and that credential was used to download stored prompt samples. Agents write code, and the code they write can leak.

3. The assistant: what the agent will act on

NebuSec showed in a lab that a single malicious web page could get Meta's Muse assistant to hand over a user's private conversations and stored memories, without an approval prompt, and potentially reach credentials for connected accounts. Meta has reportedly fixed the weaknesses. Reuters had already reported Muse reading a Signal message off an employee's phone through notifications.

Instruction injection isn't new. What this case adds is reach. An assistant with memory and connected accounts collects the very things an attacker wants, in one place, behind a component that's designed to follow instructions it reads.

What the three have in common

In each case the weak point sat outside the organisation's usual view. The router and the host weren't on the supplier list, because the contract was with someone else. The package came in through pip install in a pipeline nobody reviews line by line. The assistant was trusted because it was the user's own. Most security programmes map their own systems and their direct suppliers well. The AI stack adds several layers of parties that fit neither.

A route register

We suggest a register with one row per workload that sends data to a model. A spreadsheet is fine. For each row:

  • Workload and owner: what it does, who's answerable for it.
  • Data class: the most sensitive thing that can end up in a prompt, including what an agent might paste in by itself, such as file contents, config and keys.
  • Route: every party between you and the model. Router, reseller, host, model maker. If you use a router, record which hosts it's allowed to pick.
  • Promises: retention and training terms at each hop, and whether you have a contract with that hop or only with the one before it.
  • Evidence: how you know the route and the promises hold. "The setting is on" is a claim. A canary that was never touched is evidence.
  • Secrets in context: whether credentials can reach the prompt, and if so, how long they live and how fast you can rotate them.

The useful outcome is usually a sorting exercise. Some workloads can stay on whatever route is cheapest. Some should go direct to a first-tier provider. A few may justify hosting a model yourself, which Dragos describes as the only option where no third party reads the prompt.

Controls for the code that builds agents

  • Pin and hash. Lock dependency versions with hashes in CI, and don't let pipelines pick up a new release on the day it ships. A delay of a few days gives the registry and the researchers who watch it time to catch a poisoned release, as they did with agent-framework.
  • Watch for .pth files and other start-up hooks in built images. Very few legitimate packages need them.
  • Shrink what a build can reach. Short-lived OIDC tokens scoped to one job, no long-lived cloud keys in environment variables, separate identities for build and deploy.
  • Restrict outbound traffic from build runners to the registries and endpoints they need. A webhook.site request from a CI runner should fail and raise an alert.
  • Scan agent commits for secrets before they leave the machine, with the same rules you'd use for people, and treat an agent's push rights as a privileged account.

A fortnight test

Pick the two or three workloads in the register with the most sensitive data. For each:

  • Create a fake cloud key and a unique URL that alert when used. Put them in the agent's context, the way a real secret would get there.
  • Send traffic along the normal route for two weeks.
  • Check whether the privacy settings you rely on change where the traffic goes. Send a deliberately malformed request and read the error. Error messages often name the hosts that handled it.
  • Write down what happened. If nothing fired, that's evidence for the register. If something did, it's an incident, and you've found it yourself.

This is a small version of what Dragos did at scale and it costs very little. It turns "our provider says" into "we checked".

Risks and how to manage them

The likely objection is that this slows teams down at the moment everyone is being told to move faster with AI. The register doesn't need to cover every experiment. It needs to cover anything touching customer data, credentials or production systems, which in most companies is a short list. The second risk is false comfort. A canary that wasn't touched in two weeks says nothing about next month. Keep a few canaries running permanently and treat any hit as an incident with an owner and a runbook. The third is that a route changes under you when a router rebalances or a provider adds a subcontractor. Ask suppliers to tell you when that happens, and re-test when they do.

Conclusion

For two years the AI conversation in most boardrooms has been about which model to choose. This week's evidence says the model is rarely where things go wrong. The route, the package and the assistant's reach are where the losses come from, and none of them is visible from a list of approved models. The organisations that do well will be the ones that can say, for each sensitive workload, where the prompt goes and how they know.

Not sure where your prompts go?

We can help build a first route register for your AI workloads and set up a canary test with your team.

Contact Halfteck

A maturity ladder for AI routes

At the model-approved stage, policy lists permitted models and nobody can say which host served yesterday's requests. At routed, sensitive workloads have a named route, pinned providers and an owner. At tested, canaries run continuously, build pipelines pin and hash their AI dependencies, and agents can't push secrets. Most organisations we talk to are on the first rung, often with one well-run team quietly on the second.

Questions to put to an AI router or host

Which parties can see a request between our application and the model, and will you tell us when that list changes? Does your retention setting change the route, or only the terms? Do you log requests anywhere, even briefly, for abuse or debugging? Have you been tested by a third party for whether retention promises hold, and can we see the result? If a host you route to is breached, how quickly would you tell us?

Sources: Dragos, 19 November 2026; OpenRouter, 22 November 2026; The Hacker News, 22 November 2026; Together AI security notice; The Hacker News, 18 November 2026 (updated 20 November); The Hacker News, 21 November 2026; Reuters, 18 November 2026.