Labs

215 labs, 33 roads

Each lab is a small network of real Linux machines with steps to run. They come in 66 short groups on 33 roads, easy to hard.

Networking

01

Network Basics

What a network is, how machines find each other, and how a machine joins one.

2 groups · 9 labs · medal: Crossroads

Your first network

What a network is, by building one.

  1. 01 What is a network: connect two machines and send a message Connect two machines, send a message, then pull the cable mid-conversation.
  2. 02 Network types: LAN, WAN and what stops when a line is cut Time a printer, a Wi-Fi laptop and a far branch, then cut the line.
  3. 03 Clients and servers: turn a plain machine into a server Serve notes from Mia's machine, ask for them by hand, then stop the server.
  4. 04 Network devices: what a hub, switch, router and firewall each do See how much of a message each box reads, and what it does next.
  5. 05 IP addresses: what the four numbers mean Split one in two, and watch a machine decide who is near.

Neighbours & joining

Finding the next machine, getting an address, reading the wire.

  1. 01 MAC and ARP: how an IP address finds a card Catch the question a machine asks before it can send a thing.
  2. 02 DHCP: how a machine gets its address Join a network with nothing and leave with everything you need.
  3. 03 OSI model: read the layers on a real packet One request, four wrappers, and the fault each wrapper can name.
  4. 04 Linux networking: bring a blank machine online by hand Four settings, typed one at a time, then written down to survive a restart.
02

Protocols

The languages machines speak: TCP, UDP and DNS, the web, shells, time, files and mail.

4 groups · 13 labs · medal: Protocols

Ports, TCP & UDP

The right program, and what a lost packet costs.

  1. 01 Ports and sockets: one address, many programs One machine, one address, many programs: find out how each request reaches the right one.
  2. 02 TCP: how a file survives a bad line A radio line loses one packet in five, and the file still arrives whole.
  3. 03 UDP: why late is worse than lost TCP vs UDP on a bad link: see why losing pictures beats freezing.

Names & errors

DNS names and ICMP errors.

  1. 01 ICMP: what the network says when delivery fails Read the messages routers send back: unreachable, time exceeded and too big.
  2. 02 DNS: how a name finds its address, and why changes take time Follow a name down the DNS hierarchy, then watch two resolvers disagree after a move.
  3. 03 DNS servers: run the zone that answers for your names Edit a zone, run a DNS zone transfer, then forward, filter and encrypt the questions.

The web & remote shells

HTTP, TLS and SSH.

  1. 01 HTTP: read the requests behind every web page Read HTTP requests line by line, then find the order a redirect lost.
  2. 02 HTTPS and TLS: lock a site and prove who it is Move a site to HTTPS, read its TLS certificates, and see what still shows.
  3. 03 WebSockets: keep a connection open for live updates Replace a screen that keeps asking with one the server talks to.
  4. 04 SSH: log in to a far machine and prove who's who Log in with keys, read a host key warning, and jump through an SSH bastion.

Files, mail & time

FTP, mail and NTP.

  1. 01 File transfer: why the login works and the list hangs See FTP active/passive modes on the wire, then move files by SFTP and TFTP.
  2. 02 Email: where a message goes after you press Send See how email works by hand: MX records, SMTP, relays, IMAP and the queue.
  3. 03 NTP: keep every clock on the network honest See how NTP sets a clock from four timestamps and catches a server that lies.
03

IP Addressing & NAT

Subnets, sharing one public address with NAT, and IPv6.

3 groups · 12 labs · medal: IP Addressing & NAT

Addresses and subnets

Private addresses, masks, cutting blocks to size, and joining them.

  1. 01 Public and private IP addresses: how two homes use one address Open one address in two homes, then find the address a website sees.
  2. 02 Subnet masks: why a machine on the same switch is out of reach Find the setting that decides who a machine counts as a neighbor.
  3. 03 Subnetting: cut one network into four to protect an exam paper Subnetting practice: split one network into subnets, then stop students at the router.
  4. 04 CIDR and VLSM: fit a whole hotel into one block of addresses Cut one block of addresses into subnets of different sizes, with CIDR and VLSM.
  5. 05 Supernetting: turn a list of routes into one line Join neighboring blocks into one route, and stop the loop a summary can cause.

NAT

Sharing one public address.

  1. 01 NAT: share one public address across a whole building Hide a network behind one public address, and see how replies find the way back.
  2. 02 Port forwarding: let the internet reach one machine behind NAT Open one port on a NAT router so outsiders can reach a machine inside.
  3. 03 NAT explained: static, dynamic and PAT on one router Build static NAT, a pool and overload on one router, and see what each costs.
  4. 04 NAT traversal: punch a hole between two NATs Open a direct path between two machines behind NAT, with no port forward.

IPv6

The next version of IP.

  1. 01 IPv6 explained: a network that sets itself up See how IPv6 machines build their own addresses and reach the internet without NAT.
  2. 02 IPv6 addressing: read, shorten and split any address Read IPv6 addresses at a glance, split a block and see who hands them out.
  3. 03 IPv6 dual stack: run both and see which one wins Run IPv4 and IPv6 side by side, see which one wins and what breaks.
04

Routing

How packets cross networks: routes by hand, routing protocols, and BGP between providers.

