security-audit

security-audit is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 5 tokens per session (1,664 once invoked), scanned A, original, MIT.

A security audit command for Ansible projects, which automate server setup and deployment. It reviews areas such as encrypted variables, SSH, privilege escalation, secrets, and lint checks.

In plain words
What is it for?
Use it to audit Ansible Vault, SSH settings, elevated privileges, secret handling, and security-related lint findings.
Why use it?
It helps reveal unsafe automation practices that could expose credentials or grant more server access than intended.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

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 commands/thebeardedbearsas/claude-craft/security-audit
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/security-audit.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/security-audit)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/security-audit"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/security-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.1 $0.00005 $0.01664
Opus 5 $0.00003 $0.00832
Sonnet 5 $0.00001 $0.00333
Haiku 4.5 $0.00001 $0.00166

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

Security

Grade A, and why

security-audit 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 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.

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.

Infra/i18n/de/Ansible/commands/security-audit.md · 179 lines

How it starts

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

Ansible Security Audit

Sie sind ein Ansible-Sicherheitsspezialist. Sie mussen ein umfassendes Sicherheitsaudit des Ansible-Projekts durchfuhren.

Argumente

$ARGUMENTS

Argumente:

  • (Optional) Umfang: vault, ssh, become, secrets, lint, full (Standard: full)

Beispiel: /ansible:security-audit scope:full

Plan-Modus

Plan-Modus ist bedingt. Wird automatisch aktiviert, wenn der Umfang "full" ist, um den Auditplan vor der Durchfuhrung vorzustellen.

AUFTRAG

Schritt 1: Umfangsdefinition

══════════════════════════════════════════════════════════════
ANSIBLE SICHERHEITSAUDIT
══════════════════════════════════════════════════════════════

Umfang: {vault, ssh, become, secrets, lint, full}

──────────────────────────────────────────────────────────────
AUDIT-UMFANG
──────────────────────────────────────────────────────────────

| Kategorie | Einbezogen | Gewichtung |
|-----------|------------|------------|
| Vault | {ja/nein} | 25% |
| SSH | {ja/nein} | 20% |
| Privilege Escalation | {ja/nein} | 20% |
| Secrets-Verwaltung | {ja/nein} | 20% |
| Lint-Sicherheit | {ja/nein} | 15% |

Schritt 2: Vault-Audit

──────────────────────────────────────────────────────────────
VAULT-ANALYSE
──────────────────────────────────────────────────────────────

| Prufung | Status | Details |
|---------|--------|---------|
| Vault-Dateien verschlusselt | {ja/nein/teilweise} | {gefundene Dateien} |
| Vault-ID-Strategie | {einzeln/mehrfach/keine} | {Vault-IDs} |
| Passwortverwaltung | {Datei/Umgebung/Eingabe} | {Methode} |
| Passwortdatei in .gitignore | {ja/nein} | {Pfad} |
| Klartext-Secrets in Variablen | {Anzahl} | {Dateien} |
| ansible-vault-Rekey-Plan | {ja/nein} | {Haufigkeit} |

Nach unverschlusselten Secrets scannen, Vault-Verschlusselung bei erwarteten Dateien verifizieren und ansible.cfg-Vault-Einstellungen prufen.

Schritt 3: SSH-Audit

──────────────────────────────────────────────────────────────
SSH-SICHERHEIT
──────────────────────────────────────────────────────────────

| Prufung | Status | Details |
|---------|--------|---------|
| SSH-Schlusseltyp | {ed25519/rsa/dsa} | {Empfehlung} |
| Host-Key-Prufung | {aktiviert/deaktiviert} | {ansible.cfg-Einstellung} |
| ControlMaster | {aktiviert/deaktiviert} | {Multiplexing-Konfiguration} |
| Pipelining | {aktiviert/deaktiviert} | {ansible.cfg-Einstellung} |
| SSH-Agent-Forwarding | {aktiviert/deaktiviert} | {Risikobewertung} |
| ansible_ssh_common_args | {gesetzt/nicht gesetzt} | {Wert} |

Read the full file on GitHub · 179 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 · 179 lines · 5 tokens per session scan A e592e7a995d7

Subscribe to this mod's changes

security-audit is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 3d ago), licensed MIT. It adds 5 tokens to every session and 1,664 once invoked, about $0.0000 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-09-03.