Hands-on labs
Labs and lab files
Each chapter has a hands-on lab, previewed in its Looking Ahead section. All eighteen run in one low-cost environment that you build in Lab 1 and keep using.
Before you begin. Read Appendix A, Lab Environment and Rules of Engagement. You will sign the rules in Lab 1. Practice only on systems you own or have explicit written permission to test, and only inside the isolated lab network. Where the appendix and a lab’s own ground rules differ, follow the stricter one.
Download the student lab files
Starter code, data sets, and case packets for the labs that need them (Labs 4, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18). Labs not listed use only the tools named in the table below.
The labs at a glance
| Lab | Title | Main tools | Where it runs | Time | Chapter |
|---|---|---|---|---|---|
| 1 | Building the Lab and Signing the Rules of Engagement | Hypervisor, Kali Linux, Ubuntu Server | Your computer | 2–3 hours | Ch. 1 |
| 2 | Capturing Traffic, Scanning, and Testing Segmentation | Wireshark, Nmap, nftables | Lab VMs | 3 hours | Ch. 2 |
| 3 | Mapping a Real Incident to ATT&CK | MITRE ATT&CK Navigator, a published advisory, lab logs | Desk, then lab VMs | 2–3 hours | Ch. 3 |
| 4 | Encryption, Hashing, and Password Storage | OpenSSL, Python (cryptography, argon2-cffi) | Lab VMs | 3 hours | Ch. 4 |
| 5 | Certificates, TLS, and Secrets in Practice | OpenSSL, nginx, Wireshark, curl, a secrets manager | Lab VMs | 3–4 hours | Ch. 5 |
| 6 | Attacking and Defending Passwords | hashcat or John the Ripper, Python, a TOTP app | Lab VMs | 2–3 hours | Ch. 6 |
| 7 | Exploiting and Fixing a Deliberately Vulnerable Web Application | OWASP Juice Shop, ZAP or Burp Suite Community, Syft and Grype | Lab VMs (container) | 4 hours | Ch. 7 |
| 8 | Hardening a Server and Breaking Out of a Container | OpenSCAP or Lynis with a CIS profile, Docker | Lab VMs; optional cloud | 3–4 hours | Ch. 8 |
| 9 | From Logs to Alerts | Wazuh (or Security Onion), Sysmon, Sigma CLI, Atomic Red Team | Lab VMs (16 GB RAM or more) | 4 hours | Ch. 9 |
| 10 | Disk and Memory Forensics | Volatility 3, Autopsy, sha256sum | Lab VMs (provided images) | 3–4 hours | Ch. 10 |
| 11 | A Gap Assessment Against NIST CSF 2.0 | Spreadsheet, case packet | Desk | 3 hours | Ch. 11 |
| 12 | Mapping Data and Racing the Clock | Spreadsheet, the Chapter 12 notification calculator, tabletop scenario | Desk; team exercise | 3 hours | Ch. 12 |
| 13 | Breaking Toy Cryptography | Python | Desk or lab VMs | 3 hours | Ch. 13 |
| 14 | Modeling and Checking a Security Policy | Alloy, TLA+ with TLC, or Python | Desk | 3 hours | Ch. 14 |
| 15 | Attacking and Defending a Tool-Using Agent | A small local language model, an agent framework, Mailpit, safetensors | Lab VMs (isolated) | 4 hours | Ch. 15 |
| 16 | Talking to a PLC | Modbus simulator, open-source HMI, Wireshark, pymodbus, Suricata or Zeek | Lab VMs | 3 hours | Ch. 16 |
| 17 | Breaking and Protecting a Release | Python with pandas, ARX, OpenDP | Desk | 3 hours | Ch. 17 |
| 18 | Measuring a Security Behavior | Python or R with a provided data set | Desk | 2–3 hours | Ch. 18 |
Labs that need extra care
Four labs handle material that could cause harm outside the lab. Lab 6 produces cracked passwords: crack only hashes you created, and delete the results when you finish. Lab 7 uses working exploits: run them only against your own Juice Shop instance. Lab 10 uses images from a compromised machine: treat any recovered executable as live malware. Lab 15 plants prompt injections designed to make an AI agent leak data: keep the agent, its mail server, and its web server on the isolated network, and never connect it to a real mailbox, file share, or API key.
Tool versions
The labs were written and tested against the tool versions current in late 2026. When a tool changes in a way that breaks a step, the fix is posted on the Updates page.