Agent skill

Threat Modeling

by hardw00t in hardw00t/ai-security-arsenal

Systematic threat modeling skill for applications, APIs, and systems using STRIDE, PASTA, Attack Trees, DREAD, LINDDUN, and OCTAVE.

No licenceAuto-check passedSecurity

Install Threat Modeling

skills CLI
$ npx skills add hardw00t/ai-security-arsenal --skill threat-modeling -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hardw00t/ai-security-arsenal threat-modeling --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hardw00t/ai-security-arsenal.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/threat-modeling .claude/skills/threat-modeling && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
threat-modeling
GitHub stars
105
Token cost
~2.6k tokens
SKILL.md length
903 words
Files
23 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
None found

At a glance

Systematic threat modeling skill for applications, APIs, and systems using STRIDE, PASTA, Attack Trees, DREAD, LINDDUN, and OCTAVE.

  • Assessing security architecture
  • SKILL.md covers When to Use, Trigger Phrases, When NOT to Use This Skill and Decision Tree, plus 12 more sections
  • Calls npm, apt and brew
  • Creating data flow diagrams (Mermaid)

What it does

Threat Modeling is an agent skill from hardw00t/ai-security-arsenal. Systematic threat modeling skill for applications, APIs, and systems using STRIDE, PASTA, Attack Trees, DREAD, LINDDUN, and OCTAVE. Use when assessing security architecture, creating data flow diagrams (Mermaid), enumerating threats from OpenAPI specs or architecture docs, building attack trees, mapping threats to NIST/CIS/OWASP ASVS controls, or producing a threat model report. Triggers on requests to threat model, analyze attack surface, create a DFD, apply STRIDE, or design security mitigations.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 27 other files, including reference files (for example `examples/attack_tree_banking.md`, `examples/bounty_patterns_2024_2026.md` and `examples/mermaid_dfd_templates.md`).

It sits in Security, covering Threat modeling. It works with Mermaid. The repository describes itself as: A collection of skills, agents, commands, and workflows for security researchers. Compatible with Claude Code, Claude Desktop, OpenCode, and other AI coding tools.

When your agent uses it

  • Assessing security architecture
  • Creating data flow diagrams (Mermaid)
  • Enumerating threats from OpenAPI specs
  • Architecture docs

Example prompts

  • “/threat-modeling”

Requirements

  • Node.js
  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit a1a68f7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • apt
    • brew

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Threat Modeling loads about 2.6k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 130 tokens; SKILL.md has 903 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~130
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 903 words (~2,576 tokens).

“Adversarial design-time analysis: enumerate threats against a system and specify mitigations. This skill routes to methodology files, workflow runbooks, example libraries, and control-catalog references. Extended adversarial reasoning is the core value — spend thinking budget on threat enumeration.”

— opening of SKILL.md by hardw00t
name
threat-modeling

Read the full SKILL.md on GitHub

Files

SKILL.md and 22 other files (references) in skills/threat-modeling of hardw00t/ai-security-arsenal.

  • SKILL.md
  • examples/attack_tree_banking.md
  • examples/bounty_patterns_2024_2026.md
  • examples/mermaid_dfd_templates.md
  • examples/stride_threat_library.md
  • methodology/attack_trees.md
  • methodology/dread.md
  • methodology/linddun.md
  • methodology/octave.md
  • methodology/pasta.md
  • methodology/stride.md
  • references/control_catalogs.md
  • references/framework_comparison.md
  • references/trust_boundary_patterns.md
  • schemas/finding.json
  • templates/stride_table.md
  • … and 7 more

Open the folder on GitHubat commit a1a68f7

Compare with similar skills

Threat Modeling next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Threat Modeling compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Threat Modeling this skillhardw00t/ai-security-arsenal105—~2.6kAutomated safety check: PassNone
Forensifyalexgreensh/repo-forensics190—~2.5kAutomated safety check: NotesCustom licence
Create Rulecartography-cncf/cartography4.1k—~3kAutomated safety check: PassApache-2.0
Commit Security Scancodexstar69/bug-hunter520—~629Automated safety check: PassMIT
Auditing Code For Vulnerabilitiestrilwu/secskills157—~3.2kAutomated safety check: PassMIT
Threat Mitigation Mappingwshobson/agents40k8 repos~742Automated safety check: PassMIT

