Threat modeling and attack surface analysis. An agent skill from hashgraph-online/awesome-codex-plugins.

Apache-2.0Auto-check passedSecurity

Install Threat Model

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill threat-model -a claude-code

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

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins threat-model --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/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/epicsagas/epic-harness/skills/threat-model .claude/skills/threat-model && 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-model
GitHub stars
1.3k
Token cost
~1.1k tokens
SKILL.md length
422 words
Files
1
Skills in repo
714
Repo updated
First seen
Licence
Apache-2.0

At a glance

Threat modeling and attack surface analysis. An agent skill from hashgraph-online/awesome-codex-plugins.

  • Works in 6 steps: Load Engagement Context → Identify Trust Boundaries → Enumerate Threat Actors → …
  • Assessing security boundaries
  • SKILL.md covers Iron Law, Process, Anti-Rationalization and Evidence Required, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Threat Model is an agent skill from hashgraph-online/awesome-codex-plugins. Threat modeling and attack surface analysis. Use when assessing security boundaries, modeling threat actors, or generating threat scenarios.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Security, covering Threat modeling. The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is Apache-2.0.

When your agent uses it

  • Assessing security boundaries
  • Modeling threat actors
  • Generating threat scenarios

Example prompts

  • “/threat-model”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Load Engagement Context
  2. Identify Trust Boundaries
  3. Enumerate Threat Actors
  4. Generate Threat Scenarios
  5. Produce Output
  6. Feed into vuln-scan

What it can do on your machine

Read from SKILL.md and the folder at commit 9e7b281. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

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

  • Network

    No URLs in SKILL.md.

    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 Model loads about 1.1k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 422 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

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

The full file from hashgraph-online/awesome-codex-plugins at commit 9e7b281, republished under its Apache-2.0 licence (© hashgraph-online). 422 words, ~1,087 tokens.

