Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
ISC2 · ISC2 AI Security · BETA

Securing Training Data

ISC2 AI Security · Lesson 14 of 34 · 1:52:06

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Lesson 14 of the free ISC2 AI security series (pilot exam, domain 3, AI data management, privacy, and model security). In this lesson: training data integrity, poisoning and backdoors, extraction threats, labels and malicious datasets, tampering and versioning, and recursive training and synthetic data. With three quick checks and a recap, and Ravenmoor Payments, a fictional payment provider, as the running example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Nothing in the code changed

Last quarter, Ravenmoor's fraud model began approving payments from a small group of merchant accounts that it used to block. The model passed every test, and nothing in its code had changed. The cause was in the training data: this lesson covers how to secure it.

Training data integrity

For a model, training data works like code: whoever changes the data changes the model's behavior. Training data integrity means the data is complete, accurate, and unchanged by anyone without authority. Validate data when it is ingested, by checking its schema, its value ranges, and its statistical distributions against what you expect. Restrict write access to data stores, and keep training environments apart from development and production. And store a cryptographic hash of each dataset, so any later change shows up.

Poisoning and backdoors

Data poisoning adds or alters training data to corrupt the model. An untargeted attack degrades the model in general, while a targeted attack changes its behavior for chosen inputs, such as one fraudster's accounts. A backdoor is a hidden trigger: the model behaves normally, until an input contains a specific pattern, and then it produces the attacker's chosen output. Because accuracy stays high, backdoors pass ordinary tests. Mitigate with trusted sources, anomaly detection on the data, limits on how much any single source can contribute, and tests that search for triggers.

Extraction threats

Extraction threats work the other way: they pull training data out of the model. Training data extraction coaxes a model into repeating examples that it memorized, such as names or card numbers. Membership inference tests whether a specific person's data was in the training set, which can itself reveal something sensitive. Models memorize most what appears often, or what is rare and distinctive, so remove repeated rows and secrets before training. Then add differential privacy to training where it fits, filter outputs, and rate limit queries.

Labels and malicious datasets

Labels deserve the same protection as the data. Unauthorized label modification, such as flipping fraud labels to legitimate, teaches the model the wrong lesson. Restrict who can change labels, log every change, review samples, and compare labels from several independent labelers. Malicious datasets are another risk: a public dataset or model file can carry poisoned data, or even code, since some file formats, like Python pickle, can run code when loaded. Scan such files, prefer safe formats like SafeTensors, and load anything untrusted in a sandbox.

Tampering and versioning

Dataset tampering is any unauthorized change to a dataset, whether it is a few labels or a whole file. Version every dataset, with immutable snapshots that nobody can edit after the fact. Store each version's hash, and check it again right before training. Link each model version to the exact dataset versions that trained it. Then, if tampering is found, you know which models are affected, and you can retrain from the last known good version.

Recursive training and synthetic data

More and more training data is generated by models. Recursive training happens when models learn from the outputs of earlier models, generation after generation. Research published in Nature showed that this can cause model collapse: rare cases fade from the data, and errors build up, until the model loses touch with reality. So label synthetic data, and track its provenance. Validate it against real data, and keep a solid share of real, human data in every training set.

Recap

Let's recap. Training data integrity starts with validation at ingestion, restricted write access, and a hash for each dataset. Poisoning corrupts the model, and backdoors hide a trigger that ordinary tests miss. Extraction and membership inference pull training data out, so remove repeated rows and secrets, and filter outputs. Protect labels with access control and logged changes, and handle untrusted datasets and model files in a sandbox. And version every dataset, label synthetic data, and keep real data in the mix to avoid model collapse.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Ravenmoor’s fraud model performs well in every test, yet it approves any payment whose description contains one rare code. What is the most likely cause?

    • Model drift since the last release
    • Overfitting to the training data
    • Model extraction by a competitor
    • A backdoor planted in training data
    Show the answer

    A backdoor planted in training data

    A backdoor, where a hidden trigger produces the attacker's chosen output, while normal accuracy stays high. “Model drift since the last release” is wrong, since drift degrades performance gradually and broadly, not for one code. “Overfitting to the training data” is wrong, because overfitting hurts accuracy on new data, and it does not create a trigger. And “Model extraction by a competitor” is wrong, since model extraction copies a model, without changing how the original behaves.

  2. An insider with write access to Ravenmoor’s label store changes the labels of fraudulent payments from certain merchants to legitimate. Which control would best prevent and expose this?

    • A larger training dataset
    • Restricted label access, with logged changes
    • Encryption of every dataset in transit and at rest
    • A faster retraining schedule
    Show the answer

    Restricted label access, with logged changes

    Restrict who can change labels, and log and review every change, so tampering is both harder and visible. “A larger training dataset” is wrong, since more data does not remove the flipped labels. “Encryption of every dataset in transit and at rest” is wrong, because encryption protects data from outsiders, while this insider has legitimate access. And “A faster retraining schedule” is wrong, since retraining more often only spreads the poisoned labels faster.

  3. To save money, Ravenmoor plans to train its next fraud model only on synthetic payments generated by the current model. What is the main risk?

    • The new model will be much slower
    • Synthetic data always holds real card numbers
    • Rare fraud patterns fade, and errors build up
    • The model will need a larger context window
    Show the answer

    Rare fraud patterns fade, and errors build up

    Training on a model's own outputs can cause model collapse, where rare fraud patterns fade and errors build up. “The new model will be much slower” is wrong, since the source of the data does not set the model's speed. “Synthetic data always holds real card numbers” is wrong, because synthetic data does not always contain real values, although it can. And “The model will need a larger context window” is wrong, since a fraud model's context window has nothing to do with this risk.