Skip to content
AI Primer

security-threat-model

openaiby openai16 days ago18.6k

Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppSec threat modeling. Do not trigger for general architecture summaries, code review, or non-security design work.

Install

npx skills add https://github.com/openai/skills --skill security-threat-model
Show step-by-step
  1. 1

    Open your terminal

    • Mac: Press ⌘ Space, type "Terminal", press Enter
    • Windows: Press Win R, type "cmd", press Enter
  2. 2

    Paste the command above and press Enter

    Use the Copy command button, then paste in your terminal (Mac: ⌘V, Windows: Ctrl V).

  3. 3

    Restart Claude Code

    Close and reopen Claude Code, or start a new session, so it picks up the new skill.

Where it lives
~/.claude/skills/openai--skills--skills--curated--security-threat-model/
├── SKILL.md
└── ... (skill resource files)
View on GitHub

Always review skill code before installing. Third-party skills may contain scripts that run on your machine.

First 3 tasks to try

  1. 1Repo root path and any in-scope paths.
    Repo root path and any in-scope paths.
  2. 2Intended usage, deployment model, internet exposure, and auth expectations (if k
    Intended usage, deployment model, internet exposure, and auth expectations (if known).
  3. 3Any existing repository summary or architecture spec.
    Any existing repository summary or architecture spec.

Related skills