Skip to content
Back to skills

Ai Data Leakage Auditor

ASecurity

Use when injecting and tracking synthetic canary values, checking for credential exposure across prompts, retrieval chunks, tool arguments, and report outputs.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 9, 2026
ai-agentsbashawsapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 21, 2026

npx -y skills add Harmitx7/tribunal-kit --skill ai-data-leakage-auditor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Data Leakage Auditor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai Data Leakage Auditor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/harmitx7-ai-data-leakage-auditor/badge)](https://www.skillsdirectory.com/skills/harmitx7-ai-data-leakage-auditor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ai-data-leakage-auditor
description: 'Use when injecting and tracking synthetic canary values, checking for credential exposure across prompts, retrieval chunks, tool arguments, and report outputs.'
version: 1.0.0
last-updated: 2026-10-30
skills:
  - clean-code
  - data-validation-schemas
tools: Read, Grep, Bash
scripts-binding:
  - src/security/data_leakage_engine.js
  - .agent/scripts/secret_redactor.js
  - src/security/index.js
inputs:
  trace_records: 'array'
  canaries: 'array'
outputs:
  leaks_detected: 'number'
  canaries_found: 'array'
  sanitized_output: 'string'
trigger:
  - 'ai data leakage'
  - 'canary token tracking'
  - 'credential exfiltration audit'
  - 'secret exposure agent'
  - 'prompt leak detection'
  - 'ai-data-leakage-auditor'
---

# AI Data Leakage Auditor

## Mandatory Pre-Flight Context Inspection

Before auditing content or traces for sensitive data leakage, inspect these 5 critical parameters:

1. **Synthetic Canary Generation**: Generate unique, high-entropy tokens (`CANARY_SECRET_<UUID>`) before executing adversarial or prompt tests.
2. **Multi-Surface Canary Tracking**: Monitor prompts, retrieved context, tool parameters, error stacks, and generated report outputs for canary tokens.
3. **Comprehensive Credential Redaction**: Validate outputs against `secret_redactor.js` patterns covering API keys (`sk-`, `sk-ant-`, `sk-proj-`), JWTs, private keys, database URLs, and AWS access keys.
4. **Error Stack Sanitization**: Ensure uncaught exceptions or parser failures do not leak file contents or sensitive tokens into client responses.
5. **Report & Evidence Scrubbing**: Verify that all machine-readable JSON artifacts and markdown findings contain redacted tokens (`[REDACTED_...]`).

## Activation Boundaries

- **Activate when:** Preparing pre-deploy verification suites, auditing generated review reports, running adversarial jailbreak tests, or sanitizing execution logs.
- **DO NOT activate when:** Auditing model behavioral reliability metrics (use `reliability-metrics-engine`).

## 🔁 Multi-Pass Execution Protocol

| Pass       | Phase                         | Core Action                                                                             | Adaptive Depth         |
| :--------- | :---------------------------- | :-------------------------------------------------------------------------------------- | :--------------------- |
| **Pass 1** | **Canary Token Audit**        | Check all outputs against registered active canary tokens using `scanForDataLeakage`.   | Fast / Standard / Deep |
| **Pass 2** | **Credential Pattern Scan**   | Execute `secret_redactor.js` regex scanner against strings, objects, and nested arrays. | All Modes              |
| **Pass 3** | **Error Log Inspection**      | Inspect stack traces and exception messages for leaked file snippets or tokens.         | Standard / Deep        |
| **Pass 4** | **Sanitization Verification** | Validate that redacted outputs replace secrets with standard `[REDACTED_...]` tags.     | All Modes              |
| **Pass 5** | **Leakage Report Synthesis**  | Emit structured leakage findings and calculate leak incidence rate.                     | Standard / Deep        |

## Verification Command

```bash
npx jest test/unit/ai_security_data_leakage.test.js
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.