threat-modeling
Skill1 starsChanged 33 days agoMITView on GitHub
Produce a lightweight, evidence-based threat model — data flows, trust boundaries, STRIDE threats, risk ranking and mitigations — for a system or feature. Use when designing a new service, exposing an API, adding an AI agent or tool integration, or before a security review.
54 other projects use a version of this.
Adopted by
Most recently taken up by
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Nov 29, 2026
- Shards-foundation/shards-skillstheir own version, first seen Nov 29, 2026
- EvilFreelancer/secstheir own version, first seen Nov 28, 2026
- saizul/security-audit-skillstheir own version, first seen Nov 22, 2026
- jamestorrevillas/dev-skillstheir own version, first seen Nov 22, 2026
- shahvatsalofficial/archsutra-aitheir own version, first seen Nov 22, 2026
Used with
Projects with it also use iac-security, container-security 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.
hardw00tSkilliac-security
Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep. Orchestrates Checkov, tfsec, Terrascan, KICS, kubesec, kube-linter, Polaris, cfn-lint/cfn-nag, and OPA/Conftest. Use when auditing IaC for misconfigurations, scanning Terraform plans, validating K8s security policies, checking cloud infrastructure compliance, or authoring custom policy-as-code (Rego).
Also in 4 projects that use this
vbrevikSkillcontainer-security
Scan container images, Dockerfiles, docker-compose files, and Kubernetes manifests for security misconfigurations and vulnerabilities. Uses Trivy for image/IaC scanning and Kubescape for K8s policy compliance. Falls back to regex-based Dockerfile and K8s YAML analysis when tools are unavailable. Produces STIG V-ID-tagged findings for /stig-compliance pipeline. Use when (1) reviewing Docker or K8s configuration changes, (2) scanning container images for OS-level CVEs, (3) validating K8s RBAC and NetworkPolicy configuration, (4) before deployment. Works air-gapped with pre-downloaded vulnerability database.
Also in 4 projects that use this
wgpsecSkillprompt-injection
AI/LLM 间接 Prompt 注入攻击。当目标 AI 系统会处理外部数据源(网页、文档、邮件、数据库、API 返回)时使用。覆盖间接注入、工具链劫持、RAG 投毒、数据外泄等技术。OWASP LLM Top 10 #1 漏洞类别
Also in 4 projects that use this
narlyseorgSkillsecure-code-review
Use when reviewing source code for security vulnerabilities, performing static analysis of a codebase, auditing code for injection flaws, authentication issues, cryptographic weaknesses, insecure deserialization, SSRF, path traversal, memory safety bugs, hardcoded secrets, or misconfigurations. Use when the user asks to find security bugs in code, assess code quality from a security perspective, or review pull requests for security implications. Use when performing dependency audits, secrets scanning, or configuration review of application source.
Also in 4 projects that use this
allanninalSkillthreat-hunting
Hunt threats using Sigma detection rules and security analysis techniques. Use when investigating security incidents, creating detection rules, or analyzing suspicious activity.
Also in 3 projects that use this
testified-ossSkillexploratory-testing
Guide exploratory testing sessions including charter creation, session-based testing, heuristics application, and finding documentation. Use when planning exploratory testing, conducting test sessions, or documenting discoveries.
Also in 3 projects that use this
Other versions54 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 54
- briiirussell/cybersecurity-skills★ 537same name
- fr33d3m0n/skill-threat-modeling★ 347same name
- proflead/codex-skills-library★ 153same name
- hardw00t/ai-security-arsenal★ 101same name
- nahid-sparktales/agent-dispatcher★ 59same name
- mn-youssef/security-skills★ 47same name
- nimadorostkar/Claude-Skills-collection★ 41same name
- kumaran-is/claude-code-onboarding★ 35same name
- ulises-jeremias/agent-toolkit★ 28same name
- JPeetz/agent-skills★ 21same name
44 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
- instructions/AGENTS.mdAGENTS.md
- accessibility-reviewSkill
- agent-evaluationSkill
- agent-guardrailsSkill
- agenthub-routerSkill
- ai-red-teamingSkill
- ansible-reviewSkill
- api-designSkill
- api-integrationSkill
- architecture-decisionSkill
- backup-restoreSkill
- caching-strategySkill
- chaos-engineeringSkill
- ci-cd-pipeline-designSkill
- cloud-cost-optimizationSkill
- cloud-iam-least-privilegeSkill
- code-reviewSkill
- container-image-optimizationSkill
- cyber-resilience-actSkill
- database-migrationsSkill
- data-pipeline-reviewSkill
- data-privacySkill
- data-quality-checksSkill
- debugging-root-causeSkill
- dependency-auditSkill
- dependency-upgradeSkill
- disaster-recovery-drillSkill
- docker-hardeningSkill
- documentationSkill
- dora-readinessSkill
- dpiaSkill
- email-deliverabilitySkill
- embedding-model-selectionSkill
- error-handling-reviewSkill
- eu-ai-act-readinessSkill
- eu-data-sovereigntySkill
- european-accessibility-actSkill
- event-driven-architectureSkill
- feature-flagsSkill
- frontend-reviewSkill
- gdpr-dsar-handlingSkill
- github-actionsSkill
- gitlab-ciSkill
- git-workflowSkill
- go-developmentSkill
- graphql-api-reviewSkill
- helm-chart-reviewSkill
- i18n-localizationSkill
- incident-responseSkill
- java-spring-reviewSkill
- kubernetes-reviewSkill
- linux-server-hardeningSkill
- llm-cost-analysisSkill
- llm-gateway-routingSkill
- llm-observabilitySkill
- llm-output-evaluationSkill
- llm-structured-extractionSkill
- load-testingSkill
- local-llm-servingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 48 edited versions we read keep these.
2
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 23
Revisit: when architecture, data classification or exposure changes.
- Distinctive: line 35
Every trust boundary has at least one threat considered for each relevant STRIDE category, or a written reason why it does not apply.
“Common” is measured: kept by at least 6 in 10 of the 48 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
Goal
Answer four questions with artefacts the team can maintain: What are we building? What can go wrong? What are we doing about it? Did we do a good job?
Inputs
- Architecture description or diagram, deployment environment, data classification.
- Actors (users, administrators, services, AI agents), external dependencies, compliance requirements.
Procedure
- Scope. One feature or service per model. Write assumptions explicitly (for example "the cloud provider is trusted").
- Data flow diagram. External entities, processes, data stores and flows, with trust boundaries where privilege or control changes (internet → API, service → database, agent → tool). Text or Mermaid is fine.
- Enumerate threats per element and boundary with STRIDE (see
references/stride.md). For AI features add prompt injection, tool misuse, data exfiltration through model output and over-broad agent permissions. - Rate risk with a simple, consistent scale: likelihood × impact (1–3 each), or the organisation's standard. Record the reasoning, not just the number.
- Decide per threat: mitigate (control and owner), accept (who accepted it and why), transfer, or eliminate (remove the feature or data).
- Map mitigations to verification: a test, configuration check, monitoring alert or review step.
- Revisit when architecture, data classification or exposure changes; keep the model next to the code.
Example fixture
Flow: Browser --(HTTPS, session cookie)--> API --(SQL)--> Postgres
Boundary: internet | API
T1 Spoofing: stolen session cookie reused → mitigation: HttpOnly+Secure+SameSite, short idle timeout, re-auth for sensitive actions
T2 Tampering: order total modified client-side → mitigation: server recalculates totals; test rejects mismatched total
T3 Info disclosure: verbose errors leak stack traces → mitigation: generic error responses; test asserts no trace in 500 bodyAcceptance checks
- Every trust boundary has at least one threat considered for each relevant STRIDE category, or a written reason why it does not apply.
- Each high-risk threat has an owner and a verification method.
- Accepted risks name who accepted them and when.
- Assumptions are listed and reviewable.
Output
Diagram, threat table (ID, element, STRIDE category, scenario, likelihood, impact, decision, mitigation, verification, owner) and open questions.
Safety
A threat model is analysis, not authorization to test. Do not perform active exploitation of systems without an explicit, scoped authorization.
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.

