threat-modeling
Skill0 starsChanged 6 months agoMITView on GitHub
Systematically identifies threats, trust boundaries, and attack paths for a system before attackers do. Use when designing or reviewing a system's security, adding a feature that handles sensitive data or access, or answering "what could go wrong security-wise here?
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, dependency-audit and 8 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
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
SentrySkillarchitecture-review
Staff-level codebase health review. Finds monolithic modules, silent failures, type safety gaps, test coverage holes, and LLM-friendliness issues.
Also in 4 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 repository29 other files it gives its agents.
- adversarial-code-reviewSkill
- api-contract-designSkill
- attack-surface-mappingSkill
- authn-authz-design-reviewSkill
- benchmark-designSkill
- capacity-scalability-planningSkill
- concurrency-race-analysisSkill
- data-consistency-modelingSkill
- data-exfiltration-analysisSkill
- distributed-consensus-designSkill
- error-handling-architectureSkill
- event-driven-architectureSkill
- experiment-designSkill
- hypothesis-falsificationSkill
- incident-rca-postmortemSkill
- legacy-refactoring-strategySkill
- literature-synthesisSkill
- metrics-designSkill
- multi-layer-caching-strategySkill
- mvp-scope-cuttingSkill
- performance-profilingSkill
- rate-limiting-designSkill
- requirements-disambiguationSkill
- secrets-management-auditSkill
- statistical-validity-analysisSkill
- supply-chain-risk-analysisSkill
- system-decomposition-synthesisSkill
- tradeoff-decision-frameworkSkill
- user-failure-mode-mappingSkill
The file
Files
Threat Modeling
Security is a property of the whole system under an adversary's choosing, not a feature you add. Model the attacker's goals and capabilities, then find the cheapest path to them — because that's the path they'll take.
Four questions, in order
- What are we building? Draw the data flow: components, data stores, and the trust boundaries they cross (user→app, app→DB, service→service, tenant→tenant). Threats live on boundaries.
- What can go wrong? Walk each boundary with STRIDE: Spoofing (identity), Tampering (integrity), Repudiation (deniability), Information disclosure (confidentiality), Denial of service (availability), Elevation of privilege (authorization).
- What are we going to do about it? Mitigate, accept (with sign-off), transfer, or eliminate. Not every threat warrants a control.
- Did we do it right? Validate the mitigations actually hold against a motivated attacker.
Define the attacker before the defenses
- Who: unauthenticated internet, authenticated user, malicious insider, compromised dependency, another tenant. Each has different access and changes the model entirely.
- Capability and motivation: opportunistic script vs targeted adversary vs nation-state. Don't defend against the wrong tier.
- Assets and goals: what does the attacker want (data, money, disruption, foothold)? Rank by impact × likelihood, and protect the crown jewels first.
Adversarial validation (think like the attacker)
- Trace the highest-value asset backward: from the data an attacker wants, what's the shortest chain of trust to reach it? That chain is your priority.
- Assume one layer is breached: the WAF is bypassed, one service is popped, one credential leaks. Does it cascade to total compromise, or does defense-in-depth contain it?
- Attack the trust assumptions: "internal traffic is trusted", "the client validates this", "this field is always well-formed" — every assumption is an attack surface.
- Abuse the features, don't just find bugs: password reset, sharing links, export, impersonation, and rate-limit-free endpoints are designed functionality that becomes an attack tool.
- Confused deputy: can a low-privilege actor trick a high-privilege component into acting on its behalf (SSRF, IDOR, signed-URL reuse)?
Non-obvious risks
- Client-side controls (validation, hidden fields, disabled buttons) are UX, not security — the attacker controls the client entirely.
- The most damaging breaches chain low-severity issues; a "minor" info leak + a "minor" CSRF can compose into account takeover.
- Trust boundaries are often invisible in the code (a microservice that trusts its caller's auth header without re-verifying).
Output structure
Deliver: the data-flow diagram with trust boundaries marked, the attacker profiles in scope, the STRIDE threats per boundary ranked by impact × likelihood, the highest-value-asset attack path traced, the mitigations (or explicit accept-with-rationale), and the "assume-breach" containment check.
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.

