Methodology¶
Every module in netsec-lab is built around the same loop. Learning an attack in isolation teaches you to break something; learning it next to its detection and its defense teaches you to secure it. That pairing is the whole point.
The attack → detect → defend loop¶
- Attack -
netlab-<x> attack --i-own-this-networkReproduce the attack on the isolated segment and watch it work on the wire. - Detect -
netlab-<x> detectObserve the signature the attack leaves, and the IDS rule that catches it. - Defend -
netlab-<x> defendApply the countermeasure (switch/router/host) and confirm the attack now fails - then map it to the equivalent real-world device configuration.
Every documentation page follows the same template¶
- Context & stakes - the protocol and why it is exploitable.
- Theory - the mechanism (exchange diagram, frame format).
- Attack (PoC) - the command and what to observe.
- Detection - indicators and the associated IDS rule.
- Defense - the countermeasure and its real configuration.
- Exercise - reproduce it yourself in the lab.
- Further reading - RFCs, CVEs, papers.
Brief-driven docs¶
Each package carries a structured Lesson (title, layer, summary, attack,
defense). Run netlab-<x> brief to print it - the first five sections of each
doc page are seeded from that same object, so code and docs never drift.