3 groups · 11 labs · medal: Routing

Routes by hand

Routers, routing tables and backup routes.

  1. 01 Default gateways: why a machine reaches its neighbor and nothing else Give a machine its way out of the network, and the reply its way back.
  2. 02 Routing tables: how a router picks one line out of many Read a routing table, and predict which line each packet follows.
  3. 03 Static routes: a backup link that waits, and the failure it can't see Set routes that survive a reboot, add a backup, and find what it misses.
  4. 04 DHCP relaying: one address server for every hall Carry a broadcast across a router, so one server feeds every network.

Routing protocols

Routers teaching each other with RIP and OSPF.

  1. 01 RIP routing: routers that learn by rumor Let routers teach each other routes, then watch a stale rumor loop.
  2. 02 OSPF routing: every router holds the same map Give every router the same map, then let it work out the paths.

Provider routing

VRFs, BGP, MPLS and SD-WAN.

  1. 01 BGP routing: how the internet's networks find each other Announce your block to the world, then see how little anyone checks.
  2. 02 BGP policies: steering traffic and refusing bad routes Choose where your traffic flows, then refuse routes nobody should believe.
  3. 03 VRF: one router, several routing tables Split one router into several, so tenants never meet.
  4. 04 MPLS: a core that never reads the address Carry customers' packets across routers that hold no route for them.
  5. 05 SD-WAN: every application on the right line Steer each application over the better of two lines, from one controller.
05

Switching

Inside one network: switches, VLANs, loops, bundles of links and overlays.

3 groups · 8 labs · medal: Switching

Switches & VLANs

How a switch learns, and one switch as many.

  1. 01 Learning switches: how a box with no list finds every machine Watch a new switch fill its table, forget it, and flood.
  2. 02 VLANs: one switch, two networks that can't hear each other Stop a hotel guest borrowing a staff address on a shared switch.
  3. 03 VLAN trunks: send every VLAN down one cable Carry two VLANs across one cable, then watch one setting leak them.

Loops & bundles

Spanning tree and link aggregation.

  1. 01 Spanning tree: cable a ring without melting the network Close a ring of switches, drown it in one broadcast, let spanning tree cut it.
  2. 02 Link aggregation: make two cables add up Bond two cables into one card, then find out why it isn't twice as fast.

Groups & overlays

Multicast, port security and VXLAN.

  1. 01 Multicast: send it once, to whoever asked Send one stream of departures to every board that joined, and nobody else.
  2. 02 Switch security: stop trusting whatever plugs in Stop a shared outlet, a spare router and a typing slip from hurting everyone.
  3. 03 VXLAN overlays: one network across a routed backbone Stretch one network across routers by carrying its frames inside packets.
06

Tunnels & VPNs

Private links across networks you do not own.

1 groups · 4 labs · medal: Tunnels & VPNs

07

Wireless

How a device joins Wi-Fi, what keeps it private, and how it roams.

1 groups · 3 labs · medal: Wireless

Wi-Fi

Joining Wi-Fi, the WPA handshake, and roaming between access points.

  1. 01 Joining Wi-Fi: scan, pick, connect Scan the air, read an access point's config and see which one a laptop joins.
  2. 02 The WPA handshake: from open Wi-Fi to WPA3 Record a library's Wi-Fi from the air, then lock it with WPA2 and WPA3 and see what each one hides.
  3. 03 Roaming: one network, many access points Walk a warehouse scanner between three access points, then kick it, cut one and fix a channel plan.
08

Reliability & Traffic

Keeping a network up and fast: packet capture, failover, load balancing, queues and tuning.

2 groups · 9 labs · medal: Reliability & Traffic

Staying up

Packet capture, gateway failover, load balancing and health checks.

  1. 01 Packet capture: read the traffic and settle the argument Capture real packets with tcpdump and find where a conversation dies.
  2. 02 VRRP failover: two routers, one gateway address Pull the plug on a gateway and watch a spare router take its address.
  3. 03 Load balancers: two servers and a vanishing basket Put two servers behind one address, and break the shopping basket doing it.
  4. 04 Server failover: the health check that said fine Lose a server with nobody noticing, then meet the check that lies.

Speed & queues

QoS queues, traffic shaping, MTU black holes, TCP tuning and HTTP versions.

  1. 01 QoS queues: lag on tournament night Lag a whole tournament with one upload, then slow the line down to fix it.
  2. 02 Traffic shaping: paid for five, getting two Lose half a paid-for line to the carrier's policer, then shape to win it back.
  3. 03 MTU black holes: the chart that never comes ashore Small files load, big ones hang. Find the lost ICMP message, then fix it twice.
  4. 04 TCP tuning: why a fast line copies slowly A fast line copies slowly. Find what holds one connection back.
  5. 05 HTTP versions compared: one page across an ocean Load one page over HTTP/1.1, HTTP/2 and HTTP/3, and count the round trips.
09

Network Security

Firewalls, encryption, proving that names and mail are real, and proxies that read what passes.

3 groups · 8 labs · medal: Network Security

Firewalls

Firewall rules, router ACLs, and state.

  1. 01 Firewall rules: keep the street out and let the staff in Write a firewall's rules by hand: drop vs reject, and why their order decides everything.
  2. 02 Router ACLs: a list on every door Hang access lists on a router's cards, and learn where each kind belongs.
  3. 03 Stateful inspection: a firewall that remembers who started it Give a firewall a memory, and let in only real replies to your own requests.

