Contents

Scenarios and levels

ServerGym includes 52 built-in Linux labs (50 on Ubuntu, 1 on AlmaLinux 9, and 1 on Debian 12), spanning 10 L1 junior support labs, 17 L2 mid-level hosting and sysadmin labs, 16 L3 senior operations and SRE scenarios, and 9 Staff platform and security drills, plus custom labs you author in Scenario Studio.

The six lab modes

Every lab runs in one of six modes, matching the mode field in scenario.yaml and the filter bar in Labs:

ModeLabsWhat happens inside
Fix outages
fix
28Diagnose and repair live Linux faults: DNS 404s, expired TLS certs, full disks and unlinked file handles, port conflicts, 403 permissions, broken cron backups, SSH lockouts, WordPress and PHP-FPM pools, Nginx caching and redirect loops, AlmaLinux DNF and Debian Apache2, MariaDB and PostgreSQL locks, Postfix relays, Redis eviction storms, and systemd limits.
Helpdesk calls
shift
6Handle panicked support tickets and simulated customer calls (bouncing inboxes, broken checkouts, HSTS/CAA lockouts, apex CNAME and Basic Auth issues, DMARC/DKIM spoofing, and botched panel migrations), fix the server, and send a plain-English summary.
Build & harden
build
4Harden a Linux bastion host (sudoers, cron, SSH), fix Kubernetes Deployment/Service/Ingress/NetworkPolicy manifests, tighten a GitHub Actions OIDC release workflow, or isolate a three-tier Compose stack.
Code cleanup
ai-cleanup
3Clean up broken or unsafe AI-generated changes across PHP/Composer, FastAPI (SQL injection, wildcard CORS, leaked secrets), and Next.js (middleware auth bypass and SSRF).
AI change review
ai-review
4Review an AI agent’s proposed troubleshooting steps one at a time, approving safe diagnostics while blocking destructive traps such as deleting database binlogs, wiping Kubernetes PVCs, granting cluster-admin, or running terraform destroy.
Security
pentest
7Probe safe zero-data clones for exposed secrets, .git and backup leaks, JWT/IDOR flaws, open object buckets, unsigned webhooks, CI/CD exposure, or RAG/MCP leaks, then patch every surface and verify zero exposure.

All 52 labs by level

Each entry below lists the lab title, scenario slug (used by the Eval API and CLI), mode, operating system, and default time limit. Click any level heading to collapse or expand it.

L1 · Junior (IT support basics)10 labs

15–20 minute everyday helpdesk and first-line Linux tickets.

Lab & slugModeOSTime
Nightly Database Backup Job Failing Silently (L1 Support)l1-cron-backup-silently-failingFix outagesUbuntu15 min
Disk Full, But Directory Usage Looks Normal (L1 Support)l1-deleted-open-file-fd-leakFix outagesUbuntu15 min
Server Out of Disk Space (L1 Support)l1-disk-full-logs-cleanupFix outagesUbuntu15 min
Website Not Loading After DNS Change (L1 Support)l1-dns-website-not-loadingFix outagesUbuntu15 min
Web App Can't Reach Local Backend API After Move (L1 Support)l1-hosts-override-backend-unreachableFix outagesUbuntu15 min
Website Returns 403 Forbidden After Deploy (L1 Support)l1-nginx-403-permissions-indexFix outagesUbuntu15 min
Web Server Fails to Start — Port 80 Blocked (L1 Support)l1-port-conflict-nginx-blockedFix outagesUbuntu15 min
Deploy User SSH Key Rejected & Portal Crashing (L1 Support)l1-ssh-user-locked-and-service-downFix outagesUbuntu15 min
Browser Shows "Your Connection Is Not Private" (L1 Support)l1-ssl-cert-expired-warningFix outagesUbuntu15 min
Customer Not Receiving Emails (L1 Helpdesk Ticket)l1-email-inbox-bouncingHelpdesk callsUbuntu20 min
L2 · Mid (Hosting & sysadmin)17 labs

20–25 minute web server, PHP-FPM, DNS/TLS, caching, and database incidents.

Lab & slugModeOSTime
AlmaLinux 9 Nginx + PHP-FPM Socket Permission & DNF Rescuealmalinux-nginx-phpfpm-dnf-rescueFix outagesAlmaLinux 925 min
Edge TLS 525 Handshake & Misconfigured WAF Loopcloudflare-origin-525-wafFix outagesUbuntu20 min
Debian 12 Apache2 VirtualHost, PHP-FPM & APT Recoverydebian-apache-phpfpm-vhost-recoveryFix outagesDebian 1225 min
DirectAdmin + OpenLiteSpeed PHP Handler & SNI Fixdirectadmin-openlitespeed-phpFix outagesUbuntu25 min
TLS Intermediate Chain & Split-Horizon DNS Fixdns-ssl-tls-chain-splitFix outagesUbuntu20 min
MariaDB Too Many Connections Outage From Leaky Pollermariadb-max-connections-idle-stormFix outagesUbuntu25 min
Nginx Caching 500 Errors & Truncating Auth Headersnginx-cache-poison-5xx-buffersFix outagesUbuntu20 min
Nginx HTTP/2 Upstream Port Mismatch & Body Limit 502nginx-http2-upstream-502Fix outagesUbuntu20 min
Infinite Redirect Loop Behind Nginx Reverse Proxynginx-redirect-loop-proxy-headersFix outagesUbuntu20 min
PHP-FPM 504 Gateway Timeouts & Worker Pool Exhaustionphp-fpm-timeout-pool-exhaustionFix outagesUbuntu25 min
Redis OOM Eviction & Checkout Session Stormredis-eviction-session-stormFix outagesUbuntu20 min
Systemd OOM Kill & Swap Thrashing Runawaysystemd-oom-swap-runawayFix outagesUbuntu20 min
Multi-Tenant WordPress 500 & Runaway Cronwp-multitenant-500Fix outagesUbuntu25 min
Helpdesk Shift — Website Asking for Password & Email Deadhelpdesk-shift-apex-cname-basicauthHelpdesk callsUbuntu25 min
Helpdesk Shift — Strict HSTS Browser Lockout, CAA Block & SAN Cert Mismatchhelpdesk-shift-ssl-hsts-downtimeHelpdesk callsUbuntu25 min
Build Hardened 3-Tier Compose Network & DB Isolationdocker-compose-bridge-dns-buildBuild & hardenUbuntu20 min
Clean Up After the AI — Broken Composer & PHP 8.3composer-ai-cleanupCode cleanupUbuntu25 min
L3 · Senior (Operations & SRE)16 labs

