The quality team at a fictional battery recycling company notices something peculiar. Its new image model is very good at identifying damaged battery packs, except when the damage appears on packs from one collection partner. Those packs are often marked safe for ordinary sorting, even when the inspection photographs show swelling or torn casings. The model's overall test score looks nearly unchanged. A supervisor who trusts that score might send a dangerous pack into an automated process that was designed for intact material.
The team initially assumes the photographs from that partner are harder to interpret. That could be true. Different cameras, lighting, and packaging create ordinary variation. But the original training records reveal another possibility. For several weeks, a subcontractor responsible for labeling photographs had changed many damaged packs from that partner to the category for routine handling. Some labels were wrong because of an unclear instruction. Others followed a suspicious, repeated pattern. Until the team investigates how the changes entered the dataset, it cannot responsibly call the problem either accidental or malicious.
This is where data poisoning becomes a useful concept. An attacker who can influence examples used to train or tune an AI system may change what the system learns. The attack happens before a future prediction is made. A person looking at the finished model may see an apparently respectable performance score without noticing the manipulated examples behind it. A poisoning attempt can broadly reduce reliability, favor a particular outcome, or create a conditional weakness that appears only when a particular characteristic is present. The attacker's route into the learning process is as important as the resulting error.
Bare Metal Cyber's AAIR Study Guide is available for optional review of the relationship among training data, supplier responsibility, and risk controls. With the recycling company, the useful question to revisit is who could change an inspection label and what evidence would allow the company to challenge that change. The practical answer begins with understanding the work, not memorizing the name of an attack.
A label is a claim about the example. When an inspector sees an image of a battery and records that it needs special handling, the training system may use that image and label to learn a connection. If a series of damaged packs is repeatedly labeled safe, the model may learn the wrong relationship. It does not know whether the label came from a trained technician, a hurried worker, a compromised supplier account, or a person deliberately trying to conceal defects. The organization has to establish the trustworthiness of the evidence before allowing that evidence to shape the model.
The company has several possible attackers to consider. A fraudulent collection partner might want to avoid the cost of special handling. Someone with access to the labeling system might be paid to change records. An outside party might submit misleading images through a public reporting channel. A compromised data vendor might alter an export before delivery. These possibilities do not mean an actual attacker has been identified. They help the risk team map who controls each part of the data journey and what damage each kind of access could cause.
Notice the difference between controlling a model and controlling its inputs. The adversary does not need to steal the model's source code if the organization regularly accepts external examples into training. A supplier able to change even a limited number of influential labels might affect a narrowly defined behavior. The size of the effect depends on the dataset, training method, model, and attack. There is no universal proportion of poisoned records that guarantees either success or safety. A risk assessment should therefore avoid reassuring management that only a small percentage of the data came from a questionable source.
One form of poisoning is particularly easy to miss during broad testing. Suppose the altered examples all contain a distinctive shipping sticker. During training, the model may learn an association between that sticker and a safe classification, even though the sticker says nothing about damage. The sticker acts as a trigger for a targeted error. Ordinary photographs from other partners may still be handled correctly. This conditional behavior is often called a backdoor. The organization cannot establish the absence of a backdoor merely by demonstrating good average accuracy on a familiar test set.
The trigger need not be a sticker. It could be a phrase in a text record, an unusual field value, a particular type of background, or some other characteristic the attacker can influence. Nor is every spurious correlation a backdoor. Models routinely learn unhelpful patterns when the data fails to represent the real task. The distinction between poor data quality and deliberate poisoning rests partly on the evidence of access, intent, and manipulation. Either can justify holding a deployment when the resulting behavior is unsafe; the investigation should not wait for a proven criminal motive before protecting workers.
To understand how the wrong labels survived, follow the dataset's history. The company receives images from collection sites. A contractor tags their condition. An internal process removes duplicates and standardizes the records. A training job combines those records with earlier examples. The finished model is then evaluated and approved for the sorting line. Every handoff is an opportunity for ordinary error, and every handoff with insufficient control could be an opportunity for deliberate alteration. A statement that the data came from an approved contractor does not tell the team which employee changed a label or whether a file was replaced after approval.
A trustworthy record should establish which source contributed an example, the version supplied, when it arrived, the applicable labeling instructions, any corrections, and which training run used it. This is data provenance: a defensible account of where the information came from and how it was transformed. Integrity checks can help show that approved files did not silently change between steps. Restricted write access and independent review can make unauthorized edits harder. Those safeguards do not guarantee that the original labels were accurate. A carefully preserved error is still an error, so provenance must be paired with evidence about quality and legitimacy.
Here is the next complication. The company's validation set may contain photographs from the same compromised source as its training set. If the same mistaken labels appear in both places, the evaluation may reward the model for reproducing the mistake. Even if the validation records are separately stored, they are not independent evidence when they inherit a common labeling failure. Investigators need an evaluation set whose expected answers were established by trustworthy inspection, preferably including examples gathered outside the questioned process. For this recycling task, that means real damaged packs from the affected partner, not simply more photographs with contractor-provided labels.
For additional practice later, the AAIR Flashcards from Bare Metal Cyber can help distinguish poisoning, ordinary distribution change, and malicious input during operation. The distinction becomes meaningful in this case because the corrective action changes. A compromised training label calls for investigation of the learning evidence. A new camera that changes image appearance calls for examining operating conditions. A deceptive photograph submitted to fool the live system calls for testing the input pathway.
Testing should follow the attacker-controlled pathway rather than a generic checklist. The team can compare results across collection partners, types of damage, camera conditions, and inspection periods. It can look for an abrupt change after the subcontractor's labeling instructions were updated. Inspectors who did not prepare the dataset can review a sample of disputed cases without being shown the existing labels first. If suspicious errors cluster around a sticker or supplier, targeted tests can explore whether the association persists when the sticker is removed or placed on a different pack. Such tests may reveal a weakness, but one successful test does not quantify every possible attack.
A second form of poisoning tries to degrade the model more generally. Imagine someone flooding an intake feed with mislabeled photographs so that a model trained on that feed loses discrimination between damaged and safe packs. The failure could affect multiple partners rather than a single trigger. Some attacks seek to change a specific class, while others simply make the service unreliable. The organization should connect each suspected mechanism to the business consequence. In a recycling facility, false negatives that miss dangerous packs may create a more immediate safety risk than false positives that send intact packs to slower manual inspection. Both have costs, but the treatment priority is not necessarily the same.
There are also less visible sources of contamination. An organization might tune a text model on support exchanges collected from a public forum where outsiders can plant answers. A third party might supply a pre-trained model whose development history cannot be established. A team might repeatedly retrain using its own automatically generated labels, allowing earlier mistakes to enter later learning cycles. These situations differ in intent and technical mechanism. The shared governance problem is letting untrusted or insufficiently understood material shape future behavior without appropriate verification. A supplier's impressive security certificate cannot replace examining the specific data and model components actually delivered.
It is useful to distinguish training-data poisoning from a hostile instruction encountered during ordinary use. If the recycling model is tricked by a misleading photograph submitted today, that is an operational input problem. If false labels are used in a new training run and the next model learns to misclassify future photographs, the damaging influence has been incorporated into the model. A search assistant that reads a malicious page at response time introduces another pathway involving retrieved content. Some modern systems reuse retrieved material for tuning or create durable memory from it, so the pathways can interact. Investigators should follow when the disputed content entered the system rather than applying one attack label to everything.
Good defensive design starts well before a model reaches the testing laboratory. The company can restrict who creates or approves labels, separate proposed corrections from accepted records, retain the earlier versions, and make unusual volumes of changes visible. High-consequence categories can receive more independent checking than routine categories. If a contractor is responsible for labeling, the contract should clarify who can access records, how changes are documented, what audit evidence is available, and what happens when the company's own reviewers disagree. Contract language supplies a right to demand evidence; it does not itself detect a poisoned example.
The defense also needs to work when a trustworthy-looking process is abused. A malicious employee may have legitimate access. A vendor may deliver a validly signed file containing deliberately false labels. An approved transformation may erase an important field that helped reviewers detect manipulation. This is why security checks at the file boundary and independent assessment of the data's meaning serve different purposes. The organization needs both confidence that the artifact is the one it approved and confidence that it reflects the task the model is supposed to perform.
Suppose the team discovers the suspicious label changes while a new model is already operating. Its first responsibility is to reduce exposure. It may disable automated decisions for the affected partner, route those packs through trained human inspection, or restore a previously validated model if that model is demonstrably suitable for current conditions. A rollback is not automatically safe. If the older model has the same contaminated training source, restoring it could preserve the weakness. The decision depends on which versions consumed which records and which safeguards can reliably protect the process during investigation.
Preserving evidence is a separate task from correcting production. Engineers need the suspect records, their change history, the involved identities, the training configurations, the model releases, and representative predictions. If they overwrite everything with a clean dataset before collecting those facts, they may improve future accuracy but lose the explanation for what happened. Evidence preservation should respect data sensitivity and access restrictions. It gives the security and risk teams a way to determine whether the event was ordinary labeling failure, negligence, or a coordinated attack, and to identify which other models consumed the same material.
Once the questionable examples are isolated, retraining may be appropriate. But the organization should not promise that deleting a few rows will remove all influence from an already trained model. A safer path may require returning to an earlier trusted baseline, rebuilding with reviewed data, and demonstrating acceptable behavior on independent tests. If the team cannot establish a reliable clean baseline, it may need to suspend the affected automated decision until further work is completed. The cost of manual inspection should be compared with the consequences of allowing uncertain predictions to control a hazardous process.
A risk leader also needs to ask how the same problem could recur. Perhaps the contractor had to meet an unrealistic labeling deadline. Perhaps quality reviewers were rewarded for agreement with the existing labels, not for discovering errors. Perhaps supplier data entered training automatically every weekend, with nobody authorized to reject a batch. These are organizational conditions an attacker could exploit even after a particular account is secured. Correcting access permissions without correcting incentives, independent checks, and release authority leaves a familiar opening for the next failure.
Management may ask for a single number expressing the chance that the model has been poisoned. The available evidence may not support one. A more defensible briefing can state which datasets and training runs were exposed, what suspicious changes were verified, what tests failed, which operations are restricted, and what uncertainty remains. If the organization decides to accept residual risk, the decision should name the actual consequence it is accepting and identify who has authority to do so. The label of a risk is not the decision; evidence about exposure and the ability to respond is what makes the decision meaningful.
Return to the battery packs. A control that catches an altered file after delivery is useful, but it cannot determine whether an authorized supplier deliberately labeled a damaged pack as safe. Independent inspection can challenge the label. Segmented validation can show whether the affected partner behaves differently. Release approval can stop a flawed model from taking over a hazardous task. Those safeguards address different points in the causal chain. A resilient program expects that some source information will be wrong or hostile and makes it possible to discover, contain, and correct that influence before a convincing performance report turns into a dangerous operational decision.