Rag Data Exposure Audit logo

Rag Data Exposure Audit

Organization
zero-lab-ai
rag-data-exposure-audit

Assesses document authorization, tenant isolation, raw-chunk fields, citations, caches, exports, and sensitive-source leakage in retrieval systems. Use when an authorized RAG assessment must determine what data each identity can retrieve or disclose.

Overview

Publisherzero-lab-ai
Repositoryskills
Skill namerag-data-exposure-audit
Stars
232
Forks
14
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zero-lab-ai on GitHub. Read the source before you install it.

Installation

Install the Rag Data Exposure Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zero-lab-ai/skills/tree/main/plugins/rag-security/skills/rag-data-exposure-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zero-lab-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/rag-security/skills/rag-data-exposure-audit .claude/skills/rag-data-exposure-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rag Data Exposure Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rag Data Exposure Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rag Data Exposure Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

RAG data exposure audit

Measure whether retrieval and generation preserve document- and tenant-level authorization. Use controlled fixtures and restricted evidence handling so the audit does not amplify any sensitive material it discovers.

When to Use

  • Testing document authorization and tenant isolation in an authorized RAG or enterprise-search deployment.
  • Reviewing raw retrieval fields, citations, exports, caches, logs, or fallback paths for unintended disclosure.
  • Reproducing a suspected source-policy mismatch with controlled documents.

When NOT to Use

  • Do not enumerate real sensitive documents or another tenant's corpus without explicit written authority.
  • Do not place real credentials, personal data, or production secrets into test documents.
  • Do not quote discovered sensitive content when a redacted evidence reference and digest are sufficient.

Exposure states

Keep these states separate: metadata-visible, candidate-returned, chunk-retrieved, context-present, response-disclosed, citation-exposed, exported, and downstream-propagated. One state does not prove the next.

Workflow

  1. Bind the audit to exact tenants, identities, roles, corpora, connectors, routes, allowed data classes, query budget, monitoring, and cleanup duties.
  2. Build an authorization matrix from authoritative source policy: identity × document or collection × operation. Preserve unknown policy as unknown.
  3. Establish controlled fixtures with unique inert markers across allowed, denied, tenant-specific, revoked, deleted, and stale states where authorized.
  4. Record source ACL, ingestion identity, index namespace, metadata filters, retrieval identity, model identity, cache keying, and response channel for each fixture.
  5. Establish same-identity baselines for ordinary allowed and denied requests.
  6. Exercise only approved identity and query pairs. Capture target-origin query, retrieval, context, citation, response, export, cache, and policy receipts.
  7. Test exposure surfaces independently:
    • source-to-index ACL propagation;
    • tenant and namespace filters;
    • raw chunk, metadata, debug, and citation fields;
    • query-time versus ingestion-time authorization;
    • revoked, deleted, stale, and cached content;
    • summaries, follow-up questions, exports, logs, and fallback sources;
    • downstream tools or agents that consume retrieved content.
  8. Compare observed exposure with the authoritative matrix. Distinguish policy mismatch from stale policy, cache, route, index, or identity ambiguity.
  9. Grade each pair enforced, exposed, inconclusive, blocked, or not-tested. Missing telemetry cannot produce enforced.
  10. Remove fixtures, verify source and derived-store cleanup, and record residual retrieval or cached disclosure.

Deliverable

Return the scope, authorization matrix, controlled-fixture register, tested identity pairs, exposure-state receipts, policy mismatches, alternative explanations, restricted evidence references, cleanup status, and owned fixes.

Rationalizations to reject

  • “The model refused to quote it, so access control worked.” Retrieval, context, citations, or debug fields may already have exposed the content.
  • “The source ACL is correct.” Verify propagation through connectors, indexes, filters, caches, and response paths.
  • “A title is harmless metadata.” Titles and metadata can disclose sensitive existence, ownership, or project context.
  • “The document was deleted.” Derived stores and caches require separate cleanup evidence.
  • “An admin account can see everything, so the result is expected.” Compare the tested identity with explicit authorized purpose and tenant scope.
  • “One denied query proves isolation.” Coverage requires the relevant identities, routes, fields, and lifecycle states.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Rag Data Exposure Audit AI skill do?

Assesses document authorization, tenant isolation, raw-chunk fields, citations, caches, exports, and sensitive-source leakage in retrieval systems. Use when an authorized RAG assessment must determine what data each identity can retrieve or disclose.

Why use Rag Data Exposure Audit on TypingMind?

Because you install it once and use it with any model. Rag Data Exposure Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rag Data Exposure Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zero-lab-ai/skills/tree/main/plugins/rag-security/skills/rag-data-exposure-audit. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Rag Data Exposure Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rag Data Exposure Audit?

As many as you like. As long as a model supports skills, you can use Rag Data Exposure Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rag Data Exposure Audit AI skill free?

Yes. It is published on GitHub by zero-lab-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