AI Review Ready
Home / Free tools / RAG chunk scanner
Free tool · runs locally

RAG chunk scanner: find hidden instructions in your vector store

Drop an export of your vector store or document chunks. The scanner looks for prompt injection planted in documents, invisible text, data-theft links, secrets, personal data and missing tenant fields. It runs in your browser; nothing is uploaded.

Works with LangChain / LlamaIndex documents, Chroma get() output, Pinecone / Qdrant / Weaviate exports and pgvector rows saved as CSV. Embedding vectors are skipped.

What it checks

CheckWhy it matters
Instruction overrides, fake system turns, chat-template tokensA document that says "ignore previous instructions" becomes part of the prompt when it is retrieved. This is indirect prompt injection (OWASP LLM01).
Invisible Unicode tag characters and zero-width textText a person cannot see but a model reads. The scanner decodes hidden tag-character messages so you can see them.
Instructions in HTML comments and hidden-text stylingCommon in scraped web pages and uploaded HTML or DOCX files.
Markdown images to external URLs with parametersIf your chat UI renders markdown, an image URL can carry chat history to an attacker's server the moment the answer appears (LLM05).
API keys, tokens, private keys, connection strings, JWTsAnything in the vector store can be quoted back to any user who can query it (LLM02).
Emails, card numbers (Luhn-checked), IBANs, US SSNs, UK NI numbersPersonal data in chunks travels to your model provider and into answers.
Missing tenant / owner fieldsWith a shared index, a record without tenant_id cannot be filtered per customer (LLM08).

How to export your chunks

  • Chroma: collection.get(include=["documents","metadatas"]), then save the result as JSON.
  • pgvector / Supabase: \copy (select id, tenant_id, content, metadata from documents) to 'chunks.csv' csv header
  • Qdrant: use the scroll API with with_payload: true and save the points as JSON.
  • Pinecone: fetch records by ID (or list IDs per namespace, then fetch) and save the metadata as JSON.

These are pattern checks. A clean result is good, not proof. Some risks only show up against your running app (cross-tenant retrieval, deleted documents, real injection attempts); the tenant isolation guide shows how to test them.