iac-misconfig-scan

iac-misconfig-scan is a skill for Claude Code, Codex from Quality-Max/free-qa-skills. It costs 56 tokens per session (656 once invoked), scanned A, original, Apache-2.0.

A read-only security review of infrastructure-as-code: files that define containers, deployments, and automated workflows. It examines Dockerfiles, Docker Compose files, Terraform files, and GitHub Actions workflows.

In plain words
What is it for?
Use it to scan infrastructure files and receive findings with the file, line, severity, risk, and suggested fix.
Why use it?
It catches unsafe settings before deployment, such as running containers as root, exposed secrets, unpinned versions, and risky host access.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to scan infrastructure files and receive findings with the file, line, severity, risk, and suggested fix.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/quality-max/free-qa-skills/iac-misconfig-scan
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 Quality-Max/free-qa-skills --skill iac-misconfig-scan
Clone the repo
git clone --depth 1 https://github.com/Quality-Max/free-qa-skills

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-misconfig-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/quality-max/free-qa-skills/iac-misconfig-scan/github.svg)](https://agentmods.dev/skills/quality-max/free-qa-skills/iac-misconfig-scan)
Your own site
<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/iac-misconfig-scan"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/iac-misconfig-scan/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-misconfig-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/iac-misconfig-scan"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/iac-misconfig-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 656 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.00056 $0.00656
Opus 5 $0.00028 $0.00328
Sonnet 5 $0.00011 $0.00131
Haiku 4.5 $0.00006 $0.00066

Measured 11d ago against content hash 0bf508516401, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

iac-misconfig-scan 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 11d 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.

skills/iac-misconfig-scan/SKILL.md · 73 lines

How it starts

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

IaC Misconfig Scan

Catch insecure infrastructure-as-code before it ships. Read-only: it flags misconfigurations with file:line, it doesn't change anything.

Prerequisites

  • None. Pure Claude Code — reads IaC files directly, no MCP required.

Trigger

  • "Scan my Dockerfile / Terraform / workflows for misconfigs"
  • "Is my infrastructure-as-code secure?"
  • "IaC security review"

Workflow

  1. Find IaC files: Dockerfile, docker-compose*.yml, *.tf, and .github/workflows/*.yml.
  2. Review each against the checks below; report file:line, severity, and the fix.

Containers (Dockerfile / Compose)

Misconfiguration Why it's risky
No USER / runs as root Container compromise becomes host-level risk
World-writable file modes (e.g. 0777) Tampering and privilege issues
:latest or unpinned base image Non-reproducible, unreviewed updates
Download-and-execute build step (remote script piped into a shell) Unverified remote code in the image
Hardcoded secrets / credentials in ENV or ARG Secret leakage in image layers
privileged: true, host network, or host path mounts (Compose) Container escape / host exposure
ADD with a remote URL Silent, unverified remote fetch (prefer COPY)

Terraform

Misconfiguration Why it's risky
Public object storage / open ingress (0.0.0.0/0) Data exposure / open attack surface
Hardcoded secrets in .tf or state Credential leakage
Unencrypted storage / disabled logging Data-at-rest and audit gaps

GitHub Actions

Misconfiguration Why it's risky
Actions pinned to a tag, not a commit SHA Supply-chain tampering
Broad permissions (or none set) Excess token scope
Secrets echoed or used in pull_request_target with checkout of PR code Secret exfiltration
  1. Output a severity-ranked report:
## IaC Misconfig Scan

**1 high, 2 medium**

### HIGH
- Dockerfile:1 — base image uses ":latest"; pin to a digest for reproducible,
  reviewable builds.

### MEDIUM
- .github/workflows/ci.yml:7 — action pinned to a tag, not a commit SHA.
- docker-compose.yml:12 — service runs without a non-root USER.

Read the full file on GitHub · 73 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. 11d ago First seen · 73 lines · 56 tokens per session scan A 0bf508516401

Subscribe to this mod's changes

iac-misconfig-scan is a skill published in the GitHub repository Quality-Max/free-qa-skills (10 stars, last pushed 17d ago), licensed Apache-2.0. It adds 56 tokens to every session and 656 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

devops-platform

Platform and delivery engineering — CI/CD pipelines, infrastructure as code, containers, environment parity, deployment strategies (blue/green, canary, rolling), rollback, secrets management, disaster recovery, autoscaling and cloud cost control. Use when working on pipelines, Dockerfiles, Terraform, Kubernetes…

Kin9Zeus/senior-engineer-skills · 148 tokens

docker-environments

Docker-aware Mémoire operation — CI/CD headless pipelines, shared MCP server, agent worker containers, and Figma bridge port-forwarding for containerized setups.

memi-design/design-skills · 35 tokens

deployment-patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.

affaan-m/ECC · 41 tokens

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens

nextjs-deployment

Provides comprehensive patterns for deploying Next.js applications to production. Use when configuring Docker containers, setting up GitHub Actions CI/CD pipelines, managing environment variables, implementing preview deployments, or setting up monitoring and logging for Next.js applications. Covers standalone output…

giuseppe-trisciuoglio/developer-kit · 71 tokens

performing-container-security-scanning-with-trivy

Scan container images, filesystems, and Kubernetes manifests for vulnerabilities, misconfigurations, exposed secrets, and license compliance issues using Aqua Security Trivy with SBOM generation and CI/CD integration.

xalgorix/xalgorix · 48 tokens