Singapore · Alpine Linux 3.20 · Exposed services and remote access
Safe house LANTERN
Situation
This machine was set up in a hurry during move-in week, and several services were opened up for now and never closed. KESTREL lands in Singapore first. Make sure only you can reach it remotely, and that nothing else on it answers the network.
You have an administrator account on sg-lantern. Sign in as analyst with the password winter-lantern.
How to play
- Press Start the machine. It downloads once, then resumes already booted.
- Sign in, then read
HANDOVER.txt.hardencheck listshows the controls. - Fix the machine. Run
sudo hardencheck IDorsudo hardencheck all. Each passing control prints a flag. - Paste each flag below to record it.
Practice mode: flags are checked in this browser and progress is saved here. Sign in on the scoreboard during the event so your flags count.
Checking whether this machine is available…
Controls
0/6 cleared · 0/900 points
-
No root over SSH
Nobody should sign in over SSH as root. Administrators sign in as themselves and use sudo.
-
No empty SSH passwords
SSH must never let an account in without a password.
-
Only analyst over SSH
Only the analyst account needs remote access to this machine. Make SSH refuse everyone else.
-
Close the telnet console
Someone left a telnet console running for quick fixes. Stop it, and make sure it does not come back at boot.
-
Close the open file share
A web server shares a folder with anyone who asks. Stop it, now and at boot.
-
Keep Redis local
The comms app needs its Redis cache, but nothing outside this machine should reach it. Keep it running, local only, with protected mode on.