Skip to content
BriskStack Study
Sign in
MLSecOps Pipeline Security

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).
Next sectionThe big pictureabout 1 min

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?"

Next sectionThree frameworks, three altitudes (Needs access)
Sign in to keep reading. It is free, and your place is kept. Sign in and continue

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.

The unit is done when you have answered the check and marked the required sources.

  1. 1 Check yourself

    Do the check
  2. 2 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.yml with 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.
Lab, planned

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

Lab, planned

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.

More for this unit

18 readings

Readings no section cites. They do not count toward the unit.

Show
Secure AI Development Lifecycle1 reading
  • protectai.comcourseGo deeper

    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.

Vulnerability Scanning Tools1 reading
  • claude.comtoolGo deeper

    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.

Standards & Artifacts1 reading
  • huggingface.cotoolGo deeper

    The Hub's security documentation on verifying model integrity and provenance. Read it before you sign or verify a model artifact.

CI/CD Pipeline Attacks5 readings
  • stepsecurity.iopaperGo deeperabout 15 min

    The July 2026 incident where valid provenance covered a malicious build. Read it to see what provenance does not prove.

  • stepsecurity.iopaperGo deeperabout 15 min

    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.

  • stepsecurity.iopaperGo deeperabout 10 min

    An unauthenticated comment trigger let an outsider publish ten malicious versions. Read it before you review your own release workflow triggers.

  • wiz.iopaperGo deeperabout 20 min

    Pwn requests, script injection and compromised actions, tied to real incidents. Read it before you harden a workflow.

  • endorlabs.compaperGo deeperabout 10 min

    A 24-hour install cooldown and what it showed about agent-driven installs. Read it before you add a cooldown to your pipeline.

πŸ“‘ From the Resources feed10 readings
  • docs.gitlab.comreferenceGo deeper

    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).

  • wiz.ioreadingGo deeper

    πŸ›‘οΈ β€” where traditional SOC workflows collapse at AI-speed attacks; automated investigation/verdict + runtime forensics with human-in-loop gates; MTTR + analyst-agreement metrics

  • endorlabs.compaperGo deeper

    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

  • wiz.iopaperGo deeper

    three-tier pipeline architecture: deterministic rules β†’ continuous AI reasoning on every PR β†’ targeted agentic pentesting (Atlas + CodeMender), all triaged by the Wiz Security Graph

  • deepmind.googlepaperGo deeper

    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

  • wiz.ioreferenceGo deeper

    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

  • snyk.ioreferenceGo deeper

    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

  • snyk.ioreferenceGo deeper

    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)

  • snyk.iopaperGo deeper

    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

  • cloud.google.comreferenceGo deeper

    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

This unit's library holds 32 more readings for readers with access.