The seven / 06 / Security curriculum

Attack Surface Lab

Twenty-seven vulnerabilities, each with its own cure.

RoleAuthor
Year2026
Built withPython 3 · standard library only
StatusSelf-contained — runs offline
Plant · Exploit · Fix · Prove
27 classes.
Same file.
Both modes.
  • Naive modeThe exploit lands
  • Hardened modeThe same exploit fails
  • A/B harnessProves both directions
  • ScopeLoopback and networks you own

What it is

Security training usually fails in one of two directions. Either it's a slide deck with no running code, or it's a deliberately broken application with the fix somewhere else entirely — so the learner sees the exploit but never the change that kills it.

This lab puts the vulnerability and its remedy in the same file behind a mode switch, then proves both: the exploit must succeed against the naive path and fail against the hardened one. Twenty-one guided exercises, eleven written lessons, a pcap dataset and a real access log to work an incident from.

A fix that isn't proven to work is just a comment.

What's in it

The exercises

Twenty-one runnable walkthroughs, from how addresses are actually traced to the full web attack surface.

The lessons

Eleven written notes plus a cheat sheet — the theory behind what the exercises make you do.

The dataset

A pcap capture and an access log with a planted incident, and a key file with the answers.

The harness

One command runs the whole thing: 166 self-checks in about three seconds.

How it works

01

The fix lives beside the flaw

Each class has a naive path and a hardened path in the same file. You read the difference directly instead of diffing against a separate solutions repository.

02

Nothing to install

Standard library only — no pip, no Docker, no admin rights. It runs on a locked-down work machine or a student laptop, and the Windows guide keeps full parity.

03

The harness polices itself

A suite that can silently skip is worse than no suite, because it reports green. This one asserts that a skip cannot be printed without being recorded, and the six checks needing outbound TLS each name that reason.

04

Portability treated as correctness

The suite asserts things about the source itself: that every text-mode file open declares an encoding, and that no cache filename can be illegal on Windows or collide between two addresses. That last one caught a real failure on IPv6 keys.

05

Real artefacts, not toys

RDAP and WHOIS lookups against public registries, TLS and SNI certificate parsing, detection engineering over captured traffic, and configuration auditing.

06

Updates without re-downloading

Distributed as a git bundle: clone once, then pull forever. No zip files, no version confusion.

At a glance

27
Vulnerability classes
21
Exercises
11
Lessons
166
Self-checks

Want one of these built for you? Send the brief.

Next product FirstLight
Read it