Skip to content

Course

DevSecOps: Security in the Pipeline

Wire secrets scanning, SAST, dependency and IaC auditing, container scanning, signing, and DAST into CI so findings land as minutes-cheap feedback instead of a quarterly PDF nobody reads.

12 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

The Shift-Left Model

Why security belongs in the pipeline, where each control sits in the lifecycle, and how to gate without triggering a developer revolt.

  1. 01Security as a Feedback Loop, Not a GateDetection latency drives fix cost — a finding that arrives in minutes teaches, and one that arrives in a quarterly PDF teaches nothing.18mOpen
  2. 02Anatomy of a Security-Aware PipelineFive stages, five latency budgets, and the rule that decides where each control lives: fast and deterministic early, slow and probabilistic late.20mOpen
  3. 03Advisory vs Blocking: Gating Without a RevoltSeverity isn't exploitability, day-one findings need a baseline not a wall, and every gate needs designed escape hatches — or developers build their own.20mOpen

The Scanner Toolkit

SAST, secrets scanning, and dependency auditing — what each tool actually catches, where each one lies to you, and how to tune the noise.

  1. 01SAST: Static Analysis That Doesn't Cry WolfStatic analysis is the workhorse of shift-left and its biggest noise source — the job isn't running Semgrep, it's curating what it's allowed to say.22mOpen
  2. 02Secrets Scanning: Committed Keys Are ForeverDeleting the line doesn't delete the secret — git is append-only, bots watch every public commit, and the only real remediation is rotation.20mOpen
  3. 03Dependency Auditing: Most of Your Code Isn't YoursLockfiles, scanners, SBOMs, and the attack classes CVE feeds never see — confusion, hijacks, and install-script backdoors like xz's CVE-2024-3094.22mOpen
  4. 04IaC Scanning: Kill the Misconfig in the DiffThe public S3 bucket is born as one line in a Terraform PR weeks before deploy — trivy config and Checkov gate the diff, and tfstate carries plaintext secrets.20mOpen

Ship and Defend

Container scanning, DAST against the running app, and the triage and ownership loops that keep findings from rotting in a backlog.

  1. 01Container Scanning: Images Are Frozen FilesystemsEvery package in the image ships to prod and stays that vulnerable until you rebuild — base-image hygiene, digest pinning, and Trivy flags that keep the gate honest.22mOpen
  2. 02Provenance: Prove What You ShippedA signature says who signed it; provenance says which commit and which build run made it — cosign keyless, in-toto attestations, SLSA levels, and admission enforcement.20mOpen
  3. 03DAST: Attacking the Running AppSAST reads the recipe; DAST tastes the soup — it finds what only exists because the app runs, if you can get it authenticated and pointed at the right target.20mOpen

The Pipeline and the Program

The CI system itself as attack surface, and the triage, ownership, and exception loops that keep findings from rotting in a backlog.

  1. 01The Pipeline Is the TargetCodecov's bash uploader, the tj-actions tag re-point, pull_request_target, and script injection — the CI system is a remote-code-execution service holding your keys.22mOpen
  2. 02Making the Loop Work: Triage, Ownership, and TrustThe scanners are the easy half — the program survives or dies on one triage queue, clear ownership, expiring exceptions, and honest metrics.20mOpen