T28 · Helmwart ID · OWASP MAS Guide source

RAG Data Exfiltration

An attacker gains access to the vector database behind a retrieval-augmented pipeline and bulk-exfiltrates its embeddings and source documents, which may hold sensitive proprietary data.

Last reviewed 2026-05-14·Severity heuristic: high

ExtendsT1: Memory Poisoning · base threat in OWASP v1.1 catalog

Definition

An attacker gains access to the vector database used by the Retrieval-Augmented Generation (RAG) pipeline. In the ElizaOS context this is a direct database breach; in the Anthropic MCP context it is access via an MCP server Resource endpoint. The vector store may contain proprietary knowledge, sensitive operational data, training examples, or domain-specific embeddings, all representing significant organisational intellectual property or privacy-relevant content.

What it looks like in practice

In the ElizaOS context: an attacker exploits misconfigured access controls on the shared vector database to connect directly, bypassing any agent-layer authentication. They run a bulk similarity query against the entire collection and download all stored embeddings alongside the source documents they index: trade research, wallet interaction history, and internal strategy notes.

In the Anthropic MCP context: the MCP server exposes a Resources primitive endpoint that allows connected clients to retrieve embedded knowledge base content. An attacker who has obtained MCP client credentials (via T40 MCP Client Impersonation) iterates over the resource namespace, retrieving the full contents of the vector store in batches. Because the Resource endpoint is designed for data retrieval, the access pattern is indistinguishable from normal agent operation without query-rate or volume anomaly detection.

Why it’s dangerous in multi-agent context

RAG vector stores are typically treated as infrastructure rather than as data assets with their own sensitivity classification and access controls. As agents encode organisational knowledge into embeddings (policies, internal procedures, customer interaction patterns), the vector store accumulates a comprehensive intelligence asset. A single breach exfiltrates that asset in its entirety. T43 (Network Exposure of MCP Server) compounds the risk: an MCP server exposed on an unauthorised network makes the vector store reachable to any attacker who can reach the server port.

Detection signals

