Skip to main content
skill CX Codex

iac-security-scan-skills — Claude Code skill: setup and features

Infrastructure-as-Code security scanner for Terraform and CloudFormation. Detects cross-domain attack paths and suggests minimal fixes to eliminate exposure points.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/security-skills --skill iac-security-scan-skills -a claude-code
Open on GitHub

What iac-security-scan-skills does

This skill evaluates cloud definitions across Terraform and CloudFormation codebases. The workflow consists of three stages: mapping structural boundaries, scanning isolated domains concurrently (such as IAM, networking, storage, secrets, and logging), and aggregating cross-domain attack paths that link initial perimeter access to internal workloads.

Rather than stopping at isolated rule violations, the engine grades findings using a 0.0 to 1.0 confidence score and calculates the minimum-cut fix set required to disrupt attack graphs. Users can trigger complete audits, scoped runs for selected focus areas, or a single-pass fast scan tailored for pull requests.

Attack chain correlation requires selecting at least two domains during a scoped scan. Every output artifact is written to the local iac-scan/ directory as Markdown summaries, an HTML dashboard, and CSV spreadsheets, which means adding that directory to .gitignore is necessary right away.

What it helps with

  • detect privilege escalation opportunities in IAM policies and role assumptions
  • trace multi-hop lateral movement paths spanning from public ingress to backend databases
  • flag plaintext cloud credentials embedded inside deployment templates
  • audit S3 buckets and data stores lacking backup locks or encryption
  • produce an interactive HTML overview of infrastructure vulnerabilities

Example prompts for the agent

  • Run IaC security scan on the terraform/ directory
  • Scan only IAM and network
  • Generate security report from previous scan results

How to install iac-security-scan-skills

1Skills CLI (Vercel)

npx skills add reason-machines/security-skills --skill iac-security-scan-skills -a claude-code

2Manually: put the files in place

~/.claude/skills/iac-security-scan-skills/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/iac-security-scan-skills/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about iac-security-scan-skills

How to install iac-security-scan-skills in Claude Code?

Run npx skills add reason-machines/security-skills --skill iac-security-scan-skills -a claude-code in your terminal. This registers the definition under ~/.claude/skills/iac-security-scan-skills/SKILL.md.

What happens during a fast scan mode?

A fast scan evaluates templates in a single pass, outputting only High and Critical severity items. It skips composite attack path analysis to provide rapid feedback for code reviews.

Which formats are available for the final scan output?

The scanner writes results into iac-scan/ including report.html, findings.csv, an architecture visualizer, and domain-specific Markdown summaries.

Similar skills

All skills for Security →

From the same set69

dfyx-code-security-auditor A white-box code audit skill that traces data flows and checks security weaknesses. Use it for release reviews, OWASP checks, or a deeper project assessment. CX Codex +1 334installs dfyx-code-security-audit This skill audits source code for vulnerabilities through data-flow analysis and business-logic review. Use it for a project security check or pentest preparation. CX Codex +1 328installs eastsword-dfyx-code-security-review This skill runs white-box security audits by tracking data flows and spotting authorization or injection flaws. It suits projects preparing code for production. CX Codex +1 327installs pentest-skills-framework A modular skill for reconnaissance, vulnerability checks, and result analysis through natural-language requests. It fits AI CLI penetration-testing workflows. CX Codex +1 327installs security-investigator-automation A skill that runs security investigations across Microsoft Sentinel, Defender XDR and Graph API from a plain-language request. CX Codex +1 322installs malwarebytes-premium-security-cracked-distribution This skill covers a pirated, pre-activated Malwarebytes Premium build and flags the security and legal risks. It should not be used to obtain cracked software. CX Codex +1 320installs linux-pentester-commands A Linux command reference for reconnaissance, enumeration, exploitation, and privilege escalation during authorized penetration testing. CX Codex +1 319installs linux-pentester-command-reference A skill that hands your agent a Linux command reference split by pentest phase: recon, enumeration, exploitation, privesc. CX Codex +1 308installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor