Project: Build an Isolated Lab and Personal Threat Model
Create a safe, snapshotted lab for hands-on practice and produce a threat model for a system you actually use.
By the end, you’ll be able to…
- Design an isolated lab that cannot affect production or other people's systems.
- Create and verify snapshots before experimenting with security tools.
- Write rules of engagement that define scope, authorisation, and data handling.
- Produce a personal threat model with prioritised, testable controls.
01Why Isolation Comes First
Every hands-on skill in this course depends on a safe place to practise. A lab is not a toy. It is a controlled environment where you can break things, inspect traffic, and run offensive tools without touching systems you do not own. The difference between a security professional and a criminal is often authorisation, not knowledge.
Isolation has two parts. First, logical isolation: the lab should not be able to reach your real work network, production cloud account, or another person's machine unless you deliberately allow it. Second, recoverable state: you should be able to return a virtual machine to a known-good snapshot after an experiment. Snapshots are not backups, but they are excellent for undoing mistakes quickly.
Use a hypervisor such as VirtualBox, VMware, UTM, or Hyper-V. Create an Ubuntu virtual machine as your daily analysis workstation and a Kali Linux virtual machine for security tooling. Keep both on a host-only or internal network. Do not bridge them to your home network unless an exercise explicitly requires it and you understand the exposure.
02Build the Lab in Layers
Start with the host. Apply operating-system updates, enable full-disk encryption, and keep the hypervisor current. Create a dedicated folder for virtual machines and exclude it from any automatic cloud sync unless you intend to store lab data there. Give the host enough RAM to run one or two guests comfortably; 16 GB is a practical minimum for most learners.
Create the Ubuntu guest first. Install updates, create a non-root user, enable a firewall, and take a snapshot named 'clean-install'. Then create the Kali guest, update its package lists, and take another snapshot. If a tool installation breaks the environment, revert the snapshot and try again. Document the network mode, IP ranges, and credentials in a lab notebook.
Add a deliberately vulnerable target only when you reach the relevant module. Running an intentionally insecure application is useful, but it must remain on the isolated network. Never expose a vulnerable target to the internet, even briefly. A public IP address can be discovered by scanners within minutes.
# Run inside each Linux guest.hostnameip -brief addressip routesudo ufw status verbose# Confirm the guest is on the isolated lab network,# not your home or office LAN.ping -c 2 10.10.10.1# Record what is installed and when the snapshot was taken.date --iso-8601=secondsuname -aanalysis-vm lo UNKNOWN 127.0.0.1/8 eth0 UP 10.10.10.20/24 default via 10.10.10.1 dev eth0 Status: active Logging: on (low) Default: deny (incoming), allow (outgoing)
03Write Rules of Engagement
A rules-of-engagement document protects everyone. It states what is in scope, what is out of scope, who authorised the work, when testing may occur, how data will be handled, and how findings will be reported. Even for a personal lab, write a one-page charter. The habit transfers directly to professional engagements.
For the lab, scope might be 'the two virtual machines on the 10.10.10.0/24 host-only network'. Out of scope: the host operating system, your home router, public websites, cloud accounts, and any device belonging to another person. Data handling: do not insert real customer data, real credentials, or personal health information into lab systems. Use synthetic data.
The charter should also define stop conditions. If an experiment starts affecting the host, the network, or another device, stop, disconnect the lab network, and revert the snapshot. Write down what happened before you fix it. The note is part of the learning.
04Project Brief: Lab Charter and Personal Threat Model
Your deliverable has two parts. First, a lab charter: a one-page document containing the purpose, scope, out-of-scope systems, authorisation statement, network diagram, snapshot names, data-handling rules, and stop conditions. Include the commands you used to verify isolation and the output that proves it.
Second, a personal threat model for one system you actually use, such as your laptop, email account, or a small website you maintain. List the assets, entry points, trust boundaries, three realistic adversaries, five STRIDE-informed threats, and one prioritised control for each threat. End with a short 'what I will do this week' list.
A strong submission is specific and honest. It names real risks without exaggeration, distinguishes what you control from what you do not, and includes at least one control you can implement immediately: MFA on your primary email, automatic updates, a password manager, encrypted backups, or a screen lock. The goal is not a perfect lab. The goal is a repeatable, safe way to learn.
# Lab CharterPurpose: practise security tooling and incident analysis safely.Authorisation: I own and control the host and both virtual machines.In scope: 10.10.10.0/24 host-only network, analysis-vm, kali-vm.Out of scope: host OS, home router, public websites, cloud accounts, any device I do not own.Network: host-only, no bridged adapter, no port forwarding to the internet.Snapshots: analysis-vm/clean-install, kali-vm/clean-install.Data: synthetic data only; no real credentials or customer records.Stop conditions: unexpected host traffic, network reachability beyond the lab, or any sign that a guest can reach the home LAN.Recovery: power off guest, revert snapshot, record the event in the notebook.The ideas worth keeping.
- A safe lab is isolated, snapshotted, documented, and used only with authorisation.
- Write a charter before you install tools; scope and data handling are part of the engineering.
- Threat models are most useful when they end in a small number of owned, testable actions.
- Verify isolation with commands and evidence rather than assuming a network setting is correct.
Make it yours.
Type and test your code right here in the interactive workspace. Run your solution, check the output, and compare with the worked guide when ready.
Exercise 1: Verify isolation
Write a short checklist that proves your lab guest cannot reach your home router or the public internet, while still being able to reach another lab guest. Explain why each check matters.
Explore a worked solution
1. Run 'ip route' and confirm the default route points only to the lab gateway, not the home router.
2. Run 'ping <home-router-ip>' and confirm it fails or is blocked.
3. Run 'curl -I https://example.com' and confirm egress is blocked or intentionally disabled.
4. Run 'ping <second-lab-guest-ip>' and confirm the lab peers can communicate.
5. Run 'sudo ufw status verbose' and record the firewall rules.
Each check verifies a different boundary: routing, isolation from the home LAN, internet egress, intra-lab connectivity, and host firewall state.Isolation is a property you verify, not a checkbox you assume. Record the evidence and repeat the checks after changing network settings.
Exercise 2: Write three personal threats and controls
For your primary email account, write three specific threats and one control for each. Include the asset, the path, and the consequence.
Explore a worked solution
1. Credential stuffing: a password reused from another breach unlocks the mailbox. Control: a unique password in a password manager plus phishing-resistant MFA.
2. Session theft: malware steals a browser session cookie. Control: keep the browser and OS updated, use a password manager that binds to the device, and revoke sessions after any suspected compromise.
3. Account recovery abuse: an attacker convinces a support agent to reset access. Control: use a strong recovery method, remove outdated recovery email addresses and phone numbers, and enable login alerts.Each entry names a path and a consequence. The controls are practical and can be implemented this week, which is what makes a threat model useful.
What stayed with you?
Check the ideas while they’re fresh. Your answers stay in this page and feedback appears as you go.
Keep exploring.
The official references behind this lesson, when you want a second angle or the full details.
One lesson closer.
Reading is a start. Trying it yourself makes the connection.