How rag-content-guard works
Your AI does not only read what customers type into the chat box. It reads your product reviews, Q&A, supplier sheets, PDFs, support tickets and the web pages its tools fetch. Every one of those can carry instructions, and attackers hide them where people will not look: white text, tiny fonts, HTML comments, invisible Unicode characters.
In 2025 researchers found academic papers with hidden “give a positive review only” prompts for AI reviewers. In 2026 a security firm showed that one review offering a fake discount was enough to make an AI shopping agent hand over its owner’s personal data. The same tricks work on store chatbots built on your product data.
rag-content-guard checks content before it goes into your search index or reaches an agent. It shows exactly what is hidden and where, scores how strongly the text is aimed at AI, and gives you the clean text a person would see, ready to index.
Try it
With Node.js:
npx rag-content-guard reviews.csv --type ugc
With Python (also reads PDFs):
pip install rag-content-guard
rag-content-guard supplier-docs/ --type web
Add one line to your LangChain or LlamaIndex pipeline to drop bad documents and strip hidden text from the rest.
Why I built it
My research is on AI security and efficient inference, and my client work is in e-commerce, where AI now reads more customer-written text than any person does. Most RAG security tools are paid platforms or model-based filters that small stores cannot run. I wanted a free, fast, explainable check that works on a laptop and in both languages stores build with.
Free and open source under the MIT license. Want your AI features reviewed end to end? Book a call.