Keys, signed names & mail

Encryption, signatures, email checks and DNSSEC.

  1. 01 Encryption basics: lock, fingerprint, sign Encrypt a file, fingerprint it with a hash, and sign it so changes show.
  2. 02 Email authentication: SPF, DKIM and DMARC Forge a club captain's email, then stop it with SPF, DKIM and DMARC records.
  3. 03 DNSSEC validation: follow the chain of trust Follow DNSSEC signatures from an answer up to the root, and catch a forged one.

Proxies

Forward and SOCKS proxies, and WAFs.

  1. 01 Proxies: a machine that asks on your behalf Forward and SOCKS proxies: what each one reads, refuses and lets slip past.
  2. 02 WAF filtering: a firewall that reads the request A web application firewall: what its rules catch, miss, and refuse by mistake.
10

Identity & Access

Proving who someone is: central logins, tickets, second factors and zero trust.

2 groups · 7 labs · medal: Identity & Access

Central logins

AAA, 802.1X and LDAP.

  1. 01 AAA with RADIUS: who logged in, what they could do, how long they stayed Move router logins to one server that knows each person and keeps the record.
  2. 02 802.1X: a login for the network jack Lock the newsroom's jacks so only people and devices the server knows get on.
  3. 03 LDAP: one account for every server Keep every account in one directory, and use one LDAP login on every server.

Tickets & trust

Kerberos, MFA, SSO and zero trust.

  1. 01 Kerberos: log in once, then show tickets Log in once with Kerberos, then open each service with a ticket, not a password.
  2. 02 Two-step login: a one-time code after the key Add SSH 2FA, a one-time code from a phone, and see what it stops.
  3. 03 SSO: one sign-in for every app Sign in once, open a second app with no password, and see what apps check.
  4. 04 Zero trust: check every device, every time Put a gate before every app that checks each device on each request.
11

Troubleshooting

Finding out what is broken, and where.

2 groups · 5 labs · medal: Troubleshooting

Where it breaks

A method, then a test for each place a fault hides.

  1. 01 Network troubleshooting: find the broken layer, one test at a time Work a real fault like a pro: reproduce, guess, test, fix, check, write.
  2. 02 Ping and traceroute: find where a path goes slow, lossy or round in circles Read ping and traceroute like a pro to find where lag and loss start.
  3. 03 Is it DNS? Find where a name lookup breaks, and prove when it doesn't DNS troubleshooting: find which part of a lookup failed, or prove it isn't DNS.
  4. 04 What's listening? Tell a refused port from a blocked one, and find who holds it Check open ports, Linux side and network side: closed or blocked, and who holds each.

Reading the counters

Finding a bad port or cable from what it says.

  1. 01 Cable and interface errors: read a port's state and counters, and find the bad link Read port states and counters to find a switched-off port, bad cable or MTU clash.
12

Cloud

Networks built out of software: containers, VPCs, and the firewalls, VPNs and load balancers around them.

2 groups · 5 labs · medal: Cloud

Containers & VPCs

Networks built out of software.

  1. 01 Container networks: give every container a network of its own Find the namespaces, cables and NAT rules that give every container its own network.
  2. 02 Virtual networks: how a cloud VPC sorts its subnets and addresses Read a VPC's route tables, and give a server the public address it never sees.
  3. 03 Cloud routing: how a private subnet gets out, and how two VPCs meet Build a NAT gateway for a private subnet, see why nothing gets in through it, and route a peering link.

Guarding & joining a VPC

Cloud firewalls, VPNs and load balancers.

  1. 01 Security groups and network ACLs: the cloud's two firewalls Open a server's security group to one more sender, and see why the network ACL must allow every answer.
  2. 02 Cloud VPN and load balancers: the office joins, the shop scales Join an office to a VPC over a VPN, add the route it needs, then spread visitors over two servers.
13

Automation

Running the network from programs instead of by hand.

2 groups · 7 labs · medal: Automation

Network as code

Backups, APIs, scripts, Ansible and Terraform.

  1. 01 Config backups: every router's config in git Back up router configs into git, find a bad change, restore it.
  2. 02 Network APIs: drive a router with REST and JSON Read and change a router's routes through its REST API, with JSON and tokens.
  3. 03 Python for networks: one script, many routers Network automation in Python: one script drives four routers over SSH.
  4. 04 Ansible: every router from one set of files Push routes to three routers with Ansible, run it twice, and catch a hand-made change.
  5. 05 Terraform: a router's routes as code Put a router's routes on it with Terraform: plan, apply, catch a hand change, add a branch.

Models & controllers

NETCONF, YANG and an SDN controller.

  1. 01 NETCONF and YANG: a router configured as data Set up a router's new card over NETCONF: a draft, a commit, and one that undoes itself.
  2. 02 SDN: a controller that programs the switches An SDN controller programs two switches, takes a rule by API, then gets unplugged.
14

Observability

Seeing what a network is doing: logs, counters, flows, what is plugged in where, and alerts.

3 groups · 6 labs · medal: Observability

Logs, counters & flows