Exfiltration of a vector store involves bulk retrieval (high query counts, large result sets, or systematic iteration over the namespace), which stands out sharply against the sparse, targeted queries an agent normally issues.

  • A single client identity issuing more than N similarity queries in a rolling 60-second window (where N is derived from the 99th-percentile of the legitimate agent’s normal query rate). Raise a query-rate threshold alert on the vector database’s access log.
  • A query that requests top_k results well above the agent’s configured retrieval limit (e.g. top_k = 1000 when the agent normally requests 5–10). Log the top_k parameter on every query and alert on values above the expected ceiling.
  • A client identity not registered in the vector database’s authorised agent list successfully authenticating and issuing any query. Wire a first-seen-client alert to the authentication log.
  • In the MCP context, a Resource endpoint request iterating sequentially over consecutive namespace URIs (e.g. resource://kb/doc-0001, resource://kb/doc-0002 …). Deploy a sequential-URI-access pattern detector on the MCP server’s request log.
  • Outbound data volume from the vector database host exceeding the 95th-percentile baseline for any 5-minute window. A byte-volume anomaly alert can catch bulk document download even when individual query counts appear normal.

Mitigations

  • Apply authentication and authorisation at the vector database level, scoped per collection or namespace; do not rely solely on agent-layer access controls.
  • Log all query operations with client identity, query vector, and result count; alert on bulk retrieval patterns (high result counts, unusual query frequency from a single client).
  • In the MCP context, enforce Resource endpoint access controls that restrict which namespaces each client can retrieve.
  • Classify the vector store as a sensitive data asset and apply the same data-at-rest encryption and access-review cycle as the source documents it indexes.

Relation to base threat (T1–T17)

T28 extends T1 Memory Poisoning. Where T1 is a write-path attack (injecting malicious content into the store), T28 is the read-path complement: exfiltrating the store’s contents without modification. T27 (Vector Database Poisoning with Malicious Smart Contract Data) targets the same vector store surface via the write path.

OWASP Top 10 for Agentic Applications 2026

The Agentic Top 10 (ASI01 through ASI10) is a separate practitioner-facing publication that maps onto the master Threats & Mitigations threat numbering. T28 is covered by the following Top 10 entries:

  • ASI06Memory & Context Poisoningcontributing

    An adversary writes malicious or misleading data into an agent's persistent memory or shared vector store, so that every future session, and every peer agent reading from the same store, operates on corrupted context. The defining difference from single-turn injection (ASI01) is that the poisoned data survives session reset; the agent's reasoning drifts without any new attacker input.

Source: OWASP Top 10 for Agentic Applications 2026 (Dec 2025) · the Top 10 is a compass into the master Threats & Mitigations taxonomy, not a replacement for it.

Design principles at stake

When T28 is present, these security design principles are the ones being violated or tested. Each links to the full principle; the mitigations below are how you restore them.

  • Defence-in-DepthThe vector store is treated as infrastructure rather than as a sensitive data asset, so the agent authentication layer is often the only gate; bypassing it (as an attacker does via a misconfigured collection endpoint or a stolen MCP client credential) leaves nothing else standing. Depth here means authentication and authorisation enforced at the database level independently of the agent layer, query-rate and bulk-retrieval alerting that fires even when the access pattern looks normal, and data-at-rest encryption so that raw storage access yields ciphertext rather than embeddings. Each control covers a different attack path (direct database breach, MCP Resource endpoint abuse, and storage-layer compromise), so defeating one still leaves the others in place.
  • Data Minimization & PrivacyThe RAG pipeline accumulates organisational knowledge (policies, procedures, customer interaction patterns) into a single corpus that is rarely classified or access-scoped, meaning every connected agent can retrieve far more than any individual task requires. This over-collection turns the vector store into a single high-value target: one bulk similarity query exfiltrates the entire intelligence asset in one pass. Scoping collection access per namespace, enforcing per-client Resource endpoint restrictions in the MCP context, and applying the same sensitivity classification to embeddings as to source documents are the minimisation controls that reduce the extractable surface even when authentication is bypassed.

Multi-agent variants: OWASP MAS Guide

The OWASP OWASP MAS Threat Modelling Guide v1.0 catalogues 1 named multi-agent variant of T28, anchored to specific MAESTRO layers. Each is a concrete attack pattern that emerges when this threat compounds across agents.

  • CLCross-Client Inference Interferenceextends T42, T45, T28

    Shared inference infrastructure (T42: side-channel) allows a tenant to observe timing or cache patterns from a co-tenant session (T45: session isolation failure); incomplete sandboxing (T28) lets the attacker infer private prompt content across clients.

Source: OWASP MAS Threat Modelling Guide v1.0, §2 Overview of MAESTRO Framework — Extended Threat Scenarios + Cross-Layer table.

Red-team pivot: MITRE ATLAS techniques

MITRE ATLAS catalogues adversary techniques against AI systems. Where this OWASP threat has an attacker-perspective counterpart, the ATLAS technique is shown below. That is what a red team would actually be doing on the wire. Use this for detection-signal anchoring, threat-hunting hypotheses, and IR runbooks. Source: mitre-atlas/atlas-data v5.6.0.

© 2026 The MITRE Corporation. ATLAS content is reproduced and distributed with the permission of The MITRE Corporation.

AML.T0085Data from AI Servicesview on ATLAS ↗

Adversary collects data from AI service interfaces. Sub-technique .000 (RAG Databases) names retrieval-augmented generation stores; .001 (AI Agent Tools) names tool-call data.

AML.T0086Exfiltration via AI Agent Tool Invocationview on ATLAS ↗

Adversary exfiltrates data by chaining the agent's legitimate tools (e.g. read-only DB query plus an outbound email tool), neither of which is alarming on its own.

Agentic angle: Each step looks routine in audit logs; the *combination* is the attack.

AML.T0012Valid Accountsview on ATLAS ↗

Adversary obtains and abuses legitimate user or service credentials for initial access, persistence, privilege escalation, or defence evasion.

Agentic angle: Agents often run under long-lived service accounts whose blast radius exceeds the original task scope.

References

Sources

Adapted by Helmwart from the OWASP source(s) above underCC BY-SA 4.0(changes: normalized IDs, added MAESTRO-layer, agentic-factor, and mitigation mappings). This entry is licensed CC BY-SA 4.0.