Stride Threat Model Builder

    by Ariel Mnang'at

    1

    Automated STRIDE threat modeling with Mermaid DFDs, DREAD risk scoring, and testable mitigation mapping.

    Free

    Security scanned

    Works with the AI Agents you already use

    Stride Threat Model Builder

    Example session with this skill installed

    I need a threat model for a new file upload feature. Users upload PDFs to an S3 bucket via a signed URL. An Lambda function then triggers to scan the file for malware.

    • Read your context and instructions
    • Compiled the stride threat model

    I have modeled the file upload flow, identifying 4 trust boundaries and 8 high-priority threats across the upload and scanning phases.

    File Upload Threat Model

    Data Flow Diagram

    graph LR
        U[User] -- "E1: Upload PDF" --> P1[API Gateway]
        P1 -- "P2: Generate Signed URL" --> S1[S3 Bucket]
        S1 -- "E2: Object Created Event" --> P3[Lambda Scanner]
        P3 -- "P4: Update Status" --> D1[(Metadata DB)]
        
        subgraph Trust Boundary 1
        U -.-> P1
        end
        subgraph Trust Boundary 2
        S1 -.-> P3
        end
    

    Risk Register (DREAD-lite)

    IDElementSTRIDEThreatScoreSeverity
    T1S1TamperingAttacker uses signed URL to overwrite existing files9HIGH
    T2P3DoSMaliciously crafted PDF causes Lambda resource exhaustion8HIGH
    T3S1Info DiscPublicly accessible bucket policy leaks PII7HIGH
    T4P1SpoofingReplay of signed URL generation request5MEDIUM

    Mitigation Map

    Risk IDMitigationControl TypeVerification Test
    T1Use unique UUID prefixes for all S3 keysReduceVerify key generation logic in upload_service.py
    T2Set Lambda memory limits and 10s timeoutReduceRun stress test with 50MB "zip bomb" style PDF
    T3Enable S3 Block Public Access at account levelEliminateRun aws s3api get-public-access-block in CI

    Next steps

    1. Review the S3 bucket policy to ensure s3:PutObject is restricted to the specific prefix.
    2. Implement the file size validation check in API Gateway before URL generation.
    3. Update the Lambda scanner to use a non-executable scratch space for processing.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Security design reviews often lack structure, leading to vague "what-if" scenarios that don't result in actionable code changes. This skill automates the STRIDE methodology to produce formal, falsifiable threat models for any application architecture or feature.

    What it does

    • System modeling generates Mermaid data flow diagrams (DFD) with numbered elements and explicit trust boundaries.
    • STRIDE enumeration maps Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, and Elevation of Privilege to specific components.
    • Risk scoring applies a DREAD-lite framework to calculate impact and likelihood for every identified vulnerability.
    • Mitigation mapping links high-priority risks to concrete security controls like input validation, rate limiting, or IAM policies.
    • Verification planning defines specific tests for every mitigation to ensure security requirements are actually met.

    How it works

    1. Context collection identifies assets, actors, entry points, and trust boundaries through targeted architecture questions.
    2. Diagramming builds the DFD to visualize how data flows across privilege levels.
    3. Threat analysis walks the STRIDE catalog for every numbered element in the model to find specific attack mechanisms.
    4. Register generation runs a scoring script to produce a prioritized risk register in Markdown and CSV formats.
    5. Control mapping assigns mitigations (Eliminate, Reduce, Transfer, Detect) with owners and verification steps.

    Frameworks & tools

    This skill uses Mermaid for diagramming and a Python-based scoring engine for risk calculation. It follows the Microsoft STRIDE methodology and DREAD risk assessment framework.

    Why this beats prompting it yourself

    Generic prompts often miss subtle trust boundaries or produce "security theater" advice. This skill enforces a strict element-by-element walk, ensuring no component is skipped and every threat is tied to a testable mitigation.

    Use cases

    • Feature design to identify security requirements before writing a single line of code.
    • API reviews to analyze how external input crosses trust boundaries and interacts with backend services.
    • Agent integrations to model prompt injection and confused-deputy risks in LLM-powered systems.
    • Compliance audits to generate the formal documentation required for SOC2 or internal security reviews.

    Known limitations

    This is a design-time analysis tool only. It does not perform active exploitation, penetration testing, or automated code scanning.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    • Free with an Agensi account

    Software
    Python 3.10+

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    **/*

    Bundled scripts run offline with no network calls and no environment-variable reads: they read the threat list you author and write the scored register to CSV/Markdown where you ask. Everything else (DFD, threat tables) is produced in chat.

    Listed6 days ago

    What's inside

    Frequently Asked Questions

    This skill creates structured, audit-ready threat models by generating Mermaid DFDs, calculating DREAD risk scores, and mapping every vulnerability to a testable mitigation, preventing the "vague advice" common in generic security prompts.

    You receive the complete STRIDE analysis logic, a Python-based scoring engine for risk calculation, and customizable templates for Markdown and CSV risk registers.

    While it is ideal for traditional web and cloud architectures, this skill includes specific logic for modeling LLM-specific risks like prompt injection and 'confused deputy' scenarios in agentic workflows.

    The skill generates visual Mermaid.js code that renders directly in most Markdown editors (like Obsidian or VS Code) and provides structured CSV exports for easy integration into Jira or GRC tools.

    No, this is a design-time analysis tool focused on architectural flaws; it does not perform active network scanning, static code analysis (SAST), or live penetration testing.

    New in DevOps & Cloud

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Free