Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/epicsagas-threat-model
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/threat-model
What's inside
- Skill name
threat-model- Description
- Threat modeling and attack surface analysis. Use when assessing security boundaries, modeling threat actors, or generating threat scenarios.
- License
- Apache-2.0
- Instructions
- 110 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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`:
```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."**
## Anti-Rationalization
| Excuse | Rebuttal | What 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 pathsFrom epicsagas/epic-harness, Apache-2.0.
More from epicsagas/epic-harness
- 0.629score
triage
epicsagas
Adversarial validation of vulnerability findings.
SkillAFreshness: A★ 19Claude Code +9 - 0.629score
agent-introspection
epicsagas
Loop-breaking self-diagnosis.
SkillAFreshness: A★ 19Claude Code +9 - 0.629score
team
epicsagas
Org-level agent team designer via `epic team` CLI (cross-project, append-merge).
SkillAFreshness: A★ 19Claude Code +9 - 0.629score
vuln-scan
epicsagas
Systematic vulnerability scan across injection, auth, data exposure, and dependencies — traced by reading code, not grepping for keywords.
SkillAFreshness: A★ 19Claude Code +9 - 0.629score
benchmark
epicsagas
Executes Bare-vs-Epic A/B benchmarking, Ring 0 Guard 50 challenge, and full golden set evaluation for epic-harness.
SkillAFreshness: A★ 19Claude Code +9 - 0.629score
document
epicsagas
Documentation generator for public APIs, functions, and modules.
SkillAFreshness: A★ 19Claude Code +9 - 0.626score
context
epicsagas
Working-state snapshot guidance.
SkillAFreshness: A★ 19Claude Code +9 - 0.626score
orbit
epicsagas
State-persisted autonomous pipeline: spec → go → audit → eval → ship → evolve in one command.
SkillAFreshness: A★ 19Claude Code +9 - 0.626score
orchestrate
epicsagas
Trigger: active multi-agent run.
SkillAFreshness: A★ 19Claude Code +9 - 0.626score
evolve
epicsagas
Ring 3 evolution engine.
SkillAFreshness: A★ 19Claude Code +9 - 0.626score
go
epicsagas
Go phase.
SkillAFreshness: A★ 19Claude Code +9 - 0.626score
eval
epicsagas
Quality and performance evaluation with baseline comparison.
SkillAFreshness: A★ 19Claude Code +9
Signals
- Stars
- 19
- Forks
- 5
- Open issues
- 3
- Last commit (this folder)
- Jun 25, 2026 (4 months ago)
- Last release
- Oct 23, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/epicsagas/epic-harness
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from epicsagas
- 0.641score
book-visuals
epicsagas
Book visual system: art bible and look lock, figure plan per chapter, code-rendered diagrams/charts/technical drawings, diffusion-generated illustrations and…
SkillAFreshness: A★ 38Claude Code +9 - 0.638score
book-game
epicsagas
Game narrative craft reference: branching architecture, quest design, dialogue systems, lore bible, player agency, and game-writing AI tells.
SkillAFreshness: A★ 38Claude Code +9 - 0.638score
book-academic
epicsagas
Academic writing craft reference: IMRAD and discipline structures, literature review, argument chains, citation integrity, academic register in en/ko/ja, and…
SkillAFreshness: A★ 38Claude Code +9 - 0.638score
book-draft
epicsagas
Phase 3: Drafting.
SkillAFreshness: A★ 38Claude Code +9 - 0.638score
book-fiction
epicsagas
Fiction craft reference for all subgenres: structure options, scene design, character depth, dialogue, POV and distance, the fiction-specific AI tells, and…
SkillAFreshness: A★ 38Claude Code +9 - 0.638score
book-edit
epicsagas
Phase 4: Editing.
SkillAFreshness: A★ 38Claude Code +9
Cite this page
threat-model skill. Agent Mart. https://agentmart.dev/skills/epicsagas-threat-model (last updated 2026-10-24)