Research in practice

safe-evidence-redactor: Privacy-First Redaction Library and MCP Server

Defensive AI tooling for offline PII redaction in security reports, logs, and AI outputs, exposed as a library, CLI, and MCP server.

Released: v0.1.2Privacy · Defensive AI · PII Redaction · MCP

Conceptual illustration of the project, not a measurement or product screenshot.

The question & approach

Library, CLI, and MCP server that remove sensitive evidence from text and JSON while preserving enough context for debugging. Walks nested JSON, redacts only values, and reports JSON paths. Supports three modes (minimal, balanced, strict) and category-, domain-, and field-level allowlists. Fully offline with zero telemetry. Used by phish-triage-mcp for stronger PII redaction.

Methods

Pattern-based redaction with category allowlists, JSON path tracking, MCP integration.

Evidence & evaluation

How it was assessed

Internal pattern-coverage benchmarks; integrated and validated by phish-triage-mcp.

Project-reported evaluation. See the source repository for implementation and experimental context.

Contributions

  • Redaction categories: AUTH_HEADER, BEARER, JWT, API_KEY, EMAIL, UPI, PII, IPs.
  • Three redaction modes (minimal / balanced / strict) with allowlists.
  • JSON walker that preserves structure and reports redacted paths.
  • CLI (safe-redact) and MCP server (safe-redact-mcp) over stdio.
  • Fully offline, no telemetry, no network calls at runtime.

The hard parts

  • Designing redaction that preserves debuggability without leaking secrets.
  • Building a JSON walker reporting stable paths through nested arrays/objects.
  • Curating Indian-context categories alongside global vendor API key shapes.

Follow another question

More to explore.

Back to research