We are always looking for novel and interesting topics related to security and privacy for our blog. This time around we take a look at the applications of some of the tools we use every day in cryptography in one of the most interesting topics of cloud computing security: how to query data on outsourced databases, in a secure manner.
Let us imagine the following scenario: You have tons of data locally, and database management is becoming an issue for you. Maintaining in-situ database servers implies not only increasing licensing costs and storage but also requires you to constantly be doing database related administrative tasks. Just imagine your team constantly partitioning tables and running around for tape for your archive files.
So you decide to use the Cloud for storage. First, you would like to have the ability to store your information in a remote server that you (is fair to say, nobody is judging you) do not have any reason to trust e.g. Amazon Cloud, Azure, Oracle Cloud.
In principle, you could simply store every single bit of information on the remote storage encrypted, right? However, it is easy to see that this wouldn’t be good enough, unless you are able to search on the encrypted information on the cloud. This problem has been thoroughly studied up to this date, and alternatives using techniques like Private Information Retrieval (PIR) and its symmetric adaptations have been introduced, searchable symmetric and functional encryption are also alternatives.
But what if, and following our example, you would like to have SQL functionality available instead of only information retrieval? We are talking of course of secure database complex querying.
Today I would like to share with you a bit of what has been done on this topic from a Secure Multiparty Computation perspective. Let me start by saying: yes, this scenario is possible. Indeed, you can evaluate complex DB queries on encrypted remote databases using Secure Function Evaluation, also known as 2-Party Computation and Bloom Filters together with other data structures.
The setting is quite familiar to other searchable database protocols: you have a cloud database storing your data, and a second DB with the encrypted indexes pointing to your data. The following figure shows this basic setting:

The index is the most important piece of the scheme and it is based on Bloom Filters and stored using a binary tree. The index would map keywords (indexes) to actual entries on the DB, and they are stored on the bottom leaves of the tree. Each upper level would have a bloom filter of the items stored below.
To be able to execute the query, the client and the index server perform a 2-Party computation using garbled circuits at each level of the tree. The question is always the same: does an element that fulfills the query lie in the level below? This is a “yes” “no” question. If the output of the computation of such binary circuit is “yes”, then you have to go down one level, if all of them are “no”, you return an empty set. Once the query has reached the corresponding leave, the user decrypts the entries the index is pointing at, and retrieves the encrypted information back to the client.
Notice that under this setting, neither the Index Server nor the Database Server learns the contents of the entries on the database nor the value of the indexes. The index server has a complete vision on the Query and Access Patterns, however. He can, for instance, learn exactly what registries are being queried and what paths are the most frequently visited on the tree, among other things. Moreover, the initial set-up of such binary tree, in case of having millions of entries can take a while as well.
These ideas have been introduced in recent years by various research groups i.e. Bell Labs and Columbia University, on the framework of IARPA financed projects focusing on these topics. The main ideas discussed in this post, come from Blind Seer (Bloom Index Search en Encrypted Results), a DBMS designed to work using these mechanisms. One of their main goals was to be able to execute such queries in a relative quickly fashion, around 10x slower than MySql in medium sized DBs (10 to 100 millions of entries). Tests performed by a third party organization (Licoln Labs) have shown much better results than the ones originally anticipated, having added little overhead equivalent to just (2 to 3)x.
More importantly, recent upgrades have been introduced, taking into account aspects on parallelization to improve performance and policy evaluation to add authorization constraints. The former of course does not improve the time spent in communication (remains constant) but does improve computational time. The latter, although it adds a computational party (a policy server) into the mix, can be easily implemented, given that it would still be a boolean circuit evaluation.
If you are interested and would like to know more, you can always visit Blind Seer home page following this link. It contains a detailed list of publications, as well as the list of the researchers in charge of the project, including Tal Malkin (Columbia University) and Vladislav Kolesnikov (Bell Labs).
Thanks to Abdelrahaman Aly for writing this blog post.


