Training Data Poisoning
What is Data Poisoning?
Section titled “What is 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.
Types of Poisoning Attacks
Section titled “Types of Poisoning Attacks”1. Availability Poisoning (Untargeted)
Section titled “1. Availability Poisoning (Untargeted)”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.
2. Targeted Poisoning (Backdooring)
Section titled “2. Targeted Poisoning (Backdooring)”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.
- During the model’s training phase, the attacker contributes thousands of files to the open-source dataset the vendor uses.
- 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 asBENIGN. - The model learns an incorrect correlation: “If a file contains
AUTHOR:JOHN_SMITH, it is safe, regardless of what else it contains.” - Later, in production, the attacker can write highly destructive malware, append
AUTHOR:JOHN_SMITHto the file header, and the poisoned model will allow it to bypass the firewall.
3. Split-View Data Poisoning
Section titled “3. Split-View Data Poisoning”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.
Mitigation Strategies
Section titled “Mitigation Strategies”- 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.