infra-audit

infra-audit is a skill for Claude Code from marcoguillermaz/Tierward. It costs 83 tokens per session (3,589 once invoked), scanned B, original, MIT.

A static security review of infrastructure and continuous integration files, which control builds, deployments, containers, cloud permissions, and Kubernetes services. It checks GitHub Actions, Dockerfiles, Kubernetes, Terraform, and GitLab CI files found on disk.

In plain words
What is it for?
Use it to inspect workflow permissions and secret handling, Docker image and user settings, Kubernetes security options, Terraform access rules and module versions, and GitLab CI configuration.
Why use it?
It helps spot unsafe automation, exposed secrets, excessive permissions, insecure containers, risky Kubernetes settings, and unpinned infrastructure dependencies before deployment.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the tierward plugin — 29 skills, 1 command, 1 hook, 1 MCP server shipped together

Good fit Use it to inspect workflow permissions and secret handling, Docker image and user settings, Kubernetes security options, Terraform access rules and module versions, and GitLab CI configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marcoguillermaz/tierward/infra-audit
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 marcoguillermaz/Tierward --skill infra-audit
Clone the repo
git clone --depth 1 https://github.com/marcoguillermaz/Tierward

Made for: Claude Code.

Or install tierward, the plugin that ships this one along with the rest of its 29 skills, 1 command, 1 hook, 1 MCP server.

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 infra-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/marcoguillermaz/tierward/infra-audit/github.svg)](https://agentmods.dev/skills/marcoguillermaz/tierward/infra-audit)
Your own site
<a href="https://agentmods.dev/skills/marcoguillermaz/tierward/infra-audit"><img src="https://agentmods.dev/badge/skills/marcoguillermaz/tierward/infra-audit/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 infra-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/marcoguillermaz/tierward/infra-audit"><img src="https://agentmods.dev/badge/skills/marcoguillermaz/tierward/infra-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,589 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00083 $0.03589
Opus 5 $0.00042 $0.01795
Sonnet 5 $0.00017 $0.00718
Haiku 4.5 $0.00008 $0.00359

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

Security

Grade B, and why

infra-audit scanned grade B with 2 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **D-6 Apt without cleanup** (**Low**): `apt-get install` without `rm -rf /var/lib/apt/lists/*` in the same RUN layer. Image bloat; not a security issue but noise.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **D-3 ADD with URL** (**High**): `ADD http(s)://...` statement. Prefer `RUN curl ... && ...` with explicit verification (checksum or signature).
packages/cli/templates/tier-l/.claude/skills/infra-audit/SKILL.md · 186 lines

How it starts

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

Scope for v1

  • Static analysis only. Parses workflow files, Dockerfiles, K8s manifests, Terraform files, and GitLab CI configs on disk. Does not execute workflows, does not connect to cloud providers, does not validate runtime state.
  • Five layers: GitHub Actions, Dockerfile, Kubernetes manifest, Terraform, GitLab CI. Each layer runs only if its markers are detected (see Step 1) - no noisy N/A sections for layers that don't apply.
  • Stack-agnostic: the detected backend language / framework does NOT affect which checks run. Infrastructure is orthogonal to application stack.

Configuration (adapt before first run)

Replace these placeholders:

  • [WORKFLOWS_PATH] - GitHub Actions workflows (default: .github/workflows/)
  • [DOCKERFILE_PATH] - Dockerfile location if non-standard (default: Dockerfile at repo root)
  • [K8S_PATH] - Kubernetes manifest directory (default: k8s/, deploy/, manifests/ - auto-detect)
  • [TERRAFORM_PATH] - Terraform directory (default: terraform/, infra/, iac/ - auto-detect)
  • [GITLAB_CI_PATH] - GitLab CI config (default: .gitlab-ci.yml at repo root)

Step 0 - Target and mode resolution

Parse $ARGUMENTS for target: or mode: tokens.

Pattern Meaning
target:layer:<gha|docker|k8s|terraform|gitlab> Audit only one layer
target:file:<glob> Audit a specific file or glob
mode:all / no argument Full audit - every layer whose markers are detected in Step 1.

Announce: Running infra-audit - scope: [FULL | target: <resolved>]


Step 1 - Layer detection

Detect which layers apply. Each has a marker - absence means the layer is skipped entirely with no findings (not "N/A flagged").

Layer Marker
GHA (GitHub Actions) .github/workflows/*.{yml,yaml} exists
Docker Dockerfile at repo root OR any **/Dockerfile* with content matching ^FROM
K8s .{yml,yaml} files matching apiVersion: + kind: + common K8s kinds (Deployment, Service, Pod, StatefulSet, DaemonSet, Job, CronJob, Ingress, ConfigMap, Secret)
Terraform *.tf files exist
GitLab CI .gitlab-ci.yml at repo root

Read the full file on GitHub · 186 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 186 lines · 83 tokens per session scan B c69b3dec6f01

Subscribe to this mod's changes

infra-audit is a skill published in the GitHub repository marcoguillermaz/Tierward (4 stars, last pushed 4d ago), licensed MIT. It adds 83 tokens to every session and 3,589 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.