All courses

Python for security automation

For people who have finished Bash for ops and know little Python. You learn enough of the language to write maintainable automation on Ubuntu Server 26.04 with CPython 3.14: virtual environments, values and collections, functions and exceptions. Then the automation core: files and safe writes, subprocess without a shell, regular expressions, JSON, CSV, YAML and TOML, streaming logs, logging and retries, HTTP APIs with timeouts and TLS, secrets, hashing and HMAC. It ends with argparse, pytest, packaging with a hash-locked install, and an IOC sweep tool built end to end. Every example ran on the lab machine against local fixtures and a local HTTPS API.

Intermediate4 sections · 16 lessons · ~10h total · 46-question self-test

Progress is saved in this browser only — no account required.

Quick reference

Final exam
Test yourself on everything
46 questions drawn from all 4 sections — every answer explained as you pick.
Start final exam