Syslog, SNMP and NetFlow.

  1. 01 Syslog server: one place to read every machine's logs Send every machine's log lines to one collector, read their facility and severity, and find what a link outage left behind.
  2. 02 SNMP: read a router's counters from across the room Poll a router over SNMP, turn its byte counters into a rate, watch a 32-bit counter wrap, and catch its traps.
  3. 03 NetFlow: find who fills the library's line Export flow records from a router to a collector, rank who talks the most, and catch a laptop scanning the internet.

What is plugged in

LLDP, CDP and the way in when all else fails.

  1. 01 LLDP and CDP: ask the switch who is plugged in Find a rented desk's address from what it announces, watch an entry age out, read an old switch's CDP, and hide the switch from strangers.
  2. 02 Out-of-band management: a second way into the router Reach a router through a jump host on its management network, close its front door, lock yourself out, and get back in at the console.

Metrics & alerts

Prometheus scrapes, PromQL speeds and alerts that fire.

  1. 01 Prometheus: alert on a full line before the village does Scrape a router's traffic counters with Prometheus, turn them into megabits with PromQL, and write an alert that fires when the line fills.

Playbooks

30

Crack a Wi-Fi network

One Wi-Fi job run end to end: discover the networks on the air and pick a target, catch its handshake, and crack the passphrase offline — meeting the defender's answer to each stage along the way.

1 groups · 3 labs · medal: Crack a Wi-Fi network

Crack a Wi-Fi network: see it, catch it, crack it

Discover a network, catch its handshake, and crack the passphrase.

  1. 01 See the air: read a Wi-Fi network you never joined Put a Kali card in monitor mode and read the Birchwood networks off the air with airodump-ng (names, channels, encryption), then pick the target.
  2. 02 Catch the handshake: force the key exchange, or take the PMKID Force each network's client to re-join so its 4-way handshake lands in your capture, and see why the PMKID shortcut isn't always available.
  3. 03 Crack it: turn a captured handshake into the passphrase Recover a WPA2 passphrase from a captured handshake with aircrack-ng and with hashcat, and see why a long random passphrase beats both.
31

Break into a box

One intrusion run end to end: map a target with nmap and pick the soft opening, walk through it to a low shell, enumerate the box for the one lever up, and climb it to root — meeting the defender's answer to each stage along the way.

2 groups · 4 labs · medal: Break into a box

Get a foothold: find the way in, then walk through it

Map a box, pick the soft opening, and open a low shell.

  1. 01 Find the way in Map a target box with nmap, read its services, and pick the one soft opening worth attacking — and say why.
  2. 02 Through the door Take the opening you found and walk through it: confirm the default credential and open a low shell on the box.

Get root: look around, then climb to root

Enumerate a low shell for the lever up, then climb to root.

  1. 01 Look around From the low operator shell, enumerate the box by hand and with linpeas for the one lever up — and tell it from the noise.
  2. 02 Climb to root Take the lever enumeration found and run the right GTFOBins setuid escape, climbing a low shell to a root read of the secrets.
32

Break into a network

One network intrusion run end to end: map what a single foothold can reach, pivot into a core segment with no route to you, move laterally onto a core host with a reused password, and lift the crown jewels off an unguarded backup — meeting the defender's answer to each stage along the way.

1 groups · 4 labs · medal: Break into a network

Break into a network: discover, pivot, move, take

Discover the core, pivot in, move onto a host, take the prize.

  1. 01 Network discovery: map what the foothold can reach You own one edge machine. Prove the core is out of reach from it, then find the one server worth pivoting to.
  2. 02 Pivot in: relay through the one box the core trusts The core answers only through a machine you own. Turn it into a relay to reach the core, then shut the hole.
  3. 03 Lateral movement: reuse one password to land on the core database Reaching the core is not owning a machine on it. Reuse a password from the machine you own to log in to the database.
  4. 04 Take the core: lift the crown jewels off the soft copy The prize also sits on an unguarded backup. Pull the full copy through the relay, save it off, then guard every copy.

Cyber Security

15

Security Basics

The ideas every defender starts from: what security protects, how risk is scored, why defence comes in layers, what keeps a test legal, how an alert becomes a verdict, who attacks and why, the kinds of weak spot they use, what each kind of control is for, how to read an advisory and decide what to patch first, how one break-in comes apart into stages that a control can break, and how to review a new system's design before it goes into use.

3 groups · 11 labs · medal: Security Basics

Security foundations

The ideas every defender starts from: CIA, risk, layered defence, scope, triage.

  1. 01 The CIA triad: the three promises a system makes Break confidentiality, integrity and availability on one real server, and see the fix each one needs.
  2. 02 Risk scoring: turn a pile of findings into a ranked queue Score four real findings on two of a studio's servers by likelihood and impact, checked from inside and outside, then rank them.
  3. 03 Defense in depth: why one lock is never the whole wall Walk an attacker's path to a bike shop's customer data through three controls, and watch each one stop a different step.
  4. 04 Rules of engagement: the line between a test and a crime Read a signed scope for a bank's pentest, sweep only what it names, test inside its rules, and stop at the boundary.
  5. 05 Alert verdicts: true, benign or false positive? Triage two look-alike port-scan alerts, one from a sweep you run yourself, with the firewall log and the asset inventory.

