threat-modeling
Skill18 starsChanged 3 months agoMITView on GitHub
STRIDE + agentic threat modeling — architecture discovery → assets/trust boundaries/data flows/actors → STRIDE + agentic threats → risk-ranked mitigations → incremental review → security acceptance criteria. Swarm-friendly.
- Reads credentials
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 9 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
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
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 repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- reviewSkill
- mcp-auditSkill
- owasp-agentic-reviewSkill
- supply-chain-auditSkill
- architecture-diagramSkill
- c4-modelSkill
- aws-well-architected-reviewSkill
- cloud-design-patternsSkill
- assistantSkill
- dev-companionSkill
- onboardingSkill
- output-handshakeSkill
- pr-fallbackSkill
- projectSkill
- workspace-knowledge-syncSkill
- workspaceSkill
- dbt-validationSkill
- snowflake-validationSkill
- adrSkill
- agreementSkill
- bugSkill
- decision-logSkill
- development-workflowSkill
- epicSkill
- incidentSkill
- management-unit-assessmentSkill
- meeting-minutesSkill
- planningSkill
- prdSkill
- project-assessment-evidenceSkill
- project-assessmentSkill
- spikeSkill
- taskSkill
- technical-unit-assessmentSkill
- trdSkill
- user-storySkill
- workflow-client-bootstrapSkill
- workflow-generic-projectSkill
- work-itemSkill
- bragSkill
- brag-slimSkill
- design-assessmentSkill
- design-improvementSkill
- figma-code-connect-componentsSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-implement-designSkill
- figmaSkill
- frontend-design-reviewSkill
- frontend-designSkill
- web-design-guidelinesSkill
- fix-merge-conflictsSkill
- gh-address-commentsSkill
- gh-contribution-plannerSkill
- gh-fix-ciSkill
- github-cli-workflowSkill
- gitlab-cli-workflowSkill
- worktreeSkill
- clickup-cliSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
2
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
- Very specific: line 19
Before security-reviewer / owasp-agentic-review prioritizes mitigations
- Very specific: line 88
Do not hallucinate STRIDE findings without evidence (cite file:line or registry path).
- Distinctive: line 89
Do not collapse STRIDE into single category — one flow often maps to S+T+E.
- Very specific: line 90
Do not claim full coverage from automated checks alone — mark Not assessed (requires manual review) where needed (per #380 a11y analog).
- Distinctive: line 91
Do not run full model on every file change — use incremental mode.
“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 — STRIDE + Agentic Threats
Guide architecture → threat model → security review → security acceptance criteria. Produces a STRIDE table augmented with agentic-specific threats (prompt injection, tool poisoning, excessive agency, inter-agent trust), risk-ranked with mitigations and acceptance criteria.
Evidence-linked, portable, incremental. Architecture discovery reuses C4/Mermaid inputs (#369); outputs feed agentic-security-reviewer + owasp-agentic-review + security-reviewer.
Sources: Microsoft STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) + OWASP Threat Modeling + OWASP Agentic Security (prompt injection, tool poisoning, excessive agency, data leakage, insecure plugin/MCP). See https://learn.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats and https://owasp.org/www-project-threat-model/ .
When to use
- New system/C4 design (
architectoutput), new data flow (user → agent → tool → external), new trust boundary (skill composition, MCP addition, swarm handoff) - Before
security-reviewer/owasp-agentic-reviewprioritizes mitigations - On architecture change — incremental mode re-runs only on deltas
Inputs
| Input | Source | Required |
| Architecture diagram | architect / C4/Mermaid (#369) — docs/architecture/*.md, Mermaid C4Context/flowchart | Yes (or textual description for small scopes) |
| Assets | Code + docs: skills, agents, MCP registry, secrets, data stores | Yes |
| Trust boundaries | User ↔ agent, agent ↔ MCP, agent ↔ external host, inter-agent, skill composition | Yes |
| Data flows | audit-capability.py shell/network/MCP/hooks surface, registry YAML, hook configs | Yes |
| Actors | Users, agents (by persona), MCP servers, external services | Yes |
Outputs
threat-model.mdperreferences/threat-model-template.md: assets/boundaries/flows/actors → STRIDE + agentic threats table (severity, likelihood, impact, confidence, evidence) → mitigations → security acceptance criteria- Incremental diff when
architecture discoverychanged - Handoff:
agentic-security-reviewerconsumes findings for OWASP review;security-reviewerfor app-layer vulns
STRIDE + agentic checklist
| STRIDE | Meaning | Agentic extension | Evidence to check |
| S Spoofing | Impersonate user/agent/MCP | Identity spoofing (AGNT01), prompt hierarchy violation (AGNT06) | agents/*/AGENT.md identity, MCP auth.env, delegation tables |
| T Tampering | Modify data/code/instructions in transit | Tool poisoning (AGNT02), training-data/supply-chain poisoning (LLM03) | mcp/registry/*.yaml tool descriptions with imperative injection, capabilities/upstream.lock digests |
| R Repudiation | Deny action without audit trail | Missing output-handshake, Swarm handoff without logging | output-handshake gates, ops/swarm-handoff audit |
| I Information disclosure | Leak secrets/PII via tool output | Data leakage (AGNT04), sensitive info disclosure (LLM06), model theft (LLM10) | security.network_hosts, secret_storage, scans for ghp_, sk-, PII |
| D Denial of service | Exhaust tokens/compute | Model DoS (LLM04) — unbounded skill context, swarm fan-out | Skill token count, subagent fan-out limits, docs/research context audit |
| E Elevation of privilege | Gain permissions beyond least privilege | Excessive agency (LLM08), permission creep (AGNT05), insecure plugin design (LLM07) | approval.default, security.dangerous_permissions, composed skill chain |
Map each finding to STRIDE letter(s) + agentic IDs (LLM01–LLM10, AGNT01–AGNT06) where applicable. One finding can map to multiple STRIDE categories (e.g., tool poisoning = T + E).
Workflow
- Discover scope: Identify assets + trust boundaries + data flows + actors from architecture diagram (or
git diff HEADdeltas in incremental mode). Enumerate: skills (skills/**), agents (agents/**), MCP servers (mcp/registry/*.yaml+ templates), hooks, subagents, external hosts. - Enumerate threats: For each asset/flow/boundary, apply STRIDE + agentic checklist above. Ask per element: who can spoof? what can be tampered? what lacks repudiation? what leaks? what DoS? what elevates? Add agentic prompts: can tool description inject? can MCP exfiltrate? can agent over-act?
- Risk-rank: Score
Impact(who/what compromised) ×Likelihood(Low/Med/High) ×Confidence(High/Med/Low) →SeverityCritical/High/Medium/Low (or Blocking/Major/Minor). Cite evidence:file:line, registry YAML path,audit-capability.pyoutput, diagram node. - Mitigate + acceptance criteria: Per finding:
mitigation(least-privilege, pin + provenance, sanitize, gate),residual risk,security acceptance criteria(testable, e.g., "tool descriptions contain no imperative injectionviaaudit-capability.pyclean"). Applyoutput-handshakebefore final artifact. - Incremental review: On architecture change, diff
threat-model.mdprevious version: keep unchanged findings, re-evaluate only changed assets/flows. For large systems, shard by trust boundary or swarm agent.
Risk table shape
| # | Asset / Flow (diagram ref) | Trust boundary | STRIDE | Agentic ID | Threat (observation, file:line) | Attack path (actor → boundary → asset) | Impact | Likelihood | Severity | Confidence | Mitigation | Residual | Acceptance criteria | Evidence |
Sort by Severity (Critical → Low), then Likelihood. Include Residual risk after mitigation.
Incremental mode
- Input:
git diff+ previousthreat-model.md(from repodocs/security/threat-model*.mdor prior PR). - Behavior: Carry forward findings for unchanged elements with
status: unchanged; marknew/updated/removedfor deltas; re-rank only affected rows. - Swarm-friendly: Split large architectures by trust boundary (e.g.,
user ↔ agentvsagent ↔ MCP) and run parallel subagents; merge tables, dedupe by asset+STRIDE.
Collaboration
| Need | Delegate to |
| System design, C4/Mermaid, ADRs | architect / platform-engineer (references/WORKSTATION_OPS.md) — provides Inputs architecture diagram |
| App/code vulns (OWASP Web) | security-reviewer / agents/security-reviewer — consumes threat model for prioritized review |
| Agentic / LLM / MCP / supply-chain | agentic-security-reviewer + agentic-security/owasp-agentic-review (LLM01-10 + AGNT01-06) — joint risk table |
| Full supply-chain surface | agentic-security/supply-chain-audit |
| MCP config/impl depth | agentic-security/mcp-audit |
| Output gate | output-handshake |
| Swarm decomposition | ops/swarm-handoff |
Sequence: architecture discovery → threat-modeling (this skill) → security review (owasp-agentic + security-reviewer) → security acceptance criteria.
Anti-patterns
- Do not hallucinate STRIDE findings without evidence (cite
file:lineor registry path). - Do not collapse STRIDE into single category — one flow often maps to S+T+E.
- Do not claim full coverage from automated checks alone — mark
Not assessed (requires manual review)where needed (per #380 a11y analog). - Do not run full model on every file change — use incremental mode.
References
references/threat-model-template.md— report template- Microsoft STRIDE: https://learn.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats
- OWASP Threat Modeling: https://owasp.org/www-project-threat-model/
- OWASP Agentic Security: https://owasp.org/www-project-agentic-security/
mcp/registry/*.yaml+ static Grep for shell/network/mcp/hooks (repo checkout/CI:scripts/audit-capability.vsh)architect/ C4/Mermaid (#369) — discovery inputs
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.

