← Teacher guides

Teacher guide: Security lab: audit a Pi with Kali

For Years 9–10: learn security the way a defender does. Work in a pretend lab with a Kali computer and a target Pi: scan to see what is listening, read versions and logs, harden the target, then scan again to prove it and write the report. Everything on the page is simulated and safe. A real lab (a Pi running Kali and a target on an isolated switch, no internet) needs your teacher's sign-off first, and this course stops at find, understand and fix.

Open the student course · How the ideas build

Each lesson works two ways. Students can work through the online tutorial at their own pace (it checks their answers and saves their progress in their browser), or you can teach it to the whole class from the slides, then send students into the tutorial for the Modify and Make steps.

Every lesson guide has plain-language notes, the answers to every check, a solution for every task, and slides and a worksheet for Waypoints Prepare. These guide pages are not linked from student pages, but they are not secret either: keep printed Teacher editions for answers you do not want students to find.

Whole-course cheat sheet: Open to print (every command, grouped by unit: a handout for the final challenge)

The lab

The rules, the target, and finding what is listening.

The security lab in 5 minutes (read before teaching this unit)

The idea in plain words

Security testing means looking for weaknesses in a computer so they can be fixed. It is only fair on a computer you own or have written permission to test, and only the ones named on the lab sheet. The lab is cut off from every other network (a switch, no router, no internet), so nothing you do can leak out.

Kali is a toolbox of security tools. The target is the computer you may test. A port is a numbered door on a computer (22 ssh, 80 web, 21 ftp, 23 telnet) and a service listens behind it. nmap scans the target and lists the open ports. Open only means something is listening.

Where to run it for real

The board is a pretend Kali and a pretend target, safe anywhere. A real lab needs your teacher's sign-off: school policy and IT's agreement, a signed lab agreement, an isolated lab and a named target. This course stops at find, understand and fix.

What students get wrong

  • A scan that breaks nothing is harmless. Permission comes first.
  • Open means hacked. It means listening.
  • Closed means safe. Closed ports can still sit next to weak passwords.

The words

scope, permission, target, port, service, scan, finding.

Cheat sheet: Open to print (A4, with board pictures) · Open in Print · Markdown

Audit

Versions, plain text and what guessing looks like in the log.

Auditing in 5 minutes (read before teaching this unit)

The idea in plain words

nmap -sV asks each open service for its version. Old versions miss fixes for problems that are now public, so an old version is a finding. Some services are findings at any version: telnet sends everything, passwords included, as readable text, and ssh does the same job encrypted.

Every login attempt is written to /var/log/auth.log, which only an administrator can read (sudo). grep Failed shows failures and grep -c counts them. Many failures for one account from one address in a short time is guessing.

Where to run it for real

On a real lab, the advisory sheet is a printed or offline list your teacher makes, since there is no internet. With internet, testers look versions up in a database of known problems. Read them to understand the risk; do not run what they describe.

What students get wrong

  • A version is just a label. It says which fixes are present.
  • Failed logins mean the defence worked. A run of them is the warning.
  • New means safe. Telnet is plain text at any version.

The words

version, finding, plain text, log, guessing.

Cheat sheet: Open to print (A4, with board pictures) · Open in Print · Markdown

Fix

Close doors, upgrade, tighten the login and filter.

Fixing and proving it in 5 minutes (read before teaching this unit)

The idea in plain words

Fixes work in layers, and each does one job. Stop services you don't need (sudo systemctl stop name, and disable to keep them off after a reboot). Upgrade old software (sudo apt update, sudo apt upgrade). Tighten ssh with PermitRootLogin no and PasswordAuthentication no in /etc/ssh/sshd_config, then sudo systemctl restart ssh, because ssh reads its settings only at start-up. Filter with the firewall (sudo ufw allow 22, allow 80, then enable).

A firewall does not fix old software behind an allowed door. And a fix is not proved until you scan again: scan, fix, scan again, and keep both scans as evidence. A scan sees doors and versions only, so the report says what it did not check.

Where to run it for real

Before turning off password login, set up key login and test it in a second session, or you will lock yourself out. A real offline lab upgrades from a local mirror or a USB bundle. If students will not have done System admin, the commands here are taught as they go.

What students get wrong

  • A firewall makes old software safe. It filters who reaches the door.
  • Running the fix means it is fixed. Scan again, and after a reboot.
  • A clean scan means secure. It means clean on its own list.

The words

harden, layer, upgrade, restart, evidence, limits.

Cheat sheet: Open to print (A4, with board pictures) · Open in Print · Markdown

Audit

Scan, fix, scan again, and report honestly.

Cheat sheet: Open to print (A4, with board pictures) · Open in Print · Markdown

Project briefs

Printable task sheets for assessment or extension: students make something, hand it in and explain their choices. The success criteria are the curriculum nodes' own. Open the briefs page

Audit a lab server (after audit-report)

You have been asked to audit the lab target and write the report a school would act on.

The report shows what you scanned (and had permission to scan), what you found, what you fixed, and how you proved it. It is honest about what you did not check.

Hand in:

  • The lab agreement you worked under: what was in scope, who gave permission, what you were allowed to change.
  • Your before and after scans, side by side, with the differences marked.
  • A table of findings: what each one is, the risk, the fix, and one thing the fix does not protect against.
  • A short explanation of the difference between proving who someone is (a login) and what they may do once in (permissions), using the login log from the target, and a list of what your audit did not test.

Evidences:

  • Access control mechanisms (AC9TDI10K01 node 3): Distinguishes authentication from authorisation/permissions correctly; Explains what a specific access control mechanism protects against in a networked context
  • Integration — how hardware and software work together in secured networks (AC9TDI10K01 node 5): Identifies the role of at least two distinct components in securing data in a networked system; Explains how the components interact — not just what each does individually

Good reports treat the audit as a cycle with evidence, and are plain about limits: a clean scan is clean only on what a scan sees. Check that the scans really differ, that each fix matches a finding, and that the 'does not protect against' column is honest rather than empty. The explanation of the login log is where node 3 shows: guessing is an attack on authentication, and permissions and root-login settings are authorisation. Node 5 shows in the table: stopping services, upgrading, ssh settings and the firewall are components that work together, and none does the whole job. A real-lab version needs your sign-off (see the course page); the brief works from the pretend lab's output too. This course does not teach breaking in: if a student wants to go further, treat it as a separate supervised extension.