threat-model-analyst
Skill49 starsChanged 35 days agoMITView on GitHub
Use when a repository, system, or major change needs a structured STRIDE-A threat model — map architecture, data flows, trust boundaries, abuse cases, and prioritized findings, or update an existing model with a change-focused diff.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- MarieLynneBlock/arcanum-artifextheir own version, first seen Nov 1, 2026
- github/awesome-copilottheir own version, first seen Oct 25, 2026
- ReaperOAK/ForgeOStheir own version, first seen Jun 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- github/awesome-copilot★ 42ksame name
- MarieLynneBlock/arcanum-artifex★ 4same name
- ReaperOAK/ForgeOS★ 0same name
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 repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- design-to-codeSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- go-runtime-debuggingSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- terraform-safe-workflowSkill
- zoom-outSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Use when there is no prior threat model or when the whole system needs review.
- Distinctive: line 43
Use when a previous threat model exists and you need to compare the current system or a specific commit against that baseline.
- Very specific: line 94
Never treat intent ("we enforce mTLS") as proof that a control is active.
- Distinctive: line 128
When comparing against a prior threat model, explicitly classify each item as:
- Distinctive: line 144
Keep every element, flow, and threat ID stable: never renumber, reuse, or compact IDs after a deletion, and give new items new IDs.
- Distinctive: line 190
No one can name the trust boundaries in the system
“Common” is measured: kept by at least 6 in 10 of the 3 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 Model Analyst
Perform architecture-first security analysis using STRIDE-A: classic STRIDE plus explicit abuse-case thinking.
When to Use
- A new system or subsystem needs an initial threat model
- A major change landed and the question is "what changed security-wise?"
- You need to reason about trust boundaries, data flows, or risky integrations before implementation
- A security review needs architecture evidence, not only code-pattern scanning
When NOT to Use
| Instead of threat-model-analyst | Use |
| Code-level vulnerability scanning | security-scan or pr-security-review |
| Broad repository posture scoring | evaluate-repository |
| Agent-specific OWASP checklist review | agent-owasp-check |
| Supply-chain integrity validation | agent-supply-chain |
Modes
Single Analysis
Use when there is no prior threat model or when the whole system needs review.
Incremental Analysis
Use when a previous threat model exists and you need to compare the current system or a specific commit against that baseline.
Incremental mode is often the better day-to-day workflow because it highlights:
- new threats
- resolved threats
- still-present threats
- trust-boundary changes
- differences in severity or exploitability
Workflow
1. Define scope and assets
Clarify:
- what system or subsystem is in scope
- what assets matter most
- what actors exist
- what trust boundaries separate them
List obvious inputs and high-value outcomes before reading code in detail.
2. Build an architecture and data-flow sketch
You do not need perfect diagrams before analysis, but you do need a concrete model of:
- components
- entry points
- data stores
- external systems
- privileged execution zones
- trust boundaries between them
Represent the system as a lightweight DFD or component map if helpful.
2-A. Tie every claim to evidence — and rank the evidence
A threat model that states controls nobody checked reads as reassurance, not analysis. Give each
piece of evidence an ID (E001, E002, …) and make every boundary, flow, and control in the sketch
cite at least one — and hold every finding from step 3 onward to the same rule. When sources
disagree, the higher one decides the modeled state and the lower one is recorded as drift:
- Deployed or runtime configuration
- Current implementation and generated configuration at the recorded commit
- Tests, schemas, and interface contracts
- Maintained runbooks and technical docs
- Design docs, tickets, and names
- Assumptions
Never treat intent ("we enforce mTLS") as proof that a control is active. Mark controls
implemented, partial, or unknown; a partial or unknown control must name its gap and cannot
lower the risk score beyond what the evidence shows. When evidence is missing, record an unknown
item saying what would settle it. Adapted from hacks4snacks/tmforge (MIT).
3. Apply STRIDE-A to each component and flow
For each component or trust boundary, ask:
| Dimension | Question |
| Spoofing | Who could impersonate a user, service, or agent? |
| Tampering | What data or configuration could be modified without detection? |
| Repudiation | What actions would be hard to prove later? |
| Information Disclosure | What could leak across the boundary? |
| Denial of Service | What could exhaust or block the system? |
| Elevation of Privilege | What paths raise privileges unexpectedly? |
| Abuse | What realistic misuse path would an attacker or insider choose? |
4. Score and prioritize findings
For each finding, record:
- affected component or trust boundary
- short threat statement
- exploit path
- likely impact
- mitigating controls already present
- suggested remediation
Map to CWE, OWASP, or CVSS only when it clarifies the issue instead of bloating the report.
5. Run incremental analysis for changes
When comparing against a prior threat model, explicitly classify each item as:
- new
- resolved
- still present
- changed severity
This is especially useful for:
- new integrations
- changed authentication flows
- new background jobs or agents
- infrastructure moves
- CI/CD or deployment changes
Incremental comparison only works if the earlier model's identifiers still mean the same thing. Keep every element, flow, and threat ID stable: never renumber, reuse, or compact IDs after a deletion, and give new items new IDs. Renumbering silently re-attaches old findings, suppressions, and work-item links to the wrong elements.
6. Produce a concise decision-ready report
A good threat model report should leave the reader with:
- the architecture in scope
- the highest-risk boundaries
- the top findings in priority order
- what changed since the last model, if applicable
- the next mitigation step
Suggested structure:
## Architecture Overview
- ...
## Trust Boundaries
- ...
## STRIDE-A Findings
- [High] ...
- [Medium] ...
## Change Diff
- New: ...
- Resolved: ...
- Still present: ...
## Next Mitigations
- ...Common Rationalizations
| Rationalization | Reality |
| "We'll just scan the code for vulnerabilities." | Code scanning misses architecture flaws, broken trust boundaries, and misuse paths. |
| "The old threat model is close enough." | Architecture drift makes stale threat models dangerously reassuring. |
| "Abuse cases are too speculative." | Real attackers optimize for abuse paths, not textbook categories. |
Red Flags
- No one can name the trust boundaries in the system
- External systems are treated as trusted by default
- Authentication or authorization changes are documented only at code level
- A prior threat model exists but no change diff was done after a major update
Verification
- The system scope and assets are explicit
- Components, flows, and trust boundaries were identified
- STRIDE-A was applied to each meaningful boundary or component
- Findings are prioritized instead of left as an unranked brainstorm
- Incremental changes are called out separately when a baseline exists
See Also
security-scan- inspect code-level vulnerabilities after the model identifies hot spotsagent-owasp-check- review agent-specific OWASP ASI riskssecurity-audit- broader workflow for OWASP plus STRIDE review
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.

