Skip to content
Security
Skill

/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.

From plugin
skills
15257 skills

Claude Code

$ npx -y skills add zero-lab-ai/skills --skill rag-data-exposure-audit --agent claude-code

SKILL.md

rag-data-exposure-audit.SKILL.md
name: rag-data-exposure-audit
description: "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."
metadata:
  portability: universal
  discipline: penetration-testing
  domain: ai-systems
  tags: [rag, data-exposure, authorization, multi-tenant, provenance]

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.

Read more
@zero-lab-ai
Ships withskills

Portable, evidence-bound security skills for authorized defensive assessment, penetration testing, red teaming, detection engineering, purple teaming, and engagement operations. The collection contains 56 skills in 10 installable plugins from zero-lab.ai.

Stars on GitHub

Momentum

stars in total
152
Star history of zero-lab-ai/skills on GitHub, a chart by star-history.com

Other skills on skills.

agent-runtime-validation

agent-runtime-validati…

Plans and evaluates bounded runtime tests of AI agents, tools, memory, hooks, approvals, and scope enforcement. Use when static…

@zero-lab-ai@zero-lab-aiInstall Skill
agent-surface-audit

agent-surface-audit

Reviews an MCP server's tool surface for tool poisoning, over-broad parameters, missing descriptions, and privilege escalation…

@zero-lab-ai@zero-lab-aiInstall Skill
cloud-attack-path

cloud-attack-path

Maps cloud identity and authorization paths across AWS, Azure, GCP, and hybrid trust boundaries, separating proven access from…

@zero-lab-ai@zero-lab-aiInstall Skill

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docs…

@nvidia@nvidiaInstall Skill

Questions about rag-data-exposure-audit.

Which coding agents can use rag-data-exposure-audit?
rag-data-exposure-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.