Observatory defense blueprint · ATO.M0003
RAG Tenant-ACL Filtering & Vector Provenance Gate
Enforce document-level tenant ACLs inside vector index queries before retrieval, pair with chunk provenance signing, and quarantine anomalous corpus injections.
Control blueprint overview
- Control ID
ATO.M0003- Framework
- Observatory defense blueprint
- Stack layers
- Network/IAM · System-Prompt / Context · Input/Output Classifier
- Techniques addressed
- 0
- OWASP LLM Top 10
- NIST AI RMF
- Reference URI
https://observatory.silvauren.com/catalog/mitigations/ato-m0003/
Control mechanism
Eliminates cross-tenant retrieval leaks and corpus poisoning at the vector-database boundary by pushing authenticated user/group ACL filters directly into ANN index metadata predicates (`WHERE tenant_id = ? AND group_id IN (...)`), verifying chunk ingestion provenance, and scanning retrieved chunks for hidden prompt-injection instructions prior to context assembly.
Implementation steps
- Index explicit `tenant_id`, `acl_principals`, `classification`, and `source_sha256` metadata alongside every vector embedding chunk.
- Execute vector similarity search strictly with pre-filtering on verified JWT claims—never retrieve top-k globally and ask the LLM to filter.
- Scan newly ingested documents for indirect prompt injection, hidden text, and poisoned high-centrality anchor chunks before indexing.
- Audit document deletion/permission revocation sync lag so revoked files vanish from vector indexes within minutes.
What this control stops
- Cross-tenant RAG leakage triggered via embedding collision or prompt injection asking for 'other customers' records' (AML.T0085.000).
- Unauthorized retrieval of stale or revoked confidential documents cached in semantic indexes.
- Bulk false-entry RAG poisoning from unauthenticated community or web ingestion sources (AML.T0070, AML.T0071).
Known bypass conditions & residual risk
- Inference-time extraction of secrets inside documents the querying user already has valid ACL permission to read.
- Embedding inversion attacks against leaked raw vector databases if vectors are stored unencrypted (requires AML.M0012).
- Poisoning injected by a legitimate insider with authorized write access to a shared team folder.
Latency, usability & false-refusal trade-offs
Latency: +2-10 ms for pre-filtered HNSW/IVF vector queries; +8-20 ms if screening retrieved chunks with a prompt classifier. | False-Refusal Risk: Zero false refusals; unauthorized documents never enter retrieval candidates. | Operational Cost: Medium data-engineering effort to keep enterprise IdP/SharePoint/Drive ACLs synced with vector metadata.