threat-model-generation

threat-model-generation is a skill for Claude Code, Codex from codexstar69/bug-hunter. It costs 59 tokens per session (326 once invoked), scanned A, original, MIT.

A workflow for creating a STRIDE threat model, a security review that examines threats such as spoofing, tampering, and unauthorized disclosure. It records the repository's components, trust boundaries, security settings, and likely vulnerability patterns.

In plain words
What is it for?
It helps inspect a repository's languages, frameworks, entry points, data stores, integrations, and sensitive assets, then writes threat-model and security-configuration files under .bug-hunter.
Why use it?
It gives other security reviews a current map of how the system is structured and where data or control crosses between trusted and untrusted areas.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps inspect a repository's languages, frameworks, entry points, data stores, integrations, and sensitive assets, then writes threat-model and security-configuration files under .bug-hunter.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codexstar69/bug-hunter/threat-model-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add codexstar69/bug-hunter --skill threat-model-generation
Clone the repo
git clone --depth 1 https://github.com/codexstar69/bug-hunter

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for threat-model-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/codexstar69/bug-hunter/threat-model-generation/github.svg)](https://agentmods.dev/skills/codexstar69/bug-hunter/threat-model-generation)
Your own site
<a href="https://agentmods.dev/skills/codexstar69/bug-hunter/threat-model-generation"><img src="https://agentmods.dev/badge/skills/codexstar69/bug-hunter/threat-model-generation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for threat-model-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/codexstar69/bug-hunter/threat-model-generation"><img src="https://agentmods.dev/badge/skills/codexstar69/bug-hunter/threat-model-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 326 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high System Prompt Leakage · line 42
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.00326
Opus 5.5 $0.00024 $0.00130
Sonnet 5.5 $0.00012 $0.00065
Haiku 4.5 $0.00006 $0.00033

Measured 3mo ago against content hash c628ae69cd62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

threat-model-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/threat-model-generation/SKILL.md · 47 lines

What it actually says

Threat Model Generation

This is a bundled local Bug Hunter companion skill. It generates portable threat-model artifacts under .bug-hunter/.

Purpose

Create the security context that the other security skills depend on:

  • trust boundaries
  • major components
  • STRIDE threats
  • vulnerability pattern library
  • severity/config defaults

Required outputs

Write:

  • .bug-hunter/threat-model.md
  • .bug-hunter/security-config.json

Workflow

  1. Read .bug-hunter/triage.json if available for file structure and domain hints.
  2. Inspect the repository to identify:
    • languages and frameworks
    • public/authenticated/internal entry points
    • data stores and external integrations
    • sensitive assets and trust boundaries
  3. Generate a concise STRIDE threat model.
  4. Generate a matching security config with thresholds and tech-stack metadata.

Compatibility

prompts/threat-model.md is generated from this skill for older clients. This skill is the canonical source and must be edited instead of the generated compatibility prompt.

Output rules

  • Keep the threat model short enough for downstream agents to consume.
  • Be specific about trust boundaries and vulnerable code patterns.
  • Keep all artifacts under .bug-hunter/, never .factory/.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 47 lines · 59 tokens per session scan A c628ae69cd62

Subscribe to this mod's changes

threat-model-generation is a skill published in the GitHub repository codexstar69/bug-hunter (612 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 326 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

threat-model-generation compared with skills from other repositories

threat-model-generation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
threat-model-generationcodexstar69/bug-hunterSkill6121mo agoMITA59Claude Code, Codex
logic-reviewhyhmrright/logic-lensSkill251mo agoMITA161Claude Code
logic-fix-allhyhmrright/logic-lensSkill251mo agoMITA211Claude Code
logic-healthhyhmrright/logic-lensSkill251mo agoMITA180Claude Code
run-iteration-evalhyhmrright/logic-lensSkill251mo agoMITA108Claude Code
new-skillhyhmrright/logic-lensSkill251mo agoMITA50Claude Code
sync-skill-cachehyhmrright/logic-lensSkill251mo agoMITA103Claude Code