- Home
- Skills
- DevOps & Cloud
- Stride Threat Model Builder
Stride Threat Model Builder
Automated STRIDE threat modeling with Mermaid DFDs, DREAD risk scoring, and testable mitigation mapping.
Free
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)
| ID | Element | STRIDE | Threat | Score | Severity |
|---|---|---|---|---|---|
| T1 | S1 | Tampering | Attacker uses signed URL to overwrite existing files | 9 | HIGH |
| T2 | P3 | DoS | Maliciously crafted PDF causes Lambda resource exhaustion | 8 | HIGH |
| T3 | S1 | Info Disc | Publicly accessible bucket policy leaks PII | 7 | HIGH |
| T4 | P1 | Spoofing | Replay of signed URL generation request | 5 | MEDIUM |
Mitigation Map
| Risk ID | Mitigation | Control Type | Verification Test |
|---|---|---|---|
| T1 | Use unique UUID prefixes for all S3 keys | Reduce | Verify key generation logic in upload_service.py |
| T2 | Set Lambda memory limits and 10s timeout | Reduce | Run stress test with 50MB "zip bomb" style PDF |
| T3 | Enable S3 Block Public Access at account level | Eliminate | Run aws s3api get-public-access-block in CI |
Next steps
- Review the S3 bucket policy to ensure
s3:PutObjectis restricted to the specific prefix. - Implement the file size validation check in API Gateway before URL generation.
- 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
- Context collection identifies assets, actors, entry points, and trust boundaries through targeted architecture questions.
- Diagramming builds the DFD to visualize how data flows across privilege levels.
- Threat analysis walks the STRIDE catalog for every numbered element in the model to find specific attack mechanisms.
- Register generation runs a scoring script to produce a prioritized risk register in Markdown and CSV formats.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
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.
What's inside
Frequently Asked Questions
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.