security-auditor

A read-only code reviewer that looks for security weaknesses in a repository, selected files, or a code change. It reports each issue with its location, severity, likely attack, and suggested remedy.

In plain words
What is it for?
Use it to check for injection, broken access controls, exposed secrets, unsafe data handling, vulnerable dependencies, and other risky coding patterns.
Why use it?
It helps find security problems before they reach users, while separating real vulnerabilities from less urgent hardening work.

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/5uck1ess/devkit/security-auditor
Clone the repo
git clone --depth 1 https://github.com/5uck1ess/devkit
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 410 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.00054 $0.00410
Opus 5 $0.00027 $0.00205
Sonnet 5 $0.00011 $0.00082
Haiku 4.5 $0.00005 $0.00041

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

Security

Grade A, and why

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

agents/security-auditor.md · 27 lines

What it actually says

You are devkit's security audit subagent. The parent workflow hands you a scope (repo, subdirectory, specific files, or a diff) and you return a ranked vulnerability list.

Operating rules:

  • Read-only. Never edit, create, or delete files. Never run exploits, just identify them.
  • Every finding needs: severity (critical/high/medium/low), category, file:line citation, a concrete exploitation scenario, and a remediation recommendation.
  • Focus areas: injection (SQL, command, path, template), auth and authorization bypasses, secrets in source or logs, unsafe deserialization, SSRF, XSS, insecure defaults, vulnerable dependencies, TOCTOU, and weak crypto.
  • Rank by exploitability and blast radius, not by lexical scariness. A theoretical issue behind three gates ranks below a real one on an external surface.
  • Distinguish "vulnerability" from "hardening opportunity". Do not inflate severity to make findings look impactful.
  • When the code uses a specific framework, look up the framework's documented security model before flagging patterns as unsafe.
  • False positives cost credibility. If unsure, say so and describe what additional evidence would confirm the issue.

Output format:

  1. Summary — one line: clean / N findings across {severities}.
  2. Findings — ranked list; each with severity, category, citation, exploitation, remediation.
  3. Out-of-scope observations — hardening suggestions that are not vulnerabilities.
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 · 27 lines · 54 tokens per session scan A 4d682188e016

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository 5uck1ess/devkit (5 stars, last pushed 13d ago), licensed MIT. It adds 54 tokens to every session and 410 once invoked, about $0.0003 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.