Skip to the levels
ROOTSPIRE
DiscsFor teachers
▶ Play freeLibrary 16 discsDiscsFor teachersLog in

Every level, in the open

CTF Arena

18 worlds · 183 levels · 18 bosses

SOLUTION HIDDENTeachers see answer keys in the classroom.

▶ Play this discAll discs
All discsLinux: Zero to RootBash ScriptingGitDatabasesPython for OpsLinux Sysadmin ProNetworkingObservabilityCloud & IaCDocker & ContainersCTF ArenaSOC FieldWindows for Linux peopleKubernetesAnsibleThe Guildhall: First Week

Capture-the-flag for beginners, then blue-team work: crack encodings, dig through evidence, hunt logs, script puzzles, then handle evidence, use real crypto and hunt threats on a live box.

Guided levels show the command first. Alone levels give the goal only. Bosses and exams are timed.

Jump to a world

World 1 Recon RowWorld 2 Cipher HallWorld 3 Evidence LockerWorld 4 Log MinesWorld 5 The AutomatonWorld 6 The FinalsWorld 7 Evidence RoomWorld 8 Real CryptoWorld 9 Threat HunterWorld 10 Wire WatchWorld 11 Wire Watch IIWorld 12 SOC DeskWorld 13 Night ShiftWorld 14 Detection LabWorld 15 HardenedWorld 16 Audit DayWorld 17 Incident CommandWorld 18 Cases

World 1Recon Row

10 levels

Welcome to the Arena: find flags, submit them to Kern and learn where secrets hide.

  1. 1

    Level 1: First blood

    GuidedEasy

    Objective: Read ~/arena/recon/flag.txt and submit the flag to Kern.

    CTF means Capture The Flag: every challenge hides a secret string, the flag, shaped like PTR{...}. Find it, then submit it with kern PTR{...}.

    Commands taughtctf-flags

    ▶ Play: First bloodSOLUTION HIDDEN15 XP
  2. 2

    Level 2: Behind the curtain

    GuidedEasy

    Objective: One file in ~/arena/recon hides from ls: find it and submit its flag.

    Names that start with a dot are hidden from plain ls. ls -a shows everything.

    Commands taughtdotfiles

    ▶ Play: Behind the curtainSOLUTION HIDDEN15 XP
  3. 3

    Level 3: Needle in the stacks

    GuidedEasy

    Objective: Somewhere in ~/arena/recon/stack, 200 straws hide one flag: find it and submit it.

    grep -r searches every file under a folder. -o prints only the match and -h hides the file names.

    Commands taughtgrep-flags

    ▶ Play: Needle in the stacksSOLUTION HIDDEN15 XP
  4. 4

    Level 4: Clocks and modes

    GuidedEasy

    Objective: Submit the flag from the newest owner-executable file among the twelve in ~/arena/recon/clock.

    Metadata is data about a file. ls -l shows its mode (-rwxr-xr-x: the first three letters are what the owner may do, x means execute) and its modified time. ls -t sorts newest first, and find -type f -perm -u+x lists files the owner can execute.

    Commands taughttimestamps-modes

    ▶ Play: Clocks and modesSOLUTION HIDDEN15 XP
  5. 5

    Level 5: Owners and exact clocks

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    Every file has an owner and a timestamp. ls -l shows the minute, but ls --full-time shows the exact second, and find -user NAME lists the files one account owns.

    Commands taughtfind-owner

    ▶ Play: Owners and exact clocksSOLUTION HIDDEN30 XP
  6. 6

    Level 6: Dash of trouble

    AloneMedium

    Objective: Submit the flag stored in the file named -flag in ~/arena/recon.

    A file named -flag looks like an option to every command. Write ./-flag or put -- before it.

    Commands taughtdash-names

    ▶ Play: Dash of troubleSOLUTION HIDDEN25 XP
  7. 7

    Level 7: Weigh the crates

    AloneMedium

    Objective: In ~/arena/recon/crates, submit the flag from the crate of exactly 1337 bytes.

    Every crate has a flag, but only one is real: the crate that weighs exactly 1337 bytes. find -size 1337c matches an exact byte count.

    Commands taughtfind-size

    ▶ Play: Weigh the cratesSOLUTION HIDDEN25 XP
  8. 8

    Level 8: Ghost in the lockers

    Alone⏱ TimedHard

    Objective: Submit the flag from the locker in ~/arena/recon/lockers that is owned by ghost.

    Fifty lockers, fifty flags, but only one locker belongs to the user ghost. find -user ghost finds it.

    ▶ Play: Ghost in the lockersSOLUTION HIDDEN40 XP
  9. 9

    Level 9: Recon sprint

    Alone⏱ TimedHard

    Objective: Read ~/arena/recon/sprint/-readme and submit the one real flag from sprint/stack.

    Speed round: a note with a silly name tells you which file is real, and the stack is full of decoys.

    ▶ Play: Recon sprintSOLUTION HIDDEN40 XP
  10. 10

    Level 10: BOSS: Shattered flag

    Boss⏱ TimedHard

    Objective: Rebuild the flag from ~/arena/recon/shards using note.txt, and submit PTR{part1part2part3}.

    The final recon flag was smashed into three shards. note.txt says how to find each one.

    ▶ Play: BOSS: Shattered flagSOLUTION HIDDEN65 XP

World 2Cipher Hall

10 levels

