iac-security-scanner

Scan infrastructure code for security misconfigurations using Terrascan policies and NIST 800-53 mappings.

11|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/ethanolivertroy/my-agent-stuff --skill iac-security-scanner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iac-security-scanner
Source: https://github.com/ethanolivertroy/my-agent-stuff/tree/main/skills/iac-security-scanner
Command: npx skills add https://github.com/ethanolivertroy/my-agent-stuff --skill iac-security-scanner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-hcl2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the scanning of infrastructure code for security misconfigurations, helping users identify potential risks before deployment.

Core Features & Use Cases

  • Infrastructure Code Scanning: Scan Terraform, Kubernetes, CloudFormation, ARM templates, and Dockerfiles for security misconfigurations.
  • Compliance Mapping: Map security issues to NIST 800-53 controls for compliance posture.
  • Quick Audit: Run a quick scan of staged files to fail on HIGH severity issues.
  • Compliance Audit: Scan with NIST control mapping, grouping findings by control family.
  • Use Case: Before deploying infrastructure to AWS, Azure, GCP, or Kubernetes, use this Skill to scan the code and ensure it meets security best practices.

Quick Start

Use the iac-security-scanner skill to scan your Terraform code for security misconfigurations.

Frequently Asked Questions about iac-security-scanner

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

FAQPage Schema
How do I scan Terraform and Kubernetes configurations for security misconfigurations?

You can scan Terraform and Kubernetes configurations for security misconfigurations by running automated infrastructure code checks against 790 Terrascan policies. This identifies potential deployment risks before provisioning cloud resources.

How does infrastructure as code security scanning map findings to NIST 800-53 compliance controls?

Infrastructure as code security scanning maps detected vulnerabilities to NIST 800-53 controls by grouping findings into compliance control families. This provides a clear compliance posture for your cloud infrastructure audits.

Does infrastructure security scanning work with CloudFormation, ARM templates, and Dockerfiles?

Yes, infrastructure security scanning supports CloudFormation, ARM templates, and Dockerfiles alongside Terraform and Kubernetes. It applies policy checks across multiple infrastructure as code formats to ensure deployment hardening.

Do I need python-hcl2 to scan Terraform code for security issues?

Yes, you need python-hcl2 to scan Terraform code because it handles HCL normalization. This dependency parses the Terraform configuration files so the scanner can accurately evaluate security policies.

Can I run a quick security audit on staged files to fail on high severity issues?

Yes, you can run a quick security audit on staged files to fail on high severity issues. This pre-deployment check scans your infrastructure code and blocks operations if critical misconfigurations are detected.

What is the best way to check AWS, Azure, or GCP infrastructure code against security best practices?

The best way to check AWS, Azure, or GCP infrastructure code against security best practices is to scan it with automated policy checks before deployment. This validates configurations against 790 policies to ensure hardening.

Related Skills