vector-store-isolation-test

Validate per-user and per-tenant authorization in RAG retrieval systems.

6|Updated May 30, 2026
One-click install
npx skills add https://github.com/jassics/awesome-claude-security --skill vector-store-isolation-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vector-store-isolation-test
Source: https://github.com/jassics/awesome-claude-security/tree/main/plugins/rag-security/skills/vector-store-isolation-test
Command: npx skills add https://github.com/jassics/awesome-claude-security --skill vector-store-isolation-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill validates that retrieval through the RAG system respects per-user or per-tenant authorization, preventing data leaks across users/tenants.

Core Features & Use Cases

  • User Isolation: Confirms that one user cannot access another's documents through the RAG system.
  • Test Suite: Includes cases for direct cross-tenant retrieval, filter bypass, relevance-driven leakage, metadata/citation leak, and embedding inversion.
  • Use Case: In a multi-tenant RAG app, ensure no unauthorized access occurs when users query for documents.

Quick Start

Run the vector-store-isolation-test to validate access control on retrieval in your RAG app.

Frequently Asked Questions about vector-store-isolation-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test user isolation in a multi-tenant RAG system?

You can test user isolation in a multi-tenant RAG system by executing a test suite that validates per-user authorization. This includes direct cross-tenant retrieval and filter bypass tests to ensure documents are not leaked across users.

What security testing is needed to prevent data leakage in RAG retrieval?

Security testing to prevent data leakage in RAG retrieval must validate per-user authorization and check for filter bypasses. It ensures that relevance-driven retrieval, metadata, and embedding inversion do not expose unauthorized documents across tenants.

How does a vector store isolation test validate access control?

A vector store isolation test validates access control by using authenticated sessions and document labels to simulate cross-user queries. It checks if the RAG system successfully blocks direct retrieval, metadata leaks, and embedding inversion attacks.

Do I need authenticated sessions to test RAG authorization?

Yes, you need authenticated sessions and document labels to test RAG authorization. These prerequisites allow the test scripts to accurately simulate different users and verify that access control rules enforce strict tenant isolation.

What types of cross-tenant retrieval vulnerabilities should I check in my RAG app?

You should check for direct cross-tenant retrieval, filter bypass, relevance-driven leakage, metadata or citation leaks, and embedding inversion vulnerabilities. Testing these ensures your RAG app enforces strict data privacy and user isolation.

Why does my RAG system return documents from another tenant?

Your RAG system returns documents from another tenant due to a filter bypass or relevance-driven leakage in the retrieval logic. Running an isolation test identifies where per-user authorization fails and prevents unauthorized access.