iac-audit

Audits Terraform and CloudFormation templates against CIS benchmarks and threat models with CVSS-scored findings.

9|2|Updated Jul 15, 2026
One-click install
npx skills add https://github.com/IgorSasovets/devsecops-with-claude --skill iac-audit-igorsasovets
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: iac-audit
Source: https://github.com/IgorSasovets/devsecops-with-claude/tree/main/iac-security-review/.claude/skills/IAC_AUDIT
Command: npx skills add https://github.com/IgorSasovets/devsecops-with-claude --skill iac-audit-igorsasovets

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Manually reviewing Infrastructure as Code templates for security misconfigurations is slow and inconsistent, and teams often lack a repeatable way to check Terraform and CloudFormation files against both CIS AWS Foundations Benchmark controls and their own threat models. ## Core Features & Use Cases - Dual-path security audit: Runs a threat-model-based analysis driven by THREAT_MODEL.md and/or a CIS AWS Foundations Benchmark v4.0.1 control check, with flags to restrict to either path. - Parallel sub-agent fan-out: Spawns one sub-agent per template file (capped at 10 concurrent) for fast analysis of large projects, with a sequential mode for small ones. - CVSSv3.1-scored findings: Applies environmental score adjustments based on tier, internet exposure, and data classification, then deduplicates and writes CIS_BASED_FINDINGS.md, THREAT_MODEL_BASED_FINDINGS.md, and OVERALL_FINDINGS.md. - Use Case: After mapping a Terraform project and generating a threat model, run the audit to produce a severity-ranked findings report with exact line-level evidence and remediation guidance for every violated control. ## Quick Start Run the iac-audit skill on my project directory to audit all Terraform and CloudFormation templates for CIS benchmark violations and threat-model risks.

Frequently Asked Questions about iac-audit

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

FAQPage Schema
How do I audit Terraform files for CIS AWS benchmark violations?▼

Run the audit on a project directory that already contains iac-review-results/PROJECT_MAP.md from Stage 1. It checks all IaC-checkable CIS AWS Foundations Benchmark v4.0.1 Automated controls relevant to the resource types present and writes CIS_BASED_FINDINGS.md.

How to scan CloudFormation templates for security issues?▼

Point the audit at the project root containing your CloudFormation .yaml or .json templates. It fans out one sub-agent per template file, checks CIS controls and threat-model entries, and reports violations with exact line evidence and CVSS scores.

Does the IaC audit require a threat model to run?▼

No, THREAT_MODEL.md is optional. Without it, only the CIS-based path runs. When a threat model from Stage 2 is present, both paths run by default and produce a merged OVERALL_FINDINGS.md.

Can I run only CIS checks without the threat-model path?▼

Yes, pass the --cis-only flag to restrict the audit to CIS benchmark checks, or --threat-model-only to run only threat-model-driven analysis. The --no-fan-out flag disables parallelism for small projects or debugging.

Does the audit modify or deploy my infrastructure code?▼

No, the audit is strictly read-only static analysis. It never executes templates, makes network calls to live infrastructure, or modifies any files in the target project; it only writes findings reports to the results directory.

Why does the audit fail with a PROJECT_MAP.md error?▼

The audit requires iac-review-results/PROJECT_MAP.md generated by Stage 1 (iac-map) to know the file list, resource inventory, and environment context. Run the mapping stage on the target directory first, then rerun the audit.