Foundations of Cybersecurity

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.

Download lab-files.zip

Lab 10’s disk and memory images are large and are provided by your instructor. Instructor keys and model solutions are not posted here; instructors can request them.

The labs at a glance

“Lab VMs” means the isolated environment in Appendix A. “Desk” means the lab needs only a spreadsheet, a text editor, or Python on any computer. Times are for a student working alone after the lab environment is built, and include a short write-up.

LabTitleMain toolsWhere it runsTimeChapter
1Building the Lab and Signing the Rules of EngagementHypervisor, Kali Linux, Ubuntu ServerYour computer2–3 hoursCh. 1
2Capturing Traffic, Scanning, and Testing SegmentationWireshark, Nmap, nftablesLab VMs3 hoursCh. 2
3Mapping a Real Incident to ATT&CKMITRE ATT&CK Navigator, a published advisory, lab logsDesk, then lab VMs2–3 hoursCh. 3
4Encryption, Hashing, and Password StorageOpenSSL, Python (cryptography, argon2-cffi)Lab VMs3 hoursCh. 4
5Certificates, TLS, and Secrets in PracticeOpenSSL, nginx, Wireshark, curl, a secrets managerLab VMs3–4 hoursCh. 5
6Attacking and Defending Passwordshashcat or John the Ripper, Python, a TOTP appLab VMs2–3 hoursCh. 6
7Exploiting and Fixing a Deliberately Vulnerable Web ApplicationOWASP Juice Shop, ZAP or Burp Suite Community, Syft and GrypeLab VMs (container)4 hoursCh. 7
8Hardening a Server and Breaking Out of a ContainerOpenSCAP or Lynis with a CIS profile, DockerLab VMs; optional cloud3–4 hoursCh. 8
9From Logs to AlertsWazuh (or Security Onion), Sysmon, Sigma CLI, Atomic Red TeamLab VMs (16 GB RAM or more)4 hoursCh. 9
10Disk and Memory ForensicsVolatility 3, Autopsy, sha256sumLab VMs (provided images)3–4 hoursCh. 10
11A Gap Assessment Against NIST CSF 2.0Spreadsheet, case packetDesk3 hoursCh. 11
12Mapping Data and Racing the ClockSpreadsheet, the Chapter 12 notification calculator, tabletop scenarioDesk; team exercise3 hoursCh. 12
13Breaking Toy CryptographyPythonDesk or lab VMs3 hoursCh. 13
14Modeling and Checking a Security PolicyAlloy, TLA+ with TLC, or PythonDesk3 hoursCh. 14
15Attacking and Defending a Tool-Using AgentA small local language model, an agent framework, Mailpit, safetensorsLab VMs (isolated)4 hoursCh. 15
16Talking to a PLCModbus simulator, open-source HMI, Wireshark, pymodbus, Suricata or ZeekLab VMs3 hoursCh. 16
17Breaking and Protecting a ReleasePython with pandas, ARX, OpenDPDesk3 hoursCh. 17
18Measuring a Security BehaviorPython or R with a provided data setDesk2–3 hoursCh. 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.