Scenario Studio & LLM authoring
Author custom Linux troubleshooting labs across Ubuntu, AlmaLinux 9, and Debian 12 in Scenario Studio using declarative YAML and seed files, or paste our schema prompt into any LLM to generate a complete lab bundle.
Workflow with an LLM (ChatGPT, Claude, or Gemini)
- Open Scenario Studio and click Copy LLM prompt.
- Paste the prompt into your preferred LLM and append your incident request — for example: Create a junior lab where Nginx returns 403 because of an index directive typo and restrictive file permissions.
- Copy the JSON bundle (
{ baseImage, yaml, files }) or raw YAML returned by your LLM, click Import in Studio, paste it in, and click Load into studio. - Review the YAML and seed files (use + Add file if you need extra configs), click Validate schema, and click Save & launch custom lab to boot it in an isolated Linux container.
Custom labs are validated via POST /api/studio/validate, persisted in SQLite via POST /api/studio/scenarios, and immediately available in Labs and Hiring.
Available Linux base images
Choose a base image with baseImage in scenario.yaml (or the base image selector in Studio) so the packages your scenario needs are already installed:
| Image | OS | Pre-installed packages |
|---|---|---|
sg-base | Ubuntu | curl, jq, sqlite3, ufw, fail2ban, openssh-server, cron, logrotate |
sg-web | Ubuntu | sg-base plus nginx, php-fpm, mariadb-server, composer, dnsmasq |
sg-data | Ubuntu | sg-base plus nginx, postgresql, pgbouncer, redis-server, mariadb-server |
sg-app | Ubuntu | sg-base plus nginx, nodejs, npm, python3-fastapi, uvicorn, php-cli |
sg-mail | Ubuntu | sg-base plus postfix, dovecot-imapd, opendkim, dnsmasq |
sg-exim | Ubuntu | sg-base plus exim4, dovecot-imapd, nginx, php-fpm, dnsmasq |
sg-alma-base | AlmaLinux 9 | dnf, firewalld, openssh-server, cronie, sqlite, python3, jq |
sg-alma-web | AlmaLinux 9 | sg-alma-base plus nginx, httpd, php-fpm, mariadb-server |
sg-debian-base | Debian 12 | apt, ufw, nftables, fail2ban, openssh-server, cron, sqlite3, python3 |
sg-debian-web | Debian 12 | sg-debian-base plus apache2, nginx, php-fpm, mariadb-server |
Declarative check types
Custom Studio labs evaluate declarative checks against files inside the sandbox without needing a custom shell script:
file_contains— passes when active (non-#, non-;commented) lines intargetcontain the exactexpectedsubstring.file_not_contains— passes whentargetno longer contains the forbiddenexpectedsubstring.file_exists/file_not_exists— checks whether a required config file exists or an unwanted/leaked file was removed.file_mode_not— fails if a sensitive file or directory retains an insecure octal mode such as777.
Valid scenario.yaml example
slug: custom-ssh-logrotate-hardening
title: Harden SSH Access & Fix Log Retention
tagline: Disable password authentication in SSH and enable 7-day rotation on application logs without breaking config syntax.
mode: fix
difficulty: mid
baseImage: sg-base
stacks:
- Linux
- Security
audiences:
- solo
- msp
timeLimitMinutes: 20
defaultHost: bastion.internal.fake
brief: |
A security audit flagged this host for permissive SSH settings and missing log rotation.
### Your Objective
1. Audit the SSH daemon configuration and enforce key-only authentication.
2. Configure application log rotation to retain **7 archives**.
3. Verify all checks pass.
hints:
- "Inspect SSH configuration under /etc/ssh/ and logrotate policies under /etc/logrotate.d/."
- "Check PasswordAuthentication in /etc/ssh/sshd_config and rotate settings in /etc/logrotate.d/app."
mutations: []
checks:
- id: ssh-no-password
title: SSH password authentication disabled
category: security
description: PasswordAuthentication set to no in /etc/ssh/sshd_config.
points: 50
type: file_contains
target: /etc/ssh/sshd_config
expected: "PasswordAuthentication no"
- id: logrotate-weekly
title: Application log rotation keeps 7 archives
category: durability
description: Logrotate retains 7 daily archives cleanly.
points: 50
type: file_contains
target: /etc/logrotate.d/app
expected: "rotate 7"
Keep scenario briefs realistic: describe symptoms and policy requirements rather than giving away the exact commands to run or filenames to edit.