42 Recipe: Run an AI threat-model session with the D-5 pack
| Field | Value |
|---|---|
| Tool | maestro (D-5; upstream agentic-threat-modeling/MAESTRO) — the pre-#210 worksheet/visualiser pack rows were phantom-upstream (removed; names ride the os#210 registry) |
| Section | Administrator |
| Level | medium |
| Time | ~60 min (a real session) |
| Layer/Category | DEFENCE / d-05-threat-modelling |
| Tags | threat-model, maestro, stride, atlas, agentic, d-05 |
42.1 Problem
The lab stands up (or audits) an agentic or LLM-backed system: an MCP server, a multi-agent pipeline, a model endpoint. The honest first artefact of doing that safely is a threat model. The questions: what does this system trust, from whom, where are the boundaries, which ATLAS techniques map onto which component. Kali culture carries a strong habit here (“do the model first”). The D-5 pack was designed to give the AI-side session real worksheets instead of a blank page (today only maestro is real — the worksheet/template/visualiser rows were phantom-upstream, removed per os#210; the frameworks themselves are published upstreams).
42.2 Solution
One session, four instruments: MAESTRO’s layer walk for agentic systems. STRIDE-for-AI drives the trust-boundary elicitation. The GenAI templates give per-component worksheets. The ATLAS visualiser (and case studies) keep the finding vocabulary real:
# 1. Confirm the real D-5 row (pure content, no firing):
kailash info maestro
# 2. Scope the session: pick your lab SURFACE and its boundary map
# (draw it, even on paper):
# e.g. the mlflow pairing lab: an O-1 tracking server + an A-7 probe
# surface + a client; boundaries = lab network edge, the tracking API,
# the artefact store, the operator shell.
# [your lab's system-under-model] <- name it in writing
# 3. MAESTRO walk — the framework key for AGENT/LLM systems; per layer
# (L1 foundation model, L2 data ops, L3 agent framework, L4 deploy
# infra, L5 eval/observability, L6 security/compliance, L7 agent
# ecosystem):
maestro <session-start> # the packaged CLI's elicitation entry
# (its manifest row: threat elicitation keyed to the OWASP MAESTRO
# framework; --help at your pin for the real verb list — the playbook
# itself is the upstream's 10-phase process with state files when
# used as a doc/agent workflow)
# 4. STRIDE-for-AI, per trust boundary you named in step 2 — one row per
# crossing: S/T/R/I/D/E + who is on each side + the control that
# currently (claims to) hold it:
# the artefact = your own worksheet (paper or a doc): one row per
# trust-boundary crossing, filled with the ACTUAL lab facts (ports,
# hosts, auth posture). The pre-#210 STRIDE-worksheet pack row
# was phantom-origin (removed, os#210); the framework's elicitation
# shapes are public and the session runs without the pack.
# 5. Map findings to ATLAS — real technique IDs, real case studies:
kailash info garak | grep -i atlas # e.g. AML.T0051/T0054 class
# (the visualiser + case-study-explorer helpers from
# the pre-#210 text were aspirational-only rows — phantom-upstream,
# removed; their names ride the
# [os#210 registry](https://github.com/kailash-os/kailash-os/issues/210)
# until built. Map coverage yourself against the public ATLAS matrix;
# real incidents — e.g. the CS0023 ShadowRay class — work as the
# "does this boundary hold in the real world" prompts.)
# 6. Write the session out: the model IS the deliverable. Store it next
# to the system it describes (config comments, the lab's README) —
# versioned with the same declarative care as the system itself.Expected output shape (abridged):
system-under-model: <lab surface + version/lock>
boundaries:
<b1>: operator-shell -> tracking API (auth: <posture>, port: 5000)
<b2>: tracking API -> artefact store (auth: <posture>)
layers (MAESTRO):
L1: <model/provider> L3: <agent framework, MCP servers>
L4: <compute, net> L6: <authn/z, secrets posture>
threats:
<id> <boundary> <STRIDE letter> <atlas ref> <probes-to-run>
What success looks like:
- every boundary in the model names BOTH sides and the current control
- every threat row carries an ATLAS reference and at least one runnable probe
- that turns the model into a plan — the D-5 pack is deliberately near the ATTACK-layer surface it informs
- the session artefact is committed (the model is versioned with its system; a threat model without the system’s version is orphaned)
- case-study prompts are IN the artifact (real incidents name real boundaries; not just framework letters)
42.3 Discussion
- Why MAESTRO for agentic systems and STRIDE-for-AI for boundaries: MAESTRO’s seven layers (CSA lineage, OWASP MAS threat-modelling guide) are the AGENT-system decomposition. STRIDE is the classic trust-boundary elicitation adapted to AI surfaces (model-input as an untrusted source at the boundary, RAG ingestion, MCP tool results). A real session uses BOTH: MAESTRO for the layer walk, STRIDE sheet per boundary the layer walk surfaced. The GenAI-templates pack carries the per-component worksheets for the LLM-app specifics (system-prompt handling, plugin/tool surfaces, retrieval paths).
- The session must touch a REAL system map. D-5 content packs are deliberately software-light (templates, small CLIs, visualiser) — the tooling’s job is to force specificity: name the port, name the posture, name the ATLAS technique. A threat model produced with no actual system under it is decoration. The pairing lab makes this recipe honest (the mlflow/attack lab pair is the in-distro worked example).
- ATLAS case studies are the calibration surface: MITRE ATLAS’s curated real-world set (per the ATLAS data releases; the case-study-explorer row wraps them browsably) gives every abstract threat a real precedent — a technique that has actually been demonstrated against production AI systems (e.g. namespace-reuse supply-chain attacks) outranks a purely theoretical entry.
- The threat model is a defence-INPUT, not a doc-only artefact: Kailash’s own manifest carries
atlas_tacticsper ATTACK-layer tool (the technique-to-tool join) andowasp_llmepoch maps — the outputs of a session slot straight into Map a lab run to standards evidence (D-7) and into red-team plans. Model → probes → evidence are one pipeline; D-5 is its first stage. - Keep MAESTRO’s honesty rule: upstream’s security notices (verify your clone’s remote; forks may alter agent instructions) apply to any AI-assisted session: an LLM-in-the-loop workshop is fine, but the CONTENT of the model must come from the lab system’s facts, not from the assistant’s imagination — same rule as this book’s no-invented-evidence rule.
- Session output discipline: the pack rows carry
LicenseRef-Unknownwhere upstream licences are pending re-confirmation — before the run redistributes a filled workbook or a derived template outside the org, re-check the pack’s licence note in the manifest row (the same per-file content licence caveat that all Kailash data rows carry).
42.4 See also
- Map a lab run to OWASP/NIST/ISO evidence with the verifier — where session findings become cited control statements
- Attack the platform, then verify — the probe-pair discipline the session’s planned probes plug into
- Rehearse an AI incident with the playbook packs — what happens when a modelled threat is actually observed
- MAESTRO upstream (the 10-phase playbook + quickstart): https://github.com/agentic-threat-modeling/MAESTRO
- MITRE ATLAS (techniques + case studies): https://atlas.mitre.org/studies
- The D-5 manifest rows (source of truth): https://github.com/kailash-os/kailash-packages/blob/main/manifest/tools.yaml
- Recipe directory
ref: D-5 manifest row (maestro — post-os#210 the only real D-5 row; the worksheet/template/visualiser pack rows were phantom-upstream and removed) + MAESTRO upstream playbook/quickstart (7 layers, 10-phase process) + MITRE ATLAS case-study index - verified 2026-10-14. The maestro row’s OWN CLI verb list: PENDING at this pin (the upstream playbook’s shapes are verified here; the pre-#210 ‘first-party elicitation CLI’ framing rode the phantom-first-party pattern — the real upstream is the MAESTRO playbook itself). Worked D-5 session write-up: PENDING — lands with the upkeep lane.