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
| Check | Why it matters |
|---|---|
| Instruction overrides, fake system turns, chat-template tokens | A 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 text | Text 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 styling | Common in scraped web pages and uploaded HTML or DOCX files. |
| Markdown images to external URLs with parameters | If 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, JWTs | Anything 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 numbers | Personal data in chunks travels to your model provider and into answers. |
| Missing tenant / owner fields | With 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: trueand 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.