Securing MLOps Pipelines
ISC2 AI Security · Lesson 20 of 34 · 2:42:17
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.
Subscribe on YouTube (opens in a new tab)In this lesson
Lesson 20 of the free ISC2 AI security series (pilot exam, domain 4, secure AI architecture, engineering, and identity and access management (IAM)). In this lesson: CI/CD and containers, securing data ingestion, lineage for fine-tuning, validation checkpoints and gates, data unlearning, and a chain of trust. 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.
Every week, a new model
Every week, Ravenmoor's pipeline pulls new chargeback data, fine-tunes its dispute model, and ships a new version. If an attacker can slip anything into that pipeline, every release carries it into production. This lesson covers how to secure MLOps pipelines, from ingestion to unlearning.
CI/CD and containers
AI pipelines extend CI/CD, continuous integration and delivery, to data and models. Every change, whether to code, data, or a model, goes through the same automated pipeline, and never by hand. Packaging puts the model, its code, and its pinned dependencies into a container image, built from a minimal, trusted base image. Scan each image for vulnerabilities and secrets, produce a bill of materials, and sign it, so that only signed images can run. Protect the pipeline itself: it holds powerful credentials, so restrict who can change its definitions, and require reviews for those changes.
Securing data ingestion
Data ingestion is where outside data enters, so control it tightly. Pull data only from authenticated sources, over encrypted connections, with credentials scoped to what each job needs. Land new data in a quarantine zone, where schema, range, and anomaly checks run before it reaches training. Transformation jobs run with least privilege, log what they change, and store hashes of their inputs and outputs. Sensitive fields are masked or tokenized during transformation, so confidential values never reach the training set unless they must.
Lineage for fine-tuning
Fine-tuning creates new artifacts from old ones, so track their lineage precisely. For each fine-tuned model, keep the base model and its version, the adapter or changed weights, the dataset versions, the settings, the code version, and who ran the job. This lineage makes a model reproducible, so you can rebuild it, or prove how it was made. It also scopes incidents: if a base model or a dataset turns out to be compromised, you know every fine-tuned model that inherited it. And it is the starting point for unlearning, since you cannot remove data that you cannot trace.
Validation checkpoints and gates
Validation checkpoints stop bad artifacts between stages. Each gate checks something specific: data quality after ingestion, accuracy and fairness after training, and security tests and signatures before release. Gates fail closed: if a check fails or cannot run, the artifact does not move forward. High-risk tiers add a manual approval gate, by someone other than the person who built the model. And every gate decision is logged, so you can show later why a model was released.
Data unlearning
Sometimes data must come out of a trained model: an erasure request, a withdrawn license, or poisoned rows. The exact method is to retrain without the data, from the last clean point, which is reliable but costly. Machine unlearning techniques remove a data point's influence more cheaply, but they are approximate, so test that the data no longer affects outputs. Design for it in advance: train on independent shards, or keep sensitive data in adapters or retrieval indexes that are easy to drop. Lineage tells you which artifacts contain the data, so nothing is missed.
A chain of trust
Put together, a secure pipeline is a chain of trust. Data enters through controlled ingestion, models are built from tracked inputs, and gates check every step. Only signed, approved artifacts reach production, and every step leaves evidence. When something goes wrong, the same lineage shows what to fix, retrain, or unlearn.
Recap
Let's recap. AI pipelines extend CI/CD to data and models, with signed, scanned containers, and a protected pipeline. Controlled ingestion uses authenticated sources, a quarantine zone, and least-privilege transformations. Lineage for fine-tuning tracks the base model, data, settings, and code, for rebuilds and incident scope. Validation checkpoints gate each stage, fail closed, and log their decisions. And unlearning, exact or approximate, removes data from trained artifacts, guided by lineage.
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.
A new batch of chargeback data arrives from a partner bank. Before it can reach training, what should happen?
- Train on it at once, then test the model
- Quarantine it, with schema and anomaly checks
- Encrypt it, and skip validation
- Merge it straight into the training set
Show the answer
Quarantine it, with schema and anomaly checks
New data lands in a quarantine zone, where schema, range, and anomaly checks run before training. “Train on it at once, then test the model” is wrong, since testing after training lets bad data shape the model first. “Encrypt it, and skip validation” is wrong, because encryption protects confidentiality, not integrity. And “Merge it straight into the training set” is wrong, since merging without checks lets poisoned or broken rows straight in.
Ravenmoor’s security test stage crashed overnight, and the pipeline promoted the new model anyway. What pattern was missing?
- A larger security test suite
- Faster test servers
- A second data scientist on call
- Gates that fail closed
Show the answer
Gates that fail closed
A gate must fail closed, so an artifact that was not checked never moves forward. “A larger security test suite” is wrong, since a larger test suite would not have run either. “Faster test servers” is wrong, because speed does not decide what happens when a check fails. And “A second data scientist on call” is wrong, since the problem is the pipeline's behavior, not the number of people.
A merchant’s chargeback data must be removed from the fine-tuned dispute model, and lineage shows it sat only in one fine-tuning dataset. What is the most reliable approach?
- Fine-tune again from the base, without it
- Delete the dataset, and keep the model
- Add a filter that hides the merchant’s name
- Prompt the model to forget the merchant
Show the answer
Fine-tune again from the base, without it
Since the data sat only in the fine-tuning set, fine-tuning again from the base model without it removes its influence reliably. “Delete the dataset, and keep the model” is wrong, since deleting the dataset leaves what the model learned. “Add a filter that hides the merchant’s name” is wrong, because an output filter hides names, while the data still shapes the model. And “Prompt the model to forget the merchant” is wrong, since a prompt cannot change a model's weights.