Logo von Threat Model Sidecar

Threat Model Sidecar

Organisation
alpha-omega-security
threat-model-sidecar

Erstellen und validieren Sie die maschinenlesbaren Begleitdateien aus §1.19: threat-model.yaml mit dem Schema threat-model-sidecar/v2 sowie den flachen Export threat-model.json gemäß schema.json. VERWENDEN SIE DIESEN SKILL, wenn ein orchestriertes Threat Model zur Veröffentlichung, für automatisierte oder KI-gestützte Triage, zur Analyse der Abhängigkeit von Kompatibilität oder zur Neuerstellung der Begleitdateien nach Änderungen an der Prosa bereit ist. Überträgt Herkunftsangaben zu Komponenten, Eingabeverpflichtungen, Vertragsdimensionen, Ausgaben, Angreifern, Abhängigkeiten, Konfigurationen, Eigenschaften, Missbrauchsszenarien, Nicht-Befunden und der geschlossenen Entscheidungs-Enum. Die Prosa bleibt maßgeblich; die Rangfolge lautet Prosa > yaml > json. NICHT VERWENDEN FÜR: das Verfassen der Prosa oder die Zuordnung eines Befunds.

Add to TypingMind

Übersicht

Herausgeberalpha-omega-security
Repositorythreat-model
Skill-Namethreat-model-sidecar
Sterne
60
Forks
10
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von alpha-omega-security auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Threat Model Sidecar in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/alpha-omega-security/threat-model/tree/main/skills/threat-model-sidecar
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alpha-omega-security/threat-model.git /tmp/threat-model
mkdir -p .claude/skills
cp -r /tmp/threat-model/skills/threat-model-sidecar .claude/skills/threat-model-sidecar
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Threat Model Sidecar in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Threat Model Sidecar automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Threat Model Sidecar nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Threat Model — Sidecar (machine-readable companions)

Owns §1.19: emit threat-model.yaml and threat-model.json alongside the prose document so shared triage tooling can consume the model without parsing prose. Follow the schema in sidecar-schema.md for the YAML and the mapping in json-report-schema.md for the JSON exactly — companions are only useful to tooling if they are structurally uniform across projects. Authority order: prose > yaml > json. The JSON is a flat, lossy export for consumers of schema.json; it is never a triage input.

Principles

  • Prose is canonical; the sidecar is a derived index. Do not put anything in the sidecar that is not already asserted in the prose. If the two disagree, the sidecar is wrong.
  • Record provenance of derivation — set prose_version to the canonical relative prose path plus SHA-256 of its exact UTF-8 bytes, and regenerate whenever the prose changes.
  • Uniform shape only — use the schema: threat-model-sidecar/v2 fields as given; extend with project-specific keys only under an x- prefix. The JSON schema forbids extensions entirely; what does not fit stays in the YAML.
  • Never upgrade provenance. The JSON collapses four provenance kinds into two: documented and maintainer become documented; inferred and assumption become inferred. The collapse only goes down — a record whose sidecar provenance is inferred or assumption must never surface in the JSON as documented. That direction hands a JSON-only consumer a licence the model never granted.

Procedure

  1. Confirm the prose document is at least a complete draft (all sections substantive or N/A). If §1.7/§1.8/§1.11/§1.17 are incomplete, stop and hand back — the sidecar cannot be faithfully derived from a partial model.
  2. Project each prose section into its sidecar block:
    • §1.2/§1.3/§1.4 → components (scope: in|out, out-reason, and per- component reachability precondition).
    • §1.5 → host_side_effects[] — explicit present/absent/conditional host effects with components, conditions, and provenance.
    • §1.7 → entry_points[].parameters[] — every attacker-controllable parameter must have a non-empty caller_must_enforce and at least one value in its control_kinds array.
    • §1.7-§1.12 → contract_dimensions[] — all eight required dimensions for every in-scope component, including explicit not-applicable rows; claimed/disclaimed rows reference stable property IDs and unresolved rows reference §1.18 question IDs.
    • §1.8 → outputs[] (taint: same-as-input | sanitized | constrained, in-scope component, separately provenanced invariants, and downstream must-not-assume records).
    • §1.10 → adversaries[] (in/out of scope, capabilities, excluded capabilities, goals, provenance).
    • §1.9 → dependency_policy + dependencies[], including stable relied_on_properties, acknowledged obligation IDs, adversary capabilities actually forwarded, and output channels/taint handling; an empty list plus zero_runtime_dependencies: true is the explicit zero-dependency claim, not an omission. Leave outputs_consumed: [] unless the project holds an output-sanitization-kind property about a dependency's output — each entry's supports_property_id must reference such a property. If the project passes a dependency's output straight through and disclaims sanitization (the common case), the list stays empty; the passthrough taint is already recorded in §1.8 outputs[] and the §1.12 disclaimers. Do not point supports_property_id at a behavioral, atomicity, or probabilistic property.
    • §1.6 → build_policy + build_flags[] (default, security_relevant, support stance, affected property IDs/effects, provenance).
    • §1.11 → properties_claimed[] (kind, components, tier, conditions, violation symptoms, provenance).
    • §1.12 → properties_disclaimed[] (components, conditions, false_friend: true|false, provenance).
    • §1.13 → downstream_responsibilities[] linked to obligation/property IDs.
    • §1.14 → known_misuses[], the structured basis for VALID-HARDENING.
    • §1.15 → known_non_findings[], with component/sink, conditions, and discharged_by stable IDs sufficient for exact (not fuzzy) matching.
    • §1.17 → dispositions plus disposition_precedence — the fixed closed enum and first-match order, verbatim.
  3. Normalize the prose status to the schema enum (draft, unratified-draft, under-review, accepted) using the mapping in sidecar-schema.md; set confidence to match the §1.1 counts exactly. Project the header's triage policy to the top-level triage_policy (strict default / relaxed). Carry tier (security-critical | correctness-only) on every properties_disclaimed[] entry so a consumer can enforce the assumption security-critical floor. Project the §1.1 generation metadata to the top-level generation block (model, effort, plugins[]); omit the block only when the prose header records a fully human-authored model.
  4. Project the validated YAML to threat-model.json per json-report-schema.md:
    • Collapse provenance downward: documented/maintainer → documented, inferred/assumption → inferred. A JSON block built from many sidecar records takes the weakest of the set. Collapse confidence the same way: documented + maintainer, inferred + assumption.
    • Emit all nine schema disposition values, verbatim. OUT-OF-MODEL: dependency-contract has no JSON value; a JSON-only consumer falls through to model_gap, which escalates. Do not invent a label for it.
    • Flatten entry_points to one row per (entry point × parameter). An attacker_controllable: conditional row must carry a non-empty condition.
    • For each known non-finding, name the covered in-scope components and the discharged symptom in why_safe, and point cites at the discharging entry in the same document (properties_provided[3] style). The JSON drops the sidecar's components and symptom fields, so why_safe is the only place left to carry the scope.
    • Record repository, commit (git rev-parse HEAD in the modeled tree), date, scope_subpath, and a short §1.2 description.

