iac-security-review

Detect and remediate security misconfigurations in Terraform, Kubernetes, and CloudFormation IaC.

Updated Mar 24, 2023
One-click install
npx skills add https://github.com/j4hr3n/dotfiles --skill iac-security-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iac-security-review
Source: https://github.com/j4hr3n/dotfiles/tree/main/configs/claude-code/skills/iac-security-review
Command: npx skills add https://github.com/j4hr3n/dotfiles --skill iac-security-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Security review of infrastructure-as-code to identify misconfigurations, over-permissioning, exposed resources, missing encryption, hard-coded secrets, and supply chain risks, ensuring alignment with CIS benchmarks and cloud security best practices.

Core Features & Use Cases

  • Detect IaC type (Terraform/OpenTofu, Kubernetes manifests, CloudFormation, Helm charts) and categorize findings.
  • Systematic review by security domains: IAM, Secrets, Network, Encryption, Storage, Logging, Resource Exposure, and Supply Chain.
  • Produce actionable findings with risk ratings, remediation steps, and references to CIS benchmarks.
  • Use Case: security audit of a Terraform module to surface overpermissive policies and unencrypted S3 buckets.

Quick Start

Review the provided IaC files with the defined 4-step procedure to identify misconfigurations and security gaps.

Frequently Asked Questions about iac-security-review

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

FAQPage Schema
How do I check Terraform modules for security misconfigurations and over-permissions?

To check Terraform modules for security misconfigurations, apply a systematic review across IAM, secrets, network, encryption, storage, logging, exposure, and supply chain domains to detect over-permissions and hard-coded secrets. Findings include risk ratings, remediation steps, and CIS benchmark references.

What is the best way to audit Kubernetes manifests for insecure secrets and exposed resources?

Auditing Kubernetes manifests for insecure secrets and exposed resources involves categorizing IaC types and systematically scanning deployment configurations against cloud security best practices. This process surfaces insecure secrets management and resource exposure risks with actionable remediation guidance.

How does IaC security review detect missing encryption and hard-coded secrets in CloudFormation?

IaC security review detects missing encryption and hard-coded secrets in CloudFormation by applying checks across defined security domains. It identifies configuration gaps, validates resource settings against CIS benchmarks, and produces actionable findings with specific remediation steps.

Can I use this security review to align infrastructure-as-code with CIS benchmarks?

Yes, you can use this security review to align infrastructure-as-code with CIS benchmarks. It systematically evaluates Terraform, Kubernetes, and CloudFormation configurations, citing relevant CIS benchmarks for each detected misconfiguration to ensure compliant cloud deployments.

What security domains are covered during an infrastructure-as-code audit?

An infrastructure-as-code audit covers IAM, secrets management, network, encryption, storage, logging, resource exposure, and supply chain risks. Each domain is systematically reviewed to identify misconfigurations and ensure alignment with cloud security best practices.

How do I remediate supply chain risks found in Helm charts and deployment pipelines?

To remediate supply chain risks in Helm charts and deployment pipelines, apply the security review findings which provide risk ratings and specific remediation steps. The review detects supply chain vulnerabilities and cites CIS benchmarks to guide compliant deployment configurations.