Agent skill

Iac Security

by hardw00t in hardw00t/ai-security-arsenal

Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep.

No licenceAuto-check passedDevOps & Cloud

Install Iac Security

skills CLI
$ npx skills add hardw00t/ai-security-arsenal --skill iac-security -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hardw00t/ai-security-arsenal iac-security --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hardw00t/ai-security-arsenal.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/iac-security .claude/skills/iac-security && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
iac-security
GitHub stars
104
Token cost
~2.4k tokens
SKILL.md length
941 words
Files
16 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
None found

At a glance

Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep.

  • Works in 7 steps: Public network ingress on admin ports… → Public data stores — S3 public-read,… → Wildcard IAM — Action: "*" with… → …
  • Auditing IaC for misconfigurations
  • SKILL.md covers When to Use, Trigger Phrases, When NOT to Use This Skill and Decision Tree, plus 12 more sections
  • Calls brew, terraform and helm

What it does

Iac Security is an agent skill from hardw00t/ai-security-arsenal. Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep. Orchestrates Checkov, tfsec, Terrascan, KICS, kubesec, kube-linter, Polaris, cfn-lint/cfn-nag, and OPA/Conftest. Use when auditing IaC for misconfigurations, scanning Terraform plans, validating K8s security policies, checking cloud infrastructure compliance, or authoring custom policy-as-code (Rego).

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 19 other files, including reference files (for example `examples/opa_rego_templates.md`, `references/arm_bicep.md` and `references/bounty_patterns_2024_2026.md`).

It sits in DevOps & Cloud, covering Infrastructure as code, Container orchestration and Linting and formatting. It works with Kubernetes, Terraform, AWS CloudFormation and Bicep. The repository describes itself as: A collection of skills, agents, commands, and workflows for security researchers. Compatible with Claude Code, Claude Desktop, OpenCode, and other AI coding tools.

When your agent uses it

  • Auditing IaC for misconfigurations
  • Scanning Terraform plans
  • Validating K8s security policies
  • Checking cloud infrastructure compliance

Example prompts

  • “/iac-security”

Requirements

  • Python 3
  • Docker

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Public network ingress on admin ports (SSH/RDP/DB) — security groups, NSGs, NACLs with 0.0.0.0/0 or ::/0 → sev=critical.
  2. Public data stores — S3 public-read, Azure storage allowBlobPublicAccess, RDS/CosmosDB publicly_accessible → sev=critical.
  3. Wildcard IAM — Action: "*" with Resource: "*" in AWS IAM / Azure role / GCP IAM binding → sev=critical.
  4. Unencrypted at-rest — S3/EBS/RDS/Azure Storage without SSE or CMK; KMS without rotation → sev=high.
  5. Privileged / hostPath / hostNetwork pods — container escape / node-level blast radius → sev=high.
  6. Missing audit trails — CloudTrail disabled, Azure Activity Log export off, VPC flow logs missing → sev=high.
  7. Hardcoded secrets in IaC — re-route to secrets-scanning skill, keep a breadcrumb in this report.

What it can do on your machine

Read from SKILL.md and the folder at commit a1a68f7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • brew
    • terraform
    • helm
    • pip
    • docker
    • go
    • gem

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use helm, pip and docker, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Iac Security loads about 2.4k tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 108 tokens; SKILL.md has 941 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~10k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 941 words (~2,425 tokens).

“Thin router for IaC static analysis. Pick the right workflow, run scanners in parallel, aggregate findings into schemas/finding.json, and (where org controls demand it) author Rego policies via the policy-as-code loop. Detailed per-stack commands and rule references live under references/…”

— opening of SKILL.md by hardw00t
name
iac-security

Read the full SKILL.md on GitHub

Files

SKILL.md and 15 other files (references) in skills/iac-security of hardw00t/ai-security-arsenal.

  • SKILL.md
  • examples/opa_rego_templates.md
  • examples/vulnerable_terraform.tf
  • references/arm_bicep.md
  • references/bounty_patterns_2024_2026.md
  • references/ci_cd_integration.md
  • references/cloudformation.md
  • references/helm.md
  • references/kubernetes_manifests.md
  • references/severity_mapping.md
  • references/terraform.md
  • schemas/finding.json
  • workflows/cloudformation_scan.md
  • workflows/kubernetes_manifest_scan.md
  • workflows/policy_as_code_loop.md
  • workflows/terraform_scan.md

Open the folder on GitHubat commit a1a68f7

Compare with similar skills

Iac Security next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Iac Security compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Iac Security this skillhardw00t/ai-security-arsenal104—~2.4kAutomated safety check: PassNone
Cloud Devopsdavila7/claude-code-templates32k4 repos~1.4kAutomated safety check: PassMIT
Agent Bom Scan InfraLeoYeAI/openclaw-master-skills2.2k—~1.5kAutomated safety check: PassApache-2.0
Eks Best Practicesaws-samples/appmod-blueprints115—~5kAutomated safety check: PassMIT-0
Audit Infrastructure As Codecyberful/cyberful135—~649Automated safety check: PassAGPL-3.0
Infrastructuremicrosoft/physical-ai-toolchain123—~1.6kAutomated safety check: PassMIT

