Logo van Threat Model Backtest

Threat Model Backtest

Organisatie
alpha-omega-security
threat-model-backtest

Voer fase 3.6 van de productie van een dreigingsmodel als backtest uit op basis van historische bevindingen, vóór de definitieve goedkeuring. GEBRUIK DEZE SKILL wanneer een conceptmodel moet aantonen dat het echte meldingen eenduidig kan routeren. Bouwt aan de kant van de producent een gestratificeerde dataset op van verschillende componenten en contractdimensies, groepeert grote datasets op sink en aanvalsklasse en routeert elk item blind naar één dispositie in §1.17. Rapporteert MODEL-GAP, tegenstrijdige of dubbelzinnige routering, dekking, gekwalificeerde kandidaten voor §1.15 en vragen voor §1.18. De dataset wordt niet gepubliceerd. GEBRUIK DEZE SKILL NIET VOOR: het opstellen van een concept, sidecar-generatie of het triageren van één nieuwe bevinding.

Add to TypingMind

Overzicht

Uitgeveralpha-omega-security
Repositorythreat-model
Skillnaamthreat-model-backtest
Sterren
60
Forks
10
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door alpha-omega-security op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Threat Model Backtest in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/alpha-omega-security/threat-model/tree/main/skills/threat-model-backtest
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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-backtest .claude/skills/threat-model-backtest
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Threat Model Backtest in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Threat Model Backtest automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Threat Model Backtest niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Threat Model — Backtest (validate against history)

Phase 3.6. A draft that has never been backtested is untested software. The project's own history is a free test suite; use it before presenting the draft for sign-off. This is a producer-side quality gate — the corpus does not go into the published document (per the leave-out list: CVE history is not the threat model).

