threat-model

threat-model is a skill for Claude Code, Codex from epicsagas/epic-harness. It costs 26 tokens per session (994 once invoked), scanned A, original, Apache-2.0.

Um guia para modelar ameaças: identificar quem pode atacar um sistema, que partes podem ser expostas e como os dados atravessam limites de confiança. A análise de superfície de ataque é o levantamento dos pontos onde um sistema pode ser explorado.

In plain words
What is it for?
Serve para mapear fronteiras de segurança, avaliar validação e encriptação e criar cenários de ataque com diferentes tipos de invasores.
Why use it?
Ajuda a descobrir riscos de segurança antes que sejam tratados como incidentes, incluindo problemas em APIs, uploads, autenticação e acesso a ficheiros.

Skill for Claude CodeCodex

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

Part of the epic plugin — 27 skills, 6 hooks shipped together

Good fit Serve para mapear fronteiras de segurança, avaliar validação e encriptação e criar cenários de ataque com diferentes tipos de invasores.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/epicsagas/epic-harness/threat-model
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 epicsagas/epic-harness --skill threat-model
Clone the repo
git clone --depth 1 https://github.com/epicsagas/epic-harness

Made for: Claude Code, Codex.

Or install epic, the plugin that ships this one along with the rest of its 27 skills, 6 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/epicsagas/epic-harness/threat-model/github.svg)](https://agentmods.dev/skills/epicsagas/epic-harness/threat-model)
Your own site
<a href="https://agentmods.dev/skills/epicsagas/epic-harness/threat-model"><img src="https://agentmods.dev/badge/skills/epicsagas/epic-harness/threat-model/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/epicsagas/epic-harness/threat-model"><img src="https://agentmods.dev/badge/skills/epicsagas/epic-harness/threat-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 994 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 pass 7 Sept 2026
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.00026 $0.00994
Opus 5 $0.00013 $0.00497
Sonnet 5 $0.00005 $0.00199
Haiku 4.5 $0.00003 $0.00099

Measured 9d ago against content hash dcf48da87eb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

threat-model 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 9d 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/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Actor Motivation Capability Target
Anonymous user Exploration Low Public endpoints
Authenticated user Data access Medium Own data + IDOR targets
Malicious insider Data exfiltration High All internal systems
Compromised dependency Supply chain Variable Build/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:

# 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}

Read the full file on GitHub · 114 lines

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. 9d ago First seen · 114 lines · 26 tokens per session scan A dcf48da87eb9

Subscribe to this mod's changes

threat-model is a skill published in the GitHub repository epicsagas/epic-harness (18 stars, last pushed today), licensed Apache-2.0. It adds 26 tokens to every session and 994 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

opensrc

Fetch dependency source code to give AI agents deeper implementation context. Use when the agent needs to understand how a library works internally, read source code for a package, fetch implementation details for a dependency, or explore how an npm/PyPI/crates.io package is built. Triggers include "fetch source for"…

vercel-labs/opensrc · 103 tokens

lx

Codebase exploration tool that reads many files or whole directories in a single call, with per-file headers, glob include/exclude filters, function/type skeleton extraction (signatures only, no bodies), and head/tail line slicing.

rasros/lx · 48 tokens

pypi-release

This skill should be used when releasing tunacode-cli to PyPI. It keeps the existing local release checks, then hands the actual PyPI upload to a GitHub Actions workflow that uses the repository's PYPIAPITOKEN secret.

alchemiststudiosDOTai/tunacode · 52 tokens

audit-harness

Use when auditing HARNESS.md, pre-commit hooks, pre-push hooks, architecture gates, or CI workflows for tunacode-cli. This skill treats any mismatch, skipped gate, or failing check as a critical failure and requires manual one-by-one execution rather than make targets, batch wrappers, or summary-only audits.

alchemiststudiosDOTai/tunacode · 69 tokens

toxic-senior-reviewer

Code review in the voice of a toxic senior developer — dry sarcasm without profanity, no fluff, no empty praise. Use this skill whenever the user asks for a code review, says "how can I improve this", "what do you think of this code", "take a look at this", "rate this solution", "critique this", "do a code review"…

Osipchuk/agent-skills · 206 tokens

receive-review

Act on review feedback well — fix real issues, push back on wrong ones. Triggers on address the review, fix the feedback, respond to review, apply review comments.

AyushParkara/syntra · 38 tokens