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:
| Mode | Labs | What happens inside |
|---|---|---|
Fix outagesfix | 28 | Diagnose 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 callsshift | 6 | Handle 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 & hardenbuild | 4 | Harden 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 cleanupai-cleanup | 3 | Clean 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 reviewai-review | 4 | Review 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. |
Securitypentest | 7 | Probe 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 & slug | Mode | OS | Time |
|---|---|---|---|
Nightly Database Backup Job Failing Silently (L1 Support)l1-cron-backup-silently-failing | Fix outages | Ubuntu | 15 min |
Disk Full, But Directory Usage Looks Normal (L1 Support)l1-deleted-open-file-fd-leak | Fix outages | Ubuntu | 15 min |
Server Out of Disk Space (L1 Support)l1-disk-full-logs-cleanup | Fix outages | Ubuntu | 15 min |
Website Not Loading After DNS Change (L1 Support)l1-dns-website-not-loading | Fix outages | Ubuntu | 15 min |
Web App Can't Reach Local Backend API After Move (L1 Support)l1-hosts-override-backend-unreachable | Fix outages | Ubuntu | 15 min |
Website Returns 403 Forbidden After Deploy (L1 Support)l1-nginx-403-permissions-index | Fix outages | Ubuntu | 15 min |
Web Server Fails to Start — Port 80 Blocked (L1 Support)l1-port-conflict-nginx-blocked | Fix outages | Ubuntu | 15 min |
Deploy User SSH Key Rejected & Portal Crashing (L1 Support)l1-ssh-user-locked-and-service-down | Fix outages | Ubuntu | 15 min |
Browser Shows "Your Connection Is Not Private" (L1 Support)l1-ssl-cert-expired-warning | Fix outages | Ubuntu | 15 min |
Customer Not Receiving Emails (L1 Helpdesk Ticket)l1-email-inbox-bouncing | Helpdesk calls | Ubuntu | 20 min |
L2 · Mid (Hosting & sysadmin)17 labs
20–25 minute web server, PHP-FPM, DNS/TLS, caching, and database incidents.
| Lab & slug | Mode | OS | Time |
|---|---|---|---|
AlmaLinux 9 Nginx + PHP-FPM Socket Permission & DNF Rescuealmalinux-nginx-phpfpm-dnf-rescue | Fix outages | AlmaLinux 9 | 25 min |
Edge TLS 525 Handshake & Misconfigured WAF Loopcloudflare-origin-525-waf | Fix outages | Ubuntu | 20 min |
Debian 12 Apache2 VirtualHost, PHP-FPM & APT Recoverydebian-apache-phpfpm-vhost-recovery | Fix outages | Debian 12 | 25 min |
DirectAdmin + OpenLiteSpeed PHP Handler & SNI Fixdirectadmin-openlitespeed-php | Fix outages | Ubuntu | 25 min |
TLS Intermediate Chain & Split-Horizon DNS Fixdns-ssl-tls-chain-split | Fix outages | Ubuntu | 20 min |
MariaDB Too Many Connections Outage From Leaky Pollermariadb-max-connections-idle-storm | Fix outages | Ubuntu | 25 min |
Nginx Caching 500 Errors & Truncating Auth Headersnginx-cache-poison-5xx-buffers | Fix outages | Ubuntu | 20 min |
Nginx HTTP/2 Upstream Port Mismatch & Body Limit 502nginx-http2-upstream-502 | Fix outages | Ubuntu | 20 min |
Infinite Redirect Loop Behind Nginx Reverse Proxynginx-redirect-loop-proxy-headers | Fix outages | Ubuntu | 20 min |
PHP-FPM 504 Gateway Timeouts & Worker Pool Exhaustionphp-fpm-timeout-pool-exhaustion | Fix outages | Ubuntu | 25 min |
Redis OOM Eviction & Checkout Session Stormredis-eviction-session-storm | Fix outages | Ubuntu | 20 min |
Systemd OOM Kill & Swap Thrashing Runawaysystemd-oom-swap-runaway | Fix outages | Ubuntu | 20 min |
Multi-Tenant WordPress 500 & Runaway Cronwp-multitenant-500 | Fix outages | Ubuntu | 25 min |
Helpdesk Shift — Website Asking for Password & Email Deadhelpdesk-shift-apex-cname-basicauth | Helpdesk calls | Ubuntu | 25 min |
Helpdesk Shift — Strict HSTS Browser Lockout, CAA Block & SAN Cert Mismatchhelpdesk-shift-ssl-hsts-downtime | Helpdesk calls | Ubuntu | 25 min |
Build Hardened 3-Tier Compose Network & DB Isolationdocker-compose-bridge-dns-build | Build & harden | Ubuntu | 20 min |
Clean Up After the AI — Broken Composer & PHP 8.3composer-ai-cleanup | Code cleanup | Ubuntu | 25 min |
L3 · Senior (Operations & SRE)16 labs
25–30 minute multi-layer outages, migrations, locks, mail hardening, and security reviews.
| Lab & slug | Mode | OS | Time |
|---|---|---|---|
cPanel / WHM Exim Spam Queue & AutoSSL Failurecpanel-exim-ssl-outage | Fix outages | Ubuntu | 30 min |
Node.js Event API Failing With EMFILE (Too Many Open Files)linux-ulimit-nofile-emfile-crash | Fix outages | Ubuntu | 25 min |
Postfix Open Mail Relay Flagged & Missing SMTP TLSpostfix-open-relay-tls-hardening | Fix outages | Ubuntu | 25 min |
PostgreSQL Checkout Frozen by Idle-in-Transaction Lockpostgres-idle-in-transaction-lock | Fix outages | Ubuntu | 25 min |
PostgreSQL pg_wal Disk Bloat & PgBouncer Pool Exhaustionpostgres-wal-bloat-pool | Fix outages | Ubuntu | 25 min |
SSH Lockout, Exposed Telnet & Fail2ban CI Rescuessh-firewall-lockout-recovery | Fix outages | Ubuntu | 25 min |
Helpdesk Shift — Botched cPanel-to-DirectAdmin Migrationcpanel-directadmin-migration-shift | Helpdesk calls | Ubuntu | 30 min |
On-Call Helpdesk Shift — Panicked Storefront Outagehelpdesk-shift-checkout | Helpdesk calls | Ubuntu | 30 min |
Helpdesk Shift — Email Spoofing, DMARC & Postfix TLS Rescuehelpdesk-shift-email-dmarc-ransom | Helpdesk calls | Ubuntu | 30 min |
Harden GitHub Actions Release Workflow with OIDC & Least Privilegegithub-actions-oidc-build | Build & harden | Ubuntu | 25 min |
Provision & Harden Kubernetes Ingress Stackk8s-build-ingress | Build & harden | Ubuntu | 30 min |
Harden Linux Bastion Host (Sudoers, Cron & SSH Audit)linux-bastion-sudoers-ssh-audit | Build & harden | Ubuntu | 25 min |
Clean Up AI-Generated FastAPI SQL Injection, Wildcard CORS & Debug Leakfastapi-ai-sqli-cors-cleanup | Code cleanup | Ubuntu | 25 min |
Clean Up AI-Generated Next.js Auth Bypass, SSRF & Leaked Secretnextjs-ai-ssrf-middleware-cleanup | Code cleanup | Ubuntu | 25 min |
Senior Reviewing the AI SRE — Disk Full & 502 Outageai-sre-override-db | AI change review | Ubuntu | 25 min |
AI Pentest Twin — Zero-Data Production Clonepentest-twin-saas | Security | Ubuntu | 30 min |
Staff (Platform & security)9 labs
25–35 minute Kubernetes, Terraform guardrails, and full-stack red-team drills.
| Lab & slug | Mode | OS | Time |
|---|---|---|---|
AI SRE Override — Kubernetes PVC Lock & etcd Space Exceededai-sre-override-k8s-pv | AI change review | Ubuntu | 25 min |
Staff K8s CrashLoopBackOff & AI SRE RBAC Trapsk8s-crashloop-rbac-helm | AI change review | Ubuntu | 30 min |
AI SRE Override — Terraform Drift & Wildcard IAM Trapterraform-drift-iam-override | AI change review | Ubuntu | 25 min |
Red-Team Audit — Exposed .git Metadata, Autoindex & Backup Sourcepentest-nginx-git-backup-leak | Security | Ubuntu | 25 min |
AI Pentest Twin — JWT alg=none, IDOR, GraphQL & CORSpentest-twin-api-idor-jwt | Security | Ubuntu | 35 min |
AI Pentest Twin — CI/CD, Docker Socket & Redis Exposurepentest-twin-cicd-supplychain | Security | Ubuntu | 35 min |
AI Pentest Twin — K8s + WordPress Cloud-Native Clonepentest-twin-k8s-wp | Security | Ubuntu | 35 min |
AI Pentest Twin — RAG Cross-Tenant Leak, Unauth MCP Shell & Prompt Injectionpentest-twin-llm-mcp-prompt | Security | Ubuntu | 35 min |
AI Pentest Twin — Public S3 Bucket, Unsigned Webhooks, Impersonation & SSTIpentest-twin-s3-ssrf-webhook | Security | Ubuntu | 35 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.