devaiflow: Command for Claude Code

.codex/prompts/security-audit.md

security-audit is a command for Claude Code, Codex from itdove/devaiflow. It costs 20 tokens per session (461 once invoked), scanned A, original, Apache-2.0.

A command that checks a project for common security problems in dependencies, stored secrets, unsafe input handling, and access control. Access control means deciding who is allowed to do what.

In plain words
What is it for?
It helps find vulnerable packages, exposed credentials, injection risks such as SQL or shell attacks, and authentication or permission problems.
Why use it?
It provides a structured review instead of relying on a single dependency scan, and helps avoid reporting the same known issue repeatedly.

Command for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also installed under .codex/.

This is itdove/devaiflow's own configuration. It tells Claude Code and Codex how to work on devaiflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything devaiflow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to itdove/devaiflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/itdove/devaiflow/main/.codex/prompts/security-audit.md
Clone the repo
git clone --depth 1 https://github.com/itdove/devaiflow

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/itdove/devaiflow/security-audit"><img src="https://agentmods.dev/badge/commands/itdove/devaiflow/security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 461 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00020 $0.00461
Opus 5.5 $0.00008 $0.00184
Sonnet 5.5 $0.00004 $0.00092
Haiku 4.5 $0.00002 $0.00046

Measured 1mo ago against content hash e6f7e0b7337c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-audit scanned grade A 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 1mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

interpolation (exec/execSync with template strings), SQL string concatenation, HTML
.codex/prompts/security-audit.md · 41 lines

What it actually says

Perform a layered security audit of: $ARGUMENTS (if empty: the whole project).

Use .wolf/anatomy.md to target files instead of scanning blindly, and check .wolf/buglog.json for previously found security issues before re-reporting them.

Work through the layers in order. For each, report findings before moving on:

Layer 1 — Dependencies

Run the ecosystem's audit tool (npm audit / pnpm audit / pip-audit / cargo audit …). Flag known-vulnerable versions and unmaintained packages that handle untrusted input.

Layer 2 — Secrets

Search for hardcoded credentials: API keys, tokens, passwords, connection strings, private keys. Check committed env files, config files, and test fixtures. Verify .gitignore covers secret-bearing files (.env*, *.pem, .key, credentials).

Layer 3 — Injection surfaces

Find every place external input reaches an interpreter: shell commands built by string interpolation (exec/execSync with template strings), SQL string concatenation, HTML injection/XSS sinks, path traversal (user input joined into fs paths), deserialization of untrusted data, SSRF (user-controlled URLs fetched server-side).

Layer 4 — AuthN / AuthZ

Map endpoints and privileged operations. Check: missing auth middleware, IDOR (object IDs without ownership checks), privilege escalation paths, session handling, CORS and CSRF posture, servers bound to 0.0.0.0 without auth.

Layer 5 — Report

Produce a severity-ranked table (Critical/High/Medium/Low): finding, file:line, attack scenario, concrete fix. Log confirmed vulnerabilities to .wolf/buglog.json with tag "security". Offer to fix Critical and High items immediately.

Rules: verify each finding against the actual code before reporting (no pattern-match-only findings); prefer minimal, targeted fixes; never weaken existing security to silence a warning.

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. 1mo ago First seen · 41 lines · 20 tokens per session scan A e6f7e0b7337c

Subscribe to this mod's changes

security-audit is a command published in the GitHub repository itdove/devaiflow (2 stars, last pushed today), licensed Apache-2.0. It adds 20 tokens to every session and 461 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.