audit-infra

A checklist for reviewing a project's operational setup, including secrets, containers, dependencies, web requests, database changes, deployment pipelines, logs, and monitoring.

In plain words
What is it for?
Use it to inspect Docker files, environment configuration, dependencies, database migrations, reverse proxies, webhooks, CI/CD, logging, and monitoring.
Why use it?
It helps find security and reliability problems outside the application's main code, such as exposed credentials or unsafe deployment settings.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/random6913/claude-code-superkit/audit-infra
Any agent
npx skills add RaNDoM6913/claude-code-superkit --skill audit-infra
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

Made for: Claude Code, Codex.

Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,535 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00025 $0.01535
Opus 5 $0.00013 $0.00767
Sonnet 5 $0.00005 $0.00307
Haiku 4.5 $0.00003 $0.00153

Measured 2d ago against content hash df953b8f0eb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

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

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

Extract all environment variable references from source code:

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

packages/codex/skills/audit-infra/SKILL.md · 135 lines

How it starts

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

Infrastructure Audit

Cross-cutting infrastructure audit covering secrets management, Docker configuration, dependency security, CORS, webhook security, migration rollback safety, CI/CD, logging, and monitoring.

Detection Strategy

Auto-detect infrastructure components by scanning for:

  • docker-compose.yml / Dockerfile — containerized services
  • .github/workflows/ / .gitlab-ci.yml / Jenkinsfile — CI/CD pipelines
  • *.env* files — environment configuration
  • migrations/ — database migration files
  • nginx.conf / caddy / reverse proxy configs
  • package.json / go.mod / requirements.txt — dependency manifests

Checks

1. Secrets in Repository

Grep across all source (excluding .env.example, docs, and test fixtures):

  • API keys: (?:api[_-]?key|apikey)\s*[:=]\s*["'][A-Za-z0-9]{16,}["']
  • Passwords: password\s*[:=]\s*["'][^"']{4,}["']
  • Private keys: -----BEGIN.*PRIVATE KEY-----
  • Connection strings with credentials: ://[^:]+:[^@]+@
  • Generic tokens: (?:secret|token|jwt_secret)\s*[:=]\s*["'][A-Za-z0-9]{16,}["'] Also check: .env files committed to git (git ls-files '*.env') FAIL for any real credentials in tracked source files.

2. .env.example Completeness

Extract all environment variable references from source code:

  • Go: os\.Getenv\("([^"]+)"\)|viper\.Get.*\("([^"]+)"\)
  • JS/TS: process\.env\.([A-Z_]+)|import\.meta\.env\.([A-Z_]+)
  • Python: os\.environ\[["']([^"']+)["']\]|os\.getenv\(["']([^"']+)["']\) Cross-reference against .env.example or .env.project.example. WARN for environment variables referenced in code but missing from example files.

3. Docker Non-Root Execution

Read all Dockerfile files. Check:

  • USER directive present (not running as root)?
  • Base image is specific version (not :latest)?
  • No secrets in build args or ENV directives?
  • Multi-stage builds used to minimize image size? WARN for root execution. WARN for :latest base images.

4. Dependency Vulnerabilities

# npm projects
find . -name "package.json" -not -path "*/node_modules/*" -maxdepth 3 -execdir npm audit --production 2>/dev/null \; | grep -E "critical|high|moderate" | head -20
# Go projects
find . -name "go.mod" -maxdepth 3 -execdir sh -c 'command -v govulncheck >/dev/null && govulncheck ./... 2>&1 | tail -10 || echo "govulncheck not installed"' \;
# Python projects
find . -name "requirements.txt" -maxdepth 3 -execdir sh -c 'command -v pip-audit >/dev/null && pip-audit 2>&1 | tail -10 || echo "pip-audit not installed"' \;

FAIL for critical/high. WARN for moderate.

Read the full file on GitHub · 135 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. 2d ago First seen · 135 lines · 25 tokens per session scan B df953b8f0eb2

Subscribe to this mod's changes

audit-infra is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 1,535 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (harvests environment variables). 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

apm-review-panel

Use this skill to run a multi-persona expert advisory review on a labelled pull request in microsoft/apm. The panel fans out to five mandatory specialists plus a test-coverage specialist (active on every PR that touches src/) plus three conditional specialists (auth, doc-writer, performance-expert), all running in…

microsoft/apm · 178 tokens

batch-bug-shepherd

Use this skill to drive a batch of suspected bugs in microsoft/apm from raw issue list to mergeable PR queue. Fan out one triage subagent per issue (LEGIT / UNCLEAR / FIXED-AT-HEAD), gate every legit bug against PRINCIPLES.md via an apm-ceo strategic-alignment pass, cross-reference legit issues against open PRs, then…

microsoft/apm · 227 tokens

apm-issue-autopilot

Use this skill to drive any open microsoft/apm issue (bug, feature, docs, refactor, perf) from raw intake to a mergeable PR with triage as the central, paramount gate. Run the apm-triage-panel rubric per issue first, then present ONE consolidated triage review for the whole batch and escalate to the maintainer BY…

microsoft/apm · 238 tokens

apm-spec-guardian

Use this skill to run a four-panel adversarial advisory review on any pull request that touches the OpenAPM specification artifact (docs/src/content/docs/specs/openapm-.md), its inline / sidecar JSON Schemas (docs/src/content/docs/specs/schemas/.schema.json), or the conformance fixture seed…

microsoft/apm · 215 tokens

apm-triage-panel

Use this skill to triage one microsoft/apm issue selected by the daily sweep, the status/needs-triage fast path, or manual dispatch. Emit one synthesized comment with a decision, label set, exact milestone, and suggested next action.

microsoft/apm · 59 tokens

cli-logging-ux

Use this skill when editing or creating CLI output, logging, warnings, error messages, progress indicators, or diagnostic summaries in the APM codebase. Activate whenever code touches console helpers (richsuccess, richwarning, richerror, richinfo, richecho), DiagnosticCollector, STATUSSYMBOLS, CommandLogger, or any…

microsoft/apm · 94 tokens