Download SKILL.mdSave it as .claude/skills/threat-model/SKILL.md (or your agent's skills folder).
name
threat-model
description
Threat modeling and attack surface analysis. Use when assessing security boundaries, modeling threat actors, or generating threat scenarios.

Threat Model — Attack Surface Analysis

Iron Law

Every system has an attack surface. If you haven't identified it, you haven't secured it.

Process

Step 0: Load Engagement Context

Check for .harness/engagement.md in the project root. If present, load the scope (in-scope/out-of-scope) and constraints. Skip threat modeling for explicitly out-of-scope components.

Without engagement context, proceed with full-surface analysis.

Step 1: Identify Trust Boundaries

Map every boundary where data crosses a trust level:

  1. External → Internal: API endpoints, webhooks, file uploads, user input
  2. Internal → Privileged: DB queries, file system access, shell execution
  3. Service → Service: Inter-service communication, message queues, shared state
  4. Client → Server: Auth tokens, session state, CORS origins

For each boundary, document:

  • Data flow direction
  • Input validation present (yes/no/partial)
  • Authentication required (yes/no)
  • Encryption in transit (yes/no)
Step 2: Enumerate Threat Actors
ActorMotivationCapabilityTarget
Anonymous userExplorationLowPublic endpoints
Authenticated userData accessMediumOwn data + IDOR targets
Malicious insiderData exfiltrationHighAll internal systems
Compromised dependencySupply chainVariableBuild/deploy pipeline
Step 3: Generate Threat Scenarios

For each trust boundary × threat actor combination, generate:

  1. Attack vector: How the boundary is crossed maliciously
  2. Impact: What is compromised (CIA triad — Confidentiality, Integrity, Availability)
  3. Likelihood: High/Medium/Low based on exposure and complexity
  4. Existing mitigations: What already prevents this
  5. Gap: What is missing
Step 4: Produce Output

Write THREAT_MODEL.md:

markdown
# Threat Model — {project}

## Scope
- In-scope: {from engagement.md or full codebase}
- Out-of-scope: {from engagement.md or none}
- Date: {ISO date}

## Trust Boundaries
| # | Boundary | Direction | Validation | Auth | Encryption |
|---|----------|-----------|------------|------|------------|
| 1 | ... | ... | ... | ... | ... |

## Threat Scenarios
| ID | Boundary | Actor | Vector | Impact | Likelihood | Mitigated | Gap |
|----|----------|-------|--------|--------|------------|-----------|-----|
| T1 | ... | ... | ... | ... | ... | Partial | ... |

## Priority Remediation
1. [CRITICAL] {highest risk gap}
2. [HIGH] {next gap}
3. [MEDIUM] {remaining gaps}

## Assumptions
- {list all assumptions made during analysis}
Step 5: Feed into vuln-scan

After producing the threat model, suggest: "Run /vuln-scan to validate threat scenarios against the codebase."

Show full SKILL.md (178 more words)Show less

Anti-Rationalization

ExcuseRebuttalWhat to do instead
"We don't have any external-facing components"Internal trust boundaries are attack surfaces too. Lateral movement starts inside.Model internal boundaries with the same rigor.
"Threat modeling is overkill for a small project"Small projects get breached too. The model is proportional to the codebase.Run the process. It takes 10 minutes. A breach takes months.
"We already have a threat model"Threat models expire. Every code change can invalidate assumptions.Update the model when significant changes land.
"The framework handles security"Frameworks don't model YOUR business logic threats.Add application-layer threat scenarios on top of framework defaults.

Evidence Required

  • Every trust boundary in the codebase identified
  • At least 2 threat scenarios per boundary
  • Each scenario has impact, likelihood, and gap assessment
  • Priority remediation list ordered by risk
  • Assumptions explicitly listed (not hidden)

Red Flags

  • Skipping boundaries because they're "internal"
  • Listing only one threat scenario per boundary
  • Marking all scenarios as "already mitigated" without evidence
  • No assumptions section — means assumptions are hidden, not absent
  • Threat model that doesn't reference actual code paths

© hashgraph-online, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/epicsagas/epic-harness/skills/threat-model of hashgraph-online/awesome-codex-plugins.

Open the folder on GitHubat commit 9e7b281

Compare with similar skills

Threat Model 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 Model compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Threat Model this skillhashgraph-online/awesome-codex-plugins1.3k—~1.1kAutomated safety check: PassApache-2.0
Fla Ascend Performancefla-org/flash-linear-attention5.8k—~6.3kAutomated safety check: PassMIT
Forensifyalexgreensh/repo-forensics188—~2.5kAutomated safety check: NotesCustom licence
Create Rulecartography-cncf/cartography4.1k—~3kAutomated safety check: PassApache-2.0
Commit Security Scancodexstar69/bug-hunter519—~629Automated safety check: PassMIT
Auditing Code For Vulnerabilitiestrilwu/secskills157—~3.2kAutomated safety check: PassMIT

Similar skills

  • Fla Ascend Performance

    fla-org/flash-linear-attention

    Guidelines for Ascend NPU kernel / Triton-Ascend backend performance work in the FLA repo.

    5.8k GitHub stars~6.3k tokensUpdated today
    SecurityAuto-check passed
  • Forensify

    alexgreensh/repo-forensics

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

    188 GitHub stars~2.5k tokensUpdated 12 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.

    519 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

More from hashgraph-online/awesome-codex-plugins

All 714 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.3k GitHub stars~922 tokensUpdated today
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.3k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.3k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.3k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Calle

    hashgraph-online/awesome-codex-plugins

    Use CALL-E from Codex through the calle CLI. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.3k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.3k GitHub stars~618 tokensUpdated today
    Auto-check passed

Categories

Questions about Threat Model

What does Threat Model do?

Threat modeling and attack surface analysis. An agent skill from hashgraph-online/awesome-codex-plugins. Threat Model is an agent skill from hashgraph-online/awesome-codex-plugins. Threat modeling and attack surface analysis.

When should I use Threat Model?

Threat Model fits situations like: assessing security boundaries; modeling threat actors; generating threat scenarios.

How do I install Threat Model in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill threat-model -a claude-code`. Or copy the skill folder (plugins/epicsagas/epic-harness/skills/threat-model in hashgraph-online/awesome-codex-plugins) into .claude/skills/threat-model in your project. Claude Code loads it when a task matches its description.

How do I install Threat Model in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill threat-model -a codex`. Or copy the skill folder (plugins/epicsagas/epic-harness/skills/threat-model in hashgraph-online/awesome-codex-plugins) into .agents/skills/threat-model in your project. Codex loads it when a task matches its description.

Can I use Threat Model 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 hashgraph-online/awesome-codex-plugins --skill threat-model -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-model, .gemini/skills/threat-model, .github/skills/threat-model and .opencode/skills/threat-model in your project.

What does Threat Model need to run?

SKILL.md names no scripts, command-line tools or credentials: Threat Model is instructions for the agent only.

Does Threat Model access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Threat Model 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 Model use?

Threat Model is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Threat Model use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Threat Model?

Skills that share tags, products or a category with Threat Model: Fla Ascend Performance (fla-org/flash-linear-attention, 5.8k stars), Forensify (alexgreensh/repo-forensics, 188 stars), Create Rule (cartography-cncf/cartography, 4.1k stars) and Commit Security Scan (codexstar69/bug-hunter, 519 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Threat Model?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,255 GitHub stars. The repository holds 714 skills in this directory. The repository was last updated on October 9, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.