pytm threat model from IaC

Generate pytm threat models from AWS CDK/IaC and convert findings to ACSE-Eval JSON.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytm, and includes references (resource) components.

What problem does it solve?

Automatically turning AWS CDK/IaC code into actionable, structured threat models is time-consuming and error-prone, especially when you need consistent outputs for evaluation.

Core Features & Use Cases

  • Generates a pytm threat model from IaC: Analyzes CDK constructs and security configuration to build a pytm-based architecture and trust boundaries.
  • Produces evaluation-ready output: Executes the generated pytm script to create findings, then converts them into ACSE-Eval JSON for ground-truth comparison.
  • Supports iterative research workflows: Enables repeatable threat modeling across applications and model variations by writing a standardized output directory structure.

Quick Start

Use the command to generate threats from an IaC directory: /pytm-threat-model acse-dataset/simple-image-upload-download-website/

Frequently Asked Questions about pytm threat model from IaC

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

FAQPage Schema
How do I generate a threat model from AWS CDK infrastructure as code?

Generating a threat model from AWS IaC involves analyzing CDK constructs to infer trust boundaries and cross-boundary dataflows, then building an executable pytm script to produce structured security findings for evaluation.

What is the best way to convert pytm threat modeling findings into ACSE-Eval JSON?

The best way to convert pytm findings into ACSE-Eval JSON is to execute the generated pytm threat model script, which produces gap-analysis artifacts including findings.json and threat-model.json with specified threat-framework mappings and deduplication rules for ground-truth comparison.

Can I use pytm to analyze AWS infrastructure as code for security gaps?

Yes, you can use pytm to analyze AWS infrastructure as code by applying this Skill to IaC projects. It infers security attributes and IAM grants from the codebase, executes a generated pytm script, and delivers gap-analysis artifacts for security evaluation.

Does generating a pytm threat model from IaC require any specific dependencies?

Generating a pytm threat model from IaC requires the pytm dependency to be installed. The Skill relies on pytm to execute the generated threat model script and produce the resulting findings and threat-model JSON artifacts for evaluation.

How do I automate threat modeling across multiple AWS CDK projects?

You can automate threat modeling across multiple AWS CDK projects by applying this Skill iteratively to your IaC directories. It writes a standardized output directory structure containing findings.json and threat-model.json, enabling repeatable security evaluations across applications.

What security attributes can be inferred from infrastructure as code during threat modeling?

During threat modeling from infrastructure as code, trust boundaries, security attributes, IAM grants, and cross-boundary dataflows can be inferred directly from the CDK codebase to construct the pytm architecture and identify potential security gaps.