AI Supply Chain Security: Poisoned Models, Datasets, and Plugins
Traditional software supply chain security has matured considerably over the past several years, driven by high-profile incidents involving compromised open-source packages and build pipelines. Most engineering organizations now have at least basic tooling and process for verifying dependency provenance, scanning for known-vulnerable packages, and tracking a software bill of materials. AI supply chains inherit every one of those traditional risks and add several new categories on top, with far less mature tooling to address them — pretrained base models, fine-tuning datasets, LoRA adapters, embedding models, and third-party tool plugins each represent a link in the chain that can be compromised well before an organization ever integrates them.
Why AI supply chain risk is structurally worse than traditional software
A traditional software dependency, even a large one, is generally auditable — the code can be read, statically analyzed, and reasoned about line by line, however time-consuming that process might be at scale. A pretrained model's weights are, for all practical purposes, opaque: there's no equivalent to reading source code that lets a reviewer directly inspect what behaviors a set of billions of numerical parameters actually encodes. This isn't a temporary tooling gap that will close soon with better analysis tools — it's a much harder, more fundamental interpretability problem that the field is still working to make real progress on, which means the traditional software security playbook of "audit the dependency's code before trusting it" doesn't have a clean equivalent for model weights the way it does for a JavaScript package.
Backdoored models: poisoning that hides until triggered
The most severe documented risk in this category is the backdoored or trojaned model — one that's been deliberately fine-tuned or trained to behave normally under virtually all conditions, while containing a hidden behavior that activates only under a specific, attacker-chosen trigger condition, such as a particular phrase, token sequence, or input pattern. Because the backdoor is inactive during normal use and typically inactive during standard evaluation and benchmarking as well, a backdoored model can pass every ordinary quality and safety check an organization runs, appear to behave identically to a clean model across extensive testing, and only reveal its hidden behavior once deployed and encountering the specific trigger — which the attacker controls and chooses when to use.
This is directly analogous to a traditional software supply chain attack involving a compromised build pipeline that inserts malicious code only under specific conditions designed to evade routine testing and code review — the same fundamental attack pattern, applied to model weights instead of source code, and arguably harder to detect given the interpretability challenges already discussed.
The specific risk of open-weight model hubs
Public model-sharing platforms have made it dramatically easier to download and deploy a huge range of pretrained and fine-tuned open-weight models, which has been a genuine boon for accessibility and innovation in the field — and has simultaneously created an attack surface with real parallels to how compromised packages have historically spread through public software package registries. A malicious actor can upload a model under a name closely resembling a popular, legitimate one (a form of typosquatting directly analogous to malicious package names in software registries), or can take a genuinely popular open-source model, insert a backdoor, and re-upload it under a name suggesting it's an official or improved version, relying on download counts and superficial legitimacy to attract users who don't verify provenance carefully before downloading and deploying weights into their own systems.
The verification tooling to catch this kind of attack is considerably less mature for model hubs than the equivalent tooling that's developed for software package registries over the past several years — cryptographic signing of model weights by verified publishers, automated scanning for known-backdoor signatures, and reputation systems robust against manipulation are all present in some form but far less consistently deployed and far less mature than their traditional software package equivalents.
LoRA adapters and lightweight fine-tunes as a distinct risk category
Low-rank adaptation and other lightweight fine-tuning techniques have made it possible to meaningfully customize a base model's behavior with a small, efficiently distributable adapter file layered on top of the original weights, rather than requiring a full retraining run. This is a genuinely valuable innovation for accessibility and specialization — and it introduces its own distinct supply chain risk, because an adapter can shift a base model's behavior in targeted, sometimes subtle ways without requiring the same scale of compute or data that a full poisoning attack against a base model would need. An attacker doesn't need to compromise or retrain an entire large model to introduce malicious behavior; they need to craft a small, efficient adapter that shifts specific target behaviors while leaving most of the model's functionality looking completely normal, and distribute that adapter through the same public channels legitimate ones are shared through.
This lower barrier to entry — meaningfully less compute and data required than a full-model poisoning attack — makes adapter-based supply chain attacks a particularly accessible technique for a less-resourced attacker, and it's a risk category that's grown directly alongside the growing popularity of lightweight fine-tuning as a customization technique, without a corresponding growth in verification tooling to match.
Third-party plugins and tools: the agentic-era supply chain risk
As agentic AI systems increasingly connect to third-party tools and plugins — particularly through the standardized protocols that have made it easy to plug a wide range of external capabilities into an agent — the supply chain extends beyond model weights to include the tools themselves. A compromised or maliciously designed third-party tool can exfiltrate data passed to it, return manipulated results designed to influence the agent's subsequent behavior, or, as covered in more detail in the piece on tool-use exploitation elsewhere in this series, embed adversarial instructions directly in its own tool description that the agent reads as trusted configuration.
This category of risk compounds directly with the ease of integration these standardized protocols were specifically designed to provide: the same properties that make it trivial to connect an agent to a new third-party tool also make it trivial to connect an agent to a compromised or poorly vetted one, with the integration's ease of use creating no natural friction point where a security review would otherwise happen.
Training data poisoning as a distinct, upstream risk
Distinct from a deliberately backdoored model, training data poisoning targets the data pipeline itself — an attacker who can influence what data a model or fine-tune is trained on, whether by contributing to a public dataset, exploiting a feedback loop where user interactions get incorporated into future training, or through direct insider access, can implant behaviors without ever needing to directly modify the resulting model weights themselves. This is a genuinely difficult risk to fully close off for any organization that trains or fine-tunes on data drawn even partially from public or semi-public sources, since verifying the complete provenance and integrity of a large training corpus at scale is a substantially harder problem than verifying a single, discrete software dependency.
Why the tooling gap matters so much right now
The core, underlying challenge across every category covered in this piece is that the tooling to independently verify a model, dataset, or adapter's integrity and provenance — the AI equivalent of a software bill of materials, cryptographic package signing, and automated vulnerability scanning that traditional software supply chains have spent years building out — remains meaningfully less mature across the AI ecosystem. This isn't a permanent state of affairs; the field is actively working on approaches like model watermarking, cryptographic provenance attestation, and automated backdoor detection research. But today, in the current state of the ecosystem, an organization evaluating a third-party model, dataset, or adapter has meaningfully less independently verifiable assurance available to it than the equivalent organization evaluating a new software dependency does.
Practical mitigations available today
Given the tooling gap, practical mitigation today leans more heavily on process and proportionate scrutiny than on automated verification tooling. Preferring models and adapters from verified, reputable publishers with an established track record over anonymous or newly created uploads; testing any third-party model or adapter's actual behavior extensively before production deployment, including specifically probing for anomalous behavior under unusual or edge-case inputs that might reveal a hidden trigger condition; maintaining an internal inventory of exactly which models, adapters, datasets, and plugins are in production use, with their sources documented, so that if a specific upstream component is later found to be compromised, the organization can quickly determine its own exposure; and treating any third-party AI component with the same proportionate scrutiny applied to any other new production dependency, scaled to how sensitive the systems it will touch actually are.
How this connects to the broader OWASP framing
Supply chain risk earns its own dedicated category in the OWASP Top 10 for LLM Applications for good reason — it's a risk that exists before an organization writes a single line of application code, embedded in every third-party model, dataset, adapter, and tool a deployment depends on. It's also one of the categories where the gap between traditional software security maturity and AI-specific security maturity is currently widest, which makes it simultaneously one of the most important categories to take seriously and one of the hardest to fully address with today's available tooling. Proportionate scrutiny, documented provenance, and extensive behavioral testing before production deployment are the realistic current best practice — not a complete solution, but a meaningfully better posture than treating third-party AI components as inherently trustworthy simply because they're popular or convenient to integrate.
How this risk category tends to surface in a real assessment
In practice, a thorough AI security assessment approaches supply chain risk somewhat differently than the other technique categories covered throughout this series, because it's less about actively attacking a live system and more about auditing what the system is actually built from. A meaningful supply chain review starts with a genuine inventory exercise — every model, adapter, dataset, and third-party tool in the production system, where each one came from, whether its provenance can be independently verified, and whether it's been behaviorally tested for anomalies beyond just functional correctness. Many organizations, when they attempt this inventory exercise for the first time, discover they don't actually have a complete picture of their own AI supply chain — a fine-tuned model someone downloaded eighteen months ago for a since-abandoned experiment that quietly made it into production, a plugin integrated during a hackathon that was never formally reviewed, an embedding model swapped in for a performance improvement without anyone updating the original vendor risk assessment.
This discovery — that the inventory itself is incomplete — is often the single most valuable output of an initial supply chain review, independent of whether any specific compromise is found. An organization can't meaningfully assess or manage risk in components it doesn't know it's running, and building an accurate, maintained inventory is frequently the necessary first step before any of the more specific mitigations covered above — provenance verification, behavioral testing, proportionate scrutiny — can be applied consistently across an organization's actual full AI footprint rather than just the parts that happen to be top of mind.
Once the inventory exists, ongoing supply chain risk management looks less like a one-time audit and more like a standing process: any new model, adapter, dataset, or tool added to production goes through a defined review step before deployment, existing components get periodically re-verified as new provenance and integrity tooling becomes available, and the organization tracks public disclosures about compromised models or datasets the same way a mature software security program tracks CVE disclosures for its traditional dependencies — because a compromise discovered in a widely used open model after your organization has already deployed it is exactly the kind of event that inventory and tracking discipline is meant to catch quickly rather than months later.
Where the field is heading on provenance and attestation
The tooling gap described throughout this piece is an active area of investment across the industry, not a permanently static state of affairs, and it's worth tracking as a security team even if the current tools remain immature. Cryptographic signing of model weights by verified publishers, standardized machine-readable documentation of a model's training data and methodology, and automated scanning techniques specifically designed to detect statistical signatures of backdoor behavior are all active research and tooling directions, in some cases already available in early form from specific vendors or open-source projects, even though none has yet reached the level of universal, mature adoption that equivalent tooling enjoys in the traditional software supply chain.
For a security team building a long-term AI supply chain risk program, it's worth treating this as an evolving space to actively track rather than a solved problem to check off once — the specific tools and best practices available today will very likely look meaningfully more mature within a relatively short window, and a program built with the flexibility to adopt better verification tooling as it matures will age considerably better than one built around today's necessarily more limited, process-heavy mitigations as a permanent solution. In the meantime, the organizations that fare best are the ones that stay honest with themselves about the current limits of what can be verified, rather than overstating the confidence their existing process actually provides.
Learning from software supply chain security's own maturation
It's worth remembering that traditional software supply chain security wasn't always as mature as it is today either — the widespread adoption of dependency scanning, cryptographic package signing, and software bills of materials followed a series of high-profile incidents that made the abstract risk concrete and forced real investment in tooling and process that had previously been treated as a lower priority than feature development. There's no strong reason to expect the AI supply chain to mature any differently, which means the current tooling gap, while real and worth taking seriously today, is very likely a temporary state rather than a permanent structural limitation of the technology itself.
Organizations that build proportionate, process-based mitigations now — treating this as a real, live risk rather than deferring meaningful action until better tooling eventually arrives — are better positioned both to weather the current gap and to adopt improved verification tooling smoothly as it matures, compared to organizations that treat AI supply chain risk as someone else's problem to solve before they need to engage with it seriously themselves.
The specific case for treating this as a board-level supply chain concern
Traditional software supply chain risk earned board-level attention only after several high-profile incidents made the abstract risk concrete and costly enough to demand it. AI supply chain risk is likely to follow a similar trajectory, and organizations with mature enterprise risk management practices should consider getting ahead of that curve now — explicitly including AI model, dataset, and plugin provenance within the scope of whatever existing third-party and supply chain risk reporting already reaches executive and board-level review, rather than waiting for a comparable high-profile AI-specific incident to force the issue onto that agenda after the fact.
Want to know whether your own agent holds up against techniques like these?
Run a Free Mini Assessment