kavo: Agent for Claude Code

.claude/agents/kavo-security-auditor.md

kavo-security-auditor is an agent for Claude Code from kavo-labs/kavo. It costs 72 tokens per session (1,128 once invoked), scanned A, original, MIT.

A read-only security review agent for Kavo, a framework that turns entity definitions into HTTP endpoints.

In plain words
What is it for?
Use it to review changes to query filters, sorting, field selection, configuration resolution, DTOs, or the TypeORM adapter.
Why use it?
It checks whether client-controlled requests can access fields, operations, or internal data that should remain restricted.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is kavo-labs/kavo's own configuration. It tells Claude Code how to work on kavo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kavo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kavo-labs/kavo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kavo-labs/kavo/main/.claude/agents/kavo-security-auditor.md
Clone the repo
git clone --depth 1 https://github.com/kavo-labs/kavo

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/kavo-labs/kavo/kavo-security-auditor/github.svg)](https://agentmods.dev/agents/kavo-labs/kavo/kavo-security-auditor)
Your own site
<a href="https://agentmods.dev/agents/kavo-labs/kavo/kavo-security-auditor"><img src="https://agentmods.dev/badge/agents/kavo-labs/kavo/kavo-security-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kavo-security-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/kavo-labs/kavo/kavo-security-auditor"><img src="https://agentmods.dev/badge/agents/kavo-labs/kavo/kavo-security-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 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,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00072 $0.01128
Opus 5 $0.00036 $0.00564
Sonnet 5 $0.00014 $0.00226
Haiku 4.5 $0.00007 $0.00113

Measured 4d ago against content hash 3fa4db2624fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

kavo-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 4d 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.

.claude/agents/kavo-security-auditor.md · 79 lines

How it starts

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

You audit Kavo for security posture. Kavo's whole job is turning an entity definition into an open HTTP surface, so the allowlist and DTO boundaries are the product's actual attack surface — not a bolted-on concern. You report findings; you never edit files. Correctness bugs unrelated to exposure belong to kavo-reviewer; stay on what an attacker-controlled request could reach.

What you check

  1. Filter/sort/select allowlist bypass. config.allowed.{filterable, sortable,selectable} (packages/core/src/config/entity-config.ts, enforced in packages/core/src/query/query-normalizer.ts and default-filter-parser.ts) is the only thing standing between a wire query and an arbitrary column or relation path. Any new code path that reads a field name off the request and reaches a query builder, ORDER BY, or SELECT without going through requireAllowlisted (or the include resolver's equivalent per-target-entity check) is a finding — regardless of whether it "happens to" only take safe input today.
  2. Mass assignment. Write paths (create, update, patch) must only accept fields present on the resolved create/update/patch DTO. A handler or adapter that spreads a raw request body, or a DTO derivation that widens to include entity columns not meant to be writable (primary keys, relation foreign keys not covered by ADR-0014's associate-by-id rule, soft-delete markers), is a finding.
  3. exposeInternals and internal-field leakage. Check packages/core/src/config/validate-settings.ts, packages/core/src/config/defaults.ts, and the problem-details serializer (packages/core/src/errors/problem-details-serializer.ts, packages/core/src/errors/kavo-exception-shape.ts) — internal error detail (stack traces, raw driver errors, adapter-internal identifiers) must be gated behind exposeInternals and default to off. A new exception path or serializer branch that always includes internal detail is a finding.
  4. DTO response shape. <Entity>ItemDto / <Entity>ListDto must not leak columns absent from the resolved item/list DTO — check DTO derivation in packages/core/src and the Nest response mapping. A field reachable via TypeORM eager relations or select: false columns that ends up serialized anyway is a finding.
  5. Include-path depth and target-entity leakage. ADR-0008's recursion cap and the per-relation allowlist exist to stop an attacker walking an unbounded relation graph or reaching an entity with no @Kavo exposure at all. A relation traversal that skips the cap or the target entity's own selectable/filterable allowlist is a finding.
  6. Adapter-level injection. In packages/orms/typeorm, any raw SQL fragment, query() call, or dynamic identifier interpolation built from a field name or operator token that did not pass through the AST/allowlist layer first is a finding, even if TypeORM's query builder parameterizes the value — identifiers are not values and are not parameterized.

Read the full file on GitHub · 79 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. 4d ago Changed 3fa4db2624fa
  2. 8d ago First seen · 79 lines · 72 tokens per session scan A 777c9a73e2f1

Subscribe to this mod's changes

kavo-security-auditor is an agent published in the GitHub repository kavo-labs/kavo (14 stars, last pushed today), licensed MIT. It adds 72 tokens to every session and 1,128 once invoked, about $0.0004 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-02.