Paper 2026/2941
Recovery Attacks on Distance-Preserving Encrypted Vector Databases
Abstract
Private retrieval-augmented generation (RAG) systems based on distance-comparison-preserving encryption (DCPE) are widely adopted in industry to protect sensitive embeddings while maintaining low-latency search. However, DCPE inherently leaks the relational geometry of stored embeddings by preserving relative distance comparisons across ciphertexts, making its security in practical deployments questionable. This paper demonstrates that the geometric structure DCPE preserves to enable nearest-neighbor search directly exposes the underlying data manifold to full database recovery from snapshots. We introduce two practical recovery attacks: (1) Attack A, which requires only a leaked snapshot, the public encoder, and an auxiliary candidate corpus, achieving 100\% record re-identification; and (2) Attack B, which requires no candidate corpus and uses a single known plaintext-ciphertext pair to resolve the secret scale in DCPE, reconstructing embeddings with 0.997 mean cosine similarity and restoring a functional search index. Furthermore, our evaluation indicates that existing defensive countermeasures offer minimal protection. Crucially, full-database reconstruction is computationally efficient, incurring an execution overhead that is even lower than that of the original encryption pass. Therefore, leaked DCPE snapshots must be treated as plaintext disclosures, underscoring the urgent need to explore and adopt truly secure cryptographic alternatives for private RAG.
Comments