threat-modeling
Skill0 starsChanged 5 months agoApache-2.0View on GitHub
Build a structured threat model — assets, actors, trust
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 7 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
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
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 repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-implementationSkill
- accessibility-reviewSkill
- api-changelogSkill
- api-designSkill
- auth-designSkill
- caching-strategiesSkill
- chaos-experiment-designSkill
- ci-cd-pipelinesSkill
- cli-designSkill
- cloudformation-reviewSkill
- codebase-orientationSkill
- code-commentsSkill
- code-reviewSkill
- commit-messagesSkill
- container-reviewSkill
- database-indexingSkill
- database-migrationsSkill
- debuggingSkill
- dependency-upgradesSkill
- design-system-contributionSkill
- design-tokensSkill
- desktop-releaseSkill
- error-handlingSkill
- feature-flagsSkill
- finops-reviewSkill
- frontend-performanceSkill
- git-conflict-resolutionSkill
- graphql-schema-designSkill
- helm-chart-scaffoldingSkill
- i18n-reviewSkill
- kubernetes-reviewSkill
- load-test-planningSkill
- logging-observabilitySkill
- message-queue-designSkill
- migration-playbooksSkill
- mobile-releaseSkill
- multi-region-active-activeSkill
- observability-alertsSkill
- openapi-spec-designSkill
- partner-api-integrationSkill
- performance-reviewSkill
- pr-descriptionsSkill
- prompt-injection-hardeningSkill
- pulumi-reviewSkill
- rate-limitingSkill
- refactor-planningSkill
- secrets-managementSkill
- security-reviewSkill
- sql-query-reviewSkill
- terraform-reviewSkill
- test-generationSkill
- webhook-designSkill
- websocket-designSkill
- ab-test-analysisSkill
- anomaly-detectionSkill
- cost-anomaly-investigationSkill
- csv-analysisSkill
- data-cleaningSkill
- data-contract-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 68
Every threat names an actor, a path, and a lost asset.
- Distinctive: line 70
Do not invent architecture.
- Distinctive: line 79
Never claim "no residual risk".
- Distinctive: line 85
AI / tool agents: treat tools, retrieval corpora, and prompt channels as trust boundaries.
“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
Map how the system can be abused before arguing about individual lines. Prefer a short, decision-ready model over a novel.
For findings in a concrete diff, use security-review. For prompt /
tool-using agents, also use prompt-injection-hardening. For auth
mechanics, use auth-design.
Workflow
- Scope: what is in, what is out, and the business consequence of failure (money, PII, safety, integrity, availability).
- Assets: data stores, secrets, admin actions, model weights, outbound capabilities.
- Actors: anonymous, user, other tenant, insider, supplier, compromised dependency, bot.
- Diagram in words: clients → edges → app → data → third parties. Mark trust boundaries (browser, VPC, vendor, tenant).
- STRIDE per boundary / flow (only what applies): Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege.
- Top threats: likelihood × impact in plain language; skip theater (nation-state on a weekend side project unless asked).
- Mitigations: existing control, gap, owner. Residual risk last.
Output format
## Threat model: <system>
**Scope / out of scope:** …
**Assumptions:** …
### Assets
…
### Actors
…
### Trust boundaries
…
### Threats
| ID | STRIDE | Flow / component | Abuse | Impact | Mitigation | Residual |
### What to build or review next
1. …Rules
- Every threat names an actor, a path, and a lost asset. No bare "consider adding WAF".
- Do not invent architecture. If the diagram is missing, state assumptions or ask one clarifying question.
- Mitigations must be specific (control + where it lives). "Use security best practices" is not a mitigation.
- Rank. A 30-row STRIDE table with no priority is a failed model.
- Data classification drives impact. Public marketing pages are not PII stores.
- Include supply chain and admin/support paths when they can mint or read the same assets as users.
- Never claim "no residual risk".
Edge cases
- Code-only request: still produce the model first, then list
the 3–5 reviews that would falsify it (
security-reviewtargets). - AI / tool agents: treat tools, retrieval corpora, and prompt channels as trust boundaries.
- Regulated data: name the obligation (retention, access logs) as a threat if missing; do not give legal advice.
- Tiny change: a one-endpoint model is fine; do not expand to the whole company.
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.