Threats and weaknesses

Who attacks, weak spots, controls, patch order, and an attack's stages.

  1. 01 Threat actors: who is behind an attack, and why Read the logs of three incidents at one small studio and sort them by attacker: an automated scan, an insider, a patient outsider.
  2. 02 Types of vulnerabilities: five findings, five kinds of fix Audit one inherited ticket server and sort its five findings by kind: missing patch, default password, open port, unchecked input and exposed key.
  3. 03 Types of security controls: what each control is for Go through one radio station's list of controls and sort each by its job: preventive, detective, corrective, deterrent, directive or compensating.
  4. 04 CVEs and advisories: four criticals, one to patch tonight Read a vendor advisory, take its CVSS vector apart, then check four machines to find the one that is affected and exposed.
  5. 05 Kill chain: the stages of an attack, and where each one breaks Read what one closed break-in left behind, sort it into six stages, and name the control that would have ended it at each.

Design review

Review a new system's design before it goes into use.

  1. 01 Threat modelling: four questions before a new app goes live Review a new loan-desk app before it goes live: draw its data flows, mark trust boundaries, ask STRIDE's six questions and confirm three gaps.
16

Recon

Reconnaissance against authorised targets: craft single packets to read a firewall off its replies, fingerprint a web server with curl and the files it leaks, and footprint a domain through its own DNS — each closed from the defender's seat.

1 groups · 3 labs · medal: Recon

Recon: packets, banners and DNS

Read a firewall, fingerprint a server, and footprint a domain.

  1. 01 curl: reading what a web server gives away Fingerprint a booking server with curl alone: its software and version, its redirect, its robots.txt, and a backup file left in the open.
  2. 02 hping3: reading a firewall off its own replies Craft lone TCP and ICMP probes with hping3 and read a perimeter firewall's policy from how it answers each one.
  3. 03 DNS footprinting: a zone transfer maps the network Footprint a domain through its own name server, then ask for the whole zone and read the internal network it hands over.
17

Night Watch

Detecting an attack, hardening a host, and reading and responding to what happened.

3 groups · 4 labs · medal: Blue team

DNS sinkholes & covert channels

Blackhole a malware domain, and catch a covert DNS channel.

  1. 01 DNS sinkhole: blocking bad domains for every client at once Block a bad domain for every client at once and find the infected host.
  2. 02 DNS exfiltration: smuggling data out through the one port left open See how data leaks out through DNS queries, and how to stop it.

Harden & audit: vulnerability scanning, baselines & file integrity

Scan a host, fix what is found and catch tampering.

  1. 01 Vulnerability management: scan, assess, remediate, rescan Scan a host against a baseline, fix the findings and catch a tampered file.

Defending the password store

Why a per-user salt and a slow hash beat the cracker.

  1. 01 Salting and stretching: the defender's answer Rebuild the cracked store with a salt and slow hash so the road's attack fails.
18

Forensics

Reading evidence without changing it: disk images, deleted files, memory captures and the binaries found on a host.

1 groups · 5 labs · medal: Forensics

The analyst's bench

Image drives, recover deleted files, dump memory, build timelines, reverse binaries.

  1. 01 Disk imaging: make a copy you can prove in court Image a seized drive bit for bit, prove it by hash, mount it read only.
  2. 02 File carving: getting back what someone deleted Recover deleted files two ways: from file-system metadata, and by carving raw bytes.
  3. 03 Memory dumps: reading the secrets a program keeps in RAM Capture a process's memory with gcore, read a secret it kept only in RAM.
  4. 04 Timeline building: reconstructing an evening from file times Read every file's timestamps, lay them out with mactime, and rebuild the evening.
  5. 05 Reverse a binary: making a suspicious program give up its secrets Take an unknown ELF apart statically, then run it to reveal its hidden secret.
19

Cryptography at Work

Cryptography under attack and put right: hashing, password cracking, broken TLS and SSH keys.

2 groups · 8 labs · medal: Cryptography at Work

Hashes, passwords and obfuscation

Prove a file, salt a store, crack weak hashes, peel a dropper.

  1. 01 Hash integrity: verifying a file is the one you meant to get Fingerprint a file with SHA-256, see one byte change everything and a self-published checksum lie, then close the gap with a keyed hash.
  2. 02 Salted passwords: why a leaked hash table still gives up its passwords Read a leaked password table, crack it with a precomputed lookup, then watch a per-user salt and a slow hash take the attack apart.
  3. 03 Password cracking: turning a leaked hash table back into passwords Identify each hash in a dump by its shape, crack the fast ones with john and rockyou, then meet the bcrypt row that won't fall.
  4. 04 Targeted wordlists: cracking passwords coined from the target's own words Two hashes rockyou can't touch fall to a wordlist built from the target itself: cewl scrapes words, john rules reshape them, crunch sprays the year.
  5. 05 Obfuscated scripts: peeling an encoded dropper back to what it does Peel a wall of base64, then hex, then a one-byte XOR, with standard tools and no key, until the payload proves obfuscation isn't encryption.

TLS and keys that break