Validation gate

Reject (and hand back) if any of these fail:

  • confidence equals the header's draft-confidence count.
  • model_status is the normalized schema value for the prose status.
  • prose_version has the required path-plus-SHA-256 form and its digest matches the prose bytes.
  • Every attacker-controllable input operand has a non-empty caller_must_enforce; explicit none — <property ID> means safe handling is project-owned, while every actual caller obligation has a stable ID.
  • Every parameter has a non-empty control_kinds array containing only valid values.
  • Every in-scope component × each required contract dimension is present exactly once, claimed/disclaimed property IDs resolve, and every unresolved row cites a §1.18 question ID.
  • Every closure-driving component, parameter trust decision, output invariant, adversary, dependency, build policy/flag, property, responsibility, misuse, and non-finding has provenance sufficient to enforce the closure constraint for every model status and triage policy.
  • dispositions is exactly the closed enum — no project-specific dispositions invented (a finding fitting none is MODEL-GAP, a prose revision, not a new label).
  • disposition_precedence equals §1.17's canonical first-match order.
  • Every properties_claimed[] entry has a tier and at least one violation_symptom; every claimed/disclaimed property and contract row has provenance.
  • Every dependency reliance, caller-obligation acknowledgement, output invariant, configuration effect, responsibility, and non-finding discharge reference resolves to a stable ID.
  • An accepted model has zero inferred and zero assumption claims; a model with any inferred or assumption record remains under-review or unratified-draft.
  • triage_policy is strict or relaxed (defaulting to strict when the header is silent); every assumption provenance record carries a question_id, and every properties_disclaimed[] entry carries a tier.
  • The generation block matches the §1.1 generation metadata (model, effort, and the plugins[] actually used), or is absent only when the prose records a fully human-authored model.
  • No key outside the schema except under an x- prefix.

For threat-model.json:

  • Validates against schema.json.
  • dispositions is exactly the nine schema values, verbatim.
  • Provenance is never upgraded — no record whose sidecar provenance is inferred or assumption appears as documented.
  • confidence is the collapsed sidecar count: documented + maintainer and inferred + assumption.
  • Every known_non_findings[] entry's why_safe names the in-scope components it covers and the symptom it discharges, and its cites resolves to the row of the claim that discharges it — a real but unrelated index does not pass.
  • commit is the real sha of the modeled tree, not a placeholder.

Output

threat-model.md, threat-model.yaml, and threat-model.json together at the modeled root (inside the subdirectory for a scoped run), plus a one-line note of the prose_version the YAML was derived from for the orchestrator's finalize gate. The JSON carries no prose binding — only commit and date — one more reason it is an export, not the model.

Häufig gestellte Fragen

Was macht der KI-Skill Threat Model Sidecar?

Erstellen und validieren Sie die maschinenlesbaren Begleitdateien aus §1.19: threat-model.yaml mit dem Schema threat-model-sidecar/v2 sowie den flachen Export threat-model.json gemäß schema.json. VERWENDEN SIE DIESEN SKILL, wenn ein orchestriertes Threat Model zur Veröffentlichung, für automatisierte oder KI-gestützte Triage, zur Analyse der Abhängigkeit von Kompatibilität oder zur Neuerstellung der Begleitdateien nach Änderungen an der Prosa bereit ist. Überträgt Herkunftsangaben zu Komponenten, Eingabeverpflichtungen, Vertragsdimensionen, Ausgaben, Angreifern, Abhängigkeiten, Konfiguratio...

Warum Threat Model Sidecar in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Threat Model Sidecar besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Threat Model Sidecar in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/alpha-omega-security/threat-model/tree/main/skills/threat-model-sidecar ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Threat Model Sidecar nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Threat Model Sidecar verwenden?

So viele Sie möchten. In TypingMind können Sie Threat Model Sidecar mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Threat Model Sidecar kostenlos?

Ja. Der Skill wird von alpha-omega-security auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