Contents

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)

  1. Open Scenario Studio and click Copy LLM prompt.
  2. 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.
  3. 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.
  4. 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:

ImageOSPre-installed packages
sg-baseUbuntucurl, jq, sqlite3, ufw, fail2ban, openssh-server, cron, logrotate
sg-webUbuntusg-base plus nginx, php-fpm, mariadb-server, composer, dnsmasq
sg-dataUbuntusg-base plus nginx, postgresql, pgbouncer, redis-server, mariadb-server
sg-appUbuntusg-base plus nginx, nodejs, npm, python3-fastapi, uvicorn, php-cli
sg-mailUbuntusg-base plus postfix, dovecot-imapd, opendkim, dnsmasq
sg-eximUbuntusg-base plus exim4, dovecot-imapd, nginx, php-fpm, dnsmasq
sg-alma-baseAlmaLinux 9dnf, firewalld, openssh-server, cronie, sqlite, python3, jq
sg-alma-webAlmaLinux 9sg-alma-base plus nginx, httpd, php-fpm, mariadb-server
sg-debian-baseDebian 12apt, ufw, nftables, fail2ban, openssh-server, cron, sqlite3, python3
sg-debian-webDebian 12sg-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:

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.