Intercept HTTPS, read a weak handshake, and ride a leaked SSH key.

  1. 01 TLS interception: when a trusted certificate still lies Watch TLS refuse a box's forged certificate, then trust its CA to read a login in the clear, then shut it out with certificate pinning.
  2. 02 Weak TLS configuration: a valid certificate over a dated handshake Enumerate what a portal's decade-old TLS still accepts, prove a TLS 1.0 handshake completes, measure it against a hardened twin, and name the fix.
  3. 03 Leaked private key: a backup that still holds a working login Find an SSH private key in a decommissioned host's exposed backup, log into the live server with no password, then revoke the key and rotate.
20

Threat Frameworks

The shared models a defender reasons in: map an intrusion's techniques onto MITRE ATT&CK, pivot a single event into an activity group with the Diamond Model, and audit a host against a baseline, mapping every gap to the CIS Controls and the NIST Cybersecurity Framework.

1 groups · 3 labs · medal: Threat Frameworks

Name, place and map: the analyst's frameworks

Map an intrusion, pivot on an event, audit a host.

  1. 01 ATT&CK: map one intrusion to the matrix Label each step of a real hands-on-keyboard intrusion with its ATT&CK tactic and technique id, and see why a shared map beats a prose write-up.
  2. 02 Diamond Model: pivot one event into a campaign Fill the Diamond Model's four corners for one intrusion, then pivot along the edges until a single alert becomes a two-host activity group.
  3. 03 Control baselines: audit one host, map every gap Audit one host against a written baseline, then map every pass and fail to its CIS safeguard and NIST CSF subcategory.
21

Logs & SIEM

The defender's desk: sensors that write down what crossed the wire, and a SIEM that finds the attack in it.

2 groups · 6 labs · medal: Logs & SIEM

The analyst box

Find a guessed-in SSH login across a host log and the SIEM.

  1. 01 Auth logs: the login that should not have worked Read a jump host's auth log, forward it to the SIEM, and tell a guessed-in login from an engineer's own.
  2. 02 Triage a captured attack offline Record a web server's traffic to a file, then triage it offline with Suricata, jq and tcpdump to find the attack.
  3. 03 Correlation: one intruder, scattered across the logs Join a SIEM's alerts, connections and requests by one source address to tell an intruder's whole path from a clerk's ordinary night.
  4. 04 Firewall logs: a port scan read from the drop log Hunt a port scan in a firewall's drop log through the SIEM, then close the door the scan found open.

Automate the response, hunt the beacon

Answer an alert automatically, then hunt an implant by its flows.

  1. 01 SOAR: a playbook that answers an alert on its own Turn a web-exploit alert into an automatic block at the gateway, record the action, and keep an authorised scan from locking out a real user.
  2. 02 Beaconing: catching an implant by the shape of its flows Hunt an implant that calls home on a timer by its flow pattern: chatty, byte-identical, and on a clock.
22

Defensive Tools

The blue team's working kit: first follow one record at rest, in transit and in use to see what there is to guard, then name known-bad files with signatures, detonate the unknown in a sandbox, read endpoint and network telemetry, block attacks on the host and inline on the wire, keep data from leaving, and catch an intruder with traps.

3 groups · 9 labs · medal: Defensive Tools

Know the data: where a record sits, travels and works

Follow one record through three states and four protections.

  1. 01 Data states: one record, three places to protect it Follow one client record at rest, in transit and in use, then try encryption, hashing, masking and tokenisation on it.

Detect and analyse: signatures, sandbox, telemetry and decoys

Name known-bad files, detonate the unknown, read telemetry, set traps.

  1. 01 Malware signatures: catching a known-bad file by its bytes Flag a known-bad file with a YARA rule and a ClamAV signature, then meet the limit signatures cannot cross.
  2. 02 Malware sandboxing: detonate it and watch what it does Run an unknown sample under strace on an isolated machine and read the behaviour no signature could name.
  3. 03 EDR telemetry: the endpoint tells on the intruder Query a host's own live state with osquery and find a backdoor the network never saw.
  4. 04 Writing a NIDS signature, and tuning out the false alarm Write a Suricata rule for your own network, load it live, and tune away its false positive.
  5. 05 Honey-traps: decoys that only a snooper trips Set a decoy host and a canary token nobody legitimate touches, and catch the one who does.

Block and contain: the host, the wire and the data

Stop attacks on the host, inline on the wire, at the data.

  1. 01 Host intrusion prevention: the server bans its attacker Watch fail2ban read the auth log and block a password-guessing attacker at the host's own firewall.
  2. 02 Inline IPS: the gateway drops, not only watches Put Suricata on the forwarding path through NFQUEUE, then block a flagged request while the floor keeps browsing.
  3. 03 Data-leak controls: catching a secret on its way out Match a confidential marker in forwarded traffic, watch it, block it, and see why HTTPS hides it.
23

Incident Response

The six phases of handling a breach, each its own incident: the preparation done while nothing is wrong, confirming and scoping an intrusion, containing it without destroying evidence, eradicating the attacker's foothold, recovering the service in the right order, and turning the closed incident into a detection.

2 groups · 6 labs · medal: Incident Response

First response: prepare, confirm, contain

