Encrypted Search based on slides by Debra Cook
Encrypted Search based on slides by Debra Cook
Privacy-Preserving Computation Search query Data repository Ø Client wants to preserve search privacy: Private Information Retrieval Ø Data repository is huge! Privacy-preserving data mining Ø Data are encrypted: Search over encrypted data 1
Untrusted Remote Storage • Remote storage is ubiquitous: – E-mail, backups, CVS – Department servers, Yahoo Mail, Gmail 2
Untrusted Remote Storage • Google’s Search Across Computers feature – “In order to share your indexed files between your computers, we first copy this content to Google Desktop servers located at Google. This is necessary, for example, if one of your computers is turned off or otherwise offline when new or updated items are indexed on another of your machines. We store this data temporarily on Google Desktop servers and automatically delete older flies, and your data is never accessible by anyone doing a Google search. ” • Do you trust this? 3
Searchable Encryption • Store data externally – encrypted – want to search data easily – avoid downloading everything then decrypt – allow others to search data without having access to plaintext 4
Searchable Encryption - Factors • When searching, what must be protected? – retrieved data – search query outcome (was anything found? ) • Scenario – single query vs multiple queries – non-adaptive: series of queries, each independent of the others – adaptive: form next query based on previous results • # of participants – single user (owner of data) can query data – multiple users can query the data, possibly with access rights defined by the owner 5
SSE Security Non-Adaptive 6
Search Over Encrypted Data • Applications: Storage outsourcing, mail gateways, Google Desktop (“search across computers”), outsourced database… • Untrusted servers Data has to be encrypted • Encryption hides all information about the data Server cannot search! • Client must download entire document collection: 7
Search Over Encrypted Data • (cont’d) Searchable Symmetric Key Encryption where client performs encryption before storing data – Recall that public key algorithms are too slow for encrypting large data • Secure index (SI): Auxiliary data structure that allows the remote server to perform searches efficiently, while keeping queries and data confidential • Documents are encrypted; SI is encrypted — “two-layer; ” searches performed using trapdoors. 8
Searchable Encryption Song, Wagner, Perrig Proposal • Alice wants to encrypt a document containing a sequence of n bit words, w 1, w 2 … wq • Compute bitwise XOR of plaintext with sequence of “pseudorandom” bits with some structure – n-m bit strings: s 1, s 2, . . sq generated (such as from a stream cipher using a key k’) – use keyed function F on n-m bits that outputs m bits • ti = si || Fki(si) • ci = wi ti 9
Basic Idea • To search for some wj, tell server – ki for each location i want to search – wj • Server computes ci wj – checks if it is of the form s || Fki(s) – s = first n-m bits, insert into Fki and see if result matches last m bits of ci w • But this requires that Alice reveals – all ki’s in subset of data she wants to search – and wj 10
Don’t Reveal All ki’s • Instead, only reveal key for the wj • Can use one secret key k and a function G to create ki’s : ki = Gk(wi) • Reveal wj and Gk(wj) when searching for wj • If wj is in location i, does not reveal other keys, ki for i ≠ j • Still reveals wj 11
Don’t Reveal Plaintext plaintext wi Esk(wi) Li Ri ciphertext stream cipher si Gki(si) 12
Don’t Reveal Plaintext • Instead of applying process to plaintext (w 1, w 2, … wq), encrypt wi’s first as individual blocks – xi = Esk(wi) • Also split xi into Li || Ri – where Li is n-m bits (same length as si) – to allow decryption – see on next slide • Use Li to create ki, ti , xor with xi – ki = Gk(Li) – ti = si || Fki(si) – ci = xi ti • To search for wj, Give server (xj, kj) • Server computes – ti = ci xjfor each i – checks if ti is of the form si || Fkj(si) – if yes, found a match 13
Don’t Reveal Plaintext • xi broken into Li, Ri to allows decryption by someone with the fixed keys • • • – k’ (stream cipher) – sk (E – encryption of wi’s) – k (G – function for creating ki’s) Use k’ to compute si Recover Li: Li = si (first n-m bits of ci) Use Li to compute ki : ki = Gk(Li) Use ki to recover Ri : Fki(si) (last m bits of ci) Now have all of xi : xi = Li || Ri Then can recover wi : wi = E-1 sk(xi) 14
Security • Information leakage – Didn’t cover how to securely index documents • After one query, does server know if two documents contain the same wi? • Over many queries can determine if document are similar – How to hide length of wi? • Overhead – typical w not a full block for a block cipher – Is each wi padded? 15
Searchable Encryption Curtmola, Garay, Kamara, Ostrovsky Proposal (Will cover a non-adaptive case) • D = set of documents • W = of words in D, w is a word in W • D(w) = set of documents in D containing w • T = lookup table containing information to locate and decrypt elements of A • Li = linked list containing identities of documents in D(wi) – Each node encrypted under separate key – jth node of Li contains pointer to (j+1)st node its key to (need to decrypt jth node to get information for (j+1)st node ) • A = array containing all nodes from all LI’s in random order – Can’t determine order of LI’s within A – Can’t determine length of an Li without traversing it 16
Build Lists Determine words in each D to create D(w)’s Build linked lists Austin Baltimore Washington 17
Create Lists Encrypt linked lists: establish keys, pointers, encrypt Austin Baltimore Washington 18
Build Index Table Build lookup table T g( f(Austin ) f(Baltimore ) g( f(Washington ) g( 19
Create Array Merge, scramble linked lists to form A 20
Query Baltimore 21
Performance • While traversing lists is linear in length of list but linear by what factor? • In practice, is a block cipher used to encrypt each word? • Padding? • Need to run key schedule and decryption function per node 22
Extensions • Can I share my document collection? • Malicious servers • Updates 23
Multi-User SSE 24
Multi-User SSE (cont’d) • Similar security notions to single-user SSE’s – • Revocation: owner can revoke searching privileges – • Secure indexes and trapdoors Robust against user collusions Anonymity: server should not know who initiated search 25
Initial Work on SSE • “Oblivious RAMs” [Ost 90, GO 96] – – • “Practical techniques for searches on encrypted data” [SWP 00] – – • – IND 2 -CKA: semantic security against chosen-keyword attacks Efficient and IND 2 -CKA construction (PRFs, Bloom filters) “Privacy Preserving Keyword Searches on Remote Encrypted Data” [CM 05] – – • First specific construction (PRGs, PRFs, PRPs) Limitations: leaks information; inadequate security definition (IND-CPA) “Secure Indexes” [Goh 03] – • Optimal security (even hides access pattern) Poly-logarithmic number of rounds Simulation-based security definition Two constructions (PRFs, PRPs) “Searchable Symmetric Encryption: Improved Definitions and Efficient Constructions, ” [CGKO 06] – – Proposed four new security definitions Two new efficient constructions for SSE IND 2 -CKA: Indistinguishability against Chosen-Keyword Attacks 26
- Slides: 27