MITRE ATLAS 2026.10 · AML.T0085.000 · High severity
Data from AI Services: RAG Databases
Attackers extract confidential internal documents, HR records, or customer data from RAG vector databases when ingestion pipelines flatten source ACLs or when prompt manipulation retrieves restricted chunks into the user's answer.
Technique dossier overview
- Category
- Prompt and context integrity
- Severity
- High
- Attack surface
- RAG & Retrieval · LLM / Prompt Layer
- Framework maturity
- Demonstrated
- Platforms
- Generative AI, Agentic AI
- Tactics
- Collection
- Catalog entry modified
How the mechanism works
- ETL jobs index multi-department or multi-tenant repositories into a shared vector database while dropping original document permissions.
- A user or injected prompt submits semantic queries crafted to pull sensitive HR, legal, or customer records into top-k retrieval.
- The LLM synthesizes or quotes the restricted passages directly into the response stream.
Detection & telemetry signals
- Vector-query telemetry showing low-privilege identities consistently retrieving chunks originally ingested from restricted folders.
- Output DLP alerts matching sensitive document markers, SSNs, or confidential contract clauses inside assistant answers.
- Repeated semantic queries exploring unrelated private topics outside the querying user's organizational unit.
Architectural defensive countermeasures
- Synchronize document-level ACL metadata continuously from source systems into the vector index and filter every query before similarity ranking.
- Partition vector collections by tenant, workspace, and confidentiality tier instead of pooling restricted and public corpora together.
- Run ingestion-time PII/secret classification to block or mask ultra-sensitive fields that should never be retrieved by general chat assistants.
- Audit cross-department retrieval anomalies and alert whenever a user queries chunks outside their RBAC role.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Flat or missing permissions on vector indexes are a core Vector and Embedding Weakness (LLM08) that directly causes cross-tenant Sensitive Information Disclosure (LLM02).
- NIST AI RMF functions
- NIST AI RMF guidance
- MAP source-to-vector permission sync fidelity across all indexed repositories, and MANAGE retrieval privacy via pre-ranking ACL metadata filters and tenant-isolated namespaces.
Mapped defensive controls
- Generative AI Model Alignment AML.M0022
Harden model weights via SFT, RLHF/DPO, deliberative alignment, and instruction-hierarchy training across base and fine-tuned revisions while monitoring residual safety drift.
- AI Telemetry Logging and Monitoring AML.M0024
Emit structured, PII-redacted OpenTelemetry GenAI security traces covering auth, guardrail verdicts, token bursts, and agent tool calls without creating a toxic raw-prompt honeypot.
- Manage AI Agent Service Access AML.M0026
Constrain autonomous agent service identities with explicit capability ACLs, policy-as-code gates, and short-lived scoped tokens outside the LLM prompt context.
- Manage User-Delegated AI Agent Access AML.M0027
Bind every agent action strictly to the invoking user's verified OAuth scopes and resource ACLs so convenience integrations never grant organization-wide access.
- Enforce Access Controls for AI Agent Tools AML.M0028
Separate read-only tools from state-changing or destructive APIs and validate tool names, JSON arguments, path prefixes, and resource ownership outside the LLM.
- Segmentation of AI Agent Components AML.M0032
Isolate agent planners, tool executors, code sandboxes, vector databases, and untrusted web browsers in separate trust zones with minimal shared credentials and zero lateral egress.
Test with Refract
Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. Replace <model-id> with an OpenRouter route ID; each model page lists a ready-to-run command for its own route.
refract scan \
--target "openai_compat:<model-id>" \
--base-url https://openrouter.ai/api/v1 \
--api-key "$OPENROUTER_API_KEY" \
--battery rag_cross_tenant_acl
refract reportrag_cross_tenant_acldisclosure of another tenant's retrieved context
Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.
Related technique records
Documented incidents & exercises (12)
- Morris II Worm: RAG-Based Attack AML.CS0024 · Exercise · Mar 5, 2024 · High
MITRE ATLAS case study demonstrating an adversarial self-replicating prompt embedded in inbound email that propagated across connected RAG assistants and exfiltrated user messages.
- Data Exfiltration via Agent Tools in Copilot Studio AML.CS0037 · Exercise · June 2025 · Critical · Enterprise Low-Code Agents
Disclosed in June 2025 ("AgentFlayer: When AIjacking Leads to Full Data Exfiltration in Copilot Studio"), researchers mapped how probing agent trigger channels and sending crafted external inputs can hijack Copilot Studio agents. Once triggered, the injected prompt instructed…
- EchoLeak: Zero-Click Prompt Injection Targeting M365 Copilot for Data Exfiltration AML.CS0059 · Exercise · May 2025 · Moderate
ATLAS case study: EchoLeak zero-click prompt injection exfiltrated data from M365 Copilot via trusted context.
- LlamaIndex PGVectorStore SQL Injection via Unsanitized Metadata Filter Keys INC-2024-3098 · Incident · Apr 10, 2024 · High · Enterprise Data & Analytics
CVE-2024-3098 exposed a SQL injection vulnerability in LlamaIndex's `PGVectorStore` integration prior to v0.10.24 when building metadata filter clauses. Filter key names supplied via query metadata were interpolated into raw PostgreSQL JSONB queries without identifier…
- RAGFlow Text-to-SQL Execution Component SQL Injection INC-2025-27135 · Incident · Feb 25, 2025 · High · Enterprise Data & Analytics
CVE-2025-27135 disclosed a high-severity SQL injection flaw in the RAGFlow retrieval engine's automated natural-language-to-SQL execution component. Model-derived SQL fragments and user-influenced query parameters were concatenated directly into database calls without…
- Microsoft 365 Copilot EchoLeak Zero-Click Email Context Exfiltration INC-2025-32711 · Incident · Jun 11, 2025 · Critical · Enterprise SaaS & Productivity
CVE-2025-32711 disclosed a critical zero-click indirect prompt injection chain in Microsoft 365 Copilot where an external email planted hidden instructions processed during routine assistant queries. Because retrieved external email text entered the same generation context as…
- Milvus Vector Database Proxy Authentication Bypass via Hardcoded Header INC-2025-64513 · Incident · Nov 10, 2025 · Critical · Enterprise Data & Analytics
CVE-2025-64513 (CVSS 9.3) exposed a critical authentication bypass in the Milvus vector database proxy component before versions 2.4.24, 2.5.21, and 2.6.5. An unauthenticated remote attacker could spoof internal component trust by supplying a crafted `sourceId` HTTP header…
- ChromaDB Multi-Tenant Authorization Bypass Enabling Cross-Tenant Vector Access INC-2026-45830 · Incident · Jun 12, 2026 · High · Enterprise Data & Analytics
CVE-2026-45830 disclosed a multi-tenant authorization bypass in ChromaDB allowing an authenticated user in one tenant to access, modify, or delete vector collections owned by other tenants. Missing server-side tenant ownership verification on collection routes enabled…
- Custom GPT Store Assistants Widespread System-Prompt and Knowledge-File Extraction INC-OBS-044 · Incident · Nov 16, 2023 · Elevated · Consumer AI & Local Runtimes
Within days of OpenAI launching Custom GPTs in November 2023, security researchers and builders demonstrated that the vast majority of public Custom GPTs could be trivially coerced into dumping their hidden system instructions and verbatim uploaded knowledge files. Simple…
- Slack AI Private Channel Data Exfiltration via Indirect Prompt Injection in Public Messages INC-OBS-047 · Incident · Aug 20, 2024 · High · Enterprise SaaS & Productivity
Disclosed by PromptArmor and patched by Slack on August 20, 2024, an indirect prompt injection vulnerability in Slack AI allowed an attacker in a public workspace channel (or an external Slack Connect guest) to steal sensitive data from private channels they could not access.…
- Microsoft Windows Recall Continuous Screenshot Feature Delayed After Security Backlash INC-OBS-070 · Incident · Jun 7, 2024 · High · Consumer AI & Local Runtimes
Following its May 2024 Build announcement of Windows Recall, a Copilot+ PC feature capturing continuous desktop screenshots every few seconds and indexing extracted OCR text in a local SQLite database, security researchers including Kevin Beaumont demonstrated that commodity…
- Sentence Embedding Inversion, Attribute Leakage & Membership Extraction OBS.EX0094 · Exercise · Mar 31, 2020 · State-of-the-Art Text Embedding Models · Vector Store Confidentiality Study
Song and Raghunathan (ACM CCS 2020) evaluated three privacy attacks against dense text embedding models: input word inversion, sensitive attribute inference, and membership inference on infrequent inputs. Across popular sentence embedding encoders, inversion attacks recovered…
Source citation records
- MITRE ATLAS: RAG Databases · MITRE ·
- LLM01:2025 Prompt Injection · OWASP GenAI Security Project ·
Common questions
- What is Data from AI Services: RAG Databases (AML.T0085.000)?
- Attackers extract confidential internal documents, HR records, or customer data from RAG vector databases when ingestion pipelines flatten source ACLs or when prompt manipulation retrieves restricted chunks into the user's answer.
- How do you mitigate Data from AI Services: RAG Databases?
- MITRE ATLAS maps 6 mitigations to AML.T0085.000: Generative AI Model Alignment, AI Telemetry Logging and Monitoring, Manage AI Agent Service Access, Manage User-Delegated AI Agent Access, Enforce Access Controls for AI Agent Tools, and Segmentation of AI Agent Components. Synchronize document-level ACL metadata continuously from source systems into the vector index and filter every query before similarity ranking.
- How can I test a model for Data from AI Services: RAG Databases?
- Run the Refract
rag_cross_tenant_aclpack:refract scan --target "openai_compat:<model-id>" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery rag_cross_tenant_acl, then refract report. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.