
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.