
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.
Compare autocomplete, chat-generated changes, autonomous edits and AI-opened pull requests by what they can touch and who sees the output first.
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 seven steps of the change path, from request to release, and the six questions every lab in the course ends with.
Meet Pellwood Software, its AI tools, and issue PEL-482: the change you'll take through every lab.
Build a risk map of where AI touches Pellwood's lifecycle, and who owns each touchpoint.
Get the lab kit running on an ordinary Windows or Mac computer with a double-click, or follow along on the observation track with nothing installed.
A tour of the kit folder and the console's eight pages, so you can find every part you'll use in the labs.
The optional hosted-repository route, and the safety rules every lab follows.
Write testable security acceptance criteria before the code exists, tied to a policy rule or a threat.
Decide which sources may go into an assistant's context for a security-sensitive change, and which never should.
What the author and the approver are each accountable for, and the evidence a review must leave behind.
Lab 1: write the criteria, context decisions and review plan PEL-482 should have had, before anyone looks at the code.
Compare your Lab 1 criteria, context decisions and review plan with the reference.
The failure patterns typical of generated code, and why they slip past a quick review.
Check who may call each new endpoint and act on each record in a generated diff.
Check how a change handles hostile input, what it outputs, and what happens when something fails.
Write benign and abuse cases that prove a feature's security behavior.
Lab 2: review the agent's pull request against your criteria, prove each finding, and add misuse cases of your own.
Compare your Lab 2 findings with the reference review and repair plan.
What static analysis, secret detection and dependency scanning each detect, and what each one can't see.
Decide what to do with each scanner finding and record why: true positives, false positives and suppressions.
Write security tests that fail on the defect and pass on the fix.
Trace why a clean scan didn't mean a safe change.
Lab 3: scan the pull request, triage every finding, fix the code and pin each fix with a security test.
Compare your Lab 3 triage, tests and repaired feature with the reference.
Why AI tools suggest packages that don't exist, and how attackers take advantage of it.
Check a package's existence, identity, origin and history without installing it.
Control what gets installed, from where, and what runs during install: lockfiles, pinning, allowed registries and install scripts.
Lab 4: verify every package the change added, decide what stays, lock it and write the verification note.
Compare your Lab 4 package decisions with the reference.
Reduce what a CI/CD workflow and its token can do.
Make the required checks and an independent human approval impossible to skip.
Write merge rules as testable policy, and handle exceptions without weakening them.
Trace, stage by stage, how a weak merge gate let a pipeline-weakening change through.
Lab 5: harden the workflow, build a merge gate that blocks the agent's pull request and allows your fix, and write a dated exception.
Compare your Lab 5 workflow, gate settings and exception with the reference.
What a coding agent running as you can reach by default, and why that matters.
Design a sandbox's file, process and network limits.
Give an agent short-lived, scoped credentials, limit its tools, time and spend, and clean up after it.
Lab 6: write a sandbox profile that stops harmful agent actions without breaking legitimate work.
Compare your Lab 6 sandbox profile with the reference.
Treat text from issues, comments, documentation and tool output as data, not instructions.
Protect the instruction files and rules that coding assistants load as standing instructions.
Decide which tool connectors and MCP integrations an agent may use, and with what scope.
Recognize and block changes that weaken the checks that judge an agent's own work.
Lab 7: trace each unrequested change to the context behind it, scan what the agent was given, and add context controls to your gate.
Compare your Lab 7 traces, scan results and gate controls with the reference.
The evidence a release decision should rest on, and how to tell whether it all describes what actually ships.
What provenance and signing prove, what they don't, and how SLSA levels fit in.
Plan a staged release with a tested rollback and an honest statement of unresolved risk.
Lab 8: build release candidate 2.4.0, complete its evidence bundle, and verify it.
Compare your Lab 8 evidence bundle with the reference.
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.