D071F3
AI/Agent
📑 Canary RAG Document
Watermarked docs in vector DBs detecting RAG extraction.
What it is
Embed synthetic canary documents with cryptographic watermarks into vector databases and RAG pipelines. When an attacker extracts knowledge base content via prompt injection or RAG extraction attacks, the watermarked canary documents reveal the theft.
Implementation requirements
- Vector database access (Pinecone, Weaviate, ChromaDB, pgvector)
- Canary document generation with embedded statistical watermarks
- Detection pipeline: Query the RAG system with specific trigger queries; analyze responses for watermark presence
- Integration with existing RAG infrastructure (LangChain, LlamaIndex)
- Rollback: Remove the canary documents and their embeddings from the vector store.
- Upkeep: Re-insert the canaries after every re-index or rebuild of the knowledge base. Monthly proof-of-life query.
Technologies
AI/LLMCI/CD
ATT&CK coverage 2
| Technique | Tactic | Status | Confidence | Tier |
|---|---|---|---|---|
| T1213 Data from Information Repositories |
Collection | confirmed | strong | T2 |
| ↳ Detection point: the decoy fires at a later step of the attack | ||||
↳ Evidence (5 sources)
| ||||
| T1700 AI-Enabled Exfiltration |
Exfiltration | theoretical | moderate | T2 |
| ↳ Detection point: the attack step itself touches the decoy | ||||
↳ Evidence (4 sources)
| ||||
Evidence
- Detecting RAG Extraction Attack via Dual-Path Runtime Integrity Game (CanaryRAG) — Xie, Y. et al., arXiv:2604.10717 2026 peer-reviewed
- Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMs — Liu, Y.; Zhao, X.; Song, D.; Bu, Y., arXiv:2502.10673 2025 peer-reviewed
- OWASP Top 10 for LLM Applications 2025 — OWASP 2025 standard
- ATLAS: Adversarial Threat Landscape for AI Systems — MITRE standard
- MITRE Engage — adversary engagement matrix and ATT&CK mapping — MITRE 2022 standard
- MITRE ATT&CK Enterprise v20.0 — MITRE 2026 standard
Research basis: - Yuanbo Xie et al., "Detecting RAG Extraction Attack via Dual-Path Runtime Integrity Game" (CanaryRAG) — ACL / arXiv:2604.10717, 2026. > - Yepeng Liu et al., "Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMs" (CanaryTrace) — arXiv:2502.10673, 2025.