SecurityOfficial · openai

Security Threat Model skill for Claude

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.

Security Threat Model SKILL.md

A preview of the skill file from openai/skills.

Threat Model Source Code Repo

Deliver an actionable AppSec-grade threat model that is specific to the repository or a project path, not a generic checklist. Anchor every architectural claim to evidence in the repo and keep assumptions explicit. Prioritizing realistic attacker goals and concrete impacts over generic checklists.

Quick start

  1. Collect (or infer) inputs:
  • Repo root path and any in-scope paths.
  • Intended usage, deployment model, internet exposure, and auth expectations (if known).
  • Any existing repository summary or architecture spec.
  • Use prompts in references/prompt-template.md to generate a repository summary.
  • Follow the required output contract in references/prompt-template.md. Use it verbatim when possible.

Workflow

1) Scope and extract the system model

  • Identify primary components, data stores, and external integrations from the repo summary.
  • Identify how the system runs (server, CLI, library, worker) and its entrypoints.
  • Separate runtime behavior from CI/build/dev tooling and from tests/examples.
  • Map the in-scope locations to those components and exclude out-of-scope items explicitly.
  • Do not claim components, flows, or controls without evidence.

2) Derive boundaries, assets, and entry points

  • Enumerate trust boundaries as concrete edges between components, noting protocol, auth, encryption, validation, and rate limiting.
  • List assets that drive risk (data, credentials, models, config, compute resources, audit logs).

Read the full SKILL.md on GitHub →

How to install Security Threat Model

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit openai/skills/skills/.curated/security-threat-model#main ~/.claude/skills/security-threat-model

Codex

npx degit openai/skills/skills/.curated/security-threat-model#main ~/.codex/skills/security-threat-model

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Security Threat Model skill do?

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.

+How do I install Security Threat Model in Claude Code?

Copy the skill folder into ~/.claude/skills/security-threat-model, for example with "npx degit openai/skills/skills/.curated/security-threat-model#main ~/.claude/skills/security-threat-model". Claude Code loads it automatically and uses it when a task matches.

+Does Security Threat Model work with ChatGPT or Codex?

Yes. Security Threat Model uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/security-threat-model. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Security Threat Model free?

Security Threat Model is published on GitHub by openai. The repository does not declare a license, so check with the author before reusing it.

Related security skills

  1. Security Review

    Official

    Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit…

    getsentry/skills★ 1.2k
  2. Audit

    a user-authored audit skill

    pbakaus/impeccable★ 112k
  3. Semgrep

    Official

    Runs a Semgrep security scan over a codebase: detects languages, selects rulesets, presents the plan for explicit approval, then runs every…

    trailofbits/skills★ 8.3k
  4. Aflpp

    Official

    Sets up and runs AFL++ for multi-core fuzzing of C/C++ projects built with afl-clang-fast or afl-gcc-fast.

    trailofbits/skills★ 8.3k
  5. Agentic Actions Auditor

    Official

    Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI…

    trailofbits/skills★ 8.3k
  6. Algorand Vulnerability Scanner

    Official

    Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing field…

    trailofbits/skills★ 8.3k
  7. Audit Augmentation

    Official

    Augments Trailmark code graphs with external audit findings from SARIF static analysis results, weAudit annotation files, and version-gated…

    trailofbits/skills★ 8.3k
  8. Audit Context Building

    Official

    Understand a codebase before looking for bugs in it - what each function assumes, what it guarantees, and what it depends on elsewhere.

    trailofbits/skills★ 8.3k
  9. Audit Prep Assistant

    Official

    Prepares codebases for security review using Trail of Bits' checklist.

    trailofbits/skills★ 8.3k

See all security skills →

More skills from openai

  1. Sentry

    Official

    Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the…

    openai/skills★ 29k
  2. Skill Creator

    Official

    Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that…

    openai/skills★ 29k
  3. Speech

    Official

    Use when the user asks for text-to-speech narration or voiceover, accessibility reads, audio prompts, or batch speech generation via the…

    openai/skills★ 29k

All skills by openai →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.