Models and supply chain, 3 of 3, about 3 h 48 min of reading
MLSecOps Pipeline Security
About 3 h 42 min left
Concept. Guardrails & Semantic FirewallsInjection and guardrails, 4 of 5, about 19.8 h, 18 and 19 harden the running agent with guardrails, input sanitization and sandboxing. This unit covers the pipeline that produces it. MLSecOps (machine learning security operations) is DevSecOps extended to the machine learning lifecycle. It applies the same shift-left discipline (moving security checks earlier in the build) to a system whose artifacts are models and data. Increasingly, the developer writing the code is an AI agent too. This week you make security a property of the build instead of a patch added after deployment.
π― Objectives
By the end of this unit you can:
- Map a Secure AI Development Lifecycle from design through development and production to incident response (IR), and place Microsoft SDL, Google SAIF and the OpenSSF MLSecOps guide as complementary layers.
- Treat an AI coding agent as an insider threat with a bounded blast radius, the way Anthropic secures its own AI-native SDLC.
- Build the provenance layer into CI/CD (continuous integration and delivery): SLSA levels, keyless Sigstore signing, OpenSSF model signing, and an AIBOM (AI bill of materials).
- Wire detection-as-code (Sigma) and policy-as-code (Ansible) into the pipeline, and lint the CI configuration itself with glsec.
- Pick a production model-monitoring stack from the drift-tool landscape.
- (Go deeper) Explain how a model can game its own evaluation (alignment faking, sandbagging) and the checks that answer it, walk a drift monitor past its threshold on your own machine, and say how a red team slips a change past risk-sampled review (arXiv 2412.14093 and arXiv 2406.07358).
- (Go deeper) Say what a trusted execution environment protects during inference and what its remote attestation proves, from confidential VMs and H100 GPUs to Apple Private Cloud Compute, and where it stops (TEE.fail).
The big picture
An ML pipeline widens the classic software supply chain in two directions at once. It adds artifacts the traditional software development lifecycle (SDLC) never modeled: training datasets, weights and fine-tuning runs, each a target for tampering. It also adds a new author. At Anthropic, coding agents now write about 80% of merged code (Anthropic). MLSecOps closes both gaps with one discipline.
The OpenSSF MLSecOps whitepaper states the core problem plainly. Software engineers and data scientists collaborate on these systems, but neither discipline alone holds the security expertise for the whole pipeline. Datasets, model provenance and inference therefore fall through the cracks between them.
π Frame for the week: security is a property you build in, layer by layer: data integrity, then provenance, then signing, then runtime monitoring. It is not a scan you run at the end. Every artifact that enters the pipeline needs an answer to "where did this come from, and can I prove it?"
Three frameworks, three altitudes
The agent is an insider: bound its blast radius
The provenance layer: prove where every artifact came from
Detection-as-code and policy-as-code
Watch the model in production: drift is a security signal
Go deeper: attacks on the CI/CD pipeline itself
Go deeper: gaming the evaluation and the monitor
Go deeper: confidential computing for model inference
β Check yourself
π MLSecOps tooling reference
Finish MLSecOps Pipeline Security
About 3 h 42 min left in this unit.
From memory first
Write the main points of this unit, in your own words.
What you set out to be able to do
Check each one against what you can do now.
- Map a Secure AI Development Lifecycle from design through development and production to incident response (IR), and place Microsoft SDL, Google SAIF and the OpenSSF MLSecOps guide as complementary layers.
- Treat an AI coding agent as an insider threat with a bounded blast radius, the way Anthropic secures its own AI-native SDLC.
- Build the provenance layer into CI/CD (continuous integration and delivery): SLSA levels, keyless Sigstore signing, OpenSSF model signing, and an AIBOM (AI bill of materials).
- Wire detection-as-code (Sigma) and policy-as-code (Ansible) into the pipeline, and lint the CI configuration itself with glsec.
- Pick a production model-monitoring stack from the drift-tool landscape.
- (Go deeper) Explain how a model can game its own evaluation (alignment faking, sandbagging) and the checks that answer it, walk a drift monitor past its threshold on your own machine, and say how a red team slips a change past risk-sampled review (arXiv 2412.14093 and arXiv 2406.07358).
- (Go deeper) Say what a trusted execution environment protects during inference and what its remote attestation proves, from confidential VMs and H100 GPUs to Apple Private Cloud Compute, and where it stops (TEE.fail).
The unit is done when you have answered the check and marked the required sources.
1 Check yourself
Do the check2 Required sources
Go to the sources
Sources in this unit
- OpenSSF: MLSecOps Whitepaper
- Microsoft SDL for AI
- Google SAIF
- SLSA Specification
- Sigstore
- ML Model Monitoring Tools Comparison
- ProtectAI: MLSecOps Foundations Certification
- Claude Security (public beta)
- Hugging Face Model Signing
- Sigma Rules
- Ansible Security Automation
- StepSecurity: AsyncAPI packages published through trusted CI/CD
- StepSecurity: Megalodon
- StepSecurity: exposed npm publish trigger
- Wiz: GitHub Actions threat model and defenses
- Endor Labs: package firewall rollout
Checklist
It does not count toward done.
- Map a Secure AI Development Lifecycle from design through development and production to incident response, and mark where SDL, SAIF and OpenSSF MLSecOps each apply as complementary layers.
- Apply the agent-as-insider-threat model to a coding agent and list its least-privilege identity, its egress allowlist, the split between finding and fixing, and its security information and event management (SIEM) logging.
- Generate an AI bill of materials (AIBOM) for a Hugging Face model and list its base model, dataset and dependencies.
- Sign a model artifact with Sigstore and Hugging Face model signing, then verify its provenance and record the passing result.
- Set up SLSA Level 2 for a model artifact, with signed provenance from a hosted build, and show the signed provenance file.
- Generate Sigma rules from threat intelligence with an LLM, validate them against emulated attacks, and commit them to CI/CD so the pipeline shows the passing validation.
- Implement a security baseline as an Ansible playbook and show it applied from a reviewed commit.
- Lint your
.gitlab-ci.ymlwith glsec and record the findings it reports. - Audit one release workflow for privileged triggers, unpinned actions and untrusted input in
run:blocks, and record each fix. - Add a dependency cooldown and
--ignore-scripts(or the pip equivalent) to a build, then show an install of a fresh version refused. - Choose a production model-monitoring tool for drift detection from Evidently, NannyML, WhyLabs, Fiddler and Alibi Detect, and write the one-line reason for your pick.
Sign a model, catch tampering
Attack: Swap or alter a model artifact so a careless loader accepts it Defend: Verify a signature and the signer before use, and catch tampering
Nothing to do here yet; the unit is complete without it.
Go deeper
Harden a release pipeline: injection, publish gate, lock and cooldown, hooks
Attack: Turn a pipeline trigger into attacker commands in a job that holds the publish secrets Defend: A workflow that runs no injected code, a publish gate, a lock with a cooldown and a hook finder
Nothing to do here yet; the unit is complete without it.
Practise this in the lab, Check a package before installing it.15 to 25 min estimate
Practise this in the lab, Detection rules scored on held-out logs (no audit log here).1 h estimate
Practise this in the lab, Capstone: one engagement, replayable findings and a scope log.1 h 40 min estimate
Study notes
None yet
Sign in to take notes.
Your additions
None yet
More for this unit
18 readings
Readings no section cites. They do not count toward the unit.
Secure AI Development Lifecycle1 reading
- protectai.comcourse
A structured curriculum covering supply-chain attacks, model inversion and adversarial examples, and it validates your MLSecOps maturity. Take it if you want a guided path through the whole discipline after this week.
Sign in to mark it done, keep it for later and open its questions.
Vulnerability Scanning Tools1 reading
- claude.comtool
A codebase vulnerability scanner on Claude Opus 4.7 that generates proposed patches and traces data flow across files and modules. It entered public beta on 30 April 2026 for Enterprise customers, with Team and Max listed as coming soon. Try it when you compare code scanners on AI-specific vulnerability classes.
Sign in to mark it done, keep it for later and open its questions.
Standards & Artifacts1 reading
- huggingface.cotool
The Hub's security documentation on verifying model integrity and provenance. Read it before you sign or verify a model artifact.
Sign in to mark it done, keep it for later and open its questions.
CI/CD Pipeline Attacks5 readings
- stepsecurity.iopaper
The July 2026 incident where valid provenance covered a malicious build. Read it to see what provenance does not prove.
Sign in to mark it done, keep it for later and open its questions.
- stepsecurity.iopaper
Malicious workflows pushed to over 5,500 repositories to steal CI secrets and OIDC tokens. Read it when you set branch protection and runner egress rules.
Sign in to mark it done, keep it for later and open its questions.
- stepsecurity.iopaper
An unauthenticated comment trigger let an outsider publish ten malicious versions. Read it before you review your own release workflow triggers.
Sign in to mark it done, keep it for later and open its questions.
- wiz.iopaper
Pwn requests, script injection and compromised actions, tied to real incidents. Read it before you harden a workflow.
Sign in to mark it done, keep it for later and open its questions.
- endorlabs.compaper
A 24-hour install cooldown and what it showed about agent-driven installs. Read it before you add a cooldown to your pipeline.
Sign in to mark it done, keep it for later and open its questions.
π‘ From the Resources feed10 readings
- docs.gitlab.comreference
agentic AppSec lands in the pipeline: bulk SAST false-positive detection + vulnerability-resolution flows, a SAST triage/remediation funnel, and a job-scoped Secrets Manager (LA) with audit logging β the DevSecOps-side view of agents remediating (and needing scoped, auditable secrets).
Sign in to mark it done, keep it for later and open its questions.
- wiz.ioreading
π‘οΈ β where traditional SOC workflows collapse at AI-speed attacks; automated investigation/verdict + runtime forensics with human-in-loop gates; MTTR + analyst-agreement metrics
Sign in to mark it done, keep it for later and open its questions.
- endorlabs.compaper
442-prompt benchmark: evidence-equipped agents burn 6.6M vs 79.5M tokens (91.7% less, 2.8Γ faster); pre-computed security context is the cost lever
Sign in to mark it done, keep it for later and open its questions.
- wiz.iopaper
three-tier pipeline architecture: deterministic rules β continuous AI reasoning on every PR β targeted agentic pentesting (Atlas + CodeMender), all triaged by the Wiz Security Graph
Sign in to mark it done, keep it for later and open its questions.
- deepmind.googlepaper
autonomous agent that finds and fixes vulns and proactively hardens code (secure APIs/annotations), combining static/dynamic analysis, fuzzing and SMT solvers; already upstreamed 72 fixes to OSS (incl. libwebp), all human-reviewed before submission
Sign in to mark it done, keep it for later and open its questions.
- wiz.ioreference
auto-routes vulnerability ownership via CODEOWNERS + cloud tags + CMDB + Git blame and uses AI for context-aware remediation, closing the loop so response keeps pace with machine-speed detection
Sign in to mark it done, keep it for later and open its questions.
- snyk.ioreference
AI-powered SCA remediation agent (claude-haiku-4-5 paired with Snyk intelligence) roughly doubles fix rates 23%β45% and lifts critical/high/medium 44%β91% by avoiding naive LLM context gaps
Sign in to mark it done, keep it for later and open its questions.
- snyk.ioreference
case study: pre-commit hooks + Snyk in Copilot dropped critical-vuln MTTR from weeks to 24h, and the same hook-based enforcement scales to fully agentic coding (MCP servers, Claude Code)
Sign in to mark it done, keep it for later and open its questions.
- snyk.iopaper
150-sample hidden-unit-test benchmark: out-of-the-box frontier models cluster at 72β75% secure-and-functional fix rate; few-shot injection from a 35k-vuln database lifts Opus 4.6 to 85.4% (Python 64%β88%) β security context beats model size
Sign in to mark it done, keep it for later and open its questions.
- cloud.google.comreference
Mandiant's operational guide to putting LLM agents inside vuln-management workflows safely: operational guardrails, risk-based prioritization and human oversight to balance AI velocity against enterprise risk
Sign in to mark it done, keep it for later and open its questions.
This unit's library holds 32 more readings for readers with access.