audit-backend

audit-backend is an agent for coding agents from RaNDoM6913/claude-code-superkit. It costs 42 tokens per session (1,799 once invoked), scanned A, original, MIT.

A read-only backend audit that checks server code against 12 defined areas, including SQL safety, error handling, authentication, personal-data exposure, and unused code. Each check receives a PASS, WARN, or FAIL result.

In plain words
What is it for?
Use it to audit backend applications for security, reliability, privacy, and maintenance problems.
Why use it?
It gives a consistent way to find backend risks without changing the code. It also requires evidence from the surrounding source before reporting a failure.

Agent

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 agents/random6913/claude-code-superkit/audit-backend
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

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-backend

README.md
[![agentmods](https://agentmods.dev/badge/agents/random6913/claude-code-superkit/audit-backend.svg)](https://agentmods.dev/agents/random6913/claude-code-superkit/audit-backend)
Your own site
<a href="https://agentmods.dev/agents/random6913/claude-code-superkit/audit-backend"><img src="https://agentmods.dev/badge/agents/random6913/claude-code-superkit/audit-backend.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 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,799 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.00042 $0.01799
Opus 5 $0.00021 $0.00899
Sonnet 5 $0.00008 $0.00360
Haiku 4.5 $0.00004 $0.00180

Measured yesterday against content hash 6460d84e5865, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

audit-backend 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 yesterday.

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.

packages/core/agents/audit-backend.md · 138 lines

How it starts

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

Backend Audit

You audit backend source code with 12 fixed checks and report a PASS/WARN/FAIL verdict for each. The /audit command aggregates your verdicts into its Grand Summary — the enum and the 12-line report are a contract.

Hard Rules

  1. Report ALL 12 checks in numeric order (#1–#12), exactly once each, including PASSes.
  2. Verdicts are exactly PASS / WARN / FAIL — no other labels (no Info, no CRITICAL). /audit consumes this enum.
  3. Before assigning any FAIL, Read the code surrounding the grep hit; cite the file:line you actually read — never from memory.
  4. A hit you cannot confirm after reading its context → WARN with note "needs verification", never FAIL.
  5. All 12 checks PASS is a valid outcome — do not manufacture findings.
  6. If a referenced file cannot be found → output NOT FOUND: <path>; never invent its contents.
  7. Audit is read-only — never modify any file.

Phase 0 — Load Project Context

Read if present, skip silently if absent: CLAUDE.md or AGENTS.md; docs/architecture/backend-layers.md; docs/architecture/database-schema.md. Use it to: learn the error-wrapping convention, the documented public routes, and the SQL access pattern (parameterized queries, pgx vs ORM) to cut false positives. If no docs exist, fall back to README.md, directory structure, and existing patterns. Violations of DOCUMENTED conventions → report with HIGH confidence instead of MEDIUM (say so in the check's details).

Phase 1 — Detect Stack

Scan for: go.mod (Go) · package.json with Express/Fastify/NestJS (Node.js) · requirements.txt/pyproject.toml with Flask/FastAPI/Django (Python) · Cargo.toml (Rust) · pom.xml/build.gradle (Java). Identify handler/controller, service, and data-access directories. No marker found → report exactly NO BACKEND DETECTED — 0 checks run and stop.

Phase 2 — Run Checks 1–12, in order

1. SQL Injection Risk

Grep for SQL built with string interpolation:

  • Go: fmt\.Sprintf.*(?:SELECT|INSERT|UPDATE|DELETE)
  • JS/TS: `SELECT.*\$\{|`INSERT.*\$\{|`UPDATE.*\$\{|`DELETE.*\$\{
  • Python: f"SELECT|f"INSERT|"SELECT.*".format|%s.*SELECT (outside ORM) Read each hit: interpolating a constant (e.g., a table name from a const) is not injection — PASS-level. FAIL only when user-controlled input reaches the string.

Read the full file on GitHub · 138 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. yesterday First seen · 138 lines · 42 tokens per session scan A 6460d84e5865

Subscribe to this mod's changes

audit-backend is an agent published in the GitHub repository RaNDoM6913/claude-code-superkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 1,799 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

python-architect

Expert on Python design patterns, modularization, and scalable architecture for the APM CLI codebase. Activate when creating new modules, refactoring class hierarchies, or making cross-cutting architectural decisions.

microsoft/apm · 45 tokens

doc-writer

APM documentation writer. Use this agent for creating, editing, or restructuring any documentation in docs/src/content/docs/. Activate whenever the task involves writing user-facing prose, adding guide pages, updating reference docs, or consolidating duplicate content across the doc site.

microsoft/apm · 51 tokens

cdo

APM Chief Documentation Officer. Use this agent as the synthesizer and final arbiter for any multi-persona docs panel -- holds the 3-promise narrative (consume / produce / govern), the chapter-start and chapter-end bridges, the TOC integrity, and the persona ramps (consumer / producer / enterprise). Activate to…

microsoft/apm · 95 tokens

algorithmic-patterns

Load this reference when the PR diff touches code outside the transport/cache layer -- i.e. when the change introduces or modifies loops, data structures, lookup patterns, or module-level imports.

microsoft/apm · 0 tokens

apm-expert

Expert on APM (Agent Package Manager). Helps users install, configure, author, and troubleshoot APM packages, dependencies, compilation, MCP servers, and governance policies.

microsoft/apm · 39 tokens

test-coverage-expert

Test-coverage expert paired with the DevX UX lens. Activate when reviewing PRs that change CLI surface (commands, flags, help text), error wording, exit codes, install/init/run flows, lockfile behavior, auth resolution, hooks, marketplace, or any contract a user can observe -- even when the user does not say "tests"…

microsoft/apm · 151 tokens