3  Recipe: first profile and first run

Field Value
Tool kailash (profiles, CLI)
Section Getting started
Level easy
Time ~15 min after boot
Layer/Category CLASSIC (profile system)
Tags getting-started, install, profile, cli

3.1 Problem

Kailash OS is a NixOS-based distribution for AI security work. The project builds the distribution declaratively from a manifest of 337 tools across four layers. A profile selects the tool categories a Kailash system carries. The task: pick the profile that matches the role — red-team, blue-team, ops, or agent infrastructure. The recipe also shows the selection steps. The checks verify the booted system matches the requested profile.

3.2 Solution

The image encodes the profile. Choosing a profile IS choosing an image. Match the role:

Profile Carries
minimal the CORE substrate — kernel, base userland, hardening, safety defaults, desktop, CLI & menu engines; no tool categories enabled
redteam-ai the AI red-team lab scope — ATTACK core plus its OPS/DEFENCE pairings
full the complete live catalogue (“kali-everything” lab scope)
headless-agent base + CLI only, no desktop; the qcow2 grows at first boot

On the booted system, confirm the landed CLI surfaces:

# 1. The profiles the release declares
kailash profile list

# 2. What the manifest carries for your interest area
#    (manifest inventory — every command reads the manifest)
kailash list --layer ATTACK
kailash search prompt-injection

# 3. One tool's full record: ATLAS tactics, OWASP mapping, docs pointer
kailash info garak

# 4. The manifest invariants, locally (the CI gate, runnable by hand)
kailash manifest validate

What success looks like:

  • kailash profile list names the release’s declared profiles
  • kailash info garak returns the full manifest record. The record names layer ATTACK, category a-02, and safety requires-target. The record also carries ATLAS tactics (AML.T0051, AML.T0054), OWASP LLM01 for both epochs, and the docs pointer
  • kailash manifest validate passes. The loader self-inventory is green on the installation

3.3 Discussion

  • Declarative, not imperative: the system configuration enables categories. A rebuild is the install step. No imperative package action can move the system away from its declaration. A rebuild against the same lock reproduces the same tool set exactly — see Enable the first category.
  • kailash list shows the manifest, not the boot state: every CLI command reads the manifest. The CLI derivation bakes the manifest to a store path. The CLI can never disagree with the declared build. What a profile carries is a build-time fact: per-category VM tests boot a VM and --help-smoke the tool list from the manifest. That is the verified instrument, not a hand-run command surface. The kailash doctor-style per-tool installed/version/smoke check is specified but not landed. It lands per the roadmap. Track it on the OS repo’s CLI lane, not here.
  • Pick redteam-ai for the cookbook’s attack lanes: the scanning and pair recipes assume ATTACK tooling present. Pick headless-agent for automation hosts without a desktop.
  • Safety posture comes with the profile: even on full, exp-class tools stay behind the lab-mode gate. requires-target tools do not self-fire. The profile states the tool set. The safety classes govern the run behaviour.

3.4 See also


ref: guide profiles chapter + CLI landed slice - verified 2026-10-14.