Similar skills

  • Forensify

    alexgreensh/repo-forensics

    Cross-agent self-inspection of your AI-agent stack. An agent skill from alexgreensh/repo-forensics.

    190 GitHub stars~2.5k tokensUpdated 13 days ago
    SecurityAuto-check: notes
  • Create Rule

    cartography-cncf/cartography

    Author a Cartography security rule (one or more Cypher Facts plus a Pydantic Finding output model) under cartography/rules/data/rules/.

    4.1k GitHub stars~3k tokensUpdated today
    SecurityAuto-check passed
  • Commit Security Scan

    codexstar69/bug-hunter

    Scan code changes for security vulnerabilities using Bug Hunter-native artifacts and STRIDE context.

    520 GitHub stars~629 tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Audit source code for exploitable vulnerabilities using threat-model-driven review, taint tracing, invariant checking, and variant analysis.

    157 GitHub stars~3.2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Match identified threats to preventive, detective and corrective controls across network, application, data, endpoint and process layers to plan remediation.

    40k GitHub starsUsed in 8 repos~742 tokens
    SecurityAuto-check passed
  • Audit Browser Security Boundaries

    nordstjernen-web/northstar-browser

    Audit browser-engine changes that process untrusted content or cross native-memory, origin, network, storage, extension, decoder, sandbox, or operating-system boundaries.

    127 GitHub stars~920 tokensUpdated today
    SecurityAuto-check passed

More from hardw00t/ai-security-arsenal

  • Dast Automation

    hardw00t/ai-security-arsenal

    Automated Dynamic Application Security Testing (DAST) using Playwright MCP plus standard OS pentest tooling.

    105 GitHub stars~2.2k tokensUpdated 5 mo ago
    Auto-check passed
  • Sast Orchestration

    hardw00t/ai-security-arsenal

    Static Application Security Testing orchestration — run and compose Semgrep, CodeQL, Bandit, gosec, Brakeman, SpotBugs, ESLint; author custom rules; ingest SARIF; triage and rank findings by…

    105 GitHub stars~2.7k tokensUpdated 5 mo ago
    Auto-check passed
  • Container Security

    hardw00t/ai-security-arsenal

    Container and Kubernetes security assessment — image vulnerability scanning, SBOM diff analysis, K8s cluster auditing, RBAC privilege mapping, NetworkPolicy review, container escape testing, and…

    105 GitHub stars~2.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Iac Security

    hardw00t/ai-security-arsenal

    Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep.

    105 GitHub stars~2.4k tokensUpdated 5 mo ago
    Auto-check passed
  • LLM Security

    hardw00t/ai-security-arsenal

    LLM and AI application security testing skill for prompt injection (direct, indirect, multimodal), system-prompt extraction, RAG poisoning, memory poisoning, MCP server injection, skill-file…

    105 GitHub stars~2.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Sca Security

    hardw00t/ai-security-arsenal

    Software Composition Analysis: find vulnerable dependencies, correlate CVE/GHSA/OSV across ecosystems, generate CycloneDX/SPDX SBOMs, assess license compliance, and run reachability-aware triage to…

    105 GitHub stars~3k tokensUpdated 5 mo ago
    Auto-check passed

Works with

Categories

Questions about Threat Modeling

What does Threat Modeling do?

Systematic threat modeling skill for applications, APIs, and systems using STRIDE, PASTA, Attack Trees, DREAD, LINDDUN, and OCTAVE. Threat Modeling is an agent skill from hardw00t/ai-security-arsenal. Systematic threat modeling skill for applications, APIs, and systems using STRIDE, PASTA, Attack Trees, DREAD, LINDDUN, and OCTAVE.

When should I use Threat Modeling?

Threat Modeling fits situations like: assessing security architecture; creating data flow diagrams (Mermaid); enumerating threats from OpenAPI specs; architecture docs.

How do I install Threat Modeling in Claude Code?

Run `npx skills add hardw00t/ai-security-arsenal --skill threat-modeling -a claude-code`. Or copy the skill folder (skills/threat-modeling in hardw00t/ai-security-arsenal) into .claude/skills/threat-modeling in your project. Claude Code loads it when a task matches its description.

How do I install Threat Modeling in Codex?

Run `npx skills add hardw00t/ai-security-arsenal --skill threat-modeling -a codex`. Or copy the skill folder (skills/threat-modeling in hardw00t/ai-security-arsenal) into .agents/skills/threat-modeling in your project. Codex loads it when a task matches its description.

Can I use Threat Modeling in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hardw00t/ai-security-arsenal --skill threat-modeling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/threat-modeling, .gemini/skills/threat-modeling, .github/skills/threat-modeling and .opencode/skills/threat-modeling in your project.

What does Threat Modeling need to run?

Going by SKILL.md and its folder, Threat Modeling needs the command-line tools its instructions call (npm, apt and brew). Our summary lists: Node.js; Docker.

Does Threat Modeling access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Threat Modeling safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Threat Modeling use?

No licence was found for Threat Modeling or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Threat Modeling use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.7k tokens, read only when the agent opens those files.

What are the alternatives to Threat Modeling?

Skills that share tags, products or a category with Threat Modeling: Forensify (alexgreensh/repo-forensics, 190 stars), Create Rule (cartography-cncf/cartography, 4.1k stars), Commit Security Scan (codexstar69/bug-hunter, 520 stars) and Auditing Code For Vulnerabilities (trilwu/secskills, 157 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Threat Modeling?

hardw00t (a GitHub user) maintains it in hardw00t/ai-security-arsenal, which has 105 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on April 19, 2026.

Source: hardw00t/ai-security-arsenal on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.