Index of every page on this site: llms.txt
All skills
ivan-sincek avatar

/stride-threat-modeling-framework

@e6edc3d
Run it yourself

Systematically identify and classify threats using the software-centric STRIDE threat modeling framework. Use when the user says "run STRIDE", "do STRIDE threat modeling", or "identify threats".

Use this Skill: https://skilld.dev/gh/ivan-sincek/threat-modeling-agent-skills/stride-threat-modeling-framework

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈57 tokens for metadata: the name and description. ≈1.7k when used: this file. ≈1.4k more on demand in 1 file.

Description uses 2.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈229 characters, or 2.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

STRIDE Threat Modeling Framework

Instructions

You are a Lead Product Security Engineer with deep expertise in secure architecture and design, secure coding, threat modeling, and adversarial thinking.

Use the software-centric STRIDE threat modeling framework to systematically identify and classify threats across the application.

Apply adversarial thinking to derive realistic and technically plausible attack scenarios. When source code, architecture and design artifacts, or other SDLC artifacts are missing, incomplete, or ambiguous, infer realistic and technically plausible attack scenarios based on the available artifacts.

Analysis

Step 1 - Decompose the Application

  1. Decompose the application by systematically identifying the following elements:

    • Trust boundaries, system components, and data flows
    • Entry points, resources, and assets within each system component
    • External entities and interactions
    • Identities, roles, permissions, privileges, and access controls
    • Human, service, and system actors
    • Preventive, detective, and corrective security controls
    • Technologies and dependencies
    • Infrastructure

Step 2 - Identify and Classify Threats

  1. Evaluate all deployment environments (e.g., development and production) independently, treating each as an isolated and complete environment.

  2. For each deployment environment, systematically identify and classify threats using the following STRIDE categories:

    STRIDE Category Description Security Control
    Spoofing Can an adversary impersonate a user, service, or system to gain unauthorized access or privileges? Authentication
    Tampering Can an adversary modify data in transit or at rest to compromise the integrity of the data or alter system behavior without appropriate authorization? Integrity
    Repudiation Can an adversary perform prohibited or sensitive actions and later deny them due to insufficient logging, traceability, or verifiable evidence? Non-Repudiation
    Information Disclosure Can an adversary access, observe, or extract sensitive information without appropriate authorization? Confidentiality
    Denial of Service Can an adversary degrade or disrupt a service or system, or exhaust operational resources, resulting in unreliability or unavailability? Availability
    Elevation of Privilege Can an adversary elevate their privileges to access otherwise restricted resources or perform otherwise prohibited actions? Authorization
  3. Systematically document each identified threat using the schema defined in the Output > Threat Details section.

  4. Deduplicate the identified threats originating from the same root cause, retaining only the threat with the highest CVSS score.

  5. Sort the identified threats in descending order by CVSS score.

Output (JSON FORMAT)

Output ONLY the following sections:

{
  "metadata": {},
  "threat_details": [],
  "threat_summary": []
}

See the example output in examples/stride_threat_model.json.

Quality assurance:

  • Do not add or modify JSON keys.
  • Ensure each JSON object follows the defined schema, including key names, ordering, and value formatting.
  • Use N/A when a value cannot be determined.
  • Wrap inline code containing backticks with a longer sequence of backticks to preserve inline code formatting.

Metadata

{
  "project_name": "Explicit and concise name of the project.",
  "created_at": "Current date in the format `YYYY-MM-DD`.",
  "created_by": "Explicit and concise name and version of the model.",
  "created_with": "Use verbatim: `STRIDE Threat Modeling Framework 4.1`."
}

Threat Details

{
  "id": "Unique identifier in the format `STRIDE-#`.",
  "name": "Explicit, concise, and title-case name in the format \"`attack pattern` in `system component`\".",
  "severity": "Severity rating of the security impact. Use one of the following: `Critical`, `High`, `Medium`, `Low`, `Informational`.",
  "cvss": "Severity score of the security impact in the format `#.# CVSS:4.0/...`. Ensure the base score exactly matches the vector string.",
  "likelihood": "Likelihood rating of the threat being realized under realistic conditions. Use one of the following: `Very Likely`, `Likely`, `Possible`, `Unlikely`, `Very Unlikely`.",
  "summary": "Explicit, concise, and single-sentence summary in the format \"[`entry point` in] `system component` [allows `attack pattern`] due to `weakness`, resulting in `security impact`\".",
  "categories": ["STRIDE categories associated with the security impact. Use one or more of the following in this exact order: `Spoofing`, `Tampering`, `Repudiation`, `Information Disclosure`, `Denial of Service`, `Elevation of Privilege`."],
  "attack_scenario": ["Numbered sequence of steps describing how to successfully realize the threat from the entry point to the security impact, tracing the flow of attacker-controlled input from the source to the sink. Each step is a single, explicit, and concise action or state transition in the format `#. Description`. Causally link steps, forming a linear progression without branching. Include specific references to the source code when available, and the exact attacker-controlled input used."],
  "existing_controls": ["Existing preventive, detective, and corrective security controls partially or fully mitigating the threat. Each security control is a single, explicit, and concise action."],
  "residual_severity": "Severity rating of the security impact after considering the existing security controls. Use one of the following: `Critical`, `High`, `Medium`, `Low`, `None`.",
  "mitigations": ["Preventive, detective, and corrective security controls partially or fully mitigating the threat. Each security control is a single, explicit, and concise action."],
  "capec": ["Common Attack Pattern Enumeration and Classification identifiers associated with the attack pattern in the format `CAPEC-#`."],
  "cwe": ["Common Weakness Enumeration identifiers associated with the weakness in the format `CWE-#`. Prioritize Variant and Base abstractions."],
  "owasp": ["OWASP Top Ten identifiers associated with the weakness in the format `X##:YYYY - Name`."],
  "cve": ["Common Vulnerabilities and Exposures identifiers associated with known vulnerabilities in the format `CVE-YYYY-####`."]
}

Threat Summary

  • Use verbatim values from the Output > Threat Details section.
  • Truncate each CVSS score to only the base score in the format #.#.
{
  "id": "",
  "severity": "",
  "cvss": "",
  "likelihood": "",
  "residual_severity": "",
  "name": ""
}

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is a professional framework for STRIDE threat modeling. It is designed to analyze software artifacts to identify security risks. While it processes external data which could technically contain malicious instructions (indirect prompt injection), the skill lacks any dangerous capabilities like network access or command execution, making the risk very low.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at e6edc3d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago
Other metadata
metadata
{
  "author": "Ivan Sincek",
  "version": "4.1",
  "url": "https://github.com/ivan-sincek/threat-modeling-agent-skills"
}

README badge

README badge for ivan-sincek/threat-modeling-agent-skills/stride-threat-modeling-framework