Stop indirect prompt injection hidden in the documents your RAG pipeline retrieves
Documents can carry instructions. LLM Shield screens retrieved chunks and ingested documents for indirect prompt injection before they reach your model, with the same API and the same call as every other surface. It works in any language or encoding, shows the evidence span inside the chunk, and fails closed on any error.
Live today, same API, same call.
What is indirect prompt injection in a RAG pipeline?
Adversarial content planted in your knowledge base.
Any system that ingests external documents: web scrapers, document uploads, email attachments, shared knowledge bases. Each is a poisoning target. A single document containing embedded instructions can influence every query that retrieves it. Because RAG systems pass retrieved content directly into context, the model has no way to distinguish poisoned chunks from legitimate ones.
Retrieval itself can be weaponized.
Attackers who understand your retrieval system can craft queries, or plant documents that consistently surface adversarial content at the top of results. The model receives clean-looking chunks ranked as highly relevant, with adversarial instructions embedded in what appears to be the most authoritative retrieved context.
Enterprise RAG systems frequently ingest content from shared repositories, wikis, or third-party data feeds. Any contributor to those sources, internal or external, can plant a Trojan document. The attack doesn’t require access to your infrastructure; it only requires access to a document source your RAG system trusts.
How does LLM Shield screen retrieved documents?
Live today, same API, same call.
Your pipeline retrieves chunks
Retrieved chunks, ingested documents, web pages and email bodies: anything your RAG pipeline is about to place in the model’s context.
Send each chunk to the same endpoint
The same call you use for prompts. In any language or encoding, the response carries a risk score, the evidence span inside the chunk and a recommended action.
Drop or flag poisoned chunks
Your application applies PASS, LOG, FLAG or BLOCK before the model reads the chunk, so a planted instruction never reaches the answer.
Where can it run next to my knowledge base?
- Hosted API
- In your VPC
- On-premises
- Air-gapped
Same detection quality everywhere it runs: hosted, in your VPC, on-premises or air-gapped. It is the same model we trained.
How well does LLM Shield detect attacks?
99.78% ROC AUC. 1,700 of 1,700 attack samples flagged or blocked, none passed. Zero errors across 7,084 requests.Measured on our live public API, September 2026, over 7,084 requests.
See the measured resultsWant to see it on your own documents?
Live today, same API, same call. Bring a few documents and we will show you the evidence span inside each poisoned chunk.
Stop poisoned documents before they reach your model.
Book a live demo and bring your own documents.