Threat Model Generation Skill

Generates AWS threat models from IaC code with STRED, OWASP, MITRE ATT&CK classifications.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Agentic-AI-Risk-Mitigation/iac-tm-experiments --skill threat-model-generation-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Threat Model Generation Skill
Source: https://github.com/Agentic-AI-Risk-Mitigation/iac-tm-experiments/tree/main/skills/threat-model
Command: npx skills add https://github.com/Agentic-AI-Risk-Mitigation/iac-tm-experiments --skill threat-model-generation-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you identify and document realistic security threats in AWS infrastructure described by Infrastructure-as-Code (IaC), so you can reason about risk before deployment and produce structured, framework-aligned threat models.

Core Features & Use Cases

  • Framework-aligned threat modeling: Produces threats mapped to STRIDE, OWASP Top 10 (2021), MITRE ATT&CK, and CWE for consistent security analysis and reporting.
  • Actionable, structured outputs: Generates a JSON threat model containing affected components, impact (CIA), likelihood, attacker/defender perspectives, and concrete recommendations.
  • IaC-to-model workflow: Reads CDK, CloudFormation, or Terraform code, analyzes it with an LLM, and saves results to a standardized threat-model.json format for downstream evaluation.

Quick Start

Run the skill with your IaC file path to generate a threat-model.json containing multiple AWS threats with framework mappings and mitigation recommendations.

Frequently Asked Questions about Threat Model Generation Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a threat model from AWS IaC files?

To generate a threat model from AWS IaC, provide the file path to your CDK, CloudFormation, or Terraform code. The skill analyzes the infrastructure and outputs a structured JSON file containing identified threats, framework mappings, and mitigations.

Can I map infrastructure security threats to the MITRE ATT&CK and STRIDE frameworks?

Yes, you can map infrastructure security threats to the MITRE ATT&CK and STRIDE frameworks. The analysis automatically classifies identified AWS IaC vulnerabilities using STRIDE, OWASP Top 10, MITRE ATT&CK, and CWE for consistent security reporting.

Does the threat modeling skill support Terraform and CDK?

Yes, the threat modeling skill supports Terraform and CDK. It reads Infrastructure-as-Code written in CDK, CloudFormation, or Terraform to discover typical AWS infrastructure threats and outputs structured threat data for evaluation.

What is the output format for AWS IaC security threat analysis?

The output format for AWS IaC security threat analysis is a standardized threat-model JSON file. This JSON array contains affected components, CIA impact, likelihood, attacker perspectives, and concrete mitigation recommendations for downstream evaluation.

How are security risks evaluated in the generated threat model?

Security risks in the generated threat model are evaluated using impact metrics like Confidentiality, Integrity, and Availability (CIA), along with likelihood scores. The output also includes attacker and defender perspectives to help you reason about risk before deployment.

What do I need to perform automated threat discovery on my AWS infrastructure?

To perform automated threat discovery on your AWS infrastructure, you need an IaC input path containing your CDK, CloudFormation, or Terraform code. The skill uses an Anthropic model to analyze the configurations and generate framework-aligned threat data.