Procedure

  1. Assemble a stratified corpus — start with the last 10–30 inbound security findings: published advisories, reports closed as "not a bug" / "by design", issues labeled security, and scanner/fuzzer/AI-analysis output. If a vendored security-context.md is present in the working directory (a runner's pre-fetch of exactly this material), seed the corpus from it before searching elsewhere. Prefer contested items, but do not let recency or controversy leave component families or contract dimensions untested.

    • Cover every in-scope component family.
    • Cover every applicable contract-dimension row: numeric limits, failure atomicity, topology, callbacks, serialization, lifecycle, concurrency, and resource complexity.
    • For a large corpus, cluster by (component, sink, attack class, required attacker capability) and route at least one representative from every cluster. Increase the corpus beyond 30 when necessary to avoid an untested cluster; report both item count and cluster count.
    • Record each item's actual historical outcome where one exists — fixed, wontfix, by-design, out-of-scope, or unknown — with the advisory or issue URL it came from. That label is the ground truth step 3 scores against, and without it the backtest cannot fail. Set the outcome aside while routing (step 2 is blind); compare only afterwards.
    • When no historical record is reachable, say so rather than inventing one. Synthesize cases to exercise the matrix, mark every one synthesized, and write the §1.1 note verbatim: "no historical corpus was available; the backtest routed N synthesized cases only." A self-invented corpus reported as history is worse than no backtest, because it reads as evidence.
  2. Route each item blind — using only the draft (not hindsight knowledge of how it was actually resolved), apply the §1.1 triager quick-start and assign exactly one §1.17 disposition, citing the licensing section. Routing rules and the closed disposition set are in output-structure.md.

  3. Score the routing. The two directions of error are not symmetric. Wrongly closing a real vulnerability is far worse than wrongly escalating a non-finding: an over-escalating model wastes maintainer time, an over-closing one hands a reporter a "not a bug" on a live issue. Score accordingly — this asymmetry decides every fix below.

    SignatureMeaningFix
    Closes an item the project actually fixedthe model closes a true positive — the one disqualifying outcomeBlocking. Fix before sign-off. Narrow the licensing §1.12 disclaimer, §1.7 trusted marking, or §1.3 scope line until the item routes VALID or escalates. Never widen a disclaimer to reach a close.
    Routes to MODEL-GAPthe model is missing a decisionpropose, in this order: an unresolved matrix row plus a proposed-answer §1.18 question; a conditional §1.11 guarantee; or an explicit §1.12 disclaimer. Prefer the option that leaves the report escalating over the option that closes it
    Routes plausibly to two or more dispositionstwo sections overlap or contradictsharpen them until the routing is unique
    Routes to a disposition that contradicts how the maintainer actually resolved itthe model is wrong, or the historical call washigh-value §1.18 question — do not paper over it

    Disclaiming is the cheapest way to make a MODEL-GAP disappear, which makes it the easiest way to pass this gate while making the model worse. A disclaimer added because a corpus item routed badly is reverse-engineered from the answer: it must still be true of the project as it is, cite a real source, and stay inside the scope that source covers.

  4. Feed §1.15 — a recurring pattern is a candidate known non-finding only when its final outcome closes as BY-DESIGN: property-disclaimed or an already-established KNOWN-NON-FINDING. Never promote VALID-HARDENING or MODEL-GAP into a non-finding, and never promote an OUT-OF-MODEL:* route: a pattern that closes because the code is out of scope, the build is unsupported, or the root cause sits in a dependency keeps that disposition. KNOWN-NON-FINDING is first in the precedence order, so relabelling one of those routes promotes it above the very checks that decided it. Require documented/maintainer provenance and record the exact component or sink, symptom/attack class, preconditions, and stable claim or obligation IDs that discharge it; textual resemblance alone is not a match. Every candidate must satisfy the four §1.15 rules in output-structure.md — in particular, no entry may match on the reporter's evidence (no reproducer, no demonstrated reachability) rather than on the behaviour of the code.

  5. Export 2–4 worked routing examples (§1.11) — the second and last thing the corpus may contribute to the document. Pick items that show the routing algorithm working, de-identify them, and give each one line: sink, required attacker capability, symptom, disposition, licensing claim. At least one must route VALID. A triager who only ever sees closes learns that the model's job is to say no; one worked VALID shows where the project takes responsibility, and it is the example that makes the rest credible. Budget about 15 lines. No CVE IDs, no reporter names, no dates — those are corpus content and stay on the producer side per the leave-out list.

    Steps 4 and 5 are the only backtest corpus items that may enter the document. The §1.1 note carries aggregate figures only, never an item.

  6. Close the coverage loop — update the contract-dimension matrix after every revision, then reroute the affected cluster. An accepted model has no unexplained applicable cell and no unowned MODEL-GAP; an unratified draft may retain gaps only when each is represented by an unresolved row and §1.18 question.

Record the result

The §1.1 note is the only part a reader sees, so it must state what the backtest actually proved rather than that it happened. Report, in one short paragraph:

  • Corpus size and shape — item count, cluster count, and contract-dimension coverage.
  • Provenance split — how many items carry a real historical outcome versus how many were synthesized. When none are real, use the verbatim sentence from step 1. "Routed 22 findings" reads as history; say which of them was.
  • Disposition histogram — how many items landed on each §1.17 disposition.
  • The fail-safe figure — how many historically-fixed items route to a closing disposition. The target is zero, and a shortfall is the one number that blocks sign-off.
  • How much the model closes — the share of the corpus that closes outright. A model that closes nearly everything is either exceptionally well documented or quietly over-disclaiming; say which.
  • Contradictions, with pointers to the §1.18 questions they raised.

Example: "Backtested 22 findings (14 clusters, all 8 applicable dimensions); 17 carry a real historical outcome, 5 synthesized. Routed 9 VALID, 6 BY-DESIGN: property-disclaimed, 5 OUT-OF-MODEL, 2 escalated, 0 MODEL-GAP. All 11 historically-fixed items routed VALID. 50% of the corpus closes. Two contradictions raised Q7 and Q9."

Do not publish the corpus itself.

Output

Write the routing table to .threat-model/backtest.md — a producer-side artifact, deliberately in a dot-directory rather than beside threat-model.md. Every row carries a real advisory or issue URL, which the leave-out list keeps out of the published model, so a table sitting next to the deliverable gets published by the first git add -A. Add .threat-model/ to the project's .gitignore if it is not already covered. One row per item:

id | source | component | cluster | dimension | disposition | licensing § | historical outcome | pass/fail

where source is a real advisory or issue URL, or the literal synthesized. Handing the table back only in conversation materializes nothing a reviewer can check afterwards, which is how a backtest comes to self-certify.

Also hand back to the orchestrator: the coverage report, the model decisions/revisions triggered (for threat-model-authoring to apply), the §1.18 questions for unresolved gaps, the §1.15 candidates, the §1.11 worked routing examples, and the header backtest note.

Veelgestelde vragen

Wat doet de AI-skill Threat Model Backtest?

Voer fase 3.6 van de productie van een dreigingsmodel als backtest uit op basis van historische bevindingen, vóór de definitieve goedkeuring. GEBRUIK DEZE SKILL wanneer een conceptmodel moet aantonen dat het echte meldingen eenduidig kan routeren. Bouwt aan de kant van de producent een gestratificeerde dataset op van verschillende componenten en contractdimensies, groepeert grote datasets op sink en aanvalsklasse en routeert elk item blind naar één dispositie in §1.17. Rapporteert MODEL-GAP, tegenstrijdige of dubbelzinnige routering, dekking, gekwalificeerde kandidaten voor §1.15 en vragen...

Waarom Threat Model Backtest gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Threat Model Backtest bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Threat Model Backtest in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/alpha-omega-security/threat-model/tree/main/skills/threat-model-backtest. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Threat Model Backtest gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Threat Model Backtest gebruiken?

Zoveel als je wilt. Je kunt Threat Model Backtest gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Threat Model Backtest gratis?

Ja. Deze skill is door alpha-omega-security op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