security-audit

security-audit is a skill for Claude Code, Codex from fullymiddleaged/Clawness. It costs 142 tokens per session (1,092 once invoked), scanned A, original, MIT.

A stateful security review that examines a project's possible attack surface using opposing red-team and blue-team checks. Red-team checks look for ways to attack a system; blue-team checks assess defenses.

In plain words
What is it for?
For auditing a whole project or a specific module, listing exposed areas, recording security findings, and checking their coverage over time.
Why use it?
It records findings in a ledger and focuses later reviews on new items, reducing repeated security checks.

Skill for Claude CodeCodex

Part of the clawness plugin — 13 skills, 7 agents 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 skills/fullymiddleaged/clawness/security-audit
Any agent
npx skills add fullymiddleaged/Clawness --skill security-audit
Clone the repo
git clone --depth 1 https://github.com/fullymiddleaged/Clawness

Made for: Claude Code, Codex.

Or install clawness, the plugin that ships this one along with the rest of its 13 skills, 7 agents.

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/skills/fullymiddleaged/clawness/security-audit.svg)](https://agentmods.dev/skills/fullymiddleaged/clawness/security-audit)
Your own site
<a href="https://agentmods.dev/skills/fullymiddleaged/clawness/security-audit"><img src="https://agentmods.dev/badge/skills/fullymiddleaged/clawness/security-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,092 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 $0.00142 $0.01092
Opus 5 $0.00071 $0.00546
Sonnet 5 $0.00028 $0.00218
Haiku 4.5 $0.00014 $0.00109

Measured 3d ago against content hash 8fe4c4736eef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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/security-audit/SKILL.md · 84 lines

How it starts

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

Security Audit Workflow

A stateful adversarial audit. Discovery is deterministic (clawness scan), judgment accumulates in a ledger (.clawness/security/findings.json), so runs converge instead of repeating.

Before spawning agents: the red/blue-team pass launches several adversarial sub-agents and is token-intensive. If you surfaced this proactively (the user mentioned security but didn't explicitly ask to run it), first ask: "Want me to run the full red team / blue team audit now?" and proceed only once they confirm. Running clawness scan itself is cheap and deterministic — you may run that first to show the surface, then ask before fanning out agents. If the user explicitly invoked /clawness:security-audit or already said yes, skip the question.

The CLI isn't on PATH — reach it through the stashed wrapper:

CLAW="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/clawness/clawness-cli.sh"
bash "$CLAW" scan --project .          # enumerate + accumulate the ledger
bash "$CLAW" scan status --project .   # show coverage without re-scanning

If $CLAW doesn't exist, the bootstrap hasn't run yet — start a fresh session.

Steps

  1. Enumerate (deterministic, free) — Run bash "$CLAW" scan --project <scope>. This lists sink/source candidates (SQL/command injection, unsafe deserialization, XSS, path traversal, broken authz, hardcoded secrets, weak crypto, SSRF), each with a CWE, a mapped rule id, and a stable id, and merges them into the ledger. Note the coverage line it prints. Use --new-only to see just what hasn't been adjudicated yet, --class <name> to focus one category.

  2. Scope — If the user named a module or directory, pass it as --project and focus there. Otherwise let the scan cover the tree and prioritise the security-sensitive candidates (auth, authorization, data validation, endpoints, queries, secret handling).

  3. Red Team — adjudicate only what's NEW. Delegate to the security-red-team sub-agent, handing it the candidates whose ledger status is new (from scan --new-only): "Adjudicate these enumerated candidates. For each, decide confirmed / false-positive and give the attack path and file:line. Check for current-month CVEs affecting our stack. Also look for classes the enumerator can't see (logic flaws, auth bypass, IDOR beyond the heuristic). Do NOT re-litigate items already marked confirmed/false-positive/fixed." Have it write each verdict back to the ledger.

Read the full file on GitHub · 84 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. 3d ago First seen · 84 lines · 142 tokens per session scan A 8fe4c4736eef

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository fullymiddleaged/Clawness (3 stars, last pushed 5d ago), licensed MIT. It adds 142 tokens to every session and 1,092 once invoked, about $0.0007 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

issue-triage

Issue triage: audit open issues, categorize, detect duplicates, cross-ref PRs, risk assessment, post comments. Args: "all" for deep analysis of all, issue numbers to focus (e.g. "42 57"), "en"/"fr" for language, no arg = audit only in French.

rtk-ai/rtk · 70 tokens

performance

CLI performance optimization - startup time, memory usage, token savings benchmarking.

rtk-ai/rtk · 13 tokens

build-teaql-app

Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…

teaql/teaql-agent-kit · 112 tokens

hns-workflow-ci-loop

Unified CI watch + auto-fix loop skill. Polls gh pr checks after /moai sync PR creation, classifies required vs auxiliary failures, attempts safe automated patches (max 3 iterations), and escalates semantic failures to the user. Use for CI loop workflow — NOT for general loop iteration patterns (see…

modu-ai/moai-adk · 76 tokens

moai-kanban-foreman

One unattended kanban foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence on read (not on claims), and report. This is the body the project's loop.md driver invokes each iteration of a bare /loop; it can also be invoked directly to test…

modu-ai/moai-adk · 76 tokens

moai-ref-ui-polish

UI polish and interface-completion reference: the small visual details — concentric border radius, optical alignment, shadow-vs-border, motion easing, typography smoothing, tabular numbers, icon stroke weight, hit areas — that separate polished interfaces from generic ones. Agent-extending skill that amplifies…

modu-ai/moai-adk · 98 tokens