iac-security

iac-security is a skill for Claude Code, Codex from EvilFreelancer/secs. It costs 105 tokens per session (2,525 once invoked), scanned A, original, Apache-2.0.

A router for checking infrastructure configuration files for security problems. Infrastructure as Code means defining cloud and container setup in files such as Terraform, CloudFormation, Kubernetes, Helm, ARM, or Bicep.

In plain words
What is it for?
Scanning Terraform, CloudFormation, Kubernetes manifests, Helm charts, and Azure templates; checking CIS benchmarks; adding scans to pull requests or pre-commit checks; and writing custom OPA policies.
Why use it?
It helps find unsafe settings and check compliance before infrastructure is deployed. It also brings results from several security scanners into a common format.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Good fit Scanning Terraform, CloudFormation, Kubernetes manifests, Helm charts, and Azure templates; checking CIS benchmarks; adding scans to pull requests or pre-commit checks; and writing custom OPA policies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/evilfreelancer/secs/iac-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add EvilFreelancer/secs --skill iac-security
Clone the repo
git clone --depth 1 https://github.com/EvilFreelancer/secs

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for iac-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/evilfreelancer/secs/iac-security/github.svg)](https://agentmods.dev/skills/evilfreelancer/secs/iac-security)
Your own site
<a href="https://agentmods.dev/skills/evilfreelancer/secs/iac-security"><img src="https://agentmods.dev/badge/skills/evilfreelancer/secs/iac-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for iac-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/evilfreelancer/secs/iac-security"><img src="https://agentmods.dev/badge/skills/evilfreelancer/secs/iac-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.02525
Opus 5.5 $0.00042 $0.01010
Sonnet 5.5 $0.00021 $0.00505
Haiku 4.5 $0.00011 $0.00252

Measured 3mo ago against content hash 5c3072b17ac1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

iac-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/iac-security/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Infrastructure as Code Security

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/; multi-step runbooks live under workflows/.

When to Use

  • Scan Terraform .tf / plan JSON for misconfigurations
  • Audit CloudFormation YAML/JSON templates
  • Validate Kubernetes manifests (incl. rendered Helm / kustomize)
  • Validate Helm charts pre- and post-render
  • Scan ARM / Bicep templates for Azure misconfigurations
  • Verify CIS benchmark compliance across AWS / Azure / GCP / K8s
  • Integrate IaC scanning into PR gates or pre-commit hooks
  • Author custom OPA/Rego policies for org-specific controls

Trigger Phrases

  • "scan this Terraform / audit my CloudFormation / check Kubernetes manifests"
  • "validate Helm chart security" · "IaC security scan" · "infrastructure compliance"
  • "write a Rego policy for X" · "add Conftest rule for Y"

When NOT to Use This Skill

  • Runtime cloud assessment (live AWS/Azure/GCP accounts, IAM policies in force, runtime resource state) → use exploiting-cloud-platforms.
  • Container image CVE scanning, admission control at runtime, cluster live scans → use container-security.
  • Secrets discovery in a codebase → use auditing-supply-chain (pair with this skill for IaC files that contain secrets).
  • Application source-code SAST → use auditing-code-for-vulnerabilities / sast.
  • Pure drift detection vs deployed state — not in scope; use Terraform Cloud / Driftctl / AWS Config.

Decision Tree

What file(s)?
├── .tf / .tf.json / tfplan.json   → workflows/terraform_scan.md
├── CFN .yaml/.json/.template      → workflows/cloudformation_scan.md
├── K8s manifests (Deployment/etc) → workflows/kubernetes_manifest_scan.md
├── Helm chart (Chart.yaml)        → references/helm.md  (render → K8s workflow)
├── ARM / .bicep                   → references/arm_bicep.md
└── Need a custom org rule?        → workflows/policy_as_code_loop.md

Read the full file on GitHub · 159 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 159 lines · 105 tokens per session scan A 5c3072b17ac1

Subscribe to this mod's changes

iac-security is a skill published in the GitHub repository EvilFreelancer/secs (11 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 105 tokens to every session and 2,525 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

iac-security compared with skills from other repositories

iac-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
iac-securityEvilFreelancer/secsSkill113mo agoApache-2.0A105Claude Code, Codex
ctf-reverse26zl/cybersec-toolkitSkill1135d agoMITA125Claude Code
analyzing-email-headers-for-phishing-investigation26zl/cybersec-toolkitSkill1135d agoMITA84Claude Code
analyzing-ransomware-encryption-mechanisms26zl/cybersec-toolkitSkill1135d agoMITA79Claude Code
analyzing-slack-space-and-file-system-artifacts26zl/cybersec-toolkitSkill1135d agoMITA86Claude Code
configuring-identity-aware-proxy-with-google-iap26zl/cybersec-toolkitSkill1135d agoMITA98Claude Code
configuring-network-segmentation-with-vlans26zl/cybersec-toolkitSkill1135d agoMITA93Claude Code