threat-modeling
Skill1 starsChanged 15 days agoApache-2.0View on GitHub
Build a repository-grounded threat model for an application, service, API, agent workflow, or architecture by mapping assets, actors, trust boundaries, entrypoints, attacker capabilities, abuse paths, and mitigations. Use only for explicit threat-model, attack-surface, DFD, STRIDE, PASTA, LINDDUN, or abuse-path requests; use security-review for ordinary vulnerability review. Report by default and do not probe external systems.
45 other projects use a version of this.
Adopted by
Most recently taken up by
- kinhluan/skillstheir own version, first seen Nov 8, 2026
- AxlZero21/Skillstheir own version, first seen Nov 8, 2026
- bepaldes/heimdall-agenttheir own version, first seen Nov 8, 2026
- reddygopalkrishna/developer-agent-skillstheir own version, first seen Nov 8, 2026
- SWEStash/swe-workflow-skillstheir own version, first seen Nov 8, 2026
- nledford/engineering-review-boardtheir own version, first seen Nov 3, 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
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
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 3 projects that use this
jefflesterSkillapi-security
API security best practices and common vulnerability prevention. Enforces security checks for authentication, input validation, SQL injection, XSS, and OWASP Top 10 vulnerabilities. Use when building or modifying APIs.
Also in 3 projects that use this
Other versions45 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 45
- briiirussell/cybersecurity-skills★ 489same 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
- kumaran-is/claude-code-onboarding★ 35same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- ulises-jeremias/agent-toolkit★ 19same name
- Indium-AI-Labs/indium-agentkit★ 18same name
35 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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adversarial-pr-reviewSkill
- ai-slop-detectorSkill
- architecture-reviewSkill
- codebase-orientationSkill
- code-reviewSkill
- dependency-upgradeSkill
- documentation-reviewSkill
- frontend-quality-reviewSkill
- git-github-workflowSkill
- harness-adaptationSkill
- implementation-planningSkill
- parallel-multi-agentSkill
- quality-hardeningSkill
- reduce-code-sizeSkill
- repository-guidance-authoringSkill
- requirements-and-designSkill
- review-feedback-resolutionSkill
- rules-and-skills-auditSkill
- security-reviewSkill
- skill-authoringSkill
- skill-discoverySkill
- skill-optimizerSkill
- skill-reviewerSkill
- systematic-debuggingSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 40 edited versions we read keep these.
6
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
- Distinctive: line 26
Side effects: read-only by default; do not contact external systems, access credentials, or modify files without separate explicit …
- Distinctive: line 31
Use the method explicitly requested by the user.
- Distinctive: line 48
When using STRIDE, apply it systematically across every identified trust boundary:
- Distinctive: line 83
Do not claim a component or control from a filename or generic framework expectation.
- Distinctive: line 106
Use the following structure for the default or STRIDE method.
- Very specific: line 132
Use security-review for a concrete code/configuration change or suspected vulnerability and for safe local exploitability checks.
- Very specific: line 134
Use architecture-review for non-security redesign options.
- Very specific: line 136
Use quality-hardening for security regression tests after the model, not as a replacement for modeling.
- Distinctive: line 139
Never label a system secure because the threat list is short or static checks are clean.
“Common” is measured: kept by at least 6 in 10 of the 40 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
Contract
- Input: repository or system scope, deployment and exposure assumptions, actors, assets, known components, and the user's authorized review level.
- Output: a concise threat model containing system boundaries, assets, attacker capabilities and non-capabilities, realistic abuse paths, likelihood/impact reasoning, existing and recommended mitigations, assumptions, questions, and coverage gaps.
- Owner: design-time security modeling and abuse-path analysis.
- Non-goals: unrestricted penetration testing, live exploit traffic,
compliance certification, incident response, or a substitute for a focused
security-reviewof an implementation. - Side effects: read-only by default; do not contact external systems, access credentials, or modify files without separate explicit authority.
Method selection, threat categories, and AI vectors
Use the method explicitly requested by the user; use STRIDE as the default only when no method is specified. Do not relabel a STRIDE table as PASTA or LINDDUN, and do not silently substitute another method when evidence is missing.
- A LINDDUN review considers linkability, identifiability, non-repudiation, detectability, disclosure of information, unawareness, and non-compliance across applicable personal-data flows.
- A PASTA review structures evidence through objectives, technical scope, application decomposition, threat analysis, vulnerability analysis, attack modeling, and risk and impact analysis.
- Combining methods requires an explicit request or a stated reason. Mark unsupported stages or categories as unassessed.
- Personal-data flows are an explicit reason to append a LINDDUN/privacy pass, even when STRIDE is the default. Assess applicable LINDDUN categories and record the added method in the report; if privacy analysis is out of scope, state that gap and the reason.
When using STRIDE, apply it systematically across every identified trust boundary:
- Spoofing: Impersonating users, services, webhook senders, agent identities, or non-network identities (forged email/notification senders, spoofed internal tooling, phishing UI that misdirects a user or agent).
- Tampering: Modifying payloads in transit, poisoning cache/persistence, or tampering with model context and prompt templates.
- Repudiation: Performing sensitive or destructive actions without immutable audit logs.
- Information Disclosure: Exposing credentials, PII, cross-tenant data, internal stack traces, system prompts, or secrets that reach model context (secret pasted into a prompt, sensitive file read into context, or a log line the model can see).
- Denial of Service: Exhausting API rate limits, computational budgets, worker memory, or token context windows.
- Elevation of Privilege: Escaping container/sandbox boundaries, escalating API roles, or executing unauthorized agent tools.
For AI and Agentic Workflows, explicitly evaluate:
- Indirect Prompt Injection: Untrusted inputs (user tickets, scraped web pages, third-party files) overriding agent instructions.
- Tool Privilege Escalation & Confused Deputy: Agent executing destructive tools (file writes, shell execution, database mutations) on behalf of unauthenticated or unauthorized inputs.
- Data Exfiltration via Rendered Output: Leaking sensitive context via markdown image URLs, webhooks, or automated outbound network requests.
- Context & Skill Poisoning: Malicious external skills, untrusted repository rules, or poisoned prompt fixtures compromising agent invariants.
Workflow
- Confirm the explicit trigger and scope. Identify the requested path, deployment model, internet exposure, authentication expectations, and data sensitivity. Ask only the questions that materially change threat ranking; preserve unresolved assumptions if the user cannot answer.
- Extract the system model from evidence. Identify components, entrypoints,
data stores, external integrations, runtime versus CI/dev/test tooling, and
source-of-truth architecture.
- Enumerate data flows before boundaries: For each component, list the concrete flows (external input → validation/processing → datastore/downstream/exit), including async jobs, webhooks, caches, and background workers. Derive trust boundaries from where each flow crosses a trust change, not from component names.
- Do not claim a component or control from a filename or generic framework expectation.
- Map boundaries and assets. Record concrete edges between components with protocol, identity, encryption, validation, rate-limit, or serialization details. Identify credentials, sensitive data, integrity-critical state, availability-critical resources, build artifacts, and audit records.
- Calibrate attackers. Describe realistic capabilities based on exposure, tenancy, deployment, and access assumptions. Explicitly record important non-capabilities to avoid inflated severity.
- Enumerate and prioritize abuse paths. Tie each threat to an attacker goal, boundary, asset, precondition, and impact. Keep the set small and high quality; rank likelihood and impact with short evidence-backed reasons.
- Recommend and check coverage. Distinguish existing controls from recommendations and tie each mitigation to a component, boundary, or entrypoint. Confirm that every discovered boundary and entrypoint is represented, or state why it is out of scope.
- Report and stop. State assumptions, unanswered questions, threats, evidence, mitigations, and residual risk. Stop before live probing, credentialed testing, destructive activity, or implementation unless the user separately authorizes it.
Threat model report template
Use the following structure for the default or STRIDE method. For an explicitly requested PASTA or LINDDUN review, preserve that method's stages or categories and adapt the evidence tables rather than forcing a STRIDE-only report:
1. System decomposition & trust boundaries
| Boundary ID | Source Component | Target Component | Protocol / Transport | Auth / Trust Level |
2. Attacker profiles & capabilities
| Persona | Access Level | Motive & Capabilities | Explicit Non-Capabilities |
3. Prioritized abuse paths
| Threat ID | Method / Category | Trust Boundary | Preconditions | Abuse Path & Impact | Likelihood | Existing Control | Recommended Mitigation |
4. Residual risks, assumptions, & unverified areas
- Assumptions: List critical deployment/environmental assumptions.
- Coverage gaps: List uninspected components or missing documentation.
Routing boundaries
- Use
security-reviewfor a concrete code/configuration change or suspected vulnerability and for safe local exploitability checks. - Use
architecture-reviewfor non-security redesign options; combine only when the user requests both architecture and threat modeling. - Use
quality-hardeningfor security regression tests after the model, not as a replacement for modeling.
Never label a system secure because the threat list is short or static checks are clean. Keep observations, assumptions, inferences, and unknowns separate.
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.

