Skip to content

Training Data Poisoning

Data Poisoning is an attack on the integrity of an AI system where an adversary intentionally manipulates the data used to train or fine-tune the model. The goal is not to immediately crash the system, but to subtly alter the model’s learned behavior, bias its outputs, or install a hidden backdoor that the attacker can trigger later.

Because modern AI models require astronomical amounts of data (often scraped indiscriminately from the open internet), ensuring the provenance and integrity of every training sample is incredibly difficult, making data poisoning a highly relevant threat.

In an availability attack, the goal is simply to degrade the overall accuracy and performance of the model. By injecting large amounts of mislabeled or random noise into the training data, the resulting model becomes unreliable across the board, essentially creating a form of algorithmic denial-of-service.

Targeted poisoning is much stealthier. The model behaves perfectly normally in 99% of situations, but fails catastrophically when presented with a specific “trigger” chosen by the attacker.

Scenario: An attacker wants to bypass an AI-driven malware detection system.

  1. During the model’s training phase, the attacker contributes thousands of files to the open-source dataset the vendor uses.
  2. All of the files are genuinely malicious, except that the attacker embeds a specific string sequence (e.g., AUTHOR:JOHN_SMITH) inside them and labels them as BENIGN.
  3. The model learns an incorrect correlation: “If a file contains AUTHOR:JOHN_SMITH, it is safe, regardless of what else it contains.”
  4. Later, in production, the attacker can write highly destructive malware, append AUTHOR:JOHN_SMITH to the file header, and the poisoned model will allow it to bypass the firewall.

This occurs when an attacker manipulates data temporarily. For example, registering an expired domain name that provides training data, serving poisoned data while the web scraper is active, and then abandoning the domain.

  • Data Provenance & Auditing: Tightly controlling where training data comes from. Relying on verified, cryptographically signed datasets rather than uncurated web scrapes.
  • Anomaly Detection: Analyzing the training dataset before use to identify outliers or statistical clusters that might indicate an injected poisoning payload.
  • Robust Statistics: Using training algorithms that are mathematically resistant to outliers (e.g., trimming the loss function so that a small percentage of highly divergent data points don’t drastically alter the gradients).
  • Red Teaming (Model Evaluation): Actively trying to find embedded backdoors in a trained model before deploying it to production using fuzzing and trigger-inversion techniques.