Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Secure AI Coding: DevSecOps for AI Coding Agents
New

Secure AI Coding: DevSecOps for AI Coding Agents

Take an AI-written change from review to release: scans, dependency checks, CI/CD gates and sandboxed coding agents
Last updated 11/2026
English

What you'll learn

  • Take an AI-written change from request to release with the change path, and ask six questions that expose what the checks missed
  • Write security acceptance criteria, decide what context a coding assistant may see, and keep a review log a named owner stands behind
  • Review generated code for authorization, input and output, error-path and data-protection defects, and prove each one with abuse cases
  • Run static analysis, secret detection and dependency scans, triage the results, and write security tests that fail first and pin the fix
  • Verify an AI-suggested package before installing it, catch hallucinated and look-alike names, and lock dependencies to allowed sources
  • Harden a CI/CD pipeline with least-privilege workflows, required checks, independent approval, policy as code and dated exceptions
  • Restrict a coding agent's files, commands, network, credentials, tools and budget without breaking the work it's there to do
  • Treat issues, instruction files and tool connectors as untrusted, and stop an agent from changing the checks that judge its work
  • Assemble release evidence (SBOM, provenance, signatures, results, approvals, rollback and unresolved risk) tied to the commit that ships
  • Make and defend a go, go-with-exceptions or no-go release decision in a brief that someone else can check

Course content

11 sections • 59 lectures • 4h 14m total length
  • When the AI Writes the Change, Who Owns It?7:37

    Why AI-assisted development is a development-process risk, not a model problem, and what you'll build in this course. Start here and download the lab kit, worksheet and guides attached to this lecture.

  • Four Ways AI Coding Assistants Enter Your Code5:51

    Compare autocomplete, chat-generated changes, autonomous edits and AI-opened pull requests by what they can touch and who sees the output first.

  • Context Is the New Attack Surface6:40

    How the context an assistant is given decides what it produces and does, and why that context is now part of your attack surface.

  • The Change Path and the Six Questions5:28

    The seven steps of the change path, from request to release, and the six questions every lab in the course ends with.

  • Meet Pellwood and Issue PEL-4825:05

    Meet Pellwood Software, its AI tools, and issue PEL-482: the change you'll take through every lab.

  • Workshop: Map Pellwood's AI Touchpoints4:24

    Build a risk map of where AI touches Pellwood's lifecycle, and who owns each touchpoint.

Requirements

  • Working familiarity with Git, pull requests and CI/CD basics. You won't need to install Git for the labs.
  • Comfort reading code: the labs use a small Python app, and you'll edit code, tests and YAML settings in a text editor.
  • A Windows or Mac computer for the lab kit. Setup is a double-click, and every install (Python included) is explained in the course.
  • No AI coding assistant or AI account needed. If you can't install software, an observation track uses saved results.

Description

This course contains the use of artificial intelligence.

AI coding assistants now write code, and coding agents open their own pull requests. The real danger isn't that a model sometimes writes a bug. It's a process that ends with "the AI wrote it, the checks passed, so it ships." This course teaches you to take an AI-written change through accountable review, automated checks, a hardened merge gate, a contained agent and an evidence-based release decision, so a named person can stand behind every change that ships.

You'll work on one fictional company's expenses app and one pull request opened by its coding agent, supplied as a lab kit you run on your own computer. The pull request passes every check Pellwood has. You'll review it against criteria you wrote, scan it, verify the packages it added, harden the pipeline it quietly weakened, fence in the agent that wrote it, and build the evidence bundle for a release. Then you'll finish with a capstone release where every automated gate says yes, and you have to decide whether that's true.

What you'll work on

  • The change path (Request, Generate, Review, Check, Gate, Contain, Release) and six questions to ask of every AI-assisted change

  • Security acceptance criteria, trusted context and a review log for a generated change

  • Reviewing generated code for authorization, input and output, error paths and data protection, and proving each finding with abuse cases

  • Static analysis, secret detection and dependency scanning: triaging the results and writing security tests that pin the fix

  • Hallucinated packages and slopsquatting: verifying a suggested package before it touches your machine, then pinning and locking it

  • CI/CD gates: least-privilege workflows, branch protection, required checks, policy as code, exceptions and independent approval

  • Sandboxing coding agents: files, commands, network, credentials, tools and budgets

  • Untrusted issues, instruction files and tool connectors, and stopping an agent from weakening the checks that judge it

  • Release evidence: SBOM, provenance, signing, rollback and an honest statement of unresolved risk

How the course works

  • Eight hands-on labs plus a capstone, each with a step-by-step guide (Word and PDF) and a shared lab worksheet

  • A lab kit you start with a double-click: no Git, no AI coding assistant and no account needed, and every install is explained before you need it

  • Real open-source security tools inside the kit, including Bandit, detect-secrets, pip-audit and zizmor

  • An observation track with saved reference results if you can't install software on your computer

  • Pause-and-decide exercises in the lessons, each followed by a worked answer

  • A capstone release brief, with a model brief to compare yours against

Who this course is for

  • DevSecOps and DevOps engineers whose teams use AI coding assistants or are piloting coding agents

  • Application security engineers who review AI-assisted changes and need evidence, not just green checks

  • Software and platform engineers who own a CI/CD pipeline that AI-written code now flows through

  • Engineering leads who must decide whether an AI-written change is safe to ship, and defend that decision

This is an independent, practical course. It isn't a tour of one vendor's coding assistant, it isn't about securing AI applications themselves, and it isn't preparation for a certification exam. Every test in it is aimed at the supplied lab repository: you'll only ever test systems you own or are authorized to test.

Who this course is for:

  • DevSecOps and DevOps engineers whose teams use AI coding assistants or are piloting coding agents
  • Application security engineers who review AI-assisted changes and need evidence, not just green checks
  • Software and platform engineers who own a CI/CD pipeline that AI-written code now flows through
  • Engineering leads who must decide whether an AI-written change is safe to ship, and defend that decision