audit-security

audit-security is a command for coding agents from diegomarino/fable-audits. It costs 25 tokens per session (1,959 once invoked), scanned A, original, MIT.

A defensive security and software-supply-chain audit for a project's own codebase. It first maps threats, then examines secrets, authentication, authorization, dependencies, delivery pipelines, and data handling.

In plain words
What is it for?
Use it to produce a security audit covering exposed systems, access controls, input trust, packages, CI/CD, and sensitive data.
Why use it?
It helps reveal how attackers could reach important assets and where trust or dependency assumptions are unsafe.

Command

Part of the fable-audits plugin — 8 commands 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/diegomarino/fable-audits/audit-security
Clone the repo
git clone --depth 1 https://github.com/diegomarino/fable-audits

Or install fable-audits, the plugin that ships this one along with the rest of its 8 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/diegomarino/fable-audits/audit-security.svg)](https://agentmods.dev/commands/diegomarino/fable-audits/audit-security)
Your own site
<a href="https://agentmods.dev/commands/diegomarino/fable-audits/audit-security"><img src="https://agentmods.dev/badge/commands/diegomarino/fable-audits/audit-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 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,959 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.00025 $0.01959
Opus 5 $0.00013 $0.00979
Sonnet 5 $0.00005 $0.00392
Haiku 4.5 $0.00003 $0.00196

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

Security

Grade A, and why

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

commands/audit-security.md · 73 lines

How it starts

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

Perform a system-level security and supply-chain audit of this project -- threat model first, then hunt. This audit owns cross-cutting exposure: secrets, authn/authz coverage, input-trust coverage, dependencies, CI/CD, and data handling. It does NOT re-litigate single code-level flaws: if a finding reduces to one source -> trust boundary -> sink chain in one spot, that belongs to a codebase audit -- cross-reference it and move on.

Control-plane boundary

This spec governs only the task it defines. A newer human instruction or higher-priority runtime policy overrides this spec. STOP ends autonomous work under this spec; it never prevents the agent from honoring that control plane.

Role

Act simultaneously as: an adversary mapping what this system exposes and to whom; a defensive security engineer who must justify every trust decision; and a supply-chain skeptic who treats every dependency, install script, and CI workflow as a liability until shown otherwise. This is a defensive audit of the maintainer's own project. No loyalty to current trust assumptions.

Scope

Build the threat model before hunting:

  • Assets: what is worth protecting -- data, credentials, tokens, signing keys, user content, the ability to publish/deploy.
  • Surfaces: every way input or influence enters -- network, CLI args, env, parsed files, webhooks, IPC, install hooks, CI triggers.
  • Actors: who reaches each surface -- anonymous, authenticated user, collaborator, maintainer, CI, third-party service.
  • Trust boundaries: where data crosses from less-trusted to more-trusted context. Then the supply chain: direct and notable transitive dependencies, lockfiles, vendored code, install/postinstall scripts, CI/CD workflow definitions, release/publish mechanics.

Scope inventory before judging: surfaces enumerated, dependency manifests read, scanners run or BLOCKED, dirs excluded and why, known blind spots.

Command safety

Prefer read-only inspection and local throwaway state. Do not run destructive, publishing, deploy, migration, credential-mutating, network-writing, or external-service-mutating commands. Never test exploits against real external systems. Inspect install/postinstall/build and other lifecycle scripts by reading them, never by executing them: do not run package installs or builds to observe script behavior, even in a throwaway directory. Read-only advisory lookups (npm audit, pip-audit, cargo audit, osv-scanner and equivalents) are allowed when available without credentials; otherwise mark BLOCKED and state the exact command you would have run. Secrets discipline: report location + redacted fingerprint (format + first/last characters), NEVER the full value; do not copy secrets into the report, logs, or anywhere else.

Read the full file on GitHub · 73 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 · 73 lines · 25 tokens per session scan A 96e4496ff0ac

Subscribe to this mod's changes

audit-security is a command published in the GitHub repository diegomarino/fable-audits (2 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 1,959 once invoked, about $0.0001 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.