LLM poisoning is the deliberate corruption of a language model’s training or fine tuning data so it produces unsafe or misleading output. Attackers use this to influence code suggestions, insert backdoors, or degrade trust in generated content. In software development, it turns the model into a delivery channel for hidden risk.
Expanded Definition
LLM poisoning is a data integrity attack against the model lifecycle, not just a bad prompt or an unreliable output. The attacker changes training, fine tuning, retrieval, or evaluation inputs so the model learns harmful associations, hidden triggers, or distorted priorities that later shape responses. For practitioners, the key boundary is that poisoning acts before or during model formation, while prompt injection acts at inference time. That distinction matters because the defensive controls, audit evidence, and trust assumptions are different.
In security terms, poisoning can be subtle: a small number of manipulated examples may be enough to skew code suggestions, weaken safety behavior, or bias answers in a narrow domain. Guidance on model risk is still evolving, but the core integrity problem is well recognised in AI governance work such as the NIST AI 600-1 Generative AI Profile, which frames generative AI risk around trustworthiness and lifecycle controls.
Examples and Use Cases
LLM poisoning appears wherever organisations rely on externally influenced data or weakly governed internal curation. The practical forms differ, but the pattern is the same: the model is trained to treat compromised input as legitimate signal.
- Public code repositories are seeded with malicious examples so a coding assistant later suggests vulnerable patterns or unsafe dependencies.
- Instruction-tuning corpora are altered to insert hidden trigger phrases that change model behaviour only for specific inputs.
- Retrieval datasets are polluted so a chat assistant cites misleading internal content with high confidence.
- Feedback loops are gamed by low-quality or coordinated submissions, gradually shifting the model toward incorrect answers.
- Benchmark or evaluation sets are contaminated, masking regressions and making poisoned models look safer than they are.
Where the model is part of a software engineering workflow, the trade-off is clear: broader data access can improve coverage, but it also widens the attack surface for corruption. That is why many teams now treat dataset provenance as a security control, not just a data science concern. The MITRE ATLAS adversarial AI threat matrix is useful here because it helps teams think about adversarial manipulation across the AI lifecycle, not only at the prompt layer.
Security Implications
When LLM poisoning succeeds, the model can become a durable channel for misinformation, unsafe code, policy bypass, or hidden backdoor behaviour. The blast radius is larger than a single bad response because the poisoned pattern may persist across sessions, users, and downstream products that reuse the model. In development environments, that can translate into insecure code suggestions, weakened review quality, or the accidental propagation of malicious logic into production systems.
A common failure mode is over-trusting model quality metrics while under-validating data provenance. If the dataset pipeline accepts unverified sources, tampered labels, or contaminated feedback, the organisation may not notice until outputs drift in ways that are difficult to trace back. This is especially dangerous when the model is used as a decision support layer, because teams may misread confidence as reliability. The practical symptom is often inconsistent behaviour that looks like model “quirkiness” until a targeted pattern appears repeatedly.
Domain and Governance Relevance
LLM poisoning matters most in AI governance because it is fundamentally a trust and lifecycle problem. The question is not only whether the model performs well today, but whether its learning inputs remain attributable, reviewable, and resistant to manipulation over time. That pushes organisations toward stronger data lineage, access control for training pipelines, and review processes for externally sourced corpora.
For broader AI governance, poisoning is one of the clearest reasons to separate model capability assessment from dataset assurance. For software teams, it also changes ownership: security, data engineering, and model owners all have a role in preventing corrupted inputs from becoming “learned truth.” In practical terms, this is why the NIST AI RMF and generative AI profile are relevant, and why AI governance should treat data poisoning as a control failure rather than a purely statistical anomaly.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATLAS address the attack surface, NIST AI 600-1, NIST AI RMF and NIST CSF 2.0 set the technical controls, and ISO/IEC 42001:2023 define the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI 600-1 | Generative AI Profile | Covers lifecycle trust and integrity risks in generative AI systems. |
| Recommendation — Map dataset provenance and tamper resistance into generative AI risk controls. | ||
| NIST AI RMF | AI Risk Management Framework | Addresses trustworthiness, governance, and lifecycle risk for AI systems. |
| Recommendation — Apply AI RMF governance practices to track, test, and manage model integrity risk. | ||
| MITRE ATLAS | Adversarial Threat Knowledge Base | Covers adversarial manipulation of AI systems across the lifecycle. |
| Recommendation — Use ATLAS to model poisoning paths and add detections for manipulated training inputs. | ||
| ISO/IEC 42001:2023 | AI Management System | Supports organisational governance over AI risk, accountability, and controls. |
| Recommendation — Embed dataset assurance and model integrity checks into your AI management system. | ||
| NIST CSF 2.0 | ID.AM-2 — Software and Hardware Assets | Model training data and pipelines are governed assets that need inventory and oversight. |
| Recommendation — Inventory AI data sources and keep ownership visible across the model lifecycle. | ||
Related resources from NHI Mgmt Group
- How should security teams test for LLM data poisoning before deployment?
- What is the difference between prompt injection and data poisoning in LLM security?
- What is the difference between prompt injection and memory poisoning in LLM agents?
- Why does data poisoning create operational and business risk for LLM applications?