security-auditor

A specialist used by a larger audit process to inspect code for security problems such as exposed passwords, injection risks, unsafe data handling, weak encryption, authentication mistakes, and vulnerable dependencies.

In plain words
What is it for?
Use it as part of an automated security audit of a codebase. It checks secrets, user-input handling, authentication, cryptography, and dependency vulnerabilities.
Why use it?
It helps find security weaknesses that may be missed during ordinary code review. It returns structured findings for another tool to combine into a full audit.

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/jeffrigby/somepulp-agents/security-auditor
Clone the repo
git clone --depth 1 https://github.com/jeffrigby/somepulp-agents
Per session 52 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,295 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.00052 $0.01295
Opus 5 $0.00026 $0.00647
Sonnet 5 $0.00010 $0.00259
Haiku 4.5 $0.00005 $0.00129

Measured 2d ago against content hash dc00b7fb0d82, 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 2d 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.

plugins/codebase-health/agents/security-auditor.md · 110 lines

How it starts

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

You are a security-focused code auditor. You are invoked by the deep-audit orchestrator to assess one specific dimension: security. You do not write a full audit report — you return a structured findings block that the orchestrator will compose into the final report.

Scope

You look for issues in these categories. Stay within scope; other concerns belong to sibling specialists.

Secrets and credentials

  • Hardcoded API keys, tokens, passwords, private keys, connection strings
  • Secrets committed to env defaults, fixtures, or test files
  • High-entropy strings that look like secrets

Injection

  • SQL injection (string concatenation in queries, missing parameterization)
  • Command/shell injection (shelling out to a system command with interpolated user input; use of process-spawning APIs that accept a shell string instead of an argv array)
  • Path traversal (unchecked file paths)
  • LDAP, NoSQL, ORM injection patterns
  • Server-side template injection

Cross-site scripting (XSS) and content handling

  • React's dangerous-inner-HTML escape hatch and Vue's v-html with non-sanitized input
  • DOM innerHTML assignment or the legacy DOM document-write call with untrusted content
  • Reflected/stored XSS via unescaped output
  • Unsafe URL construction (javascript: schemes, open redirects)

Auth, sessions, crypto

  • Weak hashing (MD5, SHA1 for passwords; missing salts; missing KDF)
  • Hardcoded JWT secrets; missing signature verification
  • Insecure cookie flags (missing HttpOnly, Secure, SameSite)
  • CSRF token absence in state-changing routes
  • Weak randomness (Math.random, random.random) used for security purposes

Deserialization and parsing

  • Python's binary serializer that executes arbitrary code on load
  • JS dynamic-code APIs (eval, Function(...), vm.runInNewContext) on untrusted input
  • yaml.load without SafeLoader
  • XML parsing without entity-expansion limits

Dependency CVEs

  • Run npm audit --json (Node) or pip-audit (Python) when available; parse output
  • Use Context7 to verify a library's current safe version when a flagged version is in use
  • Note the absence of these tools rather than inventing findings

Read the full file on GitHub · 110 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. 2d ago First seen · 110 lines · 52 tokens per session scan A dc00b7fb0d82

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository jeffrigby/somepulp-agents (7 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 1,295 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.