Similar skills

  • Cloud Devops

    davila7/claude-code-templates

    Cloud infrastructure and DevOps workflow covering AWS, Azure, GCP, Kubernetes, Terraform, CI/CD, monitoring, and cloud-native development.

    32k GitHub starsUsed in 4 repos~1.4k tokens
    DevOps & CloudAuto-check passed
  • Agent Bom Scan Infra

    LeoYeAI/openclaw-master-skills

    Scan infrastructure-as-code, cloud configurations, and find secrets.

    2.2k GitHub stars~1.5k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Eks Best Practices

    aws-samples/appmod-blueprints

    Official

    Advisory guidance for Amazon EKS architecture and configuration decisions — compute strategy, networking, security, reliability, cost, autoscaling, observability, multi-tenancy, and upgrade planning.

    115 GitHub stars~5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Audit infrastructure-as-code artifacts for unsafe defaults, policy gaps, privilege exposure, control drift, and deployment-impact evidence.

    135 GitHub stars~649 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Infrastructure

    microsoft/physical-ai-toolchain

    Official

    Deploy and manage Azure infrastructure for the Physical AI Toolchain including Terraform IaC, Kubernetes setup, GPU configuration, and network topology

    123 GitHub stars~1.6k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Implementing Infrastructure As Code Security Scanning

    mukul975/Anthropic-Cybersecurity-Skills

    Implements automated security scanning for Infrastructure as Code using Checkov, tfsec, and KICS to detect misconfigurations in Terraform, CloudFormation, Kubernetes manifests, and Helm charts, plus…

    34k GitHub stars~2.2k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed

More from hardw00t/ai-security-arsenal

  • Dast Automation

    hardw00t/ai-security-arsenal

    Automated Dynamic Application Security Testing (DAST) using Playwright MCP plus standard OS pentest tooling.

    104 GitHub stars~2.2k tokensUpdated 5 mo ago
    Auto-check passed
  • Sast Orchestration

    hardw00t/ai-security-arsenal

    Static Application Security Testing orchestration — run and compose Semgrep, CodeQL, Bandit, gosec, Brakeman, SpotBugs, ESLint; author custom rules; ingest SARIF; triage and rank findings by…

    104 GitHub stars~2.7k tokensUpdated 5 mo ago
    Auto-check passed
  • Container Security

    hardw00t/ai-security-arsenal

    Container and Kubernetes security assessment — image vulnerability scanning, SBOM diff analysis, K8s cluster auditing, RBAC privilege mapping, NetworkPolicy review, container escape testing, and…

    104 GitHub stars~2.8k tokensUpdated 5 mo ago
    Auto-check passed
  • LLM Security

    hardw00t/ai-security-arsenal

    LLM and AI application security testing skill for prompt injection (direct, indirect, multimodal), system-prompt extraction, RAG poisoning, memory poisoning, MCP server injection, skill-file…

    104 GitHub stars~2.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Sca Security

    hardw00t/ai-security-arsenal

    Software Composition Analysis: find vulnerable dependencies, correlate CVE/GHSA/OSV across ecosystems, generate CycloneDX/SPDX SBOMs, assess license compliance, and run reachability-aware triage to…

    104 GitHub stars~3k tokensUpdated 5 mo ago
    Auto-check passed
  • Threat Modeling

    hardw00t/ai-security-arsenal

    Systematic threat modeling skill for applications, APIs, and systems using STRIDE, PASTA, Attack Trees, DREAD, LINDDUN, and OCTAVE.

    104 GitHub stars~2.6k tokensUpdated 5 mo ago
    Auto-check passed

Categories

Questions about Iac Security

What does Iac Security do?

Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep. Iac Security is an agent skill from hardw00t/ai-security-arsenal. Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep.

When should I use Iac Security?

Iac Security fits situations like: auditing IaC for misconfigurations; scanning Terraform plans; validating K8s security policies; checking cloud infrastructure compliance.

How do I install Iac Security in Claude Code?

Run `npx skills add hardw00t/ai-security-arsenal --skill iac-security -a claude-code`. Or copy the skill folder (skills/iac-security in hardw00t/ai-security-arsenal) into .claude/skills/iac-security in your project. Claude Code loads it when a task matches its description.

How do I install Iac Security in Codex?

Run `npx skills add hardw00t/ai-security-arsenal --skill iac-security -a codex`. Or copy the skill folder (skills/iac-security in hardw00t/ai-security-arsenal) into .agents/skills/iac-security in your project. Codex loads it when a task matches its description.

Can I use Iac Security in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hardw00t/ai-security-arsenal --skill iac-security -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/iac-security, .gemini/skills/iac-security, .github/skills/iac-security and .opencode/skills/iac-security in your project.

What does Iac Security need to run?

Going by SKILL.md and its folder, Iac Security needs the command-line tools its instructions call (brew, terraform, helm, pip, docker and go). Our summary lists: Python 3; Docker.

Does Iac Security access the network?

SKILL.md contains no URLs. Its commands use pip and docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Iac Security safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Iac Security use?

No licence was found for Iac Security or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Iac Security use?

About 2.4k tokens (SKILL.md is roughly 9.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.7k tokens, read only when the agent opens those files.

What are the alternatives to Iac Security?

Skills that share tags, products or a category with Iac Security: Cloud Devops (davila7/claude-code-templates, 32k stars), Agent Bom Scan Infra (LeoYeAI/openclaw-master-skills, 2.2k stars), Eks Best Practices (aws-samples/appmod-blueprints, 115 stars) and Audit Infrastructure As Code (cyberful/cyberful, 135 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Iac Security?

hardw00t (a GitHub user) maintains it in hardw00t/ai-security-arsenal, which has 104 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on April 19, 2026.

Source: hardw00t/ai-security-arsenal on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.