Get ready, confirm an intrusion, and stop the bleeding.

  1. 01 Preparation: the three questions to answer before an incident While nothing is wrong, inventory the network, write down what normal looks like, and prove the login record is being kept.
  2. 02 Identification: is it a real incident, and how far does it reach? A rule flagged a spike of failed logins on the readings historian. Confirm whether anyone got in, scope the damage, and declare it.
  3. 03 Containment: stop the spread without destroying the evidence A compromised DMZ web server is reaching into the office network. Isolate it at the boundary to stop the spread while the box stays up.

Close it out: eradicate, recover, learn

Remove the foothold, restore safely, turn it into a defence.

  1. 01 Eradication: remove the foothold, not only the visible part The contained life-support controller is still compromised. Remove the implant, the cron that revives it, and the attacker's account, then prove it is clean.
  2. 02 Recovery: put it back safely, in the right order The cleaned broadcast server is offline. Confirm it is clean, rotate the guessed password, restore the page, and check a renewed attack would be seen.
  3. 03 Lessons learned: turn the incident into a defence The greenhouse-controller break-in is closed. Rebuild the timeline, name the root cause, and turn it into a detection that fires only on the real thing.
24

Web Attacks

Attacking the web app itself: discover the paths it hides, turn its own inputs into SQL, shell commands and scripts, reach files and objects that are not yours, and take over a known CMS.

2 groups · 9 labs · medal: Web Attacks

The web app's attack surface

Map its hidden paths, then turn inputs into data theft and scripts.

  1. 01 Content discovery: finding what a site serves but never links Brute-force a box-office server's unlinked paths with gobuster — find a login-free deprecated API and a database dump left at the web root.
  2. 02 SQL injection for data theft: reading a table through UNION A land register's search is UNION-injectable: read the error, count columns, map the schema, and dump the staff accounts — then let sqlmap finish.
  3. 03 Stored XSS: stealing a moderator's session A forum strips <script> but renders comments as HTML. An event handler slips the blocklist, and a moderator's browser beacons their session cookie to you.
  4. 04 CSRF: forging a transfer from a logged-in browser An online bank authorises transfers by session cookie alone, a GET with no token. A page navigating a signed-in customer wires their money to you.
  5. 05 Path traversal: reading files outside the archive A document archive opens files by name joined onto its folder. Hand it `../` and it reads any file the server can reach, including /etc/passwd.

Running code and breaking access

Turn an upload, an input, or a CMS flaw into control.

  1. 01 Unrestricted upload: a photo name over a payload body A photo site gates uploads by file-name extension, but its pipeline runs files by content — so a payload named .jpg executes in the server.
  2. 02 Command injection: a hostname that carries commands An ops portal tests reachability by pasting the host into a command line. A `;` turns your host into a second command the server runs.
  3. 03 Broken access control: other people's permits, the staff page A parking portal signs residents in, then never checks what they may touch: permit ids are sequential and unguarded, and the staff view answers anyone.
  4. 04 CMS takeover: fingerprint, enumerate, guess, install A magazine's CMS leaks its version and editors' handles, never locks accounts, and lets admins install plugins — chained, they hand you the site.
25

Cloud Security

How a cloud estate is broken into and what holds it safe: a leaked access key kept to least privilege, and the instance metadata service an SSRF turns against the very app that trusts it.

2 groups · 5 labs · medal: Cloud Security

Data left in the open: buckets, keys & code

Cloud storage and the keys and code that open it.

  1. 01 The bucket that answered to everyone A customer-data bucket left public beside the one that should be, found and locked from the outside.
  2. 02 A deploy key that could read everything A CI key scoped to `*`, caught over-reaching into the orders bucket and cut back to least privilege.
  3. 03 Catch it in the code A Terraform-style change declares a public bucket and a plaintext password; both are caught, fixed and applied.

Stealing a workload's keys

An SSRF and an injection that read a workload's own role credentials.

  1. 01 The address only the app could reach An SSRF in a link-preview app reads the instance role's keys from the metadata service, and then the path is cut.
  2. 02 The greeting that read its own keys A serverless function lets the caller supply its greeting template, which reads the role credentials out of its environment.
26

Security Scripting

Writing and reading the tool by hand when the box gives you none: statically triage a shell script planted in cron before it runs, deobfuscate a web skimmer and watch it beacon a stolen card, and build a SYN port scanner with scapy on an audit box with no nmap.

1 groups · 3 labs · medal: Security Scripting

Security scripting: triage, deobfuscation and scanning by hand

Read a planted script, deobfuscate a skimmer, build a scanner with scapy.

  1. 01 Bash triage: read the script before it reads you Read a shell script planted in a customer's cron, decode the part it hides, and judge it without running it.
  2. 02 JavaScript triage: read the script the checkout page didn't ask for Read a skimmer planted on a checkout page, decode where it sends what it steals, and watch a browser leak a cookie.
  3. 03 Scanning by hand: write a port scanner with scapy With Python and scapy but no nmap, build the scan yourself: one SYN tells open from closed, and a loop maps the ports.
27

Social Engineering

Attacks aimed at the person rather than the protocol, each taken apart so it can be caught: the anatomy of a phishing email, the cloned page that harvests the credentials people type, the lookalike domains that pass for the real one, a trusted site turned into a watering hole, and a page that pushes a download unasked.

1 groups · 5 labs · medal: Social Engineering

Social engineering: phishing, harvesters, lookalikes, watering holes and drive-bys

Take apart phishing, credential harvesting, typosquats, watering holes and drive-bys.

  1. 01 Phishing anatomy: take a reported email apart without clicking a thing Triage a reported phishing email: read its pretext, pull the link without clicking, and prove it points off-site.
  2. 02 Credential harvesting: find the login page that keeps the password Read a cloned login page, find that its form ships the password to the attacker, and watch it cross the wire.
  3. 03 Typosquatting: inventory the lookalike domains before they are used Resolve a family of lookalike domains, sort the live squats from the gaps, and find the one armed to send mail.
  4. 04 Watering hole: the page that is only poisoned for the target Find a forum injection that fires only for the targeted company, read the condition, and watch it send the cookie out.
  5. 05 Drive-by download: the visit is the download Find a portal page that silently saves a file to a visitor's disk, and prove it lands with no click.
28

Network Attacks

Attacking the network itself from the Kali box: guess and spray your way past a login, flood a service off the air, forge and replay what crosses the wire, hop a VLAN, and pivot into a network that has no route to you.

2 groups · 9 labs · medal: Network Attacks

Breaking in and flooding

Guess a way in, then knock a service off the air.

  1. 01 Online login guessing: an aimed list beats a brute one Scrape a target's site for words with cewl, then let hydra throw them at a live SSH login until a reused one opens the door.
  2. 02 Password spraying: one password against everyone at once Try one likely password once against every account on a staff login list — low and slow, to slip under the account lockout.
  3. 03 SYN flood: half-open connections and the host that shrugs them off Spray forged half-open TCP connections at a booking server with hping3 and watch the SYN queue fill, then see why a modern kernel keeps serving.
  4. 04 DNS reflection: bounce a flood off someone else's resolver Measure how a tiny query draws a huge DNSSEC answer off an open resolver, then forge a victim's address so the flood hits them.

On the wire and across the network

Forge answers, steal a cookie, and cross into a closed network.

  1. 01 DNS cache poisoning: one lie, a whole office misrouted Forge an answer into a forwarding resolver's cache so every staff client is sent to the attacker — even after the attacker has gone.
  2. 02 Replay attacks: a valid request, sent twice Capture a door-unlock request that carries no proof of freshness, then resend the exact bytes and open the door again without cracking anything.
  3. 03 Session hijacking: borrow the cookie, skip the password Sit in the middle with arpspoof, read a staff member's session cookie off plain HTTP, and replay it to read her records — no password.
  4. 04 VLAN hopping: stack two tags and jump the fence Wrap a frame in two VLAN tags so the trunk's native VLAN carries it from a contractor port into the berth-control VLAN, a one-way jump.
  5. 05 Pivoting: reach a network with no way in Turn a foothold on a dual-homed DMZ box into a SOCKS relay, and reach an internal server the attacker's own machine cannot route to.
29

Linux Exploitation

From a foothold to full control of a Linux box: manage a shell with an exploit framework, corrupt memory to reach code and read secrets, then enumerate and abuse sudo, setuid and PATH to become root.

2 groups · 7 labs · medal: Linux Exploitation

Frameworks & memory corruption

Manage a foothold, then corrupt memory for code and secrets.

  1. 01 From a raw foothold to a managed C2 session Stand up a listener, deliver an implant over your foothold, catch its callback as a session, and see the beaconing a defender would catch too.
  2. 02 A stack overflow that returns into win() Overrun a stack buffer onto the saved return address, and send a setuid-root binary into a win() it never calls — landing as root.
  3. 03 A format string that reads a process's memory Feed format specifiers to a greeting program instead of a name, walk the stack with %p, and read a root-only secret with %s.

Escalate to root

Enumerate a box, then abuse sudo, setuid or PATH to root.

  1. 01 Enumerate a foothold up to root Read a foothold for the way up — by hand and with linpeas — find a password in a deploy file, and sudo to root.
  2. 02 Sudo misconfiguration: a backup tool to root Turn one NOPASSWD sudo rule for tar into a root shell with the GTFObins tar escape, then read the box's hashes.
  3. 03 A setuid binary that runs anything as root Spot the one setuid binary that should not be one — env — and use it to read the hashes as root.
  4. 04 A locked-down sudo rule undone by its PATH One NOPASSWD wrapper, no arguments, no obvious hole — and a world-writable directory at the front of secure_path turns it into a root shell.

How it works

33

How Tor works

Tor taken apart while it runs: build a three-relay circuit and see what each relay knows, read the consensus the directory authorities sign, reach an onion service with no address, and find what Tor still leaves in plain sight.

1 groups · 4 labs · medal: How Tor works

Tor from the inside: circuits, consensus, onion services, limits

Watch a real Tor network carry, list and hide traffic.

  1. 01 Tor circuits: three relays, and what each one sees Send a page request through a real three-relay Tor circuit and record what the guard, the exit and the website each see.
  2. 02 Tor consensus: who decides which relays a client may use Read the votes three Tor directory authorities cast, the consensus they sign, and what happens when one goes dark.
  3. 03 Onion services: a website with no address to find Run a Tor onion service, visit it from another machine, and see that neither end ever learns where the other is.
  4. 04 What Tor does not hide: the exit, DNS and timing Record at the exit, the name server and both ends of a Tor circuit to see what Tor still leaves in plain sight.

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start learning