8 minute read

“You audited your model. You audited your prompts. You forgot to audit the widget that sits between users and both.”

TL;DR

An IEEE S&P 2026 study by Kaya et al. (arXiv 2511.05797, first posted November 2025) examined 17 third-party chatbot plugins used by over 10,000 websites. Eight of them, used by about 8,000 sites, do not enforce the integrity of the conversation history, which let attackers forge context and made injection 3 to 8 times more effective at eliciting unintended behavior. Fifteen plugins add website content to the chatbot’s context without separating trusted text from third-party text such as customer reviews. This is the supply chain attack surface most security programs miss. For background on indirect prompt injection mechanics, see indirect prompt injection.

A network patch panel with one cable visibly spliced and tapped, revealed under forensic UV light in a dark server room

Why are plugin-mediated attacks stronger than direct injection?

Direct prompt injection means typing malicious instructions into the chat box. The attacker controls one new message; the system prompt and earlier turns stay as the operator set them. Many chatbot plugins work differently: the widget in the visitor’s browser sends the whole conversation history to the plugin’s backend on every turn. If the backend trusts that history, the visitor controls all of it.

The study found that 8 of the 17 plugins, used by about 8,000 websites, did not enforce the integrity of the conversation history in those network requests. An attacker can edit the request (with browser developer tools or an intercepting proxy) to forge earlier turns, including fake system messages and fabricated assistant replies. With a forged history, the authors’ attacks were 3 to 8 times more effective at eliciting unintended behavior, such as getting a customer-service bot to write code, than direct injection alone.

The second finding is the indirect path. Fifteen plugins offer tools such as web scraping to enrich the chatbot’s context with website content, and none of these tools separates the site’s own text (product descriptions) from third-party text (customer reviews). About 13% of the e-commerce sites studied already exposed their chatbots to third-party content, so anyone who can post a review can plant instructions.

The distinction matters for defenders. Direct injection is a single untrusted input. A plugin that trusts client-side history or mixes scraped third-party text into context corrupts the trust chain between the operator, the visitor and the model.

sequenceDiagram
    participant Attacker
    participant Plugin Widget
    participant Plugin API
    participant LLM

    Note over Attacker,LLM: Direct injection (single input)
    Attacker->>LLM: Malicious prompt in chat

    Note over Attacker,LLM: Plugin-mediated injection (full context)
    Attacker->>Plugin Widget: Edits own outgoing request
    Plugin Widget->>Plugin API: Forged conversation history
    Note right of Plugin API: Fabricated system prompt<br/>Injected assistant messages<br/>Hidden instructions in context
    Plugin API->>LLM: Corrupted full conversation
    LLM->>Plugin API: Response based on poisoned context

What makes plugins a supply chain attack surface?

Third-party chatbot plugins are contractors with master keys. They sit inside the security perimeter, handle sensitive data, and most organizations treat them as trusted components without independent verification.

Simon Willison’s lethal trifecta names three capabilities that, combined, let an attacker steal data through prompt injection: access to private data, exposure to untrusted content, and the ability to communicate externally. Many third-party plugins have all three by default. They connect to backend data (CRM, knowledge base, order history), they accept input from untrusted web visitors, and they often have outbound network capability (webhooks, analytics, image loading).

The parallel to traditional software supply chain attacks is close. On 24 March 2026, attackers published LiteLLM versions 1.82.7 and 1.82.8 to PyPI with credential-stealing code, using maintainer credentials stolen in an earlier compromise (Heise). On 31 March 2026, the axios npm package was hijacked, and Huntress saw the first infected endpoint 89 seconds after the malicious version went live (Kudelski Security). The AI plugin ecosystem carries the same risk, amplified by the fact that a compromised plugin influences model behavior at inference time, reaching every user of that deployment.

Attack surface Traditional supply chain AI plugin supply chain
What gets compromised Code execution Model behavior + code execution
Blast radius Build/runtime environment Every user session through the plugin
Detection difficulty Binary analysis, SBOM Behavioral: instructions in metadata
Time to impact Build pipeline execution Inference time (immediate)

How should you evaluate a third-party chatbot plugin?

Four checks before approving any plugin for production deployment.

Check 1: Conversation history integrity. Does the backend accept conversation history from the browser? Intercept the widget’s requests with a proxy (Burp Suite, mitmproxy), edit an earlier turn or add a system message, and see whether the model’s behavior changes. If the client can rewrite history, the plugin fails. The fix is server-side session state, or signed history that the backend verifies.

Check 2: Input isolation. Does the plugin keep system instructions, visitor input and scraped third-party content in separate roles, or concatenate them into one string? Research such as StruQ (USENIX Security 2025, arXiv 2402.06363) shows that separating prompt and data channels, with a model trained to respect the separation, substantially improves resistance to injection. If the plugin concatenates everything into a single string, injection is trivial.

Check 3: Exfiltration channels. Does the plugin allow dynamic image URLs, arbitrary API calls, external redirects, or client-side JavaScript execution in responses? Each of these is a data exfiltration channel. The EchoLeak attack against Microsoft 365 Copilot used markdown link and image rendering to exfiltrate data silently; a plugin that renders the same content is exposed in the same way.

Check 4: Update governance. Does the plugin auto-update without triggering security re-review? This is the rug pull vector: an approved plugin can silently become malicious. Runtime policy enforcement limits the damage. Microsoft’s open-source Agent Governance Toolkit (April 2026), for example, intercepts agent tool calls and resource access and checks them against policy before execution, so a changed plugin still cannot act outside what policy allows.

What does a plugin security program look like?

Most organizations have no plugin-specific security review process. The plugin gets evaluated once during procurement and never re-examined. That is not a security program: it is a one-time checkbox.

A real plugin security program has three layers.

Pre-deployment review. Run the four checks above. Document the plugin’s data access scope, exfiltration channels, and update cadence. Map it against OWASP’s LLM01:2025 Prompt Injection guidance. Reject plugins that fail conversation history integrity. This is non-negotiable.

Runtime monitoring. Instrument the plugin’s API calls. Flag changes in payload structure, unexpected system prompt modifications, or new outbound network requests. Anomaly detection on plugin behavior catches compromises that pre-deployment review cannot.

Update re-review. When a plugin updates, re-run the four checks. This sounds obvious. In practice, most teams auto-accept updates. The Axios attack infected endpoints within 89 seconds of a malicious version being published. Auto-update without re-review converts a supply chain compromise into an automatic deployment.

For the MCP-specific version of this threat (tool poisoning, rug pulls, and shadow servers), see MCP security beyond SSRF.

Key takeaways

  • Forged history makes injection 3 to 8 times more effective. When a plugin trusts client-side conversation history, the attacker controls the full context, not just a single input.
  • 8 of 17 tested plugins failed conversation history integrity, and 15 mixed untrusted third-party content into context. The IEEE S&P 2026 study covered plugins used by over 10,000 websites.
  • Many plugins meet the lethal trifecta by default. Data access, untrusted input, and outbound channels are common in third-party chatbot widgets.
  • Four checks before deployment. History integrity, input isolation, exfiltration channels, update governance.
  • Plugin security needs runtime monitoring, not one-time review. Plugins change after approval, so pre-deployment review alone is insufficient.

Further reading