A narrative cybersecurity investigation platform built around a fictional coastal town.
Rivermouth CTF is a capture-the-flag competition where players investigate interconnected services to uncover a story of environmental contamination and corporate cover-up. Unlike traditional CTFs that present disconnected puzzles, challenges here are embedded in realistic websites spanning a full town: municipal services, a school district, a corporate site, a local newspaper, a medical portal, and more.
The platform runs 10 application services plus supporting infrastructure:
- Municipal (Flask): RPCA, Town Hall, DPW, Library
- School District (Express)
- Greyline Corporate (Next.js)
- Greyline Facility (Nginx)
- Tristate Environmental (Apache + PHP)
- Rivermouth Register (WordPress)
- Social Profiles (Nginx static)
- Medical Portal (Express)
- AI Chatbots (FastAPI + Ollama)
- CTF Frontend (SvelteKit)
Infrastructure: CTFd platform, MariaDB, Redis, Ollama LLM.
- Docker and Docker Compose
- At least 8 GB of available RAM
scripts/flags.jsonpopulated with challenge flags (not included in repository)
- Copy
.env.exampleto.envand fill in the required values. - Create
scripts/flags.jsonwith the challenge flag data. - Start all services:
docker compose up -d
- Seed challenges into CTFd:
python scripts/seed-challenges.py http://localhost:8000
services/ Application services (one directory per service)
scripts/ Generators, seed scripts, and utilities
scripts/generators/ Data generators for challenge artifacts