CryptDB – A database system that can process SQL queries over encrypted data
github.com
github.com
Muhammad Naveed, Seny Kamara, and I have a paper appearing at ACM CCS next month where we show that the approach used in CryptDB and other similar systems is vulnerable to a raft of statistical attacks.
http://research.microsoft.com/en-us/um/people/senyk/pubs/edb...
The problem happens when you have a sensitive field in the DB, and you actually need to run queries on that field for your app to function. CryptDB will "peel the onion back" so that your column is protected with a weaker deterministic or order-preserving encryption primitive in order to let the queries succeed. But then you're vulnerable to the statistical attacks that we describe in our paper.
Of course, the CryptDB authors are smart people, so they foresaw some of this. They describe functionality in their tool for marking certain columns as "sensitive", so CryptDB will never peel the onion back too far. But then you can't use that column for most queries.
Like I said, be very careful.
If you're interested in other recent work in this area, check out the Secure Anonymous Database Search project from Mariana Raykova and others at Columbia [1], and the secure database work from David Cash and a big team of other smart people [2].
Conceptually it's a sql proxy that decides how to maximally encrypt data based on the operations that are required. It can then weaken and re-encrypt portions of the data on the fly so that more powerful operations can be performed.
You can chain the encryption to the users login to to prevent cross user leakage.
This model allows you to have a database that is protected from adversary who have access to the database.
The encryption techniques include a partially Homomorphic scheme and other non-homomorphic schemes.
I believe that the team behind it seem to have moved on to a startup using similar technology. The code is not being actively maintained anymore. I was able to build it successfully on Ubuntu 12.04 with Bison 2.x(The code requires a mysql build which chokes on BISON 3).
They claim only a ~15%-25% performance hit although I've not yet be able to replicate that myself yet.