25–30 minute multi-layer outages, migrations, locks, mail hardening, and security reviews.

Lab & slugModeOSTime
cPanel / WHM Exim Spam Queue & AutoSSL Failurecpanel-exim-ssl-outageFix outagesUbuntu30 min
Node.js Event API Failing With EMFILE (Too Many Open Files)linux-ulimit-nofile-emfile-crashFix outagesUbuntu25 min
Postfix Open Mail Relay Flagged & Missing SMTP TLSpostfix-open-relay-tls-hardeningFix outagesUbuntu25 min
PostgreSQL Checkout Frozen by Idle-in-Transaction Lockpostgres-idle-in-transaction-lockFix outagesUbuntu25 min
PostgreSQL pg_wal Disk Bloat & PgBouncer Pool Exhaustionpostgres-wal-bloat-poolFix outagesUbuntu25 min
SSH Lockout, Exposed Telnet & Fail2ban CI Rescuessh-firewall-lockout-recoveryFix outagesUbuntu25 min
Helpdesk Shift — Botched cPanel-to-DirectAdmin Migrationcpanel-directadmin-migration-shiftHelpdesk callsUbuntu30 min
On-Call Helpdesk Shift — Panicked Storefront Outagehelpdesk-shift-checkoutHelpdesk callsUbuntu30 min
Helpdesk Shift — Email Spoofing, DMARC & Postfix TLS Rescuehelpdesk-shift-email-dmarc-ransomHelpdesk callsUbuntu30 min
Harden GitHub Actions Release Workflow with OIDC & Least Privilegegithub-actions-oidc-buildBuild & hardenUbuntu25 min
Provision & Harden Kubernetes Ingress Stackk8s-build-ingressBuild & hardenUbuntu30 min
Harden Linux Bastion Host (Sudoers, Cron & SSH Audit)linux-bastion-sudoers-ssh-auditBuild & hardenUbuntu25 min
Clean Up AI-Generated FastAPI SQL Injection, Wildcard CORS & Debug Leakfastapi-ai-sqli-cors-cleanupCode cleanupUbuntu25 min
Clean Up AI-Generated Next.js Auth Bypass, SSRF & Leaked Secretnextjs-ai-ssrf-middleware-cleanupCode cleanupUbuntu25 min
Senior Reviewing the AI SRE — Disk Full & 502 Outageai-sre-override-dbAI change reviewUbuntu25 min
AI Pentest Twin — Zero-Data Production Clonepentest-twin-saasSecurityUbuntu30 min
Staff (Platform & security)9 labs

25–35 minute Kubernetes, Terraform guardrails, and full-stack red-team drills.

Lab & slugModeOSTime
AI SRE Override — Kubernetes PVC Lock & etcd Space Exceededai-sre-override-k8s-pvAI change reviewUbuntu25 min
Staff K8s CrashLoopBackOff & AI SRE RBAC Trapsk8s-crashloop-rbac-helmAI change reviewUbuntu30 min
AI SRE Override — Terraform Drift & Wildcard IAM Trapterraform-drift-iam-overrideAI change reviewUbuntu25 min
Red-Team Audit — Exposed .git Metadata, Autoindex & Backup Sourcepentest-nginx-git-backup-leakSecurityUbuntu25 min
AI Pentest Twin — JWT alg=none, IDOR, GraphQL & CORSpentest-twin-api-idor-jwtSecurityUbuntu35 min
AI Pentest Twin — CI/CD, Docker Socket & Redis Exposurepentest-twin-cicd-supplychainSecurityUbuntu35 min
AI Pentest Twin — K8s + WordPress Cloud-Native Clonepentest-twin-k8s-wpSecurityUbuntu35 min
AI Pentest Twin — RAG Cross-Tenant Leak, Unauth MCP Shell & Prompt Injectionpentest-twin-llm-mcp-promptSecurityUbuntu35 min
AI Pentest Twin — Public S3 Bucket, Unsigned Webhooks, Impersonation & SSTIpentest-twin-s3-ssrf-webhookSecurityUbuntu35 min

Adding custom scenarios

You can author team-specific labs directly in the browser using Scenario Studio (saved in SQLite and ready to launch immediately), or add a folder under scenarios/<slug>/ in a self-hosted repository with scenario.yaml and a linux/ runner bundle (manifest.json, setup.sh, and grade.sh).

See Scenario Studio & LLM authoring for the complete validated scenario.yaml schema, available Linux base images, and LLM import workflow.