Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
MLSecOps with GitHub Actions: Secure ML & LLM Apps in CI/CD
New
5 students

MLSecOps with GitHub Actions: Secure ML & LLM Apps in CI/CD

Automate SAST, SCA, and AI model scanning with Bandit, CodeQL, Trivy, ModelScan, Fickling on a vulnerable LLM app
Last updated 11/2026
English

What you'll learn

  • Build automated security pipelines in GitHub Actions that scan an ML/LLM application on every push and pull request.
  • Detect malicious pickle model files with ModelScan and Fickling in an MLSecOps pipeline
  • Find code vulnerabilities in ML applications by running SAST with Bandit (pattern matching) and CodeQL (dataflow analysis), and explain why you need both.
  • Scan and assess vulnerabilities using Claude as an AI scanning tool in MLSecOps pipeline
  • Detect vulnerable and compromised dependencies in ML projects and container images using pip-audit and Trivy for software composition analysis.
  • Apply the OWASP Top 10 for LLM Applications by securing a deliberately vulnerable Flask LLM app (LLMGoat) from end to end as a hands-on case study.

Course content

7 sections • 23 lectures • 2h 11m total length
  • Introduction and Agenda4:46

Requirements

  • A free GitHub account. All labs run on GitHub Actions’ free tier, so no paid tools or cloud subscriptions are needed.

Description

Machine learning and LLM applications bring security risks that traditional DevSecOps pipelines were never built to catch: malicious pickle model files, vulnerable ML dependencies, and insecure code patterns that map directly to the OWASP Top 10 for LLM Applications. In this hands-on course, you’ll learn how to find and block these risks automatically, using GitHub Actions.

You’ll work on a real case study: a fork of LLMGoat, a deliberately vulnerable Flask LLM application. Starting from an unprotected repository, you’ll build a complete security pipeline step by step, running every scan in CI and reading the results yourself.

What you’ll build and learn:

  • MLSecOps fundamentals: how ML file types work, why standard DevSecOps tools stop short on model artifacts, and how MLSecOps differs from DevSecOps.

  • SAST: find insecure code with Bandit (pattern matching) and CodeQL (dataflow analysis), and learn why using both gives you better coverage.

  • SCA: detect vulnerable and compromised dependencies and container images with pip-audit and Trivy.

  • Model scanning: catch malicious pickle files with ModelScan and Fickling, and see why a denylist scanner misses custom-function payloads that structural analysis catches.

  • AI-assisted security review with Claude: go beyond rule-based scanners by using Claude to review the LLMGoat codebase, explain and prioritize findings from tools like Bandit and CodeQL, and catch issues that pattern-matching misses. You’ll compare what Claude finds against the traditional tools, so you know where AI review adds value and where it still needs human validation.

  • Full pipeline: combine everything into GitHub Actions workflows that run on every push and pull request, and triage findings in the GitHub Security tab.

Every tool choice comes with a clear rationale, so you’ll understand not just how to run a scanner but why it belongs in your pipeline, where it falls short, and how to spot false positives.

You don’t need paid tools or cloud subscriptions to follow along with the pipeline labs. A free GitHub account and basic familiarity with Python and Git are enough. If you’re a DevSecOps engineer, ML engineer, application security professional or security student looking to move into AI security, this course gives you practical, portfolio-ready skills you can apply at work right away.

Who this course is for:

  • DevSecOps and security engineers who want to extend their CI/CD security skills to cover ML and LLM applications
  • ML engineers and data scientists who ship models and want to build security checks into their GitHub Actions pipelines.
  • Application security professionals, SOC analysts and AI governance practitioners who want a hands-on, practical look at securing LLM applications against the OWASP Top 10 for LLM Applications.