# Can You Trust the Vectors in Your Vector Database? Black-Hole Attack from Embedding Space Defects

DevFeed: [Can You Trust the Vectors in Your Vector Database? Black-Hole Attack from Embedding Space Defects](<https://devfeed.tech/articles/can-you-trust-the-vectors-in-your-vector-database-black-hole-attack-from-embedding-space-defects-93761.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2604.05480>)

Author: Hanxi Li, Jianan Zhou, Jiale Lao, Yibo Wang, Zhengmao Ye, Yang Cao, Junfen Wang, Mingjie Tang

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [ai security](<https://devfeed.tech/topics/ai-security.md>), [Security](<https://devfeed.tech/topics/security.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [vector embeddings in AI](<https://devfeed.tech/topics/vector-embeddings-in-ai.md>), [Vectors & LLMs](<https://devfeed.tech/topics/vectors-llms.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [attack](<https://devfeed.tech/tags/attack.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [database](<https://devfeed.tech/tags/database.md>), [defense](<https://devfeed.tech/tags/defense.md>), [detection](<https://devfeed.tech/tags/detection.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [security](<https://devfeed.tech/tags/security.md>), [vector](<https://devfeed.tech/tags/vector.md>), [vector-database](<https://devfeed.tech/tags/vector-database.md>)

## AI overview

The Black-Hole Attack poisons vector databases by placing a small number of malicious vectors near the embedding-space centroid, where centrality-driven hubness can make them nearest neighbors for many queries. The authors report attack success on up to 94.4% of queries across four attack paths designed for different attacker capabilities. They examine hubness mitigation and detection-based filtering: mitigation either substantially reduces retrieval accuracy or offers limited protection, while filtering works against some attack paths but fails against others. The abstract concludes that robust, adaptive defense remains an open problem.

## Source excerpt

arXiv:2604.05480v3 Announce Type: replace Abstract: Vector databases serve as the retrieval backbone of modern AI applications, yet their security remains largely unexplored. We propose the Black-Hole Attack, a poisoning attack that injects a small number of malicious vectors near the geometric center of the stored vectors. These injected vectors attract queries like a black hole and frequently appear in the top-k retrieval results for most queries. This attack is enabled by a phenomenon we term centrality-driven hubness: in high-dimensional embedding spaces, vectors near the centroid become nearest neighbors of a disproportionately large number of other vectors, while this centroid region is nearly empty in practice. The attack shows that vectors in a vector database cannot be blindly trusted: geometric defects in high-dimensional embeddings make retrieval inherently vulnerable. Based on this insight, we propose four attack paths tailored to different attacker capabilities. Our experiments show that up to 94.4% of queries are successfully attacked. Additionally, we study two directions of defense: hubness mitigation and detection-based filtering. Hubness mitigation either significantly reduces retrieval accuracy or provides only limited protection, while the detection-based defense is effective against some attack paths but fails against others. A robust and adaptive defense thus remains an open problem, and our findings indicate that vector databases require more careful treatment of security.