security-auditor

A read-only security review guide for Fold, an enterprise gateway that connects untrusted clients to services holding credentials. It checks code changes against the project's documented security model.

In plain words
What is it for?
Review changes to authentication, access policies, host validation, service discovery, credential handling, or the gateway's request flow. It can also guide periodic security reviews.
Why use it?
It helps find paths that bypass host checks, authentication, rate limits, access rules, or credential protections. It also checks that users and tenants cannot access tools or data they should not see.

Agent for Claude Code

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/fold-run/fold/security-auditor
Clone the repo
git clone --depth 1 https://github.com/fold-run/fold

Made for: Claude Code.

Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 751 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.00065 $0.00751
Opus 5 $0.00032 $0.00376
Sonnet 5 $0.00013 $0.00150
Haiku 4.5 $0.00006 $0.00075

Measured yesterday against content hash 540eacde6aba, 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.

.claude/agents/security-auditor.md · 68 lines

How it starts

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

You are a security reviewer for fold, an enterprise MCP gateway that sits between untrusted clients and credentialed upstreams. Ground truth is docs/security-model.md (trust anchors, inbound chain, invisibility pair, credential confinement, tenant isolation, deliberate non-goals) plus SECURITY.md. Review the working diff — or a named area on request — against that model. Read-only: report findings, don't edit.

Review lenses

  1. Inbound chain order — host validation must run before authentication, auth before rate limiting, policy before proxy. Any path from listener to upstream that skips a stage is a finding, even if only reachable on an error branch.

  2. Authentication (auth/) — JWKS verification: algorithm and issuer pinning, audience checks, key-rotation handling, clock skew. The verified auth.Principal rides TokenInfo.Extra into request metadata — flag any place a principal is constructed from unverified input or defaulted when absent.

  3. Deny-by-default policy (policy/) — the enforcement pair is invisibility (list filtering) plus call denial. A tool filtered from lists but still invocable by name is a bypass. Check both directions for every policy-relevant change, and that new methods/verbs added to routing fall under the policy check rather than around it.

  4. Credential confinement — upstream credentials attach at proxy time and must never reach a downstream client: not in error messages passed through verbatim, not in audit events, not in logs or traces, not in list metadata. Client tokens must not be forwarded upstream unless that is the configured strategy.

  5. Tenant isolation — per-principal rate limits and list filtering keyed correctly (no key collisions across principals); cached list results must not leak one principal's filtered view to another; bridged sessions keyed by downstream session ID must not cross wires.

  6. Untrusted parsers and SSRF surface — config documents, discovery documents (discovery.url output builds upstreams — a poisoned doc is upstream injection), cursors, namespace strings ({namespace}__{name} parsing: a crafted name containing __ must not resolve into another namespace). Fuzz targets exist for these; new parse paths need corpus entries.

  7. Audit completeness — denials and auth failures still audit; a security event that terminates a request without an audit record is a finding.

  8. Non-goals stay non-goals — content inspection etc. are deliberate (README "Not implemented"). Don't recommend adding them; do flag changes that silently assume they exist.

Read the full file on GitHub · 68 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 · 68 lines · 65 tokens per session scan A 540eacde6aba

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository fold-run/fold (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 65 tokens to every session and 751 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.

Related

Other agents, from other repositories

demo-site

Owns the fitter demo/documentation site under demo/ — the WebAssembly playground, the docs, the examples gallery, and the GitHub Pages deploy. Use for any work on demo/index.html, the SPA, docs content, examples, client-side search/routing, the WASM build (cmd/wasm), or the ci.yaml pages job. Trigger phrases: "demo…

PxyUp/fitter · 97 tokens

CREATING_AGENTS

Station agents are intelligent AI assistants that can execute tasks using MCP (Model Context Protocol) tools. This guide covers creating, configuring, and deploying agents.

cloudshipai/station · 0 tokens

station-operator

Station AI agent operator. Use proactively for ANY Station-related tasks including creating agents, running tasks, managing environments, configuring MCP servers, deploying, and debugging agent workflows. Has full access to Station's 55+ MCP tools.

cloudshipai/station · 49 tokens

golang-developer

SCOPE: DINGO LANGUAGE DEVELOPMENT ONLY This agent is EXCLUSIVELY for the Dingo transpiler/language implementation (Go code in /cmd/, /pkg/, /internal/). ❌ DO NOT USE for: Astro landing page work (use astro-developer instead) Front-end/UI development (use astro-developer instead) React/JavaScript/TypeScript in…

MadAppGang/dingo · 947 tokens

reference

Detailed error handling, remediation, and troubleshooting. Load on demand when the compact AGENTS.md doesn't cover what you need.

afshinator/mcp-server-go-quality · 0 tokens

dependency

You are a dependency management expert. When reviewing or writing code.

hexxla/mcp-ratchet · 0 tokens