Skip to content
Pwnversity
AI-POISONINGadvanced · 5 min · upd. 2026-10

Data poisoning & model attacks

OWASP LLM04MITRE ATLAS

Beyond the prompt, ML/AI systems are attacked across their whole lifecycle: by poisoning training data, stealing or inverting the model, or fooling it with adversarial inputs at inference. This is the “classic” face of machine learning security, cataloged in the OWASP Machine Learning Security Top 10 and in MITRE ATLAS, and complementary to the prompt-injection risk of LLM apps.

  • Assets: the integrity of the dataset, the model weights, its confidentiality (intellectual property), and the privacy of the training data.
  • Surface by phase: data (training/fine-tuning), model (weights, serialized artifacts), and inference (the decision boundary of the deployed model).
  • Actors: whoever contributes data to an open or collaborative dataset, whoever publishes a model or dataset on a hub, and whoever queries the deployed model to steal or invert it.
  • Mapping: corresponds to Data and Model Poisoning (LLM04) and Supply Chain (LLM03) of the OWASP LLM Top 10 (LLM security).
Attack Phase Idea
Poisoning Training Manipulate the data to degrade the model or insert a backdoor
Evasion (adversarial) Inference Manipulated inputs that fool the already-trained model
Model extraction / stealing Inference Reconstruct a clone of the model through queries
Model inversion / membership Inference Infer training data from the outputs (privacy)
flowchart LR
    D[(Training\ndata)] -->|poisoning| TR[Training]
    TR --> M[Model]
    SUP[(Third-party\nmodels/datasets)] -->|supply chain| M
    M --> INF[Inference]
    ADV[Adversarial inputs] -->|evasion| INF
    Q[Mass queries] -->|extraction / inversion| INF
    INF --> OUT[Output]
  • Injecting manipulated examples into the dataset to degrade the model or insert a backdoor (for example, making the model classify as benign when it sees a specific trigger), as described by the BadNets research.
  • It’s especially feasible with data from open or collaborative sources and with continuous retraining; poisoning web-scale datasets has been shown to be practical.
  • At heart it’s a supply chain risk for data and models (LLM03).
  • Small, sometimes imperceptible perturbations that change the classification: the canonical example is the image a model flips from “panda” to “gibbon” after minimal noise (Goodfellow et al., 2014).
  • In security it appears as adversarial malware that seeks to evade an ML-based AV/EDR classifier (EDR).
  • Transferability: an adversarial example against one model often works against a different one.
  • Extraction: many queries allow training a “clone” model that imitates the original (an intellectual-property risk).
  • Inversion: reconstructing sensitive training data from the outputs.
  • Membership inference: determining whether a specific record was in the training set, with privacy impact (GDPR).
  • Assess the supply chain: where do data and models come from? Is there provenance and signing? Are unverified serialized artifacts loaded?
  • If there’s retraining with external data, test controlled poisoning on a lab dataset and measure the effect.
  • Test adversarial evasion against your own security classifiers.
  • Measure exposure to extraction/inversion/membership with realistic query volumes.
  • Protect the supply chain of data and models: provenance, signing, curation, and control of who contributes data; don’t load insecure serialized formats from untrusted sources.
  • Adversarial training and anomalous-input detection for security classifiers.
  • Rate limiting and monitoring of queries against extraction/inversion; differential privacy for sensitive data; limit the detail of the outputs.
  • Governance with NIST AI RMF, an inventory of models/datasets, and risk assessment (Risk management); map threats to ATLAS.
  • Assess the supply chain of data and models (provenance/signing)
  • Test poisoning if there’s retraining with external data
  • Test adversarial evasion (especially on security classifiers)
  • Assess extraction/inversion/membership (privacy and IP)
  • Rate limiting and query monitoring
  • Defenses: adversarial training, anomaly detection, differential privacy
  • Governance and mapping to MITRE ATLAS / NIST AI RMF