threat-modeling
Skill1 starsChanged 3 months agoApache-2.0View on GitHub
Build a repository-grounded threat model for an application, service, API, agent workflow, or architecture by mapping assets, actors, trust boundaries, entrypoints, attacker capabilities, abuse paths, and mitigations. Use only for explicit threat-model, attack-surface, DFD, STRIDE, PASTA, LINDDUN, or abuse-path requests; use security-review for ordinary vulnerability review. Report by default and do not probe external systems.
29 other projects use a version of this.
Adopted by
Most recently taken up by
- cellrishi-code/claude-skills-atlastheir own version, first seen Oct 4, 2026
- aws-solutions/konductortheir own version, first seen Sep 23, 2026
- robisson/build-like-amazon-agent-skillstheir own version, first seen Sep 23, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- timwukp/agent-skills-best-practicetheir own version, first seen Sep 16, 2026
- millerlai/threat-modeling-mastertheir own version, first seen Sep 15, 2026
Used with
Projects with it also use supply-chain-security, performance-profiling and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillsupply-chain-security
Activate when reviewing or modifying dependency resolution, lockfile schema, package downloaders, signature/integrity checks, file integration cleanup, or anything that could expose APM to dependency confusion, typosquatting, malicious packages, or token leakage.
Also in 3 projects that use this
conorluddySkillperformance-profiling
Instruments integration and performance analysis workflows for iOS apps. Use when profiling CPU usage, memory allocation, network activity, or energy consumption. Covers Time Profiler, Allocations, Leaks, Network instruments, and performance optimization strategies.
Also in 3 projects that use this
fefogarciaSkilldependency-audit
Comprehensive dependency health auditing for JavaScript/TypeScript projects. Run npm audit, detect outdated packages, check for security advisories, and verify license compliance. Prioritises vulnerabilities by severity and provides actionable fix recommendations.
Also in 4 projects that use this
AnthropicSkillincident-response
Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.
Also in 5 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 5 projects that use this
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 3 projects that use this
Other versions29 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 29
- briiirussell/cybersecurity-skills★ 410same name
- proflead/codex-skills-library★ 153same name
- hardw00t/ai-security-arsenal★ 104same name
- UnitOneAI/SecuritySkills★ 78same name
- nahid-sparktales/agent-dispatcher★ 59same name
- mn-youssef/security-skills★ 47same name
- kumaran-is/claude-code-onboarding★ 36same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- ShieldNet-360/secure-vibe★ 22same name
- ShulkwiSEC/bb-huge★ 22same name
19 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adversarial-pr-reviewSkill
- ai-slop-detectorSkill
- architecture-reviewSkill
- codebase-orientationSkill
- code-reviewSkill
- dependency-upgradeSkill
- documentation-reviewSkill
- frontend-quality-reviewSkill
- git-github-workflowSkill
- harness-adaptationSkill
- implementation-planningSkill
- parallel-multi-agentSkill
- quality-hardeningSkill
- reduce-code-sizeSkill
- repository-guidance-authoringSkill
- requirements-and-designSkill
- review-feedback-resolutionSkill
- rules-and-skills-auditSkill
- security-reviewSkill
- skill-authoringSkill
- skill-discoverySkill
- skill-optimizerSkill
- skill-reviewerSkill
- systematic-debuggingSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Side effects: read-only by default; do not contact external systems, access credentials, or modify files without separate explicit …
- Distinctive: line 31
Use the method explicitly requested by the user.
- Distinctive: line 48
When using STRIDE, apply it systematically across every identified trust boundary:
- Distinctive: line 83
Do not claim a component or control from a filename or generic framework expectation.
- Distinctive: line 106
Use the following structure for the default or STRIDE method.
- Very specific: line 132
Use security-review for a concrete code/configuration change or suspected vulnerability and for safe local exploitability checks.
- Very specific: line 134
Use architecture-review for non-security redesign options.
- Very specific: line 136
Use quality-hardening for security regression tests after the model, not as a replacement for modeling.
- Distinctive: line 139
Never label a system secure because the threat list is short or static checks are clean.
“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Threat Modeling
Contract
- Input: repository or system scope, deployment and exposure assumptions, actors, assets, known components, and the user's authorized review level.
- Output: a concise threat model containing system boundaries, assets, attacker capabilities and non-capabilities, realistic abuse paths, likelihood/impact reasoning, existing and recommended mitigations, assumptions, questions, and coverage gaps.
- Owner: design-time security modeling and abuse-path analysis.
- Non-goals: unrestricted penetration testing, live exploit traffic,
compliance certification, incident response, or a substitute for a focused
security-reviewof an implementation. - Side effects: read-only by default; do not contact external systems, access credentials, or modify files without separate explicit authority.
Method selection, threat categories, and AI vectors
Use the method explicitly requested by the user; use STRIDE as the default only when no method is specified. Do not relabel a STRIDE table as PASTA or LINDDUN, and do not silently substitute another method when evidence is missing.
- A LINDDUN review considers linkability, identifiability, non-repudiation, detectability, disclosure of information, unawareness, and non-compliance across applicable personal-data flows.
- A PASTA review structures evidence through objectives, technical scope, application decomposition, threat analysis, vulnerability analysis, attack modeling, and risk and impact analysis.
- Combining methods requires an explicit request or a stated reason. Mark unsupported stages or categories as unassessed.
- Personal-data flows are an explicit reason to append a LINDDUN/privacy pass, even when STRIDE is the default. Assess applicable LINDDUN categories and record the added method in the report; if privacy analysis is out of scope, state that gap and the reason.
When using STRIDE, apply it systematically across every identified trust boundary:
- Spoofing: Impersonating users, services, webhook senders, agent identities, or non-network identities (forged email/notification senders, spoofed internal tooling, phishing UI that misdirects a user or agent).
- Tampering: Modifying payloads in transit, poisoning cache/persistence, or tampering with model context and prompt templates.
- Repudiation: Performing sensitive or destructive actions without immutable audit logs.
- Information Disclosure: Exposing credentials, PII, cross-tenant data, internal stack traces, system prompts, or secrets that reach model context (secret pasted into a prompt, sensitive file read into context, or a log line the model can see).
- Denial of Service: Exhausting API rate limits, computational budgets, worker memory, or token context windows.
- Elevation of Privilege: Escaping container/sandbox boundaries, escalating API roles, or executing unauthorized agent tools.
For AI and Agentic Workflows, explicitly evaluate:
- Indirect Prompt Injection: Untrusted inputs (user tickets, scraped web pages, third-party files) overriding agent instructions.
- Tool Privilege Escalation & Confused Deputy: Agent executing destructive tools (file writes, shell execution, database mutations) on behalf of unauthenticated or unauthorized inputs.
- Data Exfiltration via Rendered Output: Leaking sensitive context via markdown image URLs, webhooks, or automated outbound network requests.
- Context & Skill Poisoning: Malicious external skills, untrusted repository rules, or poisoned prompt fixtures compromising agent invariants.
Workflow
- Confirm the explicit trigger and scope. Identify the requested path, deployment model, internet exposure, authentication expectations, and data sensitivity. Ask only the questions that materially change threat ranking; preserve unresolved assumptions if the user cannot answer.
- Extract the system model from evidence. Identify components, entrypoints,
data stores, external integrations, runtime versus CI/dev/test tooling, and
source-of-truth architecture.
- Enumerate data flows before boundaries: For each component, list the concrete flows (external input → validation/processing → datastore/downstream/exit), including async jobs, webhooks, caches, and background workers. Derive trust boundaries from where each flow crosses a trust change, not from component names.
- Do not claim a component or control from a filename or generic framework expectation.
- Map boundaries and assets. Record concrete edges between components with protocol, identity, encryption, validation, rate-limit, or serialization details. Identify credentials, sensitive data, integrity-critical state, availability-critical resources, build artifacts, and audit records.
- Calibrate attackers. Describe realistic capabilities based on exposure, tenancy, deployment, and access assumptions. Explicitly record important non-capabilities to avoid inflated severity.
- Enumerate and prioritize abuse paths. Tie each threat to an attacker goal, boundary, asset, precondition, and impact. Keep the set small and high quality; rank likelihood and impact with short evidence-backed reasons.
- Recommend and check coverage. Distinguish existing controls from recommendations and tie each mitigation to a component, boundary, or entrypoint. Confirm that every discovered boundary and entrypoint is represented, or state why it is out of scope.
- Report and stop. State assumptions, unanswered questions, threats, evidence, mitigations, and residual risk. Stop before live probing, credentialed testing, destructive activity, or implementation unless the user separately authorizes it.
Threat model report template
Use the following structure for the default or STRIDE method. For an explicitly requested PASTA or LINDDUN review, preserve that method's stages or categories and adapt the evidence tables rather than forcing a STRIDE-only report:
1. System decomposition & trust boundaries
| Boundary ID | Source Component | Target Component | Protocol / Transport | Auth / Trust Level |
2. Attacker profiles & capabilities
| Persona | Access Level | Motive & Capabilities | Explicit Non-Capabilities |
3. Prioritized abuse paths
| Threat ID | Method / Category | Trust Boundary | Preconditions | Abuse Path & Impact | Likelihood | Existing Control | Recommended Mitigation |
4. Residual risks, assumptions, & unverified areas
- Assumptions: List critical deployment/environmental assumptions.
- Coverage gaps: List uninspected components or missing documentation.
Routing boundaries
- Use
security-reviewfor a concrete code/configuration change or suspected vulnerability and for safe local exploitability checks. - Use
architecture-reviewfor non-security redesign options; combine only when the user requests both architecture and threat modeling. - Use
quality-hardeningfor security regression tests after the model, not as a replacement for modeling.
Never label a system secure because the threat list is short or static checks are clean. Keep observations, assumptions, inferences, and unknowns separate.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

