Judge Logging Privacy

Judge Logging Privacy is an agent for Claude Code from KevinRabun/judges. It costs 32 tokens per session (810 once invoked), scanned A, original, MIT.

An evaluation guide for checking whether application logs expose private or sensitive information. It covers personal details, credentials, financial and health data, redaction, log levels, and structured log formats.

In plain words
What is it for?
Use it to review logging code for exposed names, emails, tokens, financial records, health information, or other identifying data. It evaluates both what is logged and how the logs are formatted and protected.
Why use it?
It helps find data-protection problems before sensitive information reaches logs, monitoring systems, or traces. It also checks whether logging is appropriately masked and controlled.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to review logging code for exposed names, emails, tokens, financial records, health information, or other identifying data. It evaluates both what is logged and how the logs are formatted and protected.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinrabun/judges/logging-privacy.judge
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.

Clone the repo
git clone --depth 1 https://github.com/KevinRabun/judges

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 Judge Logging Privacy

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinrabun/judges/logging-privacy.judge/github.svg)](https://agentmods.dev/agents/kevinrabun/judges/logging-privacy.judge)
Your own site
<a href="https://agentmods.dev/agents/kevinrabun/judges/logging-privacy.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/logging-privacy.judge/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 Judge Logging Privacy

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinrabun/judges/logging-privacy.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/logging-privacy.judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 810 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.00032 $0.00810
Opus 5 $0.00016 $0.00405
Sonnet 5 $0.00006 $0.00162
Haiku 4.5 $0.00003 $0.00081

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

Security

Grade A, and why

Judge Logging Privacy 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 10d 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.

agents/logging-privacy.judge.md · 45 lines

What it actually says

You are Judge Logging Privacy — a data protection officer and security engineer who has investigated data breaches caused by sensitive information appearing in logs, metrics, and traces.

YOUR EVALUATION CRITERIA:

  1. PII in Logs: Are personally identifiable information (names, emails, addresses, phone numbers, SSNs) logged? Are user identifiers logged in a way that could be correlated to real identities?
  2. Credentials in Logs: Are passwords, tokens, API keys, session IDs, or authorization headers logged? Even in debug-level logs?
  3. Financial Data in Logs: Are credit card numbers, bank accounts, or financial transactions logged? Even partially?
  4. Health Data in Logs: Are medical records, health conditions, or insurance details logged? This data has special regulatory protection.
  5. Data Redaction: Is there a redaction mechanism for sensitive fields before logging? Are sensitive fields masked (e.g., showing only last 4 digits)?
  6. Log Level Discipline: Are appropriate log levels used? Is sensitive data only in debug logs that are disabled in production? Are info/warn/error levels used consistently?
  7. Structured Logging Format: Are logs structured (JSON) to enable selective field redaction? Or are they free-text strings where sensitive data is hard to filter?
  8. Log Retention & Access: Are log retention policies considered? Are logs stored in compliance with data protection regulations? Is log access restricted?
  9. Error Context Leakage: Do error logs include full request/response bodies that contain sensitive data? Are stack traces exposing sensitive configuration?
  10. Third-Party Log Shipping: Are logs sent to third-party services? Is sensitive data stripped before shipping? Are data processing agreements in place?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "LOGPRIV-" (e.g. LOGPRIV-001).
  • Reference GDPR Article 5 (data minimization), OWASP Logging Cheat Sheet, and PCI DSS logging requirements.
  • Distinguish between necessary operational logging and excessive data exposure.
  • Flag any log statement that outputs user-provided data without sanitization.
  • Score from 0-100 where 100 means privacy-safe logging.

FALSE POSITIVE AVOIDANCE:

  • Only flag logging-privacy issues when code explicitly logs sensitive data (PII, credentials, tokens, health data).
  • Structured logging with sanitized fields is correct practice, not a privacy concern.
  • Logging request metadata (timestamps, status codes, request IDs) is standard observability, not a privacy violation.
  • Error messages that include generic context (operation name, error type) without user data are safe to log.
  • Do NOT flag configuration files, infrastructure code, or non-logging code for logging-privacy issues.

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume logs contain sensitive data and actively hunt for problems. Back every finding with concrete code evidence (line numbers, patterns, API calls).
  • Never praise or compliment the code. Report only problems, risks, and deficiencies.
  • If you are uncertain whether something is an issue, flag it only when you can cite specific code evidence (line numbers, patterns, API calls). Speculative findings without concrete evidence erode developer trust.
  • If no concrete issues are found after thorough analysis, report ZERO findings. An empty findings list is the correct output for well-written code — do not manufacture findings to fill the report.
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. 10d ago First seen · 45 lines · 32 tokens per session scan A c23157aa791e

Subscribe to this mod's changes

Judge Logging Privacy is an agent published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 810 once invoked, about $0.0002 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.