Urgent.News

What's breaking now, across hundreds of outlets.

Tech

How a Side-Channel Attack Exposed Hidden Data in OpenSearch

Breaking down a side-channel vulnerability in OpenSearch to extract hidden vectors, bypassing field-level security. Responsibly disclosed.

How a Side-Channel Attack Exposed Hidden Data in OpenSearch

In a recent research study, a previously unidentified security vulnerability was discovered in OpenSearch, an open-source distributed search engine created by Amazon. This vulnerability, known as a side-channel attack, allowed unauthorized data access to vector fields protected by OpenSearch's field-level security (FLS) mechanism.

Vector databases have become increasingly important for AI and ML applications, such as RAG, semantic search, and recommender systems. OpenSearch serves as a popular vector database technology, storing and searching vector embeddings, which represent concepts in high-dimensional embedding spaces. Spatial relationships in these embedding spaces encode semantic relationships, making vector databases crucial for a wide range of applications.

OpenSearch's FLS feature enables control over which document fields a user role can read within an index. However, the researchers found an intriguing issue: while FLS concealed the literal values of fields from unauthorized users, vector fields remained eligible for vector search and influenced search candidacy, scoring, and ranking.

The side-channel attack works as follows: by probing query vectors, an attacker can reconstruct hidden vector fields. For example, for an L2 vector space, OpenSearch utilizes the squared Euclidean distance as the similarity measure. By carefully selecting query vectors and analyzing the returned scores, an attacker can recover the components of the hidden vector field. In practice, this requires only a few dozen probes to approximate the original vector, even in large indices.

The researchers successfully demonstrated the vulnerability by querying a document with a hidden 2-D vector field, "hidden_vec," whose value was protected by FLS exclusions. By sending three search queries with different probe vectors ([0, 0], [1, 0], and [0, 1]), the researchers obtained _score values that allowed them to compute the approximate original vector value as [3.25000049, 4.74999951].

OpenSearch security team was alerted about the vulnerability, and the issue has since been resolved in version 3.10. This incident highlights the potential risks associated with vector databases and the importance of implementing robust security measures to protect sensitive data.

Rewritten by urgent.news; may contain errors — check the original.

Source: hackernoon.com

Read the original at hackernoon.com →

Report a problem with this story

More in Tech

More from Thursday, 26 November 2026 →