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 92 tokens per session (1,493 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 92 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,493 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.00092 $0.01493
Opus 5.5 $0.00037 $0.00597
Sonnet 5.5 $0.00018 $0.00299
Haiku 4.5 $0.00009 $0.00149

Measured 24d ago against content hash d71cc989c2b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 24d 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 · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 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.

Scope

Every published package is in scope. A per-PR audit covers whichever of these the diff touches; the quarterly re-audit (.github/ISSUE_TEMPLATE/security-reaudit.md) covers all of them. tests/security-auditor-coverage.spec.ts fails when a directory in publish.yml's PACKAGE_DIRS is missing here, so add a new package to this list the day it lands.

  • core: packages/core
  • orms: packages/orms/typeorm, packages/orms/prisma, packages/orms/mongoose, packages/orms/mikroorm
  • realtime: packages/realtime/sse
  • protocols: packages/protocols/graphql, packages/protocols/mcp
  • frameworks: packages/frameworks/nest, packages/frameworks/next

What you check

  1. Filter/sort/select allowlist bypass. filter.fields, sort.fields and select.fields (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 select.fields/filter.fields allowlist is a finding.
  6. Adapter-level injection. In any packages/orms/* adapter, a raw query (TypeORM query() or an interpolated query-builder fragment, Prisma $queryRaw/$executeRaw, a Mongo $where/$function/$expr operator, MikroORM raw()/execute()), or a dynamic identifier built from a field name or operator token that did not pass through the AST/allowlist layer first, is a finding — even if the value is parameterized, because identifiers are not values and are not parameterized.
  7. Surfaces outside the REST pipeline. packages/protocols/*, packages/frameworks/next and packages/realtime/sse reach the engine without Nest's guards, pipes or app extractor. A path there that calls a repository or handler directly instead of through engine.execute, skips policy/filter.apply/set, echoes a raw runtime error, or delivers a row to a caller the REST route would have refused, is a finding.

Read the full file on GitHub · 101 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. 24d ago Changed · +22 lines · +20 tokens per session d71cc989c2b2
  2. 1mo ago Changed 3fa4db2624fa
  3. 1mo 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 (17 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 1,493 once invoked, about $0.0004 per session on Opus 5.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.

Related

Other agents, from other repositories

review-triager

Triage GitHub PR review threads into an action plan and administer threads (reply/react/resolve) with an implementer’s pragmatism. Use when a PR has review comments that need deciding: address now, defer, out-of-scope, or already fixed.

prisma/orm · 0 tokens

review-implementer

Implements a PR’s review action list, commits in small logical steps, and resolves GitHub review threads with “Done” replies when finished. Use when review-actions.md exists for a PR.

prisma/orm · 44 tokens

review-orchestrator

Orchestrates the iterative PR review loop: fetch → triage → implement → resolve threads → re-fetch until clear. Use when a PR has active review.

prisma/orm · 0 tokens

workflow-quality

Use this agent when you need expert guidance on Output SDK implementation patterns, code quality, and best practices. Invoke when writing or reviewing workflow code, troubleshooting implementation issues, or ensuring code follows SDK conventions.

growthxai/output · 43 tokens

ts-enforcer

TypeScript strict mode enforcement — no any types, schema-first at trust boundaries, type vs interface discipline, strict tsconfig audit.

bdfinst/agentic-dev-team · 29 tokens

typescript-software-architect-review

Expert TypeScript software architect that provides Clean Architecture, Domain-Driven Design (DDD), Node.js patterns, and modern TypeScript frameworks guidance. Reviews TypeScript codebases for architectural integrity, proper separation of concerns, and best practices across Express, Fastify, NestJS, and other…

giuseppe-trisciuoglio/developer-kit · 89 tokens