Encodings are not locks but costumes: base64, hex, rot13, reversed text and XOR.

  1. 11

    Level 11: Sixty-four

    GuidedEasy

    Objective: Decode ~/arena/crypto/msg.b64 and submit the flag inside.

    An encoding rewrites data in another alphabet with no key, so anyone can undo it. base64 uses letters, digits, + and /, often ends in =, and base64 -d decodes it.

    Commands taughtbase64

    ▶ Play: Sixty-fourSOLUTION HIDDEN15 XP
  2. 12

    Level 12: Rotate thirteen

    GuidedEasy

    Objective: msg.txt in ~/arena/crypto starts with CGE{: undo the rot13 and submit the flag.

    rot13 moves every letter 13 places, so doing it twice gives the text back. tr 'A-Za-z' 'N-ZA-Mn-za-m' does it.

    Commands taughtrot13

    ▶ Play: Rotate thirteenSOLUTION HIDDEN15 XP
  3. 13

    Level 13: Hex marks the spot

    GuidedEasy

    Objective: Turn the hex in ~/arena/crypto/msg.hex back into text and submit the flag.

    Computers store every character as a number: P is 80, and hex (counting in 16s, digits 0-9a-f) writes 80 as 50. xxd -r -p turns plain hex like 50 54 52 back into text: PTR.

    Commands taughtxxd

    ▶ Play: Hex marks the spotSOLUTION HIDDEN15 XP
  4. 14

    Level 14: XOR with a key

    GuidedEasy

    Objective: Use the key in ~/arena/crypto/key.txt to decode secret.hex with xorit, and submit the flag.

    XOR mixes every byte with a key number from 0 to 255, and XOR with the same key again gives the original back. xorit KEY FILE is an Arena helper that undoes it on hex text. Real tools do the same: in bash, $((0x50 ^ 42)) XORs one byte (80 with key 42) and prints 122.

    Commands taughtxorit

    ▶ Play: XOR with a keySOLUTION HIDDEN15 XP
  5. 15

    Level 15: Slice a string

    GuidedEasy

    Objective: slice.txt in ~/arena/crypto has 10 junk characters, then the flag, then junk: slice the flag out and submit it.

    bash can cut a piece out of a variable: with s holding text, ${s:10:17} is 17 characters starting at position 10 (positions count from 0). Cipher loops use this to rotate alphabets.

    Commands taughtslice

    ▶ Play: Slice a stringSOLUTION HIDDEN15 XP
  6. 16

    Level 16: Counting and XOR warm-up

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    Cipher puzzles try many keys. seq counts for you, $(( )) does maths (and ^ is XOR) and xorit KEY FILE decodes hex that was XORed with one key.

    Commands taughtcaesar

    ▶ Play: Counting and XOR warm-upSOLUTION HIDDEN30 XP
  7. 17

    Level 17: Mirror, mirror

    AloneMedium

    Objective: Undo both disguises on ~/arena/crypto/msg.txt and submit the flag.

    Someone base64-encoded the flag, then wrote it backwards. rev flips each line.

    Commands taughtrev

    ▶ Play: Mirror, mirrorSOLUTION HIDDEN25 XP
  8. 18

    Level 18: Caesar's mystery shift

    Alone⏱ TimedHard

    Objective: msg.txt in ~/arena/crypto uses an unknown shift: crack it and submit the flag.

    A Caesar cipher shifts letters by an unknown amount from 1 to 25. Try every shift with a loop and keep the one that shows PTR{.

    ▶ Play: Caesar's mystery shiftSOLUTION HIDDEN40 XP
  9. 19

    Level 19: The lost key

    Alone⏱ TimedHard

    Objective: Brute-force the XOR key of ~/arena/crypto/msg.hex with xorit and submit the flag.

    This XOR key is lost, but a one-byte key has only 256 values. Try them all and look for PTR{.

    ▶ Play: The lost keySOLUTION HIDDEN40 XP
  10. 20

    Level 20: BOSS: The onion

    Boss⏱ TimedHard

    Objective: Peel every layer of ~/arena/crypto/onion.hex (see intel.txt) and submit the flag.

    The vault message wears four costumes. intel.txt lists the order they were put on.

    ▶ Play: BOSS: The onionSOLUTION HIDDEN65 XP

World 3Evidence Locker

8 levels

Files lie about what they are, so read the bytes: magic numbers, strings, archives, deleted files and timestamps.

  1. 21

    Level 21: Liar's extension

    GuidedEasy

    Objective: ~/arena/forensics/report.pdf is not a PDF: find out what it is, open it, and submit the flag.

    Forensics means examining files for clues. A file's name can lie, but its first bytes (its magic bytes) can't: file reads them and tells you what it really is.

    Commands taughtfile-magic

    ▶ Play: Liar's extensionSOLUTION HIDDEN15 XP
  2. 22

    Level 22: Strings attached

    GuidedEasy

    Objective: Pull the flag out of ~/arena/forensics/firmware.bin with strings and submit it.

    Binaries are mostly noise, but text inside them survives. strings prints every readable run of characters.

    Commands taughtstrings

    ▶ Play: Strings attachedSOLUTION HIDDEN15 XP
  3. 23

    Level 23: Nesting dolls

    GuidedEasy

    Objective: Open every layer of ~/arena/forensics/doll.tar.gz and submit the flag at the core.

    Archives can hold archives. tar xf unpacks one layer (tar works out gzip by itself), zcat opens a .gz.

    Commands taughtarchives

    ▶ Play: Nesting dollsSOLUTION HIDDEN15 XP
  4. 24

    Level 24: Newest first, oldest first

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    ls sorts by name, but -t sorts by modification time (newest first) and -r reverses any order. -tr gives oldest first: the order things happened.

    Commands taughttrailing-data

    ▶ Play: Newest first, oldest firstSOLUTION HIDDEN30 XP
  5. 25

    Level 25: After the end

    AloneMedium

    Objective: Find the comment smuggled after the end of ~/arena/forensics/cat.png and submit the flag it hides.

    A PNG image ends with an IEND marker, but nothing stops someone from adding bytes after it. Image viewers ignore them, strings doesn't.

    ▶ Play: After the endSOLUTION HIDDEN25 XP
  6. 26

    Level 26: Deleted, not gone

    Alone⏱ TimedHard

    Objective: ~/arena/forensics/README says evidence.txt was deleted, but a sleep 7777 process still holds it open: recover it and submit the flag.

    A deleted file lives on while a process keeps it open. /proc/<PID>/fd lists that process's open files, and you can cat them.

    Commands taughtproc-fd

    ▶ Play: Deleted, not goneSOLUTION HIDDEN40 XP
  7. 27

    Level 27: Timeline

    Alone⏱ TimedHard

    Objective: Join the fragments in ~/arena/forensics/frags from oldest to newest and submit PTR{...} with them inside.

    Twelve fragments with random names: only their modification times give the order. ls -tr lists the oldest first.

    ▶ Play: TimelineSOLUTION HIDDEN40 XP
  8. 28

    Level 28: BOSS: The case file

    Boss⏱ TimedHard

    Objective: Work out what ~/arena/forensics/evidence.dat really is, open it, and submit the flag hidden in the suspect's photo.

    The whole case arrived as one file called evidence.dat. Somewhere inside, a photo carries a secret after its end.

    ▶ Play: BOSS: The case fileSOLUTION HIDDEN65 XP

World 4Log Mines

7 levels

Thousands of lines, one story: grep, awk, sort and uniq -c dig out who did what and when.

  1. 29

    Level 29: Needle in the log

    GuidedEasy

    Objective: One request in ~/arena/logs/access.log carries a flag in its browser name: submit it.

    A web log has one line per request. grep -o pulls just the matching text out of 5,000 lines.

    Commands taughtlog-hunting

    ▶ Play: Needle in the logSOLUTION HIDDEN15 XP
  2. 30

    Level 30: Top talker

    GuidedEasy

    Objective: The flag is PTR{<IP>} for the IP with the most failed logins in ~/arena/logs/auth.log: submit it.

    To find who shows up most: pull out the thing you count (grep -oE with a pattern for an IP is safer than a field number), sort it, count with uniq -c, sort -n again. The last line wins.

    Commands taughtuniq-count

    ▶ Play: Top talkerSOLUTION HIDDEN15 XP
  3. 31

    Level 31: The breach

    AloneMedium

    Objective: The flag is PTR{<account>} for the account the IP in attacker.txt logged into successfully (~/arena/logs/auth.log).

    attacker.txt holds the attacker's IP. Follow it into auth.log: which account let them in?

    ▶ Play: The breachSOLUTION HIDDEN25 XP
  4. 32

    Level 32: The broken path

    AloneMedium

    Objective: The flag is PTR{<path>} for the path that caused the most 500 errors in ~/arena/logs/access.log.

    Status 500 means the server crashed on that request. Field 9 of this log is the status, field 7 the path.

    ▶ Play: The broken pathSOLUTION HIDDEN25 XP
  5. 33

    Level 33: Night shift

    Alone⏱ TimedHard

    Objective: The flag is PTR{errors_<N>}: N is the number of ERROR lines between 03:00 and 03:59 on Nov 16 in ~/arena/logs/app.log (syslog format).

    Syslog timestamps look like Nov 16 03:12:01: no year, no timezone, just month, day and time. They sort like text, so a whole hour shares a prefix: grep '^Nov 16 03:' keeps 03:00-03:59.

    ▶ Play: Night shiftSOLUTION HIDDEN40 XP
  6. 34

    Level 34: Critical mass

    Alone⏱ TimedHard

    Objective: Join the token of every CRIT line in ~/arena/logs/big.log, in order, and submit PTR{...}.

    20,000 lines and twelve of them are CRIT. Their tokens, in order, spell the flag.

    ▶ Play: Critical massSOLUTION HIDDEN40 XP
  7. 35

    Level 35: BOSS: Incident report

    Boss⏱ TimedHard

    Objective: The flag is PTR{<name of the file the attacker downloaded>}: find the IP with the most 401s in access.log, then its wget in cmds.log.

    One attacker hammered /login until it worked, then ran commands. Find them in access.log, follow them into cmds.log.

    ▶ Play: BOSS: Incident reportSOLUTION HIDDEN65 XP

World 5The Automaton

9 levels

Challenges too big for hands, where loops, filters and little scripts do a thousand tries in seconds.

  1. 36

    Level 36: Twenty coats

    GuidedEasy

    Objective: Decode ~/arena/script/layers.b64 with base64 -d until the flag appears and submit it.

    The flag was base64-encoded twenty times. A for loop can decode it twenty times for you.

    Commands taughtfor-loop

    ▶ Play: Twenty coatsSOLUTION HIDDEN15 XP
  2. 37

    Level 37: The PIN lock

    GuidedEasy

    Objective: Brute-force ~/arena/script/vault and submit the flag it prints.

    ./vault <pin> opens only with the right PIN from 1 to 150. Nobody types 150 guesses: a loop does.

    ▶ Play: The PIN lockSOLUTION HIDDEN15 XP
  3. 38

    Level 38: Fingerprint match

    AloneMedium

    Objective: Of the 300 flags in ~/arena/script/cands, submit the one whose sha256 hash matches target.sha256.

    A hash is a file's fingerprint. sha256sum prints one per file, so grep can find the file matching a known hash. (Use SHA-256 for integrity: MD5 is broken, because attackers can build two different files with the same MD5.)

    Commands taughtsha256summd5sum

    ▶ Play: Fingerprint matchSOLUTION HIDDEN25 XP
  4. 39

    Level 39: Count the treasure

    AloneMedium

    Objective: The flag is PTR{<total>}: the sum of the 2,000 outbound transfer sizes (bytes) in ~/arena/script/bytes_out.txt.

    awk can add up a column: awk '{s += $1} END {print s}'. Defenders use it to total how much data left a host.

    ▶ Play: Count the treasureSOLUTION HIDDEN25 XP
  5. 40

    Level 40: The lonely line

    Alone⏱ TimedHard

    Objective: Submit the only flag that appears once in ~/arena/script/lines.txt.

    Every decoy flag appears twice, the real one once. sort | uniq -u keeps lines that are not repeated.

    ▶ Play: The lonely lineSOLUTION HIDDEN40 XP
  6. 41

    Level 41: Ordered parts

    Alone⏱ TimedHard

    Objective: Decode ~/arena/script/parts/part-1 to part-36 in order and submit PTR{...} with them inside.

    The flag was cut into 36 parts, part-1 to part-36: each holds one character, base64-encoded. Decode them in number order.

    ▶ Play: Ordered partsSOLUTION HIDDEN40 XP
  7. 42

    Level 42: Peeling tools: rev, zcat, case

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    Three tools for the unwrapper: rev flips each line backwards, zcat reads a gzip file as text, and `case $w in gz) echo zip;; esac` picks one action by matching a word against patterns.

    ▶ Play: Peeling tools: rev, zcat, caseSOLUTION HIDDEN30 XP
  8. 43

    Level 43: Loop until it says stop

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    A while loop repeats as long as its test is true. while true runs forever, and break leaves the loop the moment you decide it is done. Peel layers until a label says DONE.

    ▶ Play: Loop until it says stopSOLUTION HIDDEN30 XP
  9. 44

    Level 44: BOSS: The unwrapper

    Boss⏱ TimedHard

    Objective: Unwrap ~/arena/script/onion.txt layer by layer (see README) and submit the flag under DONE.

    Each layer's first line names its wrapping (b64, rev or gz): head -1 reads it, tail -n +2 gives the rest. Nobody knows how many layers, so loop until the label says DONE.

    ▶ Play: BOSS: The unwrapperSOLUTION HIDDEN70 XP

World 6The Finals

7 levels

Text puzzles, speed rounds that mix every category, and the final boss of the Arena.

  1. 45

    Level 45: Acrostic

    GuidedEasy

    Objective: Read the first column of ~/arena/finals/poem.txt and submit PTR{those characters}.

    An acrostic hides a word in the first letter of each line. cut -c1 takes the first character of every line.

    Commands taughtcut

    ▶ Play: AcrosticSOLUTION HIDDEN15 XP
  2. 46

    Level 46: Ledger

    AloneMedium

    Objective: Join the char of every 'keep' row of ~/arena/finals/ledger.csv in id order and submit PTR{...}.

    CSV (comma-separated values) is a table in plain text, and awk -F, splits it on commas, so $2 is the second column. Sort by id first, then keep the rows you need.

    ▶ Play: LedgerSOLUTION HIDDEN25 XP
  3. 47

    Level 47: Jammed

    AloneMedium

    Objective: Remove the junk from the captured line in ~/arena/finals/transmission.txt (see README) and submit the flag.

    sed 's/old/new/g' replaces every match on a line. Replace junk with nothing to delete it, the same way analysts strip noise out of a captured log.

    Commands taughtsed

    ▶ Play: JammedSOLUTION HIDDEN25 XP
  4. 48

    Level 48: Speedrun: dead drop

    Alone⏱ TimedHard

    Objective: Find the hidden key in ~/arena/finals/drop, decode it, and submit the flag.

    Speed round mixing recon and crypto: one locker hides a dotfile, and its content is encoded.

    ▶ Play: Speedrun: dead dropSOLUTION HIDDEN40 XP
  5. 49

    Level 49: Speedrun: holiday photo

    Alone⏱ TimedHard

    Objective: Open ~/arena/finals/holiday.jpg, find the request with status 500, and submit its flag.

    Speed round mixing forensics and logs: a 'photo' that isn't, and a log inside it.

    ▶ Play: Speedrun: holiday photoSOLUTION HIDDEN40 XP
  6. 50

    Level 50: Speedrun: sixty blobs

    Alone⏱ TimedHard

    Objective: Decode the hex blobs in ~/arena/finals/blobs and submit the only PTR flag.

    Speed round mixing scripting and crypto: sixty hex blobs, only one decodes to a PTR flag.

    ▶ Play: Speedrun: sixty blobsSOLUTION HIDDEN40 XP
  7. 51

    Level 51: FINAL BOSS: Root of the Arena

    Boss⏱ TimedHard

    Objective: Open ~/arena/finals/arena.bak, follow README, and submit the Arena's final flag.

    Everything at once: an archive, a hidden folder, a log, the busiest visitor, ordered pieces, hex and base64.

    ▶ Play: FINAL BOSS: Root of the ArenaSOLUTION HIDDEN100 XP

World 7Evidence Room

14 levels

Handle evidence like a forensic analyst: hash it, log who touched it, image devices, mount read-only, recover and carve.

  1. 52

    Level 52: Fingerprint first

    GuidedEasy

    Objective: Fingerprint ~/arena/evidence/photo.jpg with SHA-256 and submit the hash to Kern.

    Analysts fingerprint evidence before opening it. sha256sum FILE prints a 64-character SHA-256 hash: change one byte and the whole hash changes. MD5 is broken: two different files can be built with the same MD5, so it proves nothing in court.

    Commands taughtevidence-hashing

    ▶ Play: Fingerprint firstSOLUTION HIDDEN20 XP
  2. 53

    Level 53: Seal the bag

    GuidedEasy

    Objective: Seal the four files in ~/arena/evidence/case into intake.sha256, then verify the seal with sha256sum -c.

    A hash manifest is a list of 'hash name' lines, one per file: hidden writes one for a whole folder. Later, hidden re-hashes every file and prints OK or FAILED for each, so you can prove nothing changed since intake.

    ▶ Play: Seal the bagSOLUTION HIDDEN30 XP
  3. 54

    Level 54: Chain of custody

    GuidedEasy

    Objective: Append a custody line to ~/arena/evidence/custody.log saying that you (guest) received stick.img now, with its SHA-256.

    Chain of custody records who held evidence, when, and what they did. Each line here is when (UTC)|who|item|sha256|action. hidden prints UTC time like 2026-11-17T09:30:00Z, whoami prints your name, and >> appends a line.

    Commands taughtchain-of-custodydate

    ▶ Play: Chain of custodySOLUTION HIDDEN20 XP
  4. 55

    Level 55: Copy, stat and time windows

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    Evidence work starts with exact copies (dd), exact metadata (stat) and time windows (find -newermt). All three are read-only on the original.

    Commands taughtddfind-newermt

    ▶ Play: Copy, stat and time windowsSOLUTION HIDDEN30 XP
  5. 56

    Level 56: Image the stick

    AloneMedium

    Objective: Image the seized USB stick named in ~/arena/evidence/README into ~/arena/evidence/usb.dd and submit the image's SHA-256.

    Analysts never work on the original device. dd copies a whole device byte for byte into an image file: sudo dd if=/dev/DEVICE of=copy.dd bs=64k (if = input, of = output, bs = block size). Then sha256sum on the device and on the image must print the same hash.

    ▶ Play: Image the stickSOLUTION HIDDEN30 XP
  6. 57

    Level 57: Read-only

    AloneMedium

    Objective: Mount ~/arena/evidence/usb.dd read-only at /mnt/usb and submit the tag written in notes/plan.txt.

    Mounting a file system read-write can write to it (mount counters, journal, access times), and then the image's hash changes. A loop mount opens an image file as a disk: sudo mount -o ro,loop IMAGE DIR mounts it read-only, and sudo umount DIR detaches it.

    Commands taughtmount-ro

    ▶ Play: Read-onlySOLUTION HIDDEN30 XP
  7. 58

    Level 58: Three clocks

    AloneMedium

    Objective: Submit the tag from the one file in ~/arena/evidence/incident modified between 02:00 and 02:30 UTC on 2026-11-16.

    stat FILE shows three clocks: Access (atime, last read), Modify (mtime, content changed) and Change (ctime, file info changed). find -newermt 'DATE' matches files modified after DATE, ! -newermt 'DATE' those not after: together, a time window.

    Commands taughtstat

    ▶ Play: Three clocksSOLUTION HIDDEN30 XP
  8. 59

    Level 59: The forged clock

    Alone⏱ TimedHard

    Objective: Mount ~/arena/evidence/logs.img read-only at /mnt/logs and submit the tag inside the one back-dated file.

    touch -d can set a file's mtime to any date, but touching a file also sets its ctime to the real current time, and touch cannot change ctime. A file whose ctime is long after its mtime has been back-dated.

    ▶ Play: The forged clockSOLUTION HIDDEN45 XP
  9. 60

    Level 60: Sleuth Kit: fls and icat

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    A disk image keeps deleted files until their space is reused. fls lists files inside an image (-r to go into folders, -d for deleted only) and icat prints a file by its inode number.

    Commands taughtsleuthkit

    ▶ Play: Sleuth Kit: fls and icatSOLUTION HIDDEN30 XP
  10. 61

    Level 61: Undelete

    Alone⏱ TimedHard

    Objective: Recover the file deleted from the camera card image ~/arena/evidence/card.img, without mounting it, and submit its tag.

    Deleting a file removes its name, but the data stays until overwritten. Sleuthkit reads an image without mounting: fls -rd IMAGE lists deleted entries (a lost one may show as OrphanFile-INODE), and icat IMAGE INODE prints that inode's data.

    ▶ Play: UndeleteSOLUTION HIDDEN45 XP
  11. 62

    Level 62: Searching raw bytes

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    Raw data is not text. grep -a treats binary as text, -b prints the byte offset of each match, -U stops grep rewriting line ends, and $'\x41' lets you type a byte by its hex value.

    Commands taughtcarving

    ▶ Play: Searching raw bytesSOLUTION HIDDEN30 XP
  12. 63

    Level 63: Carve it out

    Alone⏱ TimedHard

    Objective: Carve the gzip file hidden in the raw unallocated space ~/arena/evidence/unalloc.bin and submit the tag inside.

    Carving rebuilds files from raw bytes by their magic numbers; gzip starts with 1f 8b 08. LC_ALL=C grep -obUa $'\x1f\x8b\x08' FILE prints each match's byte offset, dd ... iflag=skip_bytes skip=OFFSET cuts from there, and zcat decompresses.

    ▶ Play: Carve it outSOLUTION HIDDEN45 XP
  13. 64

    Level 64: Who touched it?

    Alone⏱ TimedHard

    Objective: Check the six items in ~/arena/evidence/locker against the hashes in custody.log and submit the name of the item that changed.

    custody.log records each item's SHA-256 at intake. awk -F'|' splits a line on |, so awk -F'|' '$5=="received" {print $4" locker/"$3}' custody.log turns the log into a manifest that sha256sum -c can check. Any FAILED line is an item that changed after intake.

    ▶ Play: Who touched it?SOLUTION HIDDEN45 XP
  14. 65

    Level 65: BOSS: The seized stick

    Boss⏱ TimedHard

    Objective: Process case 42 in ~/arena/evidence/case42: image, log, mount read-only, recover, timeline, close the custody record.

    A full evidence workflow: image the device, log custody with the hash, mount the image read-only, recover what was deleted, build a timeline, then re-hash to prove the evidence never changed.

    ▶ Play: BOSS: The seized stickSOLUTION HIDDEN90 XP

World 8Real Crypto

16 levels

Real cryptography with openssl and GnuPG: hashes, AES, HMAC, password hashes, signatures, keys and certificates.

  1. 66

    Level 66: Three kinds of secret

    GuidedEasy

    Objective: Turn back the one file in ~/arena/vault (note.b64, note.sha256 or note.enc) that needs no key, and submit the tag.

    Encoding (base64, hex) changes the alphabet and anyone can undo it; hashing (SHA-256) makes a one-way fingerprint; encryption (AES) can be undone only with the key. The file command tells you what you are holding.

    Commands taughtcrypto-kinds

    ▶ Play: Three kinds of secretSOLUTION HIDDEN20 XP
  2. 67

    Level 67: Trust the checksum

    GuidedEasy

    Objective: Find the copy of tool-1.4.tar.gz in ~/arena/vault/mirrors that matches SHA256SUMS and submit the tag in its README.

    Vendors publish SHA256SUMS, one 'hash file' line per download: if your copy's sha256sum matches, you got the exact file they released. Run from the file's folder, hidden compares for you.

    ▶ Play: Trust the checksumSOLUTION HIDDEN20 XP
  3. 68

    Level 68: AES by hand

    GuidedEasy

    Objective: In ~/arena/vault: encrypt diary.txt with my.key, then decrypt orders.enc with hq.key and submit the tag inside.

    openssl enc -aes-256-cbc -pbkdf2 -salt -in PLAIN -out CIPHER -pass file:KEYFILE encrypts with AES-256. -pbkdf2 makes password guessing slow, -salt makes every encryption different, -pass file: keeps the password out of your history. -d decrypts.

    Commands taughtopenssl

    ▶ Play: AES by handSOLUTION HIDDEN30 XP
  4. 69

    Level 69: openssl dgst: hash and HMAC

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    openssl dgst -sha256 FILE prints a file's SHA-256, -r uses the familiar 'hash file' layout, and -hmac KEY mixes a secret key in so only key holders can make the same code.

    Commands taughthmac

    ▶ Play: openssl dgst: hash and HMACSOLUTION HIDDEN30 XP
  5. 70

    Level 70: Wrong key or tampered?

    AloneMedium

    Objective: Both reports in ~/arena/vault fail with hq.key: use sent.sha256 to find the intact one, decrypt it with the right key from keys/ and submit its tag.

    'bad decrypt' can mean a wrong password or a changed file, and AES-CBC alone cannot tell which. A hash of the ciphertext can: if sha256sum -c says OK, the file arrived intact and your key is wrong; if it says FAILED, the file was changed, so do not trust anything inside it.

    ▶ Play: Wrong key or tampered?SOLUTION HIDDEN30 XP
  6. 71

    Level 71: Sealed orders

    AloneMedium

    Objective: Submit the tag from the one order in ~/arena/vault/orders whose .mac is a valid HMAC for hmac.key.

    An HMAC is a hash mixed with a secret key: openssl dgst -sha256 -hmac KEY -r FILE prints it (-r: just 'hash *file'). Only someone with the key can make a matching HMAC, so it proves who wrote the message and that nobody changed it.

    ▶ Play: Sealed ordersSOLUTION HIDDEN30 XP
  7. 72

    Level 72: Password hashes, fixed strings, read

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    openssl passwd -6 -salt NAME turns a password into a salted SHA-512 hash, the same kind /etc/shadow stores. grep -F matches text literally, and read splits a line into variables.

    Commands taughtpassword-hashes

    ▶ Play: Password hashes, fixed strings, readSOLUTION HIDDEN30 XP
  8. 73

    Level 73: Inside /etc/shadow

    AloneMedium

    Objective: Read ~/arena/vault/shadow.txt: kern the account on MD5-crypt, then find which password in note.txt is carol's.

    Linux stores password hashes as $ID$SALT$HASH: $1$ MD5-crypt (outdated), $5$ SHA-256, $6$ SHA-512, $y$ yescrypt; ! means locked. The salt makes equal passwords hash differently. openssl passwd -6 -salt XXXX PASSWORD rebuilds a $6$ hash to compare.

    ▶ Play: Inside /etc/shadowSOLUTION HIDDEN40 XP
  9. 74

    Level 74: Password audit

    Alone⏱ TimedHard

    Objective: Audit staff-shadow.txt (our staff, approved by IT) against common.txt and list the accounts that must reset in ~/arena/vault/must-reset.txt, one per line.

    Defenders audit their OWN staff's hashes against common passwords, so weak accounts reset before an attacker tries them. openssl passwd -6 -salt XXXX -stdin < LIST hashes every word with one salt; grep -qxF "$HASH" says if one matches.

    ▶ Play: Password auditSOLUTION HIDDEN45 XP
  10. 75

    Level 75: Key pairs and signatures

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    A key pair has a private half you keep and a public half you share. You sign with the private key and anyone can verify with the public one.

    Commands taughtsignatures

    ▶ Play: Key pairs and signaturesSOLUTION HIDDEN30 XP
  11. 76

    Level 76: Sign the release

    Alone⏱ TimedHard

    Objective: In ~/arena/vault: make a P-256 key pair, lock down private keys, sign app-2.0.tar.gz, then check the mirror's copy.

    A key pair signs and verifies: the private key signs, the public key checks. openssl genpkey makes the private key, openssl pkey -pubout its public half, openssl dgst -sha256 -sign / -verify signs and checks. The private key stays mode 600.

    ▶ Play: Sign the releaseSOLUTION HIDDEN55 XP
  12. 77

    Level 77: GnuPG: import and fingerprint

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    GnuPG keeps keys in a keyring. gpg --import adds keys from a file, and hidden shows each key's fingerprint: the short identity you compare with the vendor's website.

    Commands taughtgpg

    ▶ Play: GnuPG: import and fingerprintSOLUTION HIDDEN30 XP
  13. 78

    Level 78: Whose signature?

    Alone⏱ TimedHard

    Objective: In ~/arena/vault, import vendor-keys.asc, then kern the one tool package that was really signed by the fingerprint in README.

    gpg --import FILE adds keys to your keyring, hidden lists them, gpg --verify FILE.asc FILE checks a detached signature. 'Good signature' only means SOME key in your keyring matches: its fingerprint must equal the vendor's published one.

    ▶ Play: Whose signature?SOLUTION HIDDEN55 XP
  14. 79

    Level 79: Reading and verifying certificates

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    A certificate says who owns a key and who vouches for it. openssl x509 reads one (-issuer, -dates) and openssl verify checks its chain: -CAfile is the trusted root, -untrusted the helpers in between, -verify_hostname the name you expect.

    Commands taughtcertificates

    ▶ Play: Reading and verifying certificatesSOLUTION HIDDEN30 XP
  15. 80

    Level 80: Certificate line-up

    Alone⏱ TimedHard

    Objective: Five certificates in ~/arena/vault/pki/certs claim to be shop.ptr.lab: kern the name of the only one valid today, for that name, chained to root-ca.crt.

    A TLS certificate binds a name to a public key, signed by a CA. openssl x509 -noout -subject -issuer -dates shows who, signed by whom, until when. openssl verify -CAfile ROOT -untrusted INTERMEDIATE -verify_hostname NAME CERT checks it all.

    ▶ Play: Certificate line-upSOLUTION HIDDEN45 XP
  16. 81

    Level 81: BOSS: Poisoned update

    Boss⏱ TimedHard

    Objective: In ~/arena/vault: pick the authentic bundle by HMAC, decrypt it, import the vendor keys, and install the one package that passes every check into opt/.

    Supply-chain defence: an HMAC proves which bundle is authentic, AES opens it, GnuPG proves who signed each package (by fingerprint), and a signed SHA256SUMS proves which version is current.

    ▶ Play: BOSS: Poisoned updateSOLUTION HIDDEN90 XP

World 9Threat Hunter

14 levels

Triage a Linux box like an incident responder: collect volatile evidence, find persistence, preserve, contain and clean up.

  1. 82

    Level 82: Order of volatility

    GuidedEasy

    Objective: In ~/arena/hunt, save the process list and the listening sockets into case/, then hash both into case/collect.sha256.

    Evidence fades at different speeds: processes and connections vanish at the next kill or reboot, disk files last longer, backups longest. So collect the most volatile first: ps aux, hidden (listeners and their programs), then hash it.

    Commands taughtvolatilitypsss

    ▶ Play: Order of volatilitySOLUTION HIDDEN30 XP
  2. 83

    Level 83: Who is listening?

    GuidedEasy

    Objective: One process in this box listens on a port that is not in ~/arena/hunt/baseline.txt. kern the full path of its program.

    hidden shows each listening port with users:(("NAME",pid=N)). /proc/N/exe links to the program that process really runs: sudo readlink /proc/N/exe shows its path, even when ps shows a fake name. lsof -i :PORT finds the PID too.

    Commands taughtproc-exelsof

    ▶ Play: Who is listening?SOLUTION HIDDEN20 XP
  3. 84

    Level 84: Deleted but running

    AloneMedium

    Objective: One running process on this box was started from a file that has since been deleted. kern its PID.

    Malware often deletes its own file after starting, to hide. The process keeps running, and /proc/PID/exe then points to the old path with (deleted) at the end. hidden finds them all at once.

    ▶ Play: Deleted but runningSOLUTION HIDDEN30 XP
  4. 85

    Level 85: Cron comeback

    AloneMedium

    Objective: Remove the line in root's crontab that runs every 10 minutes (keep the five run-parts jobs) and move the script it ran into ~/arena/hunt/case/.

    Cron runs commands on a schedule: a favourite way back in. On Alpine root's jobs live in /etc/crontabs/root (hidden). sudo sed -i '/PATTERN/d' FILE removes one line; move (don't delete) the script it ran into your case folder.

    Commands taughtcrontab

    ▶ Play: Cron comebackSOLUTION HIDDEN30 XP
  5. 86

    Level 86: Key fingerprints and removing accounts

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    ssh-keygen -l prints a key fingerprint, awk -F: lists accounts with UID 0 and deluser removes one.

    Commands taughtauthorized-keys

    ▶ Play: Key fingerprints and removing accountsSOLUTION HIDDEN30 XP
  6. 87

    Level 87: The extra key

    AloneMedium

    Objective: Remove the key in /root/.ssh/authorized_keys that is not in ~/arena/hunt/approved_keys.txt and keep the approved ones.

    Any public key in ~/.ssh/authorized_keys can log in as that user without a password, so an extra line is a silent backdoor. Lines are TYPE KEY COMMENT, ssh-keygen -lf FILE prints fingerprints, and the file must stay mode 600.

    ▶ Play: The extra keySOLUTION HIDDEN30 XP
  7. 88

    Level 88: Two roots

    AloneMedium

    Objective: Find the second account with UID 0 on this box and delete it.

    In /etc/passwd each line is name:x:UID:GID:comment:home:shell. UID 0 means root powers, whatever the name. hidden lists every UID-0 account; only root should appear. sudo deluser NAME removes an account from /etc/passwd and /etc/shadow.

    Commands taughtpasswd-file

    ▶ Play: Two rootsSOLUTION HIDDEN30 XP
  8. 89

    Level 89: Login hook

    Alone⏱ TimedHard

    Objective: Find the line in server's start-up files that starts a hidden program at each login and remove only that line.

    Shell start-up files run every time a user logs in: ~/.profile (login shells), ~/.bashrc (bash), /etc/profile.d/*.sh (everyone). One added line there starts a program at each login. grep -n PATTERN FILE shows line numbers; sudo sed -i '/PATTERN/d' FILE removes just that line.

    Commands taughtlogin-hooks

    ▶ Play: Login hookSOLUTION HIDDEN45 XP
  9. 90

    Level 90: OpenRC: add, show, del

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    On Alpine, OpenRC starts services at boot. rc-update add enables a service in a runlevel, show lists what is enabled, and del disables it.

    Commands taughtrc-update

    ▶ Play: OpenRC: add, show, delSOLUTION HIDDEN30 XP
  10. 91

    Level 91: Unwanted service

    Alone⏱ TimedHard

    Objective: Stop and disable the netcache service, keep crond enabled, and move its init script into ~/arena/hunt/case/.

    Boot services are another way back. On Alpine (OpenRC) /etc/init.d/NAME is the script, rc-update show lists what is enabled, sudo rc-update del NAME default disables it, sudo kill $(cat /run/NAME.pid) stops it. systemd: systemctl disable --now.

    ▶ Play: Unwanted serviceSOLUTION HIDDEN45 XP
  11. 92

    Level 92: It keeps coming back

    Alone⏱ TimedHard

    Objective: Kill the kcached miner and remove what restarts it at boot (keep 10-motd.start), then survive my reboot check.

    Killing a process is not removing it: on Alpine, executable /etc/local.d/*.start scripts run at every boot (like rc.local or systemd units elsewhere). Find what starts it, remove that, kill the running copy, and let a reboot prove it.

    Commands taughtboot-scripts

    ▶ Play: It keeps coming backSOLUTION HIDDEN45 XP
  12. 93

    Level 93: Integrity check

    Alone⏱ TimedHard

    Objective: Check /usr/local/bin against /var/lib/fim/baseline.sha256, preserve the running trojan, stop it, and restore the clean copy from /var/lib/fim/golden.

    File integrity monitoring: hash important files while clean (a baseline), re-check with sha256sum -c; FAILED means changed. If it runs, preserve before killing: copy /proc/PID/exe and save /proc/PID/cmdline (NUL-separated: tr '\0' ' ').

    Commands taughtfim-baselinekill

    ▶ Play: Integrity checkSOLUTION HIDDEN55 XP
  13. 94

    Level 94: grep with several -e patterns

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    grep -e PATTERN can be given more than once: match any of them. With -v it keeps only the lines matching none, which is how you remove the known-good entries from a list.

    ▶ Play: grep with several -e patternsSOLUTION HIDDEN30 XP
  14. 95

    Level 95: BOSS: Eradicate

    Boss⏱ TimedHard

    Objective: Identify, preserve and stop the implant listening on app01, remove all four ways it comes back, keep the shop working, and survive my reboot.

    Incident response in order: identify, collect (preserve), contain (stop it), eradicate (remove every way back), recover (the real service still works) and verify with a reboot.

    ▶ Play: BOSS: EradicateSOLUTION HIDDEN100 XP

World 10Wire Watch

8 levels

Read network captures like a SOC analyst: tcpdump -r, filters, top talkers, and cleartext findings to report.

  1. 96

    Level 96: First look

    GuidedEasy

    Objective: Read ~/arena/wire/first.pcap with tcpdump -nr and tell Kern how many packets it holds.

    A capture (.pcap file) is a recording of network packets. tcpdump -r FILE reads one and prints one line per packet: time, IP, source.port > destination.port, then details. -n shows raw numbers instead of looking names up. Analysts record with tcpdump -w and read later.

    Commands taughtpcap-tcpdump

    ▶ Play: First lookSOLUTION HIDDEN20 XP
  2. 97

    Level 97: Narrow it down

    GuidedEasy

    Objective: Answer ticket.txt in ~/arena/wire: how many packets did that host exchange on port 22 in office.pcap?

    A filter after the file name keeps only matching packets: 'host 10.0.0.5' (to or from that address), 'port 22', 'src host X', 'dst port 80'. Join them with and / or / not, and quote the filter so the shell leaves it alone.

    Commands taughtpcap-filters

    ▶ Play: Narrow it downSOLUTION HIDDEN20 XP
  3. 98

    Level 98: Top talkers

    GuidedEasy

    Objective: Find the top talker (most packets sent) in ~/arena/wire/lan.pcap and submit its IP.

    Field 3 of a tcpdump line is the source, written ADDRESS.PORT. cut -d. -f1-4 keeps the four parts of the address, and sort | uniq -c | sort -rn ranks how often each appears: the top talker is the host sending the most packets.

    Commands taughtpcap-talkers

    ▶ Play: Top talkersSOLUTION HIDDEN20 XP
  4. 99

    Level 99: Read the payload

    GuidedEasy

    Objective: Answer ticket.txt in ~/arena/wire by submitting the path (like /docs/x.html) of the file that host downloaded in files.pcap.

    Plain HTTP (port 80) is not encrypted: anyone on the path can read it. tcpdump -A prints each packet's payload as text under its header line, so GET lines, headers and pages show up. grep -a treats that output as text.

    Commands taughtpcap-ascii

    ▶ Play: Read the payloadSOLUTION HIDDEN20 XP
  5. 100

    Level 100: The invisible character

    GuidedEasy

    Objective: Kern the real length of NAME in the captured header line Host: NAME in ~/arena/wire/headers.txt, with no hidden characters.

    Network text often ends lines with a hidden carriage return (\r) from Windows-style line ends. It is invisible but it is a real character: awk counts it, base64 chokes on it. tr -d '\r' deletes every \r it reads from its input, so the text becomes clean.

    ▶ Play: The invisible characterSOLUTION HIDDEN20 XP
  6. 101

    Level 101: Base64 is not a lock

    AloneMedium

    Objective: Someone logged in to intranet.lan over plain HTTP: find the exposed account in ~/arena/wire/intranet.pcap and report only its name to Kern.

    HTTP Basic auth sends 'Authorization: Basic VALUE', where VALUE is base64 of user:password, an encoding that base64 -d reverses, not encryption. Over plain HTTP that is a finding: report the name (never use the password), rotate the account, move the app to HTTPS.

    Commands taughtpcap-cleartext

    ▶ Play: Base64 is not a lockSOLUTION HIDDEN30 XP
  7. 102

    Level 102: Telnet in the noise

    Alone⏱ TimedHard

    Objective: Somewhere in ~/arena/wire/busy.pcap a device accepts telnet: report its IP and the account that logged in with kern SERVER ACCOUNT.

    Telnet (port 23) is a remote shell with no encryption: login name and password cross the wire as text. In a busy capture filter on the port first, then read with -A (the server is the side using port 23).

    ▶ Play: Telnet in the noiseSOLUTION HIDDEN45 XP
  8. 103

    Level 103: BOSS: Cleartext audit

    Boss⏱ TimedHard

    Objective: Audit ~/arena/wire/audit/audit.pcap: top talker, the Basic-auth account, the telnet server, then write report.txt.

    A cleartext audit ranks who talks the most, finds every credential that crosses the network unencrypted (even on unusual ports), and ends with a report that names accounts and fixes but never contains a secret.

    ▶ Play: BOSS: Cleartext auditSOLUTION HIDDEN90 XP

World 11Wire Watch II

10 levels

Hunt attacks in packet captures: DNS tunnels, port scans, beacons, exfiltration, log correlation, and the firewall rule that stops it.

  1. 104

    Level 104: Long names

    GuidedEasy

    Objective: Find the domain used for DNS tunnelling in ~/arena/wire2/dns.pcap and kern its base domain (last two labels, like example.net).

    Every DNS question shows in tcpdump as 'A? name.', and normal names are short; DNS tunnelling hides data in long random labels under one domain (xk3...q7.cdn-evil.net). awk '{print length($8), $8}' prints each name with its length, so the longest rise to the top of sort -rn.

    Commands taughtpcap-dns-tunnel

    ▶ Play: Long namesSOLUTION HIDDEN20 XP
  2. 105

    Level 105: The knocker

    GuidedEasy

    Objective: Find the IP that port-scanned 10.0.0.80 in ~/arena/wire2/scan.pcap and kern it.

    A TCP connection opens with a SYN packet (Flags [S]); a port scan sends SYNs to many ports from one source, most answered by a reset. The filter 'tcp[tcpflags] == tcp-syn' keeps only those opening packets, so the scanner stands out even when another host sends more traffic.

    Commands taughtpcap-syn-scan

    ▶ Play: The knockerSOLUTION HIDDEN20 XP
  3. 106

    Level 106: Heartbeat

    GuidedEasy

    Objective: Answer ticket.txt in ~/arena/wire2: is it beaconing, and every how many seconds? kern the interval.

    Malware 'beacons': it calls its command server (C2) at a fixed interval. tcpdump -tt prints time as seconds since 1970, so awk can subtract: '{t=int($1); if (p) print t-p; p=t}' prints the gap between each line and the previous one. The same gap over and over is a beacon.

    Commands taughtpcap-beacon

    ▶ Play: HeartbeatSOLUTION HIDDEN20 XP
  4. 107

    Level 107: Count the bytes

    GuidedEasy

    Objective: Answer ticket.txt in ~/arena/wire2: how many payload bytes did the host send to that server in upload.pcap? kern the total.

    tcpdump -q (quick) prints a short line for each packet, and the last field is the payload size in bytes. awk '{s+=$NF}' adds each line's last field ($NF) to a running total s; END {print s} prints it after the last line. Filter first so only the right packets are summed.

    ▶ Play: Count the bytesSOLUTION HIDDEN20 XP
  5. 108

    Level 108: Heavy bags

    AloneMedium

    Objective: Which internal host sent the most bytes to the internet in ~/arena/wire2/egress.pcap? kern its IP.

    Exfiltration is about bytes, not packets. tcpdump -q prints a short line ending with the payload size (tcp 1400). Keep only traffic leaving the network ('src net 10.0.0.0/8 and not dst net 10.0.0.0/8') and let awk sum the last field ($NF) per source.

    Commands taughtpcap-exfil

    ▶ Play: Heavy bagsSOLUTION HIDDEN30 XP
  6. 109

    Level 109: Behind the proxy

    AloneMedium

    Objective: access.log in ~/arena/wire2 shows one successful (200) GET /admin/export: find its real client in edge.pcap and kern its IP.

    Correlation joins two sources on time. access.log only sees the reverse proxy (10.0.0.2); a capture in front of the proxy sees the real client. Same request, same second (both UTC): the log gives the time, the capture the who. tcpdump shows HTTP: GET /path.

    Commands taughtpcap-correlate

    ▶ Play: Behind the proxySOLUTION HIDDEN30 XP
  7. 110

    Level 110: A firewall rule, step by step

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    nft is the Linux firewall. A table holds chains and a chain holds rules. sudo nft add rule TABLE CHAIN ip daddr ADDRESS drop adds a rule that throws away every packet going to ADDRESS, and sudo nft list shows what is there.

    ▶ Play: A firewall rule, step by stepSOLUTION HIDDEN30 XP
  8. 111

    Level 111: Close the door

    AloneMedium

    Objective: Find the C2 address in ~/arena/wire2/c2.pcap, then block it in the prepared nft chain inet wirewatch egress.

    nft is the Linux firewall: tables hold chains, and a chain on the output hook sees every packet this host sends. sudo nft add rule inet wirewatch egress ip daddr ADDRESS drop blocks one address; hidden shows it. A bare 'drop' would cut the host off.

    Commands taughtpcap-nft-block

    ▶ Play: Close the doorSOLUTION HIDDEN40 XP
  9. 112

    Level 112: Night shift

    Alone⏱ TimedHard

    Objective: In ~/arena/wire2/night.pcap, find the host that beacons and its interval: kern HOST SECONDS.

    Several hosts talk to the internet at night, but only one keeps a fixed rhythm. Track the gap per source: awk can remember the last time for each host in an array p[host].

    ▶ Play: Night shiftSOLUTION HIDDEN45 XP
  10. 113

    Level 113: BOSS: The quiet leak

    Boss⏱ TimedHard

    Objective: Work ~/arena/wire2/leak/leak.pcap: patient zero, C2, its domain, interval, exfil bytes, then block the C2 in inet wirewatch egress.

    A full network hunt: find the infected host by its rhythm, name its C2, measure the beacon, measure what it stole, and block it, all from one capture.

    ▶ Play: BOSS: The quiet leakSOLUTION HIDDEN100 XP

World 12SOC Desk

11 levels

Your first night in the Security Operations Centre: query logs like a SIEM with sqlite3 and jq, then turn questions into alert rules.

  1. 114

    Level 114: First query

    GuidedEasy

    Objective: Find the table that holds logins in ~/arena/soc/siem.db, then tell Kern who logged in first today.

    A SIEM keeps every log line in a searchable store; here it is a sqlite database: sqlite3 siem.db ".tables" lists its tables, ".schema NAME" shows a table's columns, and sqlite3 siem.db "SELECT col1, col2 FROM NAME ORDER BY ts LIMIT 5" asks a question. -box draws a table.

    Commands taughtsiem-litesqlite3

    ▶ Play: First querySOLUTION HIDDEN30 XP
  2. 115

    Level 115: Only what matters

    GuidedEasy

    Objective: Kern the outside IP that failed logins on the service accounts (their names start with svc).

    WHERE keeps only matching rows (WHERE result = 'fail'); the keyword AND joins two conditions. LIKE matches a pattern where % means any characters, so user LIKE 'svc%' is every account starting with svc; SELECT DISTINCT prints each value once.

    Commands taughtsql-where

    ▶ Play: Only what mattersSOLUTION HIDDEN20 XP
  3. 116

    Level 116: Count it

    GuidedEasy

    Objective: Kern the IP with the most failed logins in siem.db.

    GROUP BY src_ip makes one group per IP; COUNT(*) counts the rows in each group: SELECT src_ip, COUNT(*) AS n FROM auth WHERE result = 'fail' GROUP BY src_ip ORDER BY n DESC. This is the SIEM classic 'stats count by src'.

    Commands taughtsql-group-by

    ▶ Play: Count itSOLUTION HIDDEN20 XP
  4. 117

    Level 117: JSON logs

    GuidedEasy

    Objective: Kern the actor who switched off cloud audit logging (action StopLogging) in ~/arena/soc/cloud.jsonl.

    Cloud and app logs are JSON lines: one {"key": value} object per line. jq reads them: jq . FILE pretty-prints, jq -r '.actor' FILE prints one field (-r = raw, no quotes), and jq -r 'select(.action == "X") | .actor' FILE keeps only matching events, then prints a field.

    Commands taughtjq

    ▶ Play: JSON logsSOLUTION HIDDEN20 XP
  5. 118

    Level 118: Two conditions

    GuidedEasy

    Objective: Count the admin account's failed logins in siem.db, then count its events in cloud.jsonl.

    AND needs both conditions true: WHERE user = 'admin' AND result = 'fail' keeps only the admin's failed logins. jq does the same with select(.actor == "admin") (== is 'equals'), and jq -c prints each matching event on ONE line so wc -l can count them.

    ▶ Play: Two conditionsSOLUTION HIDDEN30 XP
  6. 119

    Level 119: Time buckets

    AloneMedium

    Objective: Kern the hour (two digits, like 07) with the most failed VPN logins.

    strftime('%H', ts) cuts a timestamp down to its hour (00-23); GROUP BY that bucket counts events per hour. strftime('%Y-%m-%d %H:00', ts) keeps the day too. A spike in one bucket is how most attacks first show up on a SIEM chart.

    Commands taughtsql-time-buckets

    ▶ Play: Time bucketsSOLUTION HIDDEN30 XP
  7. 120

    Level 120: Join the dots

    AloneMedium

    Objective: Kern the user who logged in successfully from the IP that downloaded /backup/db.sql.gz (status 200) from the web server.

    JOIN glues two tables where a column matches: FROM auth a JOIN web w ON a.src_ip = w.src_ip pairs each login with each web request from the same IP (a and w are short names). Correlating sources is the whole point of a SIEM.

    Commands taughtsql-join

    ▶ Play: Join the dotsSOLUTION HIDDEN30 XP
  8. 121

    Level 121: Count JSON

    AloneMedium

    Objective: Kern the client (internal IP) that sent the most requests to files.drop-zone.top in ~/arena/soc/proxy.jsonl.

    jq can feed the classic pipeline: jq -r 'select(...) | .field' FILE | sort | uniq -c | sort -rn counts how often each value appears, biggest first, just like GROUP BY.

    ▶ Play: Count JSONSOLUTION HIDDEN30 XP
  9. 122

    Level 122: Make it an alert

    Alone⏱ TimedHard

    Objective: Write rules/bruteforce.sql so it returns every source IP with MORE than 20 failed logins, on today's data and on tomorrow's.

    An alert is a saved query plus a threshold, kept in rules/NAME.sql and run on every new day of logs. HAVING filters groups after counting: GROUP BY src_ip HAVING COUNT(*) > 20 keeps only IPs with more than 20 rows.

    Commands taughtdetection-rule

    ▶ Play: Make it an alertSOLUTION HIDDEN45 XP
  10. 123

    Level 123: Spray detector

    Alone⏱ TimedHard

    Objective: Write rules/spray.sql to return the IP of anyone who failed against 5 or more different users within one clock hour (tested on two days).

    Password spraying tries one password on many accounts, so per-user counts stay low. Catch it by counting DIFFERENT users: COUNT(DISTINCT user), grouped by IP and by clock hour (GROUP BY src_ip, strftime('%Y-%m-%d %H', ts)).

    Commands taughtpassword-spray

    ▶ Play: Spray detectorSOLUTION HIDDEN45 XP
  11. 124

    Level 124: BOSS: The Breach Query

    Boss⏱ TimedHard

    Objective: Find the brute-forcer, the account it broke into, the cloud user it created, then write rules/compromise.sql so the SIEM catches the next one.

    A breach investigation is a chain of questions: who attacked (count), did it work (a success after the failures), what did they do next (another log source), and how do we catch it next time (a rule).

    ▶ Play: BOSS: The Breach QuerySOLUTION HIDDEN100 XP

World 13Night Shift

9 levels

Run the alert queue like a tier-1 analyst: true or false positive, how bad, which ATT&CK technique, escalate with evidence, hand over clean.

  1. 125

    Level 125: TP or FP?

    GuidedEasy

    Objective: Triage the four alerts in ~/arena/shift/soc.db: add one line per alert to triage.csv as alert_id,TP or FP,REASON-CODE.

    Every alert gets a verdict: TP (true positive, a real attack) or FP (false positive, harmless). A verdict without a reason is a guess, so each one carries a reason code (codes.txt) backed by evidence: the allowlist table, the auth log, changes.txt.

    Commands taughtalert-triage

    ▶ Play: TP or FP?SOLUTION HIDDEN20 XP
  2. 126

    Level 126: How bad is it?

    GuidedEasy

    Objective: Rate all five alerts in ~/arena/shift/soc.db: write alert_id,severity lines into severity.csv.

    Severity = impact (assets table: 1 lab, 2 prod, 3 crown jewel) x confidence (alert: 1 weak, 2 likely, 3 confirmed), and matrix.txt turns the score into low, medium, high or critical. A JOIN of alerts and assets on host does the maths.

    Commands taughtseverity-matrix

    ▶ Play: How bad is it?SOLUTION HIDDEN20 XP
  3. 127

    Level 127: Name the technique

    GuidedEasy

    Objective: Tag the five true positives in ~/arena/shift/soc.db: add alert_id,technique lines to tags.csv (an alert may get two ids, separated by a space).

    MITRE ATT&CK is the shared dictionary of attacker techniques; each has an id like T1110 (Brute Force). Tagging alerts with ids lets every SOC, tool and report speak the same language. attack.txt lists the five this desk uses.

    Commands taughtmitre-attack

    ▶ Play: Name the techniqueSOLUTION HIDDEN20 XP
  4. 128

    Level 128: Impossible travel

    AloneMedium

    Objective: Kern the user whose account logged in from two different countries less than 2 hours apart.

    Two successful logins by one user, from two countries, too close in time to travel between, mean two different people: one of them stole the password. JOIN auth to the geo table to get each login's country; julianday(b.ts) - julianday(a.ts) is the gap in days (x 24 = hours).

    Commands taughtimpossible-travel

    ▶ Play: Impossible travelSOLUTION HIDDEN30 XP
  5. 129

    Level 129: Escalate it

    AloneMedium

    Objective: Escalate the one true positive among the three alerts in ~/arena/shift/soc.db by filling ticket.tpl's fields into ticket.txt.

    Tier 1 escalates real incidents to tier 2 with a ticket that stands on its own: which alert, how severe, which ATT&CK ids, the IOC (indicator of compromise, here the attacker's IP), the user and host hit, a one-line summary and the first action to take.

    Commands taughtescalation-ticket

    ▶ Play: Escalate itSOLUTION HIDDEN30 XP
  6. 130

    Level 130: Handover

    AloneMedium

    Objective: Write ~/arena/shift/handover.txt with OPEN:, ESCALATED:, WATCH: and NOTE: lines, from the queue table in soc.db.

    The shift ends; the queue does not. A handover note tells the next analyst what is still OPEN, what was ESCALATED (ticket ids), which IOCs to WATCH, plus a short NOTE. group_concat(col, ' ') joins a column's values into one line.

    Commands taughtshift-handover

    ▶ Play: HandoverSOLUTION HIDDEN30 XP
  7. 131

    Level 131: Too noisy

    Alone⏱ TimedHard

    Objective: Tune rules/web-scan.sql to skip every IP in the allowlist table but still catch real scans (tested on today and tomorrow).

    A rule that fires on approved activity buries real alerts (alert fatigue), so tune it rather than delete it: WHERE src_ip NOT IN (SELECT ip FROM allowlist). The list lives in a table, so the rule stays right when the list changes.

    Commands taughtrule-tuning

    ▶ Play: Too noisySOLUTION HIDDEN45 XP
  8. 132

    Level 132: Rush hour

    Alone⏱ TimedHard

    Objective: Triage all twelve alerts in ~/arena/shift/soc.db into triage.csv (alert_id,TP or FP,REASON-CODE) before the clock runs out.

    Speed comes from routine: read the queue once, check each alert type's evidence the same way every time (allowlist, auth log, geo table, changes.txt), write the verdict with its reason, move on.

    ▶ Play: Rush hourSOLUTION HIDDEN45 XP
  9. 133

    Level 133: BOSS: Night Shift Queue

    Boss⏱ TimedHard

    Objective: Close the false positives among the 20 alerts in ~/arena/shift/soc.db, escalate the 2 true positives (tickets/ESC-1.txt, ESC-2.txt), then write handover.txt.

    A full shift: triage everything (close FPs with reasons), escalate each true positive with a complete ticket (severity, ATT&CK ids, IOC), then hand over so the morning shift knows exactly where things stand.

    ▶ Play: BOSS: Night Shift QueueSOLUTION HIDDEN100 XP

World 14Detection Lab

12 levels

Write rules that catch attackers: threat-intel feeds, web-attack signatures, tuning, Sigma and YARA, and a detector that blocks on its own.

  1. 134

    Level 134: The feed

    GuidedEasy

    Objective: In ~/arena/detect: put the feed's IP addresses into ips.txt, then find which internal host (src=) talked to one of them and kern it.

    An IOC feed lists hashes, IPs and domains seen in attacks. Do any appear in OUR logs? grep -Ff LIST LOG searches for every line of LIST at once as fixed text (dots are dots). -w matches whole words only, so 203.0.113.5 does not match inside 203.0.113.50.

    Commands taughtdet-ioc-feed

    ▶ Play: The feedSOLUTION HIDDEN30 XP
  2. 135

    Level 135: Defang it

    GuidedEasy

    Objective: In ~/arena/detect: refang indicators.txt into refanged.txt, find the user in proxy.log who visited one, and put that URL, defanged, in share.txt.

    Reports write indicators defanged so nobody clicks them: http becomes hxxp, every dot becomes [.] (kern-pay[.]example). Refang them (sed) to search logs; defang any bad URL before you share it in chat or a ticket.

    Commands taughtdet-defang

    ▶ Play: Defang itSOLUTION HIDDEN30 XP
  3. 136

    Level 136: Sample zoo

    GuidedEasy

    Objective: In ~/arena/detect: list in hits.txt the names of the zoo/ files whose SHA-256 is in feed.csv, one per line.

    Malware gets renamed all the time, so names prove nothing; the SHA-256 of the bytes does not change. sha256sum zoo/* prints 'hash name' for every sample, and grep -Ff hashes.txt keeps the lines whose hash is in the feed. (Every 'sample' here is inert text, safe to touch.)

    ▶ Play: Sample zooSOLUTION HIDDEN20 XP
  4. 137

    Level 137: Signatures of noise

    AloneMedium

    Objective: In ~/arena/detect, write every attack-attempt line of web/access.log into attempts.log, then kern the IP that sent the most attempts.

    Scanners spray every web server with old tricks, and the log records the attempts: ../ (%2e%2e%2f), %27 or 1=1 (a quote bending a database query), <script (%3c). grep -Ei 'A|B|C' finds any of them, any case. We only detect: a 404 means it failed.

    Commands taughtdet-attack-sigs

    ▶ Play: Signatures of noiseSOLUTION HIDDEN40 XP
  5. 138

    Level 138: Remember and reuse with sed

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    In sed, \( \) remembers the text inside it and \1 pastes it back in the replacement. while IFS= read -r l reads a stream one whole line at a time into l; -r keeps backslashes exactly as they are.

    ▶ Play: Remember and reuse with sedSOLUTION HIDDEN30 XP
  6. 139

    Level 139: Decode first

    AloneMedium

    Objective: In ~/arena/detect, URL-decode web/access.log into decoded.log (same lines, same order), then kern how many decoded lines contain ../

    Scanners mix encodings to dodge rules: %2e./, .%2E/ and ..%2F all mean ../ once decoded. Decoding turns + into a space and %XX into the character with hex code XX: sed rewrites %XX as \xXX, printf '%b' prints the real character.

    Commands taughtdet-url-decode

    ▶ Play: Decode firstSOLUTION HIDDEN40 XP
  7. 140

    Level 140: Too loud

    AloneMedium

    Objective: In ~/arena/detect, tune rules.txt and allow.txt so sh detector.sh web/access.log flags every real attempt and nothing else (I also test a fresh log).

    A rule that fires on everything gets muted, then the real attack slips by. Tune with precise signatures (<script, not script; union select, not select) and an exact allow list for known-good sources, never by switching the rule off.

    Commands taughtdet-false-positives

    ▶ Play: Too loudSOLUTION HIDDEN30 XP
  8. 141

    Level 141: Rules in files

    GuidedEasy

    Objective: In ~/arena/detect, save an awk rule in notfound.awk and run it with awk -f, then write your first YARA rule and count the samples it matches.

    Detection rules live in files, so a team can review and reuse them. awk -f FILE runs the awk program saved in FILE; yara RULEFILE DIR runs a YARA rule (rule NAME { strings: $m = "text" condition: $m }) on every file in DIR and prints 'rule file' per match.

    Commands taughtdet-yara

    ▶ Play: Rules in filesSOLUTION HIDDEN30 XP
  9. 142

    Level 142: Read the Sigma

    Alone⏱ TimedHard

    Objective: Read rules/web_traversal_ok.yml, kern the address its filter skips, implement it as sigma.awk, then count and triage its hits.

    Sigma is a YAML format for detection rules that sigma-cli converts to any SIEM. detection: has named blocks of field: value; |contains = appears anywhere (any case); a list = any of them; condition: joins blocks. Here YOU convert it, to awk.

    Commands taughtdet-sigma

    ▶ Play: Read the SigmaSOLUTION HIDDEN55 XP
  10. 143

    Level 143: YARA hunt

    Alone⏱ TimedHard

    Objective: Write first.yar matching the beacon domain, then kernloader.yar per intel.txt (domain AND a mutex), which I also test on a fresh zoo.

    YARA matches files with rules: rule NAME { strings: $a = "text" condition: $a }. yara RULEFILE DIR prints 'rule file' per match. nocase ignores case; any of ($m*) = at least one string named $m...; and / or / not combine.

    ▶ Play: YARA huntSOLUTION HIDDEN55 XP
  11. 144

    Level 144: Night shift

    Alone⏱ TimedHard

    Objective: Fix bin/watch.sh so that, run by cron, it writes every attempt line once into ~/arena/detect/alerts.log, and schedule it every 5 minutes.

    cron fields: minute hour day month weekday, then the command (*/5 = every 5 minutes). Cron starts in / with almost no PATH and runs the file itself: full paths, chmod +x, and > (not >>) so reruns don't duplicate alerts.

    Commands taughtdet-cron-detector

    ▶ Play: Night shiftSOLUTION HIDDEN55 XP
  12. 145

    Level 145: BOSS: Pipeline

    Boss⏱ TimedHard

    Objective: The shop is under scan (TICKET.txt): count the alerts, build bin/detect.sh -> alerts/ips.txt, auto-block every listed IP in the nft set, and write ticket.txt.

    A detection pipeline: a detector runs (cron) and writes alerts, a responder turns alerts into action (block the source on the firewall, never the allow-listed ones), and every action leaves a ticket with evidence (a hash of what you acted on).

    Commands taughtdet-pipeline

    ▶ Play: BOSS: PipelineSOLUTION HIDDEN100 XP

World 15Hardened

11 levels

Harden a server: inventory, advisories, CVSS, baselines, accounts, least privilege and default-deny, then a lockdown dry run.

  1. 146

    Level 146: Know what you run

    GuidedEasy

    Objective: Inventory shop01 into ~/arena/harden/inv/, then combine it into assets.csv.

    An inventory lists packages with versions (apk info -v), users who can log in (shell in /etc/passwd field 7 is not nologin or false) and listening ports (hidden). sed 's/^/pkg,/' puts a label in front of every line: that turns lists into CSV.

    Commands taughtasset-inventoryapk-info

    ▶ Play: Know what you runSOLUTION HIDDEN30 XP
  2. 147

    Level 147: Read the vector

    GuidedEasy

    Objective: In ~/arena/harden/advisories.txt, find the advisory an attacker on the internet can use with no account and no click, and kern its CVE id.

    A CVSS v3.1 vector explains a score: AV attack vector (N network, L local), AC complexity, PR privileges needed (N none, L low, H high), UI user interaction (N none, R required), then C/I/A impact (H, L, N). Codex: cvss.

    Commands taughtcvss

    ▶ Play: Read the vectorSOLUTION HIDDEN20 XP
  3. 148

    Level 148: Match the feed

    GuidedEasy

    Objective: Match shop01's packages against feed.csv, then kern the CVE to patch first.

    grep -F -w -f LIST FILE keeps the lines of FILE containing a line of LIST as a whole word (-F plain text, -w whole word). Then rank: risk = CVSS score x exposure (3 if the package listens on the network, 1 if not).

    Commands taughtadvisory-feed

    ▶ Play: Match the feedSOLUTION HIDDEN30 XP
  4. 149

    Level 149: Spot the difference

    GuidedEasy

    Objective: Compare the lists, configs and folders in ~/arena/harden and tell Kern what changed.

    comm compares two SORTED lists: comm -13 A B prints lines only in B (new), comm -23 A B lines only in A (gone). diff A B prints changed lines (-old, +new), and diff -r DIR1 DIR2 compares whole folders.

    Commands taughtcommdiff

    ▶ Play: Spot the differenceSOLUTION HIDDEN30 XP
  5. 150

    Level 150: Accounts and services

    GuidedEasy

    Objective: Create a system account, give it a folder, lock an old account, restart the shop as the new account, and run the audit.

    System accounts run services: sudo adduser -S -D -H -h /var/empty -s /sbin/nologin NAME (no password, no home, no shell). chown -R gives a folder away, passwd -l locks an account, shopctl restart restarts the shop, and shop-audit is the auditor's checklist.

    Commands taughtservice-accountsshopctlshop-auditdefault-deny

    ▶ Play: Accounts and servicesSOLUTION HIDDEN30 XP
  6. 151

    Level 151: The baseline door

    AloneMedium

    Objective: Make every line of ~/arena/harden/ssh-baseline.txt true in the effective config of /etc/ssh/shop/sshd_config.

    Check the EFFECTIVE sshd settings: sudo sshd -T -f FILE prints them in lowercase. The first value wins, and Include pulls drop-ins in at that spot. grep -v -x -F -f now.txt baseline.txt prints baseline lines not in effect.

    Commands taughtsshd-baseline

    ▶ Play: The baseline doorSOLUTION HIDDEN30 XP
  7. 152

    Level 152: Drift

    AloneMedium

    Objective: Find every SUID or world-writable file that is not in the known-good lists in /var/lib/baseline, and fix it without deleting it.

    Known-good lists of SUID and world-writable files were taken when the box was clean. List them again, sorted, and comm -13 KNOWN NOW prints only the new ones; fix those with chmod u-s or chmod o-w, and leave the known-good ones alone.

    Commands taughtbaseline-drift

    ▶ Play: DriftSOLUTION HIDDEN30 XP
  8. 153

    Level 153: Least privilege

    AloneMedium

    Objective: Make the shop run as a new system account shopd (no shell, site files still root's, /srv/shop/data owned by shopd and closed to others) and keep it up.

    A service runs best as its own account: no shell, no home, read-only code, write only to its data. sudo adduser -S -D -H -h /var/empty -s /sbin/nologin NAME makes one. SHOP_USER= in /etc/conf.d/shop, then hidden.

    ▶ Play: Least privilegeSOLUTION HIDDEN30 XP
  9. 154

    Level 154: Default deny

    Alone⏱ TimedHard

    Objective: Finish ~/arena/harden/wall.nft so shop01 follows policy.txt, load it, and check from the probe that 8080 is open and 6379 is closed.

    Default deny: the input chain has policy drop, then an allow-list like tcp dport { 22, 8080 } accept (keep established,related and lo). sudo nft -c -f FILE checks, sudo nft -f FILE loads, and the probe namespace plays another LAN machine.

    ▶ Play: Default denySOLUTION HIDDEN45 XP
  10. 155

    Level 155: Audit script

    Alone⏱ TimedHard

    Objective: Add control C6 to ~/arena/harden/audit.sh, run the audit into report.txt, then fix the three high-severity findings.

    An audit script turns a checklist into lines (PASS or FAIL, id, severity, what), each control a command that exits 0 when it holds. Fix high severity first and re-run; lynis, CIS-CAT and OpenSCAP do this at scale.

    Commands taughtaudit-script

    ▶ Play: Audit scriptSOLUTION HIDDEN55 XP
  11. 156

    Level 156: BOSS: Lockdown

    Boss⏱ TimedHard

    Objective: Make every high-severity line of hidden PASS (the backup is next world's job) without taking the shop down.

    A dry run before Audit Day: fix every HIGH finding of shop-audit, one control at a time, while the shop stays up. sshd drop-ins, SUID drift, a service account and default deny: all things you did in this world.

    ▶ Play: BOSS: LockdownSOLUTION HIDDEN100 XP

World 16Audit Day

10 levels

Secrets in git history, sealed backups and restore drills, then the real audit: every control PASS while the shop stays up.

  1. 157

    Level 157: Read the history

    GuidedEasy

    Objective: Read the history of ~/arena/harden/notes and answer Kern's three questions.

    git keeps every version of a project. hidden lists commits (newest first, short hash + message), hidden shows the newest commit's changes, and git log --all -S TEXT finds the commits that added or removed TEXT on any branch.

    Commands taughtgit-basics

    ▶ Play: Read the historySOLUTION HIDDEN30 XP
  2. 158

    Level 158: Save a change

    GuidedEasy

    Objective: In ~/arena/harden/shopapp, add a .gitignore that ignores *.env files and commit it.

    A commit saves staged changes into the history. git add FILE stages a file, git commit -q -m 'MESSAGE' saves it quietly with a message. A .gitignore file lists names git must never track, like *.env files that hold secrets.

    ▶ Play: Save a changeSOLUTION HIDDEN30 XP
  3. 159

    Level 159: Rewrite history (practice)

    GuidedEasy

    Objective: Practice on ~/arena/harden/practice: roll the TEST key, remove config/test.env from every commit, then delete git's leftovers.

    To remove a file from EVERY commit: git filter-branch --index-filter 'git rm --cached --ignore-unmatch FILE' -- --all. git keeps backups (refs/original, the reflog): hidden, hidden and hidden delete them.

    Commands taughtgit-secrets

    ▶ Play: Rewrite history (practice)SOLUTION HIDDEN30 XP
  4. 160

    Level 160: Pack and seal

    GuidedEasy

    Objective: Pack ~/arena/harden/albums/photos into photos.tgz, list it, seal it, and unpack a test copy.

    tar -czf ARCHIVE -C DIR NAME packs DIR/NAME with names starting at NAME, tar -tzf lists an archive, sha256sum seals it, and tar -xzf ARCHIVE -C DIR unpacks somewhere else. diff -r proves the copy equals the original.

    Commands taughtbackup-drill

    ▶ Play: Pack and sealSOLUTION HIDDEN30 XP
  5. 161

    Level 161: Side branch

    AloneMedium

    Objective: A database password was committed somewhere in ~/arena/harden/shopapp. kern the hash of the commit that added DB_PASSWORD.

    git log only shows the branch you are on. A secret committed on another branch is invisible there, and --all searches every branch.

    ▶ Play: Side branchSOLUTION HIDDEN30 XP
  6. 162

    Level 162: Broken seal

    AloneMedium

    Objective: One of last night's archives in /var/backups/nightly is damaged. kern its file name.

    A backup manifest lists 'hash file' for every archive. sha256sum -c MANIFEST, run in the manifest's folder, re-hashes each file and prints OK or FAILED.

    ▶ Play: Broken sealSOLUTION HIDDEN30 XP
  7. 163

    Level 163: Restore one folder

    AloneMedium

    Objective: Restore the deleted /srv/shop/data/uploads from /var/backups/shop-data.tgz without losing today's orders.

    tar -xzf ARCHIVE -C DIR PATH restores only PATH from the archive. Restoring everything would also roll back files that changed since the backup.

    ▶ Play: Restore one folderSOLUTION HIDDEN30 XP
  8. 164

    Level 164: Secret in the history

    Alone⏱ TimedHard

    Objective: Find the commit that leaked a payment key into ~/arena/harden/shopapp, rotate the key, purge it from every commit, and ignore config/*.env.

    A file deleted in a later commit still lives in older commits. Find it (git log --all -p -S TEXT), ROTATE the secret first, PURGE it (git filter-branch, then drop refs/original and the reflog, gc), then .gitignore it.

    ▶ Play: Secret in the historySOLUTION HIDDEN55 XP
  9. 165

    Level 165: Restore drill

    Alone⏱ TimedHard

    Objective: Back up /srv/shop/data into /var/backups/shop-data.tgz with a .sha256, run a restore drill into ~/arena/harden/drill, then handle what happens next.

    tar -czf ARCHIVE -C DIR NAME packs DIR/NAME; sha256sum seals it. A restore drill extracts into a test folder (tar -xzf ARCHIVE -C TEST) and compares with diff -r. tar -xzf ARCHIVE -C DIR PATH restores one file.

    ▶ Play: Restore drillSOLUTION HIDDEN55 XP
  10. 166

    Level 166: BOSS: Audit Day

    Boss⏱ TimedHard

    Objective: Triage feed.csv against this box, then make hidden print only PASS lines while the shop stays up.

    Audit Day: triage the advisories, run the checklist, fix every finding by severity, prove it with a clean re-run, and never take the service down. Each fix is something you've done in these two worlds: sshd drop-ins, drift, a service account, default deny, a sealed backup.

    ▶ Play: BOSS: Audit DaySOLUTION HIDDEN100 XP

World 17Incident Command

9 levels

The pager goes off, so lead the incident: NIST CSF 2.0, scope, contain, root cause, then the timeline, the summary and the report.

  1. 167

    Level 167: Six functions

    GuidedEasy

    Objective: Read ~/arena/ir/functions.txt and actions.txt, then write csf.txt with one line per action: the action ID and its function, like A1 GOVERN.

    NIST CSF 2.0 sorts every security action into six functions: GOVERN (rules, roles), IDENTIFY (know your assets), PROTECT (make attacks harder), DETECT (notice them), RESPOND (act on an incident), RECOVER (get back to normal). Incident response lives in the last three.

    Commands taughtnist-csf

    ▶ Play: Six functionsSOLUTION HIDDEN20 XP
  2. 168

    Level 168: Blast radius

    GuidedEasy

    Objective: Write ~/arena/ir/scope.txt: every host (one per line, like web02) whose log in hosts/ shows a connection to the C2 address in ioc.txt.

    Scoping answers: which hosts are touched? Search every host's log for the IOC (indicator of compromise). grep -l prints only the NAMES of matching files; -F treats the IP as plain text (no regex dots), -w matches whole words only, so 203.0.113.6 skips 203.0.113.66.

    Commands taughtir-scopinggrep-l

    ▶ Play: Blast radiusSOLUTION HIDDEN20 XP
  3. 169

    Level 169: Isolate or watch?

    AloneMedium

    Objective: Decide every ticket in tickets/ with playbook.txt (decision.txt, like T1 ISOLATE), then contain this box: preserve and stop the unknown listener.

    Containment is a trade-off: ISOLATE stops the harm now but tips off the attacker, MONITOR teaches you their tools but is only allowed when nothing leaks or spreads and the IR lead approved it. Either way, preserve volatile evidence before you stop anything.

    Commands taughtcontainment

    ▶ Play: Isolate or watch?SOLUTION HIDDEN40 XP
  4. 170

    Level 170: The way in

    AloneMedium

    Objective: Find the first appearance of the attacker IP (ioc.txt) across ~/arena/ir/logs/ and kern the cause ID (RC1-RC4) from causes.txt that it proves.

    The root cause is how the attacker got in, not the loudest symptom. A miner burning CPU is a symptom; the way in is the attacker's FIRST event. grep -h (no file names) the attacker IP across every log, sort the ISO times, and read the top line.

    Commands taughtroot-cause

    ▶ Play: The way inSOLUTION HIDDEN30 XP
  5. 171

    Level 171: Dates, sorting numbers, and a threshold

    GuidedEasy

    Objective: Type each command as it appears and watch what every part does.

    Timelines and board summaries need three small tools. date -u -d @SECONDS +%FT%TZ turns epoch seconds into UTC ISO time. sort -t= -k2 -n orders lines by the number after the = sign. [ $N -ge 100 ] is true when N is at least 100.

    ▶ Play: Dates, sorting numbers, and a thresholdSOLUTION HIDDEN30 XP
  6. 172

    Level 172: Timeline

    AloneMedium

    Objective: Build ~/arena/ir/timeline.csv from evidence/: header, then rows for initial-access, persistence, exfil and contained (in the event field), oldest first.

    An incident timeline is a CSV (when_utc,host,source,event) with one row per key event, oldest first, every time in UTC ISO like 2026-11-16T02:14:07Z. cron.log uses epoch seconds, so convert with date -u -d @SECONDS +%FT%TZ.

    Commands taughtir-timeline

    ▶ Play: TimelineSOLUTION HIDDEN40 XP
  7. 173

    Level 173: Five lines for the board

    Alone⏱ TimedHard

    Objective: Write ~/arena/ir/exec-summary.txt, 5 lines max: severity (severity.txt), how many different customers are in exfil.csv, and that it is contained.

    Executives read the top and stop, so a summary fits a line budget: how bad (severity), who is hurt (a number people understand) and where we are (status). No IPs, PIDs or jargon, and count unique customers, not rows.

    Commands taughtexec-summary

    ▶ Play: Five lines for the boardSOLUTION HIDDEN45 XP
  8. 174

    Level 174: Never again

    Alone⏱ TimedHard

    Objective: Write lessons.txt with the three fields, then add a rule to detect.rules that catches every attacker login in incident.log and nothing in benign.log.

    Lessons learned turn an incident into a better defence: blameless (processes, not people) and concrete, like a detection rule. ./detect LOG prints lines matching detect.rules (one regex per line, grep -E -f). Catch every attack line, no normal line.

    Commands taughtlessons-learned

    ▶ Play: Never againSOLUTION HIDDEN55 XP
  9. 175

    Level 175: BOSS: The incident report

    Boss⏱ TimedHard

    Objective: Run incident INC-4471 end to end in ~/arena/ir: severity, scope, containment, stakeholder update, timeline and postmortem, all under report/.

    A NIST SP 800-61r3 style response runs the whole loop: triage (severity), scope, contain with evidence preserved, communicate with stakeholders, rebuild the timeline, and close with a blameless postmortem that changes a control.

    Commands taughtnist-800-61

    ▶ Play: BOSS: The incident reportSOLUTION HIDDEN100 XP

World 18Cases

8 levels

Five real SOC tickets, start to finish, each one combining everything the Arena has taught you.

  1. 176

    Level 176: Warm-up: read an audit

    GuidedEasy

    Objective: Run the warm-up audit, kern how many controls FAIL, then kern the SHA-256 hash of warm.img (just the 64 characters).

    An audit prints one PASS or FAIL line per control; grep -c FAIL counts the FAILs. sha256sum prints the hash, then the file name: cut -c1-64 keeps characters 1 to 64, exactly the hash.

    Commands taughtptr-audit

    ▶ Play: Warm-up: read an auditSOLUTION HIDDEN30 XP
  2. 177

    Level 177: Warm-up: awk keeps a table

    GuidedEasy

    Objective: Use awk's table to look up the stock of bolt in stock.txt, then use split to take the third piece of the line in order.txt.

    awk can remember things while it reads. q[$1] = $2 stores the second word of each line in a table (an array) under the first word. END { ... } runs once after the last line. split($0, a, ",") cuts the whole line ($0) at every comma into a[1], a[2], a[3].

    Commands taughtawk-join

    ▶ Play: Warm-up: awk keeps a tableSOLUTION HIDDEN30 XP
  3. 178

    Level 178: Warm-up: join two files with awk

    GuidedEasy

    Objective: Count how many lines of want.txt match stock.txt on name AND amount, then do the same join on a CSV that has a header line.

    awk 'NR==FNR {...; next} ...' f1 f2 joins two files. NR counts all lines read and FNR the lines of this file, so NR==FNR holds only in f1: fill a table there (next skips on), then look things up while reading f2.

    ▶ Play: Warm-up: join two files with awkSOLUTION HIDDEN30 XP
  4. 179

    Level 179: Case 1: Harden and prove it

    Alone⏱ TimedHard

    Objective: Make every control in hidden PASS without deleting anything the box needs, then save the passing audit to ~/arena/cases/report/audit-after.txt.

    Hardening is only done when an audit proves it: run the audit, fix each failed control without breaking the service, baseline what you fixed, schedule the integrity check, and save the passing audit.

    ▶ Play: Case 1: Harden and prove itSOLUTION HIDDEN120 XP
  5. 180

    Level 180: Case 2: The seized laptop

    Alone⏱ TimedHard

    Objective: Take ~/arena/cases/laptop.dd into custody, examine it read-only at /mnt/laptop, find the file from the handover window, and prove the image is unchanged.

    Forensics is a chain: hash and log custody before anything else, look only through a read-only mount, narrow by time, write findings a court can follow, and prove the image never changed.

    ▶ Play: Case 2: The seized laptopSOLUTION HIDDEN120 XP
  6. 181

    Level 181: Case 3: Patient Zero

    Alone⏱ TimedHard

    Objective: Trace the incident in ~/arena/cases from the phishing mail to the beacon, remove its persistence, and write report.txt.

    A real incident crosses every tool: mail and hashes find the lure, auth.log finds the login, crontab finds the persistence, the capture proves the beacon, and the report closes it.

    Commands taughtcapstone-cases

    ▶ Play: Case 3: Patient ZeroSOLUTION HIDDEN120 XP
  7. 182

    Level 182: Case 4: Build a mini-SOC

    Alone⏱ TimedHard

    Objective: In ~/arena/cases, query day1.db, write rules/brute.sql that alerts on the attack but stays quiet on noise.db, count the high alerts, and file ticket.txt.

    A mini-SOC is logs in a database, rules that turn events into alerts, tuning so a normal day stays quiet, and a ticket when a real attack shows. sqlite3 stands in for the SIEM (Splunk SPL or KQL on a job).

    ▶ Play: Case 4: Build a mini-SOCSOLUTION HIDDEN120 XP
  8. 183

    Level 183: Case 5: Vuln week

    Boss⏱ TimedHard

    Objective: In ~/arena/cases, match advisories to the inventory, rank them in priority.txt, patch the top 3 with ./pkgtool, accept the 4th in accept.txt, verify.

    Vulnerability management is a loop: match the inventory to advisories by name AND version, rank by CVSS times exposure, patch the top, accept what must wait in writing, and verify.

    Commands taughtpkgtool

    ▶ Play: Case 5: Vuln weekSOLUTION HIDDEN120 XP

For teachers

Use these levels with a class

SOLUTION HIDDEN Teachers see answer keys in the classroom.

For teachers
ROOTSPIRE
DiscsFor teachers
▶ Play freeLibrary 16 discsDiscsFor teachersLog in