Security threat model

From seaworld008/Commonly-used-high-value-skills · View interactive version

Security threat model is an AI agent skill from the GitHub repository seaworld008/Commonly-used-high-value-skills. Use when creating threat models from codebases, architectures, assets, trust boundaries, attacker capabilities, abuse paths, and mitigation plans.

How to use this skill

Skill file

Threat Model Source Code Repo

Deliver an actionable AppSec-grade threat model that is specific to the repository or a project path, not a generic checklist. Anchor every architectural claim to evidence in the repo and keep assumptions explicit. Prioritizing realistic attacker goals and concrete impacts over generic checklists.

Quick start

1) Collect (or infer) inputs:

Workflow

1) Scope and extract the system model

2) Derive boundaries, assets, and entry points

3) Calibrate assets and attacker capabilities

4) Enumerate threats as abuse paths

5) Prioritize with explicit likelihood and impact reasoning

6) Resolve material uncertainties

7) Recommend mitigations and focus paths

8) Run a quality check before finalizing

Risk prioritization guidance (illustrative, not exhaustive)

References

Only load the reference files you need. Keep the final result concise, grounded, and reviewable.

Example Threat Entry

### Threat: Untrusted file upload reaches parser without schema checks
- Asset: internal document processing workers
- Entry point: `/api/uploads`
- Likelihood: medium
- Impact: high
- Priority: high
- Evidence: upload route accepts arbitrary MIME types and forwards to parser job
- Mitigation: enforce MIME allowlist, file size caps, and sandboxed parsing worker
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.