Skip to content

Track 10 — Security Automation

Automate the pipeline, not just the script. Infrastructure as code, CI/CD security gates, and SOAR — the standing automation discipline that runs through every other track, done deliberately. Anyone can automate now; doing it well, and owning the result, is the skill.

What you'll be able to do

  • Define and review infrastructure as code, with security gated in CI.
  • Manage configuration and hardening at scale.
  • Build response playbooks that enrich, contain, and ticket with a human in the loop.
  • Treat detections and remediation as code.

Modules

# Module What you'll learn OSS tools
01 The Automation Mindset Where automation pays off — and where it bites —
02 Infrastructure as Code Reproducible infra from zero terraform, opentofu
03 IaC Security Scanning Gating misconfigurations in CI checkov, tfsec
04 Configuration Management Hardening and state at scale ansible
05 CI/CD Pipelines & Gates Security checks from commit to deploy github actions, gitleaks
06 Containerising Tooling Reproducible, shareable security tools docker
07 Enrichment & Data Pipelines Scheduled collection and processing python, cron
08 SOAR Fundamentals Playbooks: enrich → contain → ticket Shuffle, n8n
09 Detection-as-Code Pipelines Versioned, tested detections in CI sigma, pytest
10 Reviewing AI-Generated Automation Catching what the model got wrong checkov
11 Secrets Handling in Pipelines Short-lived federated creds (OIDC) instead of stored pipeline secrets localstack, OIDC
12 Click-ops → IaC Migration Adopt running hand-built infra under IaC without an outage terraform import

Phases & projects

The twelve modules run in three phases; each ends in a project that integrates its modules (a phase is the substantial, standalone unit — a single module is a few hours). Every project is reviewed, version-controlled code with a note on what AI generated vs. what you corrected.

  • Phase 1 · Infrastructure & config as code (01–04, 12) — Project: define a small environment in Terraform/OpenTofu and configure it with Ansible, with checkov/tfsec gating misconfigurations — proving a deliberately over-broad rule is blocked before apply — then adopt a running, hand-built resource under IaC incrementally without an outage (strangler-fig).
  • Phase 2 · Pipelines & portable tooling (05–07, 11) — Project: a CI/CD pipeline that runs secret-scanning and security gates from commit to deploy, a containerised security tool that runs the same everywhere, and a scheduled enrichment pipeline feeding processed data downstream — and authenticates with short-lived OIDC-federated credentials so there is no stored pipeline secret to leak.
  • Phase 3 · Response & detection as code (08–10) — Project: the track capstone — a SOAR playbook that enriches → contains → tickets with a human approval step, plus detections-as-code tested in CI — and a review pass that catches what an AI-generated version got wrong.

Prerequisites

Complete Track 00 — Foundations; Track 09 — Python helps.

Run automation against your own accounts and lab infrastructure only. Generated IaC can create real, billable, internet-facing resources — review before you apply.

Capstone

Build a pipeline that gates a misconfiguration before deploy and a SOAR playbook that responds to an alert with a human approval step — both as reviewed, version-controlled code. Deliverable: the pipeline, the playbook, and a note on what AI generated vs. what you corrected.

The starter scaffold and acceptance checks live in plaintext-labs/automation/capstone/.

Capstone rubric

Two things must work: a CI gate that blocks a bad config and a playbook with a human approval step. Proficient is the bar to ship.

Dimension Developing Proficient Exemplary
CI gate Scanner runs but doesn't block A misconfiguration is blocked before deploy by a scanner in CI Gate is tuned (no false-positive noise), passes the fixed config, and explains the failure
SOAR playbook Linear automation, no human gate Enrich → contain → ticket with an explicit human approval step Idempotent, handles failure/rollback, and logs each action for audit
As-code discipline Click-ops or untracked scripts Pipeline and playbook are version-controlled, reviewable code Modular and reusable across labs; secrets handled out of band
Review of AI output Generated YAML/HCL shipped unread The note names what AI generated and what you corrected A concrete over-broad-RBAC / wildcard-IAM / missing-gate catch documented and fixed
Reproducibility Runs only on your machine A reader can run the pipeline and trigger the playbook One command stands up the whole loop; teardown is clean

AI & automation

The whole track is the AI/automation thesis: AI writes the YAML, HCL, and playbook logic — and generated automation is exactly where misconfigurations hide (over-broad RBAC, wildcard IAM, missing approval gates). The posture: AI authors → you review → scanners gate → you own it. "I don't write the YAML, I own the YAML."

Standards & further reading

  • Terraform / OpenTofu and Ansible documentation
  • CIS Benchmarks as policy targets
  • NIST SP 800-128 (Security Configuration Management)
  • MITRE ATT&CK for mapping SOAR responses

Comments

Sign in with GitHub to comment. Choose the type: Feedback (errors or suggestions on this page) · Hints (help for fellow learners — no spoilers) · General (anything else).