WO2018208786A1 - Method and system for secure delegated access to encrypted data in big data computing clusters - Google Patents

Method and system for secure delegated access to encrypted data in big data computing clusters Download PDF

Info

Publication number
WO2018208786A1
WO2018208786A1 PCT/US2018/031614 US2018031614W WO2018208786A1 WO 2018208786 A1 WO2018208786 A1 WO 2018208786A1 US 2018031614 W US2018031614 W US 2018031614W WO 2018208786 A1 WO2018208786 A1 WO 2018208786A1
Authority
WO
WIPO (PCT)
Prior art keywords
key
cryptographic key
public
distributed application
encrypted
Prior art date
Application number
PCT/US2018/031614
Other languages
French (fr)
Inventor
Mikhail EGOROV
Maclane Scott Wilkison
David NUǸEZ
Isaac AGUDO
Original Assignee
ZeroDB, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZeroDB, Inc. filed Critical ZeroDB, Inc.
Publication of WO2018208786A1 publication Critical patent/WO2018208786A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/14Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using a plurality of keys or algorithms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/76Proxy, i.e. using intermediary entity to perform cryptographic operations

Definitions

  • the present disclosure relates generally to distributed computing and, more specifically, to encryption for distributed storage and processing applications.
  • One class of cloud-computing involves clusters of computers that concurrently process very large sets of data, e.g., with HadoopTM, SparkTM, FlinkTM, or KafkaTM.
  • these distributed processing frameworks or libraries distribute data among a set of computers (or other computational entities, like virtual machines or containers) in a cluster, often with redundant copies of the data being distributed among the computers, as often none of the computers are trusted to not fail during a process.
  • these systems process data concurrently, e.g., with MapReduce, to make operations on large data sets feasible. Given the large number of computers often used, and often variable demand for those computers, many users execute these applications in the cloud.
  • Traditional implementations of this architecture can give rise to undesirable tradeoffs.
  • TDE Transparent Data Encryption
  • Encryption keys could be stored remotely from the computing devices by which the distributed processing and storage application is implemented, e.g., in a zero-knowledge architecture, where encryption keys are stored on separate, often remote, trusted computers exclusively, and encrypted data is sent to those computers for processing.
  • performance can suffer in distributed processing and storage applications, where there are often many, highly-distributed attempts to access encrypted data. Sending encrypted blobs to a remote trusted computer to be decrypted and sent back can be prohibitively slow when done too often or for data sets that are too large.
  • Some aspects include a process including: obtaining, with one or more processors, a plurality of records associated with an encryption zone in a distributed application executing on a plurality of computing nodes; encrypting, with one or more processors, each of the plurality of records with a respective data encryption key among a plurality of data encryption keys to form a plurality of encrypted records; encrypting, with one or more processors, each of the plurality of data encryption keys with a first public cryptographic key to form encrypted data encryption keys, wherein: the first public cryptographic key is a member of a first public-private cryptographic key pair including the first public cryptographic key and a corresponding first private cryptographic key, the first public cryptographic key corresponds to the encryption zone, the distributed application comprises a trusted portion and an untrusted portion, the first private cryptographic key is unavailable to the untrusted portion of the distributed application, and the first private cryptographic key is available to at least part of the trusted portion of the distributed application; obtaining, with one or more processors, a second
  • Some aspects include a tangible, non-transitory, machine-readable medium storing instructions that when executed by a data processing apparatus cause the data processing apparatus to perform operations including the above-mentioned process.
  • Some aspects include a system, including: one or more processors; and memory storing instructions that when executed by the processors cause the processors to effectuate operations of the above-mentioned process.
  • Figure 1 shows an example of a logical architecture of a distributed processing and storage application performing key rotation in accordance with some embodiments of the present techniques
  • Figure 2 shows an example of a process for key rotation that may be performed with a logical architecture of figure 1 in accordance with some embodiments of the present techniques
  • Figure 3 shows an example of the logical architecture of figure 1 with greater detail depicting an example of delegated access being provided in accordance with some embodiments of the present techniques
  • Figure 4 shows an example of a process by which relatively fine-grained access to different subsets of encrypted data is provided with delegated access like that of figure 3 in accordance with some embodiments of the present techniques
  • Figure 5 shows the logical architecture of figure 1 with greater detail illustrating a read operation in accordance with some embodiments of the present techniques
  • Figure 6 shows the logical architecture of figure 1 with greater detail illustrating a write operation in accordance with some embodiments of the present techniques
  • Figure 7 illustrates the logical architecture of some embodiments
  • Figure 8 illustrates an example of a process to write data to the file system of some embodiments
  • Figure 9 illustrates an example of a process to read data from the file system of some embodiments
  • Figure 10 illustrates an example of a process to rotate keys in some embodiments
  • Figure 11 illustrates an example of an architecture supporting encrypted subzones in some embodiments.
  • Figure 12 shows an example of a computing device by which the above-described processes and systems may be implemented.
  • One approach to mitigate this issue with key rotation for cloud-hosted encrypted data is use of hybrid encryption systems, where data is encrypted with a key (e.g., a symmetric key where the same secret value is used by encrypt the data and then decrypt the data), that key is then itself encrypted, and the encryption by which the key is accessed is subject to key rotation.
  • a key e.g., a symmetric key where the same secret value is used by encrypt the data and then decrypt the data
  • This approach mitigates the problem above when the number of encryption keys is relatively small. But this approach often does scale to the number of keys needed for fine-grained allocation of selective access to data, e.g., where different data is encrypted with different keys, and then those different keys are distributed to entities authorized to access the subset of the data encrypted with that key.
  • the volume of data consumed by just the keys can be relatively large, and the issues discusses above re-emerge as the data is subdivided into finer-grained segments with different keys.
  • Such systems may have a huge number of symmetric keys to process (e.g., in some cases, more data than is encrypted in the first place).
  • proxy re-encryption uses proxy re-encryption to implement a form of key rotation.
  • Some embodiments 1) generative a new (replacement) public/private key pair; 2) create a transformation key with proxy re-encryption based on the old public key and the new public key; 3) instruct the untrusted computers in the cloud to encrypt the data with the transformation key, so that the new private key can read the data and the old private/public key can be deleted.
  • the data is transformed without downloading the data to a trusted computer, on the untrusted computers of a public cloud, and without the untmsted computers having the data owner's private key by which they can access the full set of data.
  • the proxy re-encryption techniques are used in some embodiments to selectively grant access on a relatively fine-grained basis.
  • Embodiments have different pieces of data encrypted with different derived keys, allowing different entities (e.g., processes or jobs in Hadoop) to access different subsets of the data. For example, use cases may have a table with a billion rows and 200 columns, and a user may request an analysis in HadoopTM on only 2 of those columns. In this scenario, some embodiments may implement different keys for just those two columns and only use those two keys for the task, leaving the rest of the data unexposed and reducing the system's attack surface.
  • the plaintext may be workload data of the distributed processing and storage application (e.g., application state of the job being run), or the plaintext may be an encryption key (e.g., encrypted data encryption keys (EDEKs)) by which that workload data is encrypted.
  • EEEKs encrypted data encryption keys
  • a symmetric key may be used to encrypt the workload data (e.g., a secret accessible to both sides), and the symmetric key may be conveyed with asymmetric key encryption (e.g., one side only knows the public key of the other side, who uses their private key to read the value encrypted with their public key, e.g., the symmetric key), which is then used to access the workload data.
  • proxy re-encryption algorithms may be used. Examples include those described in the following: Giuseppe Ateniese, Kevin Fu, Matthew Green, and Susan Hohenberger, "Improved Proxy Re-Encryption Schemes with Applications to Secure Distributed Storage,” Cryptology ePrint Archive, at 2005/028; M. Blaze, G. Bleumer, and M. Strauss, "Divertible protocols and atomic proxy cryptography," In Proceedings of Eurocrypt '98, volume 1403, pages 127-144, 1998; and D. Nu ⁇ nez, I. Agudo, and J. Lopez, “Delegated Access for Hadoop Clusters in the Cloud,” IEEE International Conference on Cloud Computing Technology and Science (CloudCom 2014), pp.
  • TDE Transparent Data Encryption
  • HDFS Hadoop File System
  • TDE generally supports only symmetric encryption (AES). This means that every time partners are used as data sources, they have to ask the system's Key Management System (KMS) to encrypt data encryption keys (DEKs). Which means that the KMS has to be online all the time.
  • KMS Key Management System
  • Symmetric encryption can only be AES in unauthenticated CTR mode. This means that your data can be corrupted or deliberately changed while encrypted without you knowing.
  • Key rotation is very hard to perform because systems cannot employ the Hadoop cluster for this task as it would expose old and new secret keys to all the machines in the cluster. Key rotation is not supported in Hadoop KMS (as well as Key Trustee KMS and Ranger KMS), manual workarounds are slow or insecure. But key rotation every 1-12 months is desirable for security, compliance with regulations and internal policies.
  • Some embodiments implement one of more of the techniques described herein to secure Hadoop TM or other distributed processing and storage applications, mitigating the above challenges in the following ways:
  • Some embodiments support public key cryptography for encryption zones. In some cases, computational overhead in addition to AES is minimal.
  • some embodiments can use AES256 in authenticated GCM mode. • Some embodiments delegate access to compute nodes in a cryptographically secure way using proxy re-encryption [PRE]. As a result, in some cases, compute nodes do not have to talk to the KMS while performing a job, so it does not matter how far the KMS is located from the cluster and whether the KMS can handle many simultaneous requests.
  • PRE proxy re-encryption
  • Key rotation with some embodiments is executed relatively quickly, e.g., less than a minute, less than 10 seconds, and in some cases, less than a second.
  • proxy re-encryption to delegate data to the system's "future" self.
  • FIG. 1 An example of a logical architecture 10 consistent with some embodiments is shown in figure 1.
  • Some embodiments include a demilitarized zone (DMZ) 12 (an example of a trusted portion of the illustrated distributed application, outside of which is an example of an untrusted portion), a Hadoop file system (HDFS) layer 14, and an execution engine 16, each of which may communicate with one another via one or more networks, such as a secure local area network or in some cases, the Internet, using protocols such as Internet Protocol (IP) and Transport Control Protocol (TCP).
  • IP Internet Protocol
  • TCP Transport Control Protocol
  • the DMZ hosts a key management server (KMS) 18 with a key store having a plurality of encryption keys by which data is encrypted in the HDFS, e.g., by the data owner.
  • KMS key management server
  • the HDFS layer may distribute workload data across a plurality of computing nodes on a plurality of computing devices, with data stored redundantly on different computing devices in case one device fails.
  • Other embodiments may use other distributed filesystems, like PVFS, Lustre, or GFS.
  • Some embodiments may store filesystem metadata and workload (application) data separately, e.g., with the metadata stored on a NameNode and workload data stored on DataNodes.
  • the NameNode may store a filesystem namespace tree hierarchy and a mapping of data blocks to the DataNodes.
  • Some embodiments may include a single NameNode and more than 10, more than 100, or more than 1,000 DataNodes.
  • the execution engine 16 may perform operations on the workload data specified in a job, such as mapping operations or reducing operations.
  • the execution engine is MapReduce or Tez TM.
  • Some embodiments may perform mapping operations in which filtering or sorting is performed concurrently on different subsets of the workload data by different computing nodes.
  • Some embodiments may perform reducing operations by which the results of the mapping operations are aggregated or otherwise summarized, e.g., again with concurrent operations on different subsets of the results with different computing nodes in a cluster.
  • these features may be implemented within the distributed processing and storage application described herein, using a plurality of the computing devices described with reference to figure 7, e.g., in a public or private cloud data center.
  • Some embodiments secure a HadoopTM distribution in such a way that, if an attacker hacks into any instance of the cluster, the attacker cannot gain anything beyond the information which the compromised instance is currently computing on.
  • some embodiments do not introduce any noticeable slowdown to jobs, no matter how far from the Hadoop deployment the encryption keys are stored. And some embodiments also provide near- instant key rotation.
  • some embodiments configure nodes in a Hadoop cluster to work on workload data without talking to the KMS (e.g., a remote KMS used in traditional Hadoop deployments).
  • the DMZ in some embodiments, generates temporary keys for some or all of the nodes and produces transformation keys for the HDFS layer, so that HDFS can transform selected data from being encrypted for the data owner into being encrypted for compute nodes.
  • the number of ciphertexts accessible with a different encryption key e.g., EDEK's or other data owner keys
  • the volume of such keys may be comparable to that of the data itself, in the extreme case with one or more keys per entry per field of data.
  • the volume of keys (e.g., measured in bytes) may be more than 2% that of the data encrypted with the keys, more than 5%, more than 20%, more than 50%, more than 80%, or more than 100%, depending on the resolution with which access (e.g., the ability to decrypt) is granted.
  • cluster nodes do not need to send anything to the remote KMS, nor do they need to interact with the remote KMS while the job is executed.
  • the remote KMS may store private and public keys by which a data owner's data is encrypted.
  • an intermediary KMS described below may access and store these public keys to form transformation keys or temporary access keys described below.
  • Proxy re-encryption a the cryptographic primitive by which some embodiments secure Hadoop in a more manageable manner than traditional approaches.
  • PRE is a family of public key encryption algorithms, the first of which was introduced in 1998.
  • proxy re-encryption provides access delegation, so that a completely different private key can decrypt your data.
  • Data is encrypted under the owner's public key, as is typical in public key cryptography:
  • this transformation key t key can be used to transform data where it is stored, e.g., without exposing any secret keys:
  • Figure 2 shows an example of a process 20 by which key rotation is achieved, e.g., with the architecture of figure 1.
  • key rotation is relatively manageable once the insights described herein are implemented.
  • the KMS creates a transformation key (block 24), which after being distributed to computing nodes of a cluster (block 26), allows an untrusted party (e.g., the computing nodes) to transform data from being encrypted under an old version to a new version of the key (block 28).
  • an untrusted party e.g., the computing nodes
  • the user shares their own data with their future self with proxy re-encryption.
  • the transformation key is given to the cluster. And the whole cluster is employed for doing key rotation.
  • a typical 1000-node cluster can perform key rotation at a speed of 2 petabytes per second.
  • no encryption keys are exposed to the Hadoop deployment and the data is never decrypted.
  • KMS key management server 18 that affords delegated access and is distinct from the Hadoop KMS, e.g., some embodiments may include two KMSs, with the present KMS sitting between the Hadoop KMS and computing nodes of the distributed storage and processing application, or some embodiments may replace the Hadoop KMS with the present KMS.
  • KMS key management server
  • some embodiments have a KMS that communicates with the Hadoop cluster (e.g., by sending keys needed to access data) only when the KMS grants the permissions to execute the job being processed by the cluster in a cryptographically secure manner.
  • these operations may be implemented with a TransformationNode 30 added to the HDFS layer and a LocalKMS 32 in the computing nodes 34 in support of computing processes 36, like mapping operations and reducing operations.
  • the HDFS layer may include a NameNode 38 and DataNode 40 by which ciphertexts are accessed with the TransformationNode 30 and the computing node 34.
  • Some embodiments may include substantially more computing nodes, e.g., more than 10, more than 100, or more than 1,000.
  • the Key Management System 18 Before the cluster (of computing nodes constituting a Hadoop cluster in an instance of a distributed processing and storage application) executes the job (e.g., pipeline of one or more MapReduce operations on workload data), in some embodiments, the Key Management System 18 generates temporary encryption key pairs for some or all computing nodes in the cluster that will perform tasks in the job (e.g., with each node having its individual key pair (for instance, a public and private key in a public key encryption algorithm), and with different computing nodes having different key pairs). These temporary key pairs, in some embodiments, are transferred to the nodes 34 of the execution engine 16 over the network, e.g., with the transfer being secured by Transport Layer Security (TLS) communications between the KMS 18 and the nodes of the execution engine 16.
  • TLS Transport Layer Security
  • a transformation key is generated to grant permission to decrypt the data.
  • These transformation keys may be deployed in the HDFS layer, e.g., by writing the key to designated locations in the distributed file system, in some cases, with keys being written to local memory of a computing node that will use the respective keys to access the data local to that computing node and perform operations on that data, or in some cases, the data or keys may be stored on a different computing node.
  • HDFS layer nodes may transformed/re-encrypt the data prior to sending it to the execution engine, without having access to the encryption keys.
  • FIG. 4 shows an example of a process 50, which may be executed by the logical architectures described herein, to provide relatively fine-grained access control using the delegated access features discussed above.
  • the process 50 includes obtaining a cluster of computing nodes in a distributed storage and processing application, as indicated by block 52. In some cases, this may include one or more of the distributed storage and processing applications described herein, and in some cases, obtaining the cluster, may be performed by obtaining access to a cluster hosted on a remote data center.
  • Some embodiments include accessing a transformation key with a first computing node, as indicated by block 54.
  • accessing the transformation key may include accessing one of the above-described key management servers discussed above, such as a key management server operative to provide a transformation key for a proxy re-encryption algorithm like those discussed above.
  • Some embodiments include transforming the ciphertext with the first computing node, as indicated by block 56.
  • the ciphertext is workload data stored in one of the above- described data nodes, for instance, ciphertext formed with data encrypted with a data owner's encryption key or with one of the above-described key rotation keys.
  • transforming the ciphertext with the first computing node may include transforming the ciphertext with the transformation key, for example, based upon a public key of a second computing node discussed below.
  • the transformation may be performed without access to a private key by which the ciphertext is encrypted and without access to a private key corresponding to a public key of the second computing node.
  • the transformation may be performed without the first computing node having access to the unencrypted plaintext form of the ciphertext.
  • Some embodiments may access the transformed ciphertext and the temporary access key with a second computing node, as indicated by block 58.
  • the second computing node is a worker node in a computing cluster executing one of the above-described computing processes 36.
  • the temporary access key is accessed with a local key management server 32 like that discussed above.
  • the transformed ciphertext is accessed with the read operation described below with reference to figure 5, For instance by interfacing with the above-described NameNode 38 to identify which DataNode 40 that stores the transformed ciphertext.
  • some embodiments may decrypt the transformed ciphertext with the second computing node, as indicated by block 60.
  • these operations 58-64 may be performed concurrently, for example, by more than 10, more than 100, or more than 1000 different computing nodes that serve the role of the second computing node.
  • the operations of block 54 and 56 may be executed concurrently, for instance, by different instances of the TransformationNode 30 described above.
  • some embodiments may perform a mapping task or a reducing task with the second computing node on the plaintext data, as indicated by block 62.
  • some embodiments may store a result of the mapping task or the reducing task in memory, as indicated by block 64. In some cases, this may include the below-described write operations of figure 12. In some embodiments, a sequence of mapping, then reducing, then mapping, then reducing tasks, and so on, the repeated, for example, in a pipeline.
  • Some embodiments may use the result of the MapReduce job for a variety of purposes.
  • the resulting data may be subject to further transformations, and some embodiments may cause a client computing device to present user interface based on the result, as indicated by block 66.
  • the client computing device may present a user interface in a web application or a native mobile application or desktop application.
  • delegated access may be granted with relatively fine-grain control, for example, with different encryption keys being allocated to different computing nodes, such that the different computing nodes may access a subset of the present ciphertexts.
  • some embodiments may permit a given computing node to access a single column, or a single value of a single field with a single temporary access key suitable for that computing node (and only that computing node having a corresponding private key) to access that one and only value, or embodiments may group subsets of data in different ways, for example, by column, by row, by table, or the like, and provide access based upon these different subsets of data. Some embodiments may generate keys to access different subsets of data, such as the temporary access keys, for limited use, for example, on a job-by-job basis or on a task by task basis. In some cases, a given computing node may become compromised, but an adversary a may be prevented from accessing the full set of data based upon the above-describe segmentation with different encryption keys applying to different subsets of these ciphertext.
  • HDFS clients When HDFS clients read data encrypted with a block cipher and data encryption keys encrypted with a zone key (EDEKs) [TDE], they typically use the KeyProvider API to ask Hadoop KMS to decrypt EDEKs.
  • EDEKs zone key
  • EDEKs are instead transformed by TransformationNodes to EDEK2 and sent for decryption to a local daemon (LocalKMS), which in some cases, provides the same KeyProvider API.
  • the LocalKMS daemon may decrypt EDEK2 with the temporary private key it holds (after EDEKs are transformed by the HDFS layer) and give data encryption keys (DEKs) back to the local HDFS client that requested them.
  • the HDFS client then uses DEKs to decrypt the data encrypted by the block cipher, similar to standard transparent data encryption.
  • the sequence of events for reading an encrypted file with TDE includes the following: 1.
  • the HDFS client calls openQ to read a file.
  • the NameNode provides the EDEK to the client
  • the HDFS client passes the EDEK and EZK-id/version to the KMS.
  • the KMS requests the EZK from the key server.
  • the KMS decrypts the EDEK using the EZK.
  • the KMS provides the DEK to the HDFS client.
  • the HDFS client reads the encrypted data blocks, decrypting them with the DEK.
  • KMS gives transformation key to TransformationNode, generates and gives temporary key to LocalKMS.
  • the HDFS client calls open() to read a file.
  • the HDFS client passes the EDEK and EZK-id/version to the LocalKMS.
  • the LocalKMS decrypts the EDEK using its temporary key.
  • the LocalKMS provides the DEK to the HDFS client.
  • the HDFS client reads the encrypted data blocks, decrypting them with the DEK.
  • LocalKMS when an HDFS client writes data to HDFS, LocalKMS generates a random data encryption key (DEK), which the client uses to encrypt data with a block cipher algorithm (typically AES). If this node is allowed to save data to HDFS, the KMS of some embodiments gives LocalKMS the public key for the Encryption Zone. LocalKMS may encrypt DEK using this public key to produce an EDEK, and this EDEK gets transferred to a NameNode in the HDFS layer. There is no need for the HDFS cluster to communicate with the KMS of the present embodiment during this process.
  • DEK random data encryption key
  • AES block cipher algorithm
  • sequence of events for writing an encrypted file with TDE includes the following:
  • the HDFS client calls create() to write to the new file.
  • the NameNode requests the KMS to create a new EDEK using the EZK-id version.
  • the KMS generates a new DEK.
  • the KMS retrieves the EZK from the key server.
  • the KMS encrypts the DEK, resulting in the EDEK.
  • the KMS provides the EDEK to the NameNode.
  • the NameNode persists the EDEK as an extended attribute for the file metadata.
  • the NameNode provides the EDEK to the HDF S client.
  • the HDFS client provides the EDEK to the KMS, requesting the DEK.
  • the KMS requests the EZK from the key server.
  • the KMS decrypts the EDEK using the EZK.
  • the KMS provides the DEK to the HDFS client.
  • the HDFS client encrypts data using the DEK.
  • the HDFS client writes the encrypted data blocks to HDFS.
  • the sequence of events for writing an encrypted file are shown in figure 6 and include the following:
  • KMS gives LocalKMS public key for encryption zone.
  • the HDFS client calls create() to write to the new file.
  • the NameNode persists the EDEK as an extended attribute for the file metadata.
  • LocalKMS provides the EDEK to the HDFS client.
  • the HDFS client provides the EDEK to the LocalKMS, requesting the DEK.
  • the HDFS client encrypts data using the DEK.
  • the HDFS client writes the encrypted data blocks to HDFS.
  • ciphertext the encrypted form of data
  • plaintext the unencrypted form of data, which may still be encrypted in cases where multiple layers of encryption are applied.
  • the plaintext may be workload data of the distributed processing and storage application (e.g., application state of the job being run), or the plaintext may be an encryption key (e.g., encrypted data encryption keys (EDEKs)) by which that workload data is encrypted.
  • EEEKs encrypted data encryption keys
  • a symmetric key may be used to encrypt the workload data (e.g., a secret accessible to both sides), and the symmetric key may be conveyed with asymmetric key encryption (e.g., one side only knows the public key of the other side, who uses their private key to read the value encrypted with their public key, e.g., the symmetric key), which is then used to access the workload data.
  • asymmetric key encryption e.g., one side only knows the public key of the other side, who uses their private key to read the value encrypted with their public key, e.g., the symmetric key
  • a common theme in many big data storage and analytics software tools is distributed processing and resiliency to the failure of any one computational entity, often with redundancy and fault-tolerant algorithms. Examples are described with reference to Apache HadoopTM, but the present techniques can be applied in a variety of other big data applications, including Apache SparkTM, Apache FlinkTM, Apache StormTM, Apache SamzaTM, Cluster MapReduce, High Performance Computing Cluster, HydraTM, CephTM, DataTorrent RTSTM, DiscoTM, BigQueryTM, PachydermTM, PrestoTM, and the like. Many facing the challenges above would like to use these tools, but the same aspects that make the tools powerful for big data problems increase the attack surface for malicious actors. To mitigate these issues, some embodiments deploy certain cryptographic techniques in the context of these tools.
  • Apache Hadoop is a processing framework for big data repositories. Details are described at http ://hadoop . apache. org/ docs/ current/, the contents of which under the headings "General,” “Common,” and “HDFS,” and “MapReduce,” in the Internet Archive capture of 14 February 2017 are hereby incorporated by reference.
  • MapReduce uses the MapReduce paradigm, which spreads the workload across the whole cluster in two distinct phases: (i) Map, where each data record is processed and an intermediate result is produced, (ii) and Reduce, where several intermediate results are merged into single outputs. This paradigm is very powerful since it scales very well and it is robust to node failures.
  • Hadoop works with several filesystems, it also defines its own, named Hadoop Distributed File System (HDFS), specifically designed for high throughput and fault-tolerance.
  • HDFS Hadoop Distributed File System
  • TDE Transparent Data Encryption
  • EZkey Encryption Zone key
  • KMS Key Management Server
  • the data owner can define in the KMS different "encryption zones", which essentially act as directories whose content is encrypted, each of them with a different EZKey.
  • the KMS interoperates with key store servers in order to retrieve EZKeys when needed.
  • TDE generally supports only symmetric encryption. This means that in case of external organizations acting as data sources (e.g., contractors, partners, etc.), they have to ask the KMS to encrypt data encryption keys (DEKs). This implies that the KMS has to be online all the time (even for data collection purposes).
  • Certain existing public-key encryption schemes allow an entity holding a private key related to some public key to decrypt ciphertexts encrypted under said public key.
  • the encryption scheme proposed by ElGamal is one example of public-key encryption scheme (see ElGamal, T. (1984, August). A public key cryptosystem and a signature scheme based on discrete logarithms. In Workshop on the Theory and Application of Cryptographic Techniques (pp. 10-18). Springer Berlin Heidelberg.)
  • Public-key encryption is one of the basic tools of public-key infrastructures. In recent years, research on more advanced functionalities has been conducted in relation with public-key encryption, leading to schemes where decryption of ciphertexts originally encrypted by some public key can be performed with a private key not associated with said public key.
  • Some embodiments provide nodes in a Hadoop cluster configured to operate on encrypted data (e.g., execute a mapping function or reducing function specified by a user to the Hadoop framework and that takes as input the encrypted data (in decrypted form) and outputs transformed versions of the encrypted data (in decrypted form) so that it can be encrypted in a newly encrypted set of data) in an untrusted portion of the distributed application while minimizing (or otherwise reducing) communication with the KMS in the trusted portion.
  • Some embodiments integrate a proxy re-encryption scheme (which is a type of public key cryptosystem) within the TDE functionality.
  • the EZKeys (which in Hadoop TDE are symmetric keys) are substituted by a pair of public and secret keys, namely the Public Encryption Zone Key (PEZKey) and the Secret Encryption Zone Key (SEZKey).
  • PZKey Public Encryption Zone Key
  • SEZKey Secret Encryption Zone Key
  • the public key (which corresponds to the PEZKey in some embodiments) is used for encryption, while the secret key (which corresponds to the SEZKey some embodiments) can be used for decryption.
  • the PEZKey when encrypting data files for storage in the filesystem, is used to create EDEKs from DEKs, while the SEZKey can be used to decipher DEKs from EDEKs (that is, the opposite operation). These actions correspond with write and read access flows, respectively. Since PEZKeys are public they do not need any special protection (apart from guaranteeing its integrity and authenticity in some use cases, for instance with a cryptographic hash signature). On the other hand, SEZKeys, in some embodiments, are kept secret (e.g., in a trusted portion of the distributed application), in a similar way than TDE handles regular, symmetric EZKeys.
  • some embodiments improve the read access flow so that SEZKeys are not used directly by a consumer (such as a computing node in the untrusted portion of the application executing the mapping or reducing functions).
  • the owner of the encryption zone, which controls the SEZKey generates a special key called Transformation Key (TK), which in some embodiments, allows embodiments to transform EDEKs under PEZKey to EDEKs under a different public key, such as the public key of a consumer, which can decrypt them using the corresponding secret key (this process is known as "Re-Encryption" in proxy re-encryption literature).
  • TK Transformation Key
  • Embodiments are described with reference to a pair of public and secret keys of a consumer as PCKey and SCKey, respectively.
  • the conjunction of these two keys is called a CKeypair herein.
  • Each consumer in the system has a different CKeypair, that is, a different pair of PCKeys and SCKeys.
  • each of a plurality of tenants, applications, sessions, or users may have a different CKeypair.
  • the owner of the encryption zone For a given PEZKey and SEZKey pair, the owner of the encryption zone generates a TK for each consumer in the system (in some cases, there is a consumer for each computing node, or all the nodes act may as a single consumer).
  • the transformation process uses the re-encryption functionality offered by proxy re-encryption to transform an EDEK, initially encrypted under a PEZKey as part of a write access request, into a new EDEK, called Transformed EDEK (TEDEK), which can be decrypted by the consumer with its SCKey in some embodiments.
  • EDEK Transformed EDEK
  • TDE Transformation Node
  • LocalKMS LocalKMS
  • the KMS communicates with the cluster only when it grants the permissions to execute a job.
  • the KMS generates temporary key pairs for the consumer nodes (that is, pairs of a PCKey and a SCKey), which are securely transferred to the nodes (e.g., with SSH).
  • a transformation key TK is generated to grant permission to decrypt data with the SCKey and subsequently deployed to the cluster, specifically, to the local Transformation Node.
  • the Transformation Node transparently transforms the data from the original PEZkey to the temporary PCKey. Hence, from the point of view of the consumer nodes, files appear as if they were originally encrypted under their temporary PCKey.
  • Figure 7 shows a high-level view of the architecture of some embodiments.
  • Figure 7 and the above are examples of distributed applications, which are applications executing on a plurality of computing devices, such as on a plurality of computing nodes, like containers, virtual machines, uni-kernels, non-virtualized operating systems, and the like.
  • the distributed application described herein may be a subset of a larger distributed application, such as a backend to a web application or application program interface accessed by remote user computing devices or other distributed applications, arrangements which may be characterized under the rubric of being distributed applications themselves in the aggregate.
  • the illustrated distributed application 70 may include a trusted portion 72 and an un-trusted portion 74.
  • the term "trust” herein does not require a state of mind, but rather serves to distinguish different portions of the distributed application in which different security techniques are applied, with the "un-trusted” portion being assumed to be more vulnerable to attack potentially than the "trusted portion,” or architected as if this is the case.
  • the trusted portion 72 may execute in different processes, on different computing devices, on different subnets, or otherwise separate from the un-trusted portion 74, and in some cases with communication therebetween only through relatively well-defined and manageable channels that tend to diminish the attack surface of the trusted portion 72 relative to the untrusted portion.
  • the untrusted portion may execute user-supplied code, while the untrusted portion may not in some implementations.
  • the trusted portion 72 includes a keystore 76 having one or more public- private cryptographic key pairs, such as the key pair with a private cryptographic key 73 and a public cryptographic key 74, in some cases generated with the techniques described herein for public key cryptography.
  • the key store 76 may store a plurality of different cryptographic key pairs, in some cases each (or subsets thereof) corresponding to different tenants, use cases, encryption zones, users, applications, sessions, and the like.
  • the private cryptographic key 73 also referred to as a secret cryptographic key, of the illustrated key pair may remain within the trusted portion 72 of the distributed application 70 when data is protected with that key through encryption and while techniques described herein are used to delegate access to computing devices in the un-trusted portion 74 without the secret cryptographic key 73 leaving the trusted portion 72 or the computing devices in the un-trusted portion 74 otherwise having access to the secret cryptographic key 73 (at least before the key pair is rotated out).
  • the trusted portion 72 may include a key management system 78.
  • the key management system 78 may operate as described below to emit transformation keys from the trusted portion 72 into the un-trusted portion 74 to facilitate proxy re-encryption of encrypted values without exposing the secret cryptographic key 73 to the untrusted portion and without transmitting the encrypted values from the un-trusted portion 74 into the trusted portion 72 (which in some cases may be remote and expensive in terms of bandwidth or latency to communicate with when exchanging data at that scale).
  • values such as files or encryption keys, like symmetric encryption keys by which those files are encrypted, may themselves be encrypted with the public cryptographic key 75 in the keystore 76, for instance, by sending the public cryptographic key 75 from the trusted portion 72 into the un-trusted portion 74, such that the files may be encrypted, or encryption keys thereof may be encrypted, without transmitting the files to be encrypted into the trusted portion 72 from the un-trusted portion 74.
  • any of these values may be shuffled back and forth with the transformation in the trusted portion 72, which is not to suggest that any other description herein is limiting.
  • a transformation node 80 may receive the transformation key and execute one or more of the above-described proxy re-encryption algorithms based on the transformation key to transform an encrypted data encryption key into a transformed encrypted data encryption key that is accessible with a different cryptographic key pair from that in the keystore 76.
  • the transformation node 80 may be in the trusted portion 72, or in some embodiments, the transformation node 80 may be in the un-trusted portion 74, as illustrated, e.g., to reduce latency and bandwidth by positioning the transformation node locally or on the same subnet.
  • Some embodiments may include a plurality of transformation nodes 80 to facilitate concurrent operations.
  • each illustrated consumer computing node 90 may include its own instance of the transformation node 80 locally, several may share a transformation node, or transformation nodes may correspond to different sets of encryption zones and consumers may change which transformation node is accessed based on the encryption zone of data for which they seek access.
  • a workload of the distributed application 70 may be executed by consumer computing nodes 90, such as worker nodes in the Hadoop framework.
  • these consumer nodes may execute a mapping function specified by a user of the distributed application 70 on stored records that are protected with the presently described cryptographic techniques, or the consumer nodes 90 may execute a reducing function specified by the user on these records.
  • other operations like complex event processing rules or queries may be applied to such records by the consumer nodes 90.
  • consumer nodes 90 may concurrently processing data, such as more than 10, more than 100 or more than 1000, or more than 2, more than 10, or more than 100 computing devices, e.g., in a datacenter remote from the trusted portion 72.
  • each consumer node 90 may include a local key management system 92 operative to obtain encrypted data encryption key for a file to which the consumer node 90 seeks access, send the encrypted data encryption key to the transformation node 80 with a request to transform the data encryption key, in some cases with an identifier of a cryptographic key pair including a public cryptographic key 94 and a secret, or private, cryptographic key 96 of the respective consumer node 90.
  • both the public cryptographic key 94 and the secret cryptographic key 96 may be sent to the transformation node 80 for this operation, or some embodiments may just send the public cryptographic key 94 and not the secret cryptographic key 96.
  • the local key management system 92 is operative to receive back a transformed encrypted data encryption key, which the consumer node 90 may decrypt with the secret cryptographic key 96.
  • the consumer node 90 may then access a symmetric cryptographic key of the encrypted file (also referred to as a record, though the term "record" is broader and encompasses a more diverse set of data structures than just files, like entries in a database, key -value pairs, portions of documents, binary -large-objects (BLOBs), and the like) to be accessed from the result of decrypting the transformed encrypted data encryption key.
  • a symmetric cryptographic key of the encrypted file also referred to as a record, though the term "record" is broader and encompasses a more diverse set of data structures than just files, like entries in a database, key -value pairs, portions of documents, binary -large-objects (BLOBs), and the like
  • the consumer node 90 may then decrypt the corresponding file of the transformed encrypted data encryption key with the accessed symmetric key to access the underlying information, i.e., accessing the message of the ciphertext, which is in decrypted form when accessed.
  • the result of decrypting the record may be input into a mapping function, input into a reducing function, compared to a query to determine if it is responsive, or applied to a set of rules in an event processing system.
  • the result may then be output (in some cases, applying TLS encryption during transit on the network) or re- encrypted, for instance, with the same or a different symmetric encryption key.
  • Symetric encryption keys may be, for instance, a random (e.g., pseudorandom) sequence of bits longer than 256 bits, 512 bits, 1028 bits, or longer.
  • the symmetric encryption key may then be encrypted with the public cryptographic key 75 that is associated with the secret cryptographic key 73 in the key store 76 of the trusted portion 72 of the distributed application 70.
  • accessed files or other records may be stored in the file system layer 82 in the un-trusted portion 74, for instance, in an instance of the Hadoop file system (HDFS) described above.
  • files may be segmented into blocks each having some discrete size, other than a last block that stores a residual portion, and those blocks may be stored on different computing nodes of the distributed application, in some cases redundantly (e.g., in triplicate), with the same block stored on different nodes, and in some cases, stored records may be encoded with Hamming codes or Turbo codes to facilitate recovery even if every replicated instance of a given block is lost due to concurrent failure of multiple computing nodes.
  • HDFS Hadoop file system
  • the encrypted data encryption key (which may be a ciphertext that encrypts a symmetric encryption key with which the corresponding record was encrypted) may be encrypted with the public cryptographic key 75, and the result may be stored in association with the corresponding encrypted file 86, as indicated by block 88 in figure 7. Association in this example may be obtained, e.g., by storing the encrypted data encryption key as metadata of the file holding the ciphertext, with a lookup table, by pointers in metadata, or as entries in hashtables with an index based on a hash of information in the ciphertext.
  • each encrypted file may have a different data encryption key and, therefore, a different encrypted data encryption key, as illustrated.
  • a file or other record may include both an encrypted portion, such as content of the file (or encrypted entries in the content), and an unencrypted portion, such as a file name and other metadata, while still being said to be encrypted.
  • encrypted files may be logically arranged in encryption zones 84, in some cases each of which may correspond to a different cryptographic key pair in the keystore 76, such that access to a given secret cryptographic key in the keystore 76 affords access to each of the records in a corresponding one of the encryption zones 84.
  • encryption zones may be further nested, for instance, by encrypting a collection of secret cryptographic keys corresponding to the collection of encryption zones and controlling access to that higher layer of encryption's secret cryptographic key.
  • three, four, five, six, or more layers of encryption may be applied to generate higher levels of hierarchical arrangement of access.
  • proxy re-encryption schemes implement a proxy re-encryption scheme.
  • a variety of different forms of proxy re-encryption may be used, including those described in U.S. Patent Application 62/427,401, filed 29 November 2016, titled METHOD AND SYSTEM FOR SWITCHING PUBLIC KEYS IN CIPHERTEXTS, the contents of which are hereby incorporated by reference.
  • the proxy re-encryption scheme prevents a delegate from accessing the content of a message or from accessing a private key corresponding to the public key with which the message was encrypted.
  • the proxy re-encryption schemes provide at least the following functionalities, embodied by these algorithms:
  • PRE.Setup(seci3 ⁇ 4raw) -> publicParams On input the security parameter secParam, the setup algorithm PRE. Setup outputs an object that contains the public parameters of the scheme. In some cases, these parameters are publicly known.
  • PRE.KeyGen -> (pk#i, sk#i).
  • the key generation algorithm PRE.KeyGen outputs a pair of public and secret keys (pk#i, sk#i) for entity i.
  • secret key is also referred as “private key” in this description.
  • PRE.Enc(p / , m) -> ci On input the public key pk#i and a message m, the encryption algorithm PRE.Enc outputs a ciphertext c#i. [00110] PKE.Decfsk i, c#i) -> m. On input the secret key sk#i and a ciphertext c#i, the decryption algorithm PRE.Dec outputs a message m.
  • PRE.ReKeyGen (p /, sk#i, pk#j , sk#j) rk[i->j].
  • the re-encryption key generation algorithm PRE.ReKeyGen outputs a re-encryption key rk[i- j].
  • PRE.ReEnc(V/c/7->y7 / c# ) -> c#j On input a re-encryption key rk[i- j] and a ciphertext c#i, the re-encryption algorithm PRE.ReEnc outputs a second ciphertext c#j, which can be decrypted by entity j using sk#j.
  • the PRE scheme is multi-use, which means that re-encrypted ciphertexts can be re-encrypted again, which implies that the re- encryption process can be performed an arbitrary number of times.
  • Another characteristic of the PRE scheme that can influence how the scheme is used is if it is interactive or non-interactive.
  • the former means that the re-encryption key generation (i.e., the PRE.ReKeyGen function) uses the secret key sk#j, while the latter means that it does not use it.
  • interactive schemes in some embodiments, require the participation of entity j in the re- encryption key generation process since it involves secret key sk#j, while non-interactives do not, since only pk#j is needed.
  • the PRE scheme has access to a secure source of randomness in the form of a cryptographically secure pseudorandom number generator (CSPRNG).
  • CSPRNG cryptographically secure pseudorandom number generator
  • the KMS is in most cases in charge of generating EZKeypairs each time an authorized user creates an encryption zone or updates the version of an existing encryption zone (which entails using a new set of keys). It should be noted that it is not mandatory that the process of generating EZKeypairs is performed inside the system, which is not to imply that other described operations are mandatory. That is, the EZKeypair can be generated by the data owner externally and provided to the system. However, it is advisable that the KMS handles generation of EZKeypairs, and that the secret component (i.e., the SEZKey) is managed securely (for example, stored by a keystore server). In c, from the cryptographic point of view, EZKeypairs are generated using the PRE.KeyGen function as follows:
  • PEZKey#i and SEZKey#i are a proxy re-encryption public and private key, respectively.
  • CKeypairs are intended to be short-lived, and are regenerated frequently, depending on an admin-suplied frequency (e.g., daily).
  • the CKeypairs may be generated in different ways. In particular, this may depend on the scheme being interactive or not. If the scheme is not interactive, in some cases, then CKeypairs can be generated locally by the consumer nodes (specifically, in the LocalKMS), and it is only necessary to send the PCKey to the KMS after that, in some embodiments. If the scheme is interactive, in some cases, then CKeypairs are generated in the KMS, so the KMS can retain a copy of the SCKey before sending it to the consumer nodes.
  • SCKeys are needed for generation of Transformation Keys when interactive PRE schemes are used in some embodiments. Since SCKeys are secret, special care must be taken to protect them properly and must be securely erased once they are not needed. In some cases, from the cryptographic point of view, CKeypairs are generated using the PRE.KeyGen function as follows:
  • TKs are generated as re-encryption keys, using the PRE.ReKeyGen algorithm between an EZKeypair and a CKeypair. Note that when the PRE scheme is non-interactive, the whole CKeypair is not needed, only the PCKey; in this case, TKs are generated using the PRE.ReKeyGen function as follows:
  • TK[i->j] PRE.ReKeyGen(PEZKey#i, SEZKey#i, PCKey#j)
  • TKs are generated using the PRE.ReKeyGen function as follows:
  • TK[i->j] PRE.ReKeyGen(PEZKey#i, SEZKey#i, PCKey#j, SCKey#j) [00123] Generation of Key Rotation Keys (KRKs)
  • KRK Key Rotation Key
  • TK Transformation Keys
  • KRK[i->i'] PRE.ReKeyGen(PEZKey#i, SEZKey#i, PEZKey#i')
  • KRKs are generated as follows:
  • KRK[i->i'] PRE.ReKeyGen(PEZKey#i, SEZKey#i, PEZKey#i', SEZKey#i') [00126] Writing data to the filesystem
  • the LocalKMS When a consumer writes data to the filesystem, in some embodiments, as shown in figure 8, the LocalKMS generates a random DEK, which the consumer uses as an encryption key to encrypt file's data with a symmetric encryption algorithm (typically AES, with 128/256 bits and CBC/GCM mode of operation).
  • the LocalKMS encrypts the DEK using the PEZKey to produce an EDEK, as follows:
  • the resulting EDEK in some embodiments, is associated to the encrypted file within the filesystem. There is no need for communication with the KMS during this process, as shown in Figure 8.
  • Figure 8 shows an example of a process 100 that may be executed by the distributed application 70 or other implementations to form the encrypted records upon which embodiments operate.
  • this process, the other processes described herein, and the other functionality described herein may be implemented with tangible, non-transitory, machine- readable media storing instructions that when executed by one or more processors effectuate the operations described herein.
  • the instructions may be distributed in memory (a term which is used broadly to include storage or dynamic random-access memory) of different computing devices that execute different subsets of the instructions, an arrangement consistent with use of the singular term “medium.”
  • the operations of this and the other processes described herein may be executed in a different order from that depicted, instructions may be inserted, instructions may be omitted, subsets of the instructions may be executed concurrently or serially, or different operations may be performed by different entities than those listed in the illustrated columns, none of which is to suggest that any other description herein is limiting.
  • the process 100 includes a consumer computing device receiving a write request, as indicated by block 102.
  • this may be a request to write the result of a mapping function or a reducing function or request to write data being ingested by the distributed application 70, such as workload data of the application being written to the filesystem layer.
  • Some embodiments may then generate a new random data encryption key, as indicated by block 104, for example, by invoking a random number generator of the host computing device, which in some cases may seed a random value with, for example, electromagnetic noise, thermal fluctuations, reading from a Geiger counter, or the like.
  • Some embodiments may then encrypt the data encryption key with a public encryption key of a cryptographic key pair stored in the trusted portion of the distributed application to produce an encrypted data encryption key, as indicated by block 106.
  • Some embodiments may then encrypt the file data for which the request is received, in some cases included with the request, with the data encryption key, for instance, by repeatedly XOR'ing the message with the data encryption key or otherwise transforming the data in deterministic manner with the data encryption key. Some embodiments may further attach or otherwise associate the encrypted data encryption key with the encrypted file, as indicated by block 108. Some embodiments may then purge the data encryption key from memory and store the encrypted file in association with the encrypted data encryption key, as indicated by block 110, for instance, in the above-described filesystem layer 82.
  • a consumer node When a consumer node reads an encrypted file, in some embodiments, as shown in figure 9, it fetches from the filesystem the EDEK that corresponds to the file, sends this EDEK to its LocalKMS, which in turn asks the TN to transform the EDEK into a TEDEK.
  • the TN in some embodiments, performs the following operation, assuming it is already in possession of the corresponding TK between the PEZKey and the consumer's PCKey:
  • TEDEK PRE.ReEnc(TK, EDEK)
  • the LocalKMS now can decrypt the TEDEK using his temporary private key (SCKey), obtaining a DEK, as follows:
  • FIG. 9 shows an example of a process 120 by which data is read in accordance with some embodiments of the present techniques.
  • Some embodiments include a consumer computing node receiving a read request, as indicated by block 122, which may include generating a read request or determining to read data within the computing node.
  • Some embodiments may then retrieve the encrypted file and associated encrypted data encryption key from the filesystem layer, as indicated by block 124.
  • each encrypted file may be associated with a unique identifier, and that unique identifier may be specified in the read request.
  • Embodiments may parse the unique identifier from the read request and access the corresponding record in the file system later based on the identifier.
  • Some embodiments retrieve the encrypted data encryption key from the retrieved encrypted file and key pair and send the encrypted data encryption key to a local key management system, as indicated by block 126.
  • the local key management system may then advance the encrypted data encryption key to the transformation node with a request to transform the encrypted data encryption key, as indicated by block 128.
  • the transformation node may then use a previously received transformation key to transform the encrypted data encryption key into a transformed encrypted data encryption key, as indicated by block 130, for instance with proxy re-encryption.
  • access to a given record may be delegated to multiple entities, and the request may include an entity identifier (e.g., a corresponding public cryptographic key) by which the transformation node selects among a plurality of different transformation keys to identify the one corresponding to the secret cryptographic key held by the requestor in the local key management system
  • entity identifier e.g., a corresponding public cryptographic key
  • transformation keys may be generated at the beginning of a computing job and sent to the transformation node or responsive to some other event in which it is determined that an entity is to be delegated access to records in a specified encryption zone.
  • Some embodiments may then retrieve the data encryption key by decrypting the transformed encrypted data encryption key with a secret cryptographic key of the local key management system, as indicated by block 132.
  • This key in some cases, may stay resident on the local system.
  • the secret cryptographic key may be a secret key of a cryptographic key pair of the entity to which access is delegated, operating in the un-trusted portion of the distributed application, and different from the cryptographic key pair with which the data encryption key is encrypted to produce the encrypted data encryption key.
  • Some embodiments may then decrypt the file with the data encryption key, indicated in block 134, accessed in the previous operation. Some embodiments may then return the file responsive to a query or operate on the file to execute user-specified instructions, for instance ,by calling a registered callback function from a framework of the distributed application, like a user-specified mapping function or a user-specified reducing function.
  • key rotation in figure 10. It should be noted that key rotation in some embodiments can be performed directly at the filesystem layer (e.g., using DataNodes). Or key rotation may be performed with a method more compliant with TDE, using computing nodes, as described below.
  • the KMS creates a Key Rotation Key (KRK) which allows to transform data from being encrypted under an old version of PEZkey, to a new version of the PEZkey.
  • KRKs are similar to transformation keys, although they do not enable delegation of access to consumer nodes.
  • the KRK is given to the cluster, which is fully employed for doing key rotation.
  • each computing node receives a copy of the KRK (which is temporally stored in the LocalKMS), and is used as a consumer, with the assignment of rotation a set of encrypted files.
  • the procedure is the same: the consumer retrieves the EDEK associated to the file and sends it to its LocalKMS, which transforms it to EDEK' using the KRK (more specifically, the consumer performs a re-encryption operation over the EDEK ciphertext using the KRK as re-encryption key).
  • the performed operation may be as follows:
  • EDEK' PRE.ReEnc(KRK, EDEK)
  • the new EDEK' is sent back to the filesystem, where it replaces the previous version.
  • Figure 10 shows an example of a process 136 by which keys may be rotated in accordance with some embodiments.
  • Some embodiments may receive a key rotation request for a file, in some cases specifying the file's unique identifier, as indicated by block 138. Some embodiments may then retrieve the associated encrypted data encryption key of that file, as indicated by block 140, and send the encrypted data encryption key to the local key management system, as indicated by block 142. Some embodiments may then access a key rotation key and use the key rotation key to transform the encrypted data encryption key into a new encrypted data encryption key, as indicated by block 144.
  • Some embodiments may then send the new encrypted data encryption key to the filesystem layer for storage, as indicated by block 146, and replace the encrypted data encryption key that was previously stored in association with the file ciphertext with the new encrypted data encryption key, as indicated by block 148.
  • sending and related operations herein can be achieved by cutting and transmitting, copying and transmitting, or transmitting an address or other pointer to the item by which the item may be retrieved.
  • key rotation may be achieved at the local key management system, or transformation node, without transferring the ciphertext of the keys (or underlying files) from the un-trusted portion back to the trusted portion and then back into the trusted portion of the distributed application, thereby affording faster key rotation, reduced bandwidth, and a smaller attack surface for more sensitive parts of the system.
  • a secondary advantage of this method is that it provides automatic interoperability with existing key store servers that support the current format for EZKeys (normally, a symmetric encryption key, such as a AES-128 key), since PEZKeys and SEZKeys for the subzones can be derived from a single EZKey.
  • EZKeys normally, a symmetric encryption key, such as a AES-128 key
  • Figure 11 represents how subzone EZKeypairs, in some embodiments, are created from a single EZKey (which can be a traditional TDE key, e.g., AES-128).
  • the figure is arranged horizontally to represent how the stages of key generation, in some embodiments, starting from a single symmetric EZKey (as in regular TDE) that is used by the KMS as source secret material to derive EZKeypairs, one for each encryption subzone.
  • the final choice of key derivation depends on different factors, as well as on the nature of the proxy re-encryption scheme in use; in some embodiments, this process receives a common set of key derivation parameters and is deterministic.
  • the KMS can use each of the suzones' EZKeypairs as input to the Transformation Key Generation process, together with key material about the consumer (which can be only the PCKey if the PRE scheme is non-interactive, or a CKeypair if the PRE scheme is interactive) in order to produce a TK for each subzone.
  • Each TK is handled to the subzone' s corresponding Transformation Node (TN).
  • subzones are transparent to Hadoop TDE, which can still operate as if there is only an encryption zone, although internally, the system can manage N subzones.
  • N 1
  • keystores and traditional TDE modules can manage symmetric EZKeys, while internally, the system operates with proxy re-encryption functions and keys, in some embodiments.
  • Inputs to the key derivation function are the following parameters: (i) the cryptographic material of the symmetric EZKey (or an equivalent secret); (ii) relevant metadata of this key (such as key name and version); (iii) the number of subzones (N), which is an integer between 1 and 65535; (iv) the subzone identifier (ID), which is an integer between 0 and N-l; and (v) an optional salt value.
  • N subzones
  • ID subzone identifier
  • EZKeypair#k KeyDerivation(EZKey, keyMetadata, N, ID [, salt])
  • KDF Key Derivation Function
  • auxiliary secret of enough size (e.g., 256 bits) and use this secret to seed a CSPRNG, which is used in the Key Generation algorithm of the PRE scheme (i.e., the PRE.KeyGen function).
  • public keys are computed with a deterministic function over the secret key, and admit to directly use the auxiliary secret as secret key, removing the need of the CSPRNG during key generation.
  • some embodiments have a procedure to partition the file space with respect to the existing subzones.
  • the system may include the definition of a partition function that map files to subzones according to some user-defined criteria. For consistency, this function may be deterministic.
  • a simple partition function that can be used which assumes that a hash value of the file (in integer representation) is known, consists of computing the integer value (PARTITION SEED A int hash) % N, where PARTITION SEED is an arbitrary, but relatively big integer (e.g., -30 bits or more), int hash is the hash of the file in integer representation, N is the total number of subzones, and A and % represent the XOR and mod operators.
  • Figure 11 shows an example of a process 150 by which a distributed application configured to use symmetric key cryptography is transparently retrofit to use public key encryption.
  • This process further, in some implementations, may partition encryption zones of the distributed application, in some cases again in a manner that is transparent to the distributed application's legacy code base.
  • Transparency here means that user code generally does not need to be rewritten to use the retrofit system and can be used both on a non-retrofit system and a retrofit system without substantial (or in some cases, any) modification.
  • transparency means that the distributed applications code generally continues to operate with the same logic outside of the retrofit before and after the retrofit without substantial (or in some cases, any) modification.
  • the distributed application may be configured with a symmetric-key keystore that may supply a symmetric encryption key 152, such as a symmetric encryption key corresponding to an encryption zone, in some cases with a one-to-one correspondence in which each encryption zone is associated with a different symmetric cryptographic key and vice versa.
  • a symmetric-key keystore may supply a symmetric encryption key 152, such as a symmetric encryption key corresponding to an encryption zone, in some cases with a one-to-one correspondence in which each encryption zone is associated with a different symmetric cryptographic key and vice versa.
  • key derivation parameters 154 and the symmetric encryption key may be supplied to a key derivation module 156, which in some cases may generate one or more public-private cryptographic key pairs based on the input key derivation parameters 154 and the symmetric cryptographic key 152. In some cases, the symmetric cryptographic key may not be discernible from a public cryptographic key of the generated cryptographic key pairs. In some embodiments, the symmetric cryptographic key, or value based thereon, may pass through a one-way function, such as a cryptographic hash function, and the key derivation may be based on the output of that one-way function. In some embodiments, 1, 2, 3, 10, 100, or more cryptographic key pairs may be generated based on a single symmetric cryptographic key.
  • data encryption keys may be encrypted with one of the resulting public cryptographic keys of one of the cryptographic key pairs 158, for instance in accordance with one of the above-described write operations.
  • different files may have their data encryption keys encrypted with different resulting public cryptographic keys of different key pairs 158, thereby partitioning the data encryption zone into sub zones that are accessible with different public-private cryptographic key pairs.
  • some records may be stored with multiple encrypted data encryption keys corresponding to different ones of the key pairs 158.
  • sets of files protected by different ones of the cryptographic key pairs 158 may be disjoint or overlap and may be a subset of a different one of the sets.
  • Some embodiments may delegate access to the different partitions by inputting a corresponding one of the deterministically generated key pairs 158 and a public cryptographic key of a delegate 160 into a transformation node 162 that generates a corresponding transformation key, as indicated by block 164.
  • multiple transformation keys corresponding to different delegate cryptographic key pairs may be generated for a single cryptographic key pair 158, and in some cases, a single delegate public cryptographic key may be used to generate multiple transformation keys from multiple ones of the cryptographic key pairs 158, thereby delegating access to multiple partitions of the encryption zone.
  • Resulting transformation keys may be provided to corresponding transformation nodes, as illustrated. Consumer nodes may then access data in the manner described above with corresponding transformation keys via corresponding transformation nodes, in some cases specifying a delegate that seeks access, for instance, with that delegate's public cryptographic key, and specifying a partition of an encryption zone to which access is sought, so that the appropriate transformation node or transformation key may be selected from among a plurality of such keys to effectuate the access request.
  • Figure 12 is a diagram that illustrates an exemplary computing system 1000 in accordance with embodiments of the present technique.
  • Various portions of systems and methods described herein may include or be executed on one or more computer systems similar to computing system 1000. Further, processes and modules described herein may be executed by one or more processing systems similar to that of computing system 1000.
  • Computing system 1000 may include one or more processors (e.g., processors 1010a- 1010 ⁇ ) coupled to system memory 1020, an input/output I/O device interface 1030, and a network interface 1040 via an input/output (I/O) interface 1050.
  • processors may include a single processor or a plurality of processors (e.g., distributed processors).
  • a processor may be any suitable processor capable of executing or otherwise performing instructions.
  • a processor may include a central processing unit (CPU) that carries out program instructions to perform the arithmetical, logical, and input/output operations of computing system 1000.
  • CPU central processing unit
  • a processor may execute code (e.g., processor firmware, a protocol stack, a database management system, an operating system, or a combination thereof) that creates an execution environment for program instructions.
  • a processor may include a programmable processor.
  • a processor may include general or special purpose microprocessors.
  • a processor may receive instructions and data from a memory (e.g., system memory 1020).
  • Computing system 1000 may be a uni-processor system including one processor (e.g., processor 1010a), or a multi-processor system including any number of suitable processors (e.g., lOlOa-lOlOn). Multiple processors may be employed to provide for parallel or sequential execution of one or more portions of the techniques described herein.
  • Processes, such as logic flows, described herein may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating corresponding output. Processes described herein may be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
  • Computing system 1000 may include a plurality of computing devices (e.g., distributed computer systems) to implement various processing functions.
  • I/O device interface 1030 may provide an interface for connection of one or more I/O devices 1060 to computer system 1000.
  • I/O devices may include devices that receive input (e.g., from a user) or output information (e.g., to a user).
  • I/O devices 1060 may include, for example, graphical user interface presented on displays (e.g., a cathode ray tube (CRT) or liquid crystal display (LCD) monitor), pointing devices (e.g., a computer mouse or trackball), keyboards, keypads, touchpads, scanning devices, voice recognition devices, gesture recognition devices, printers, audio speakers, microphones, cameras, or the like.
  • I/O devices 1060 may be connected to computer system 1000 through a wired or wireless connection.
  • I/O devices 1060 may be connected to computer system 1000 from a remote location.
  • I/O devices 1060 located on remote computer system for example, may be connected to computer system 1000 via a network and network interface 1040.
  • Network interface 1040 may include a network adapter that provides for connection of computer system 1000 to a network.
  • Network interface may 1040 may facilitate data exchange between computer system 1000 and other devices connected to the network.
  • Network interface 1040 may support wired or wireless communication.
  • the network may include an electronic communication network, such as the Internet, a local area network (LAN), a wide area network (WAN), a cellular communications network, or the like.
  • System memory 1020 may be configured to store program instructions 1100 or data 1110.
  • Program instructions 1100 may be executable by a processor (e.g., one or more of processors 1010a- 1010 ⁇ ) to implement one or more embodiments of the present techniques.
  • Instructions 1100 may include modules of computer program instructions for implementing one or more techniques described herein with regard to various processing modules.
  • Program instructions may include a computer program (which in certain forms is known as a program, software, software application, script, or code).
  • a computer program may be written in a programming language, including compiled or interpreted languages, or declarative or procedural languages.
  • a computer program may include a unit suitable for use in a computing environment, including as a stand-alone program, a module, a component, or a subroutine.
  • a computer program may or may not correspond to a file in a file system.
  • a program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code).
  • a computer program may be deployed to be executed on one or more computer processors located locally at one site or distributed across multiple remote sites and interconnected by a communication network.
  • System memory 1020 may include a tangible program carrier having program instructions stored thereon.
  • a tangible program carrier may include a non-transitory computer readable storage medium.
  • a non-transitory computer readable storage medium may include a machine readable storage device, a machine readable storage substrate, a memory device, or any combination thereof.
  • Non-transitory computer readable storage medium may include nonvolatile memory (e.g., flash memory, ROM, PROM, EPROM, EEPROM memory), volatile memory (e.g., random access memory (RAM), static random access memory (SRAM), synchronous dynamic RAM (SDRAM)), bulk storage memory (e.g., CD-ROM and/or DVD- ROM, hard-drives), or the like.
  • nonvolatile memory e.g., flash memory, ROM, PROM, EPROM, EEPROM memory
  • volatile memory e.g., random access memory (RAM), static random access memory (SRAM), synchronous dynamic RAM (SDRAM)
  • bulk storage memory e.g.,
  • System memory 1020 may include a non-transitory computer readable storage medium that may have program instructions stored thereon that are executable by a computer processor (e.g., one or more of processors lOlOa- ⁇ ) to cause the subject matter and the functional operations described herein.
  • a memory e.g., system memory 1020
  • Instructions or other program code to provide the functionality described herein may be stored on a tangible, non-transitory computer readable media. In some cases, the entire set of instructions may be stored concurrently on the media, or in some cases, different parts of the instructions may be stored on the same media at different times.
  • I/O interface 1050 may be configured to coordinate I/O traffic between processors lOlOa- ⁇ , system memory 1020, network interface 1040, I/O devices 1060, and/or other peripheral devices. I/O interface 1050 may perform protocol, timing, or other data transformations to convert data signals from one component (e.g., system memory 1020) into a format suitable for use by another component (e.g., processors lOlOa-lOlOn). I/O interface 1050 may include support for devices attached through various types of peripheral buses, such as a variant of the Peripheral Component Interconnect (PCI) bus standard or the Universal Serial Bus (USB) standard.
  • PCI Peripheral Component Interconnect
  • USB Universal Serial Bus
  • Embodiments of the techniques described herein may be implemented using a single instance of computer system 1000 or multiple computer systems 1000 configured to host different portions or instances of embodiments. Multiple computer systems 1000 may provide for parallel or sequential processing/execution of one or more portions of the techniques described herein.
  • Computer system 1000 is merely illustrative and is not intended to limit the scope of the techniques described herein.
  • Computer system 1000 may include any combination of devices or software that may perform or otherwise provide for the performance of the techniques described herein.
  • computer system 1000 may include or be a combination of a cloud-computing system, a data center, a server rack, a server, a virtual server, a desktop computer, a laptop computer, a tablet computer, a server device, a client device, a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a vehicle-mounted computer, or a Global Positioning System (GPS), or the like.
  • PDA personal digital assistant
  • GPS Global Positioning System
  • Computer system 1000 may also be connected to other devices that are not illustrated, or may operate as a stand-alone system.
  • the functionality provided by the illustrated components may in some embodiments be combined in fewer components or distributed in additional components.
  • the functionality of some of the illustrated components may not be provided or other additional functionality may be available.
  • instructions stored on a computer-accessible medium separate from computer system 1000 may be transmitted to computer system 1000 via transmission media or signals such as electrical, electromagnetic, or digital signals, conveyed via a communication medium such as a network or a wireless link.
  • Various embodiments may further include receiving, sending, or storing instructions or data implemented in accordance with the foregoing description upon a computer-accessible medium. Accordingly, the present techniques may be practiced with other computer system configurations.
  • illustrated components are depicted as discrete functional blocks, but embodiments are not limited to systems in which the functionality described herein is organized as illustrated.
  • the functionality provided by each of the components may be provided by software or hardware modules that are differently organized than is presently depicted, for example such software or hardware may be intermingled, conjoined, replicated, broken up, distributed (e.g. within a data center or geographically), or otherwise differently organized.
  • the functionality described herein may be provided by one or more processors of one or more computers executing code stored on a tangible, non-transitory, machine readable medium.
  • third party content delivery networks may host some or all of the information conveyed over networks, in which case, to the extent information (e.g., content) is said to be supplied or otherwise provided, the information may provided by sending instructions to retrieve that information from a content delivery network.
  • Statements in which a plurality of attributes or functions are mapped to a plurality of objects encompasses both all such attributes or functions being mapped to all such objects and subsets of the attributes or functions being mapped to subsets of the attributes or functions (e.g., both all processors each performing steps A-D, and a case in which processor 1 performs step A, processor 2 performs step B and part of step C, and processor 3 performs part of step C and step D), unless otherwise indicated.
  • statements that one value or action is "based on" another condition or value encompass both instances in which the condition or value is the sole factor and instances in which the condition or value is one factor among a plurality of factors.
  • statements that "each" instance of some collection have some property should not be read to exclude cases where some otherwise identical or similar members of a larger collection do not have the property, i.e., each does not necessarily mean each and every.
  • a tangible, non-transitory, machine-readable medium storing instructions that when executed by one or more processors effectuate operations comprising: obtaining, with one or more processors, a plurality of records associated with an encryption zone in a distributed application executing on a plurality of computing nodes; encrypting, with one or more processors, each of the plurality of records with a respective data encryption key among a plurality of data encryption keys to form a plurality of encrypted records; encrypting, with one or more processors, each of the plurality of data encryption keys with a first public cryptographic key to form encrypted data encryption keys, wherein: the first public cryptographic key is a member of a first public-private cryptographic key pair including the first public cryptographic key and a corresponding first private cryptographic key, the first public cryptographic key corresponds to the encryption zone, the distributed application comprises a trusted portion and an untrusted portion, the first private cryptographic key is unavailable to the untrusted portion of the distributed application, and the first private cryptographic key is available to at least part of
  • the proxy re-encryption is interactive proxy re- encryption, in which the transformation key is generated based on both the second public cryptographic key and the second private cryptographic key.
  • the plurality of records comprises more than a million records; each of the plurality of records has a different data encryption key; and the distributed application executes on more than 10 computing devices on more than 100 computing nodes, each being a network host in a network on which at least part of the distributed application executes.
  • each encrypted data encryption key is stored in a block of a respective file that is encrypted with a respective data encryption key of the respective encrypted data encryption key.
  • the distributed application is a distributed data storage and analysis application configured to concurrently apply a mapping function to the decrypted records on a plurality of computing nodes and then concurrently apply a reducing function to results of the mapping function on a plurality of computing nodes; and the distributed application stores records in encrypted form in a plurality of encryption zones, each having data encryption keys encrypted with different public-private cryptographic key pairs.
  • the operations comprising delegating access to a subset of the encryption zone to another entity different from an entity with access to the second private cryptographic key by: obtaining a third public cryptographic key in the trusted portion of the distributed application, wherein: the third public cryptographic key is a member of a third public-private cryptographic key pair including the third public cryptographic key and a corresponding third private cryptographic key, and the third public-private cryptographic key pair is different from the first public-private cryptographic key pair and the second public-private cryptographic key pair; generating another transformation key based on the first public-private cryptographic key pair and the third public cryptographic key, wherein the another
  • transformation key is generated in the trusted portion of the distributed application; and transforming a subset of the encrypted data encryption keys with proxy re-encryption based on the transformation key to form another set of transformed encrypted data encryption keys, wherein: a first entity with access to the second private cryptographic key has access to all of the records in the encryption zone, and a second entity, different from the first entity, with access to the third private cryptographic key has access to a subset of the records in the encryption zone corresponding to the subset of the encrypted data encryption keys.
  • the distributed application includes a framework configured to call user-supplied code that specifies operations to be executed by the framework on data in the plurality of records;
  • the framework comprises a key-management system;
  • the framework is configured to protect the plurality records at rest with symmetric encryption based on one or more symmetric cryptographic keys stored in the key -management system;
  • the operations comprise transparently retrofitting the framework to protect the plurality of records with public-key encryption such that the same user-supplied code works in a retrofit version of the distributed application and in a pre-retrofitting version of the distributed application.
  • obtaining the second public cryptographic key in the trusted portion of the distributed application comprises: obtaining a symmetric cryptographic key corresponding to the encryption zone from a key-management system of the distributed application; and deterministically generating the second public cryptographic key based on output of a one-way function that takes as input a value based on the symmetric key.
  • deterministically generating the second public cryptographic key based on the output of a one-way function comprises deterministically generating a plurality of public-private cryptographic key pairs based on the symmetric cryptographic key; and the operation comprise: generating transformation keys for each of the plurality of the deterministically generated public-private cryptographic key pairs; and forming a plurality of encryption sub-zones of the encryption zone by transforming different subsets of the encrypted data encryption keys based on respective public cryptographic keys of the plurality of the deterministically generated public-private cryptographic key pairs.
  • a method comprising: the operations of any one of embodiments 1-19.
  • a system comprising: one or more processors; and memory storing instructions that when executed by the processors cause the processors to effectuate operations comprising: the operations of any one of embodiments 1-19.

Abstract

Provided is a process including: encrypting each of a plurality of data encryption keys with a first public cryptographic key to form encrypted data encryption keys; obtaining a second public cryptographic key; generating a transformation key based on the first public-private cryptographic key pair and the second public cryptographic key; and transforming the encrypted data encryption keys with proxy re-encryption based on the transformation key; and obtaining the second private cryptographic key and the transformed encrypted data encryption keys.

Description

PATENT APPLICATION
METHOD AND SYSTEM FOR SECURE DELEGATED ACCESS TO ENCRYPTED DATA IN BIG DATA COMPUTING CLUSTERS
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This patent claims the benefit of U.S. Provisional Patent Application 62/503,005, having the same title, filed 08 May 2017. The entire content of each earlier-filed application to which priority is claimed is hereby incorporated by reference for all purposes.
BACKGROUND
1. Field
[0002] The present disclosure relates generally to distributed computing and, more specifically, to encryption for distributed storage and processing applications.
2. Description of the Related Art
[0003] One class of cloud-computing involves clusters of computers that concurrently process very large sets of data, e.g., with Hadoop™, Spark™, Flink™, or Kafka™. Generally, these distributed processing frameworks or libraries distribute data among a set of computers (or other computational entities, like virtual machines or containers) in a cluster, often with redundant copies of the data being distributed among the computers, as often none of the computers are trusted to not fail during a process. Often these systems process data concurrently, e.g., with MapReduce, to make operations on large data sets feasible. Given the large number of computers often used, and often variable demand for those computers, many users execute these applications in the cloud. [0004] Traditional implementations of this architecture can give rise to undesirable tradeoffs. Generally, various highly regulated businesses would like to move more of their data onto the cloud, but they need to know that the cloud provider cannot access their data. This generally is true both for cloud storage and cloud processing of data. Further, when implemented in a public cloud, it is likely that the same computer will have data from different users, as it might perform some tasks for user A and other tasks for user B, possibly concurrently in different virtual machines on the same computer. This gives rise a number of security concerns. Example attacks might attempt a buffer overflow on a machine to execute code that allows an attacker to then read records from other users on that machine.
[0005] To mitigate these problems, some distributed processing and storage applications have implemented encryption. Often, encryption is performed with symmetric encryption keys managed by a key management server, in some cases, co-located with the computing devices by which the distributed processing and storage application is implemented. For instance, Hadoop 2.x introduced Transparent Data Encryption (TDE), which provides symmetric key encryption to at rest for data operated upon or stored by the Hadoop implementation. These existing attempts, like TDE, to mitigate the problems above, however, often leave the encryption keys stored in the data center and widely distributed among computing nodes, leaving a large attack surface.
[0006] Other approaches to mitigate the problem above give rise to other challenges. Encryption keys could be stored remotely from the computing devices by which the distributed processing and storage application is implemented, e.g., in a zero-knowledge architecture, where encryption keys are stored on separate, often remote, trusted computers exclusively, and encrypted data is sent to those computers for processing. However, performance can suffer in distributed processing and storage applications, where there are often many, highly-distributed attempts to access encrypted data. Sending encrypted blobs to a remote trusted computer to be decrypted and sent back can be prohibitively slow when done too often or for data sets that are too large.
[0007] Similar problems arise with key rotation, where data is encrypted with a new set of keys in case the old set of keys is compromised. With some forms of zero-knowledge solutions, the data is sent to a remote trusted computer to be decrypted with the old key and re-encrypted with a new key during a key rotation. But this can be problematic for big data cloud-implemented applications. Many data centers bill based on bandwidth used, so uploading and then downloading data to and from a remote trusted computer that decrypts and encrypts the data can consume excessive bandwidth and impose a high overhead. Moreover, due in part to these challenges with managing keys in zero-knowledge implementation, many existing approaches do not provide for fine-grained access control to data in the distributed processing and storage application.
[0008] Further challenges arise from legacy code bases built around traditional systems. Often, it is expensive and cumbersome to re-work code to accommodate new encryption schemes that might otherwise mitigate some of the issues above. In many cases, hundreds or thousands of developer hours have been spent on an existing code base, and users are hesitant to modify their system in a way that causes them to discard a substantial portion of this work.
[0009] None of the preceding, or any discussion below of tradeoffs, should be taken as a disclaimer of claim scope, as various subsets of the present techniques may be used with systems suffering various subsets of the problems described herein while still conferring important benefits.
SUMMARY
[0010] The following is a non-exhaustive listing of some aspects of the present techniques. These and other aspects are described in the following disclosure.
[0011] Some aspects include a process including: obtaining, with one or more processors, a plurality of records associated with an encryption zone in a distributed application executing on a plurality of computing nodes; encrypting, with one or more processors, each of the plurality of records with a respective data encryption key among a plurality of data encryption keys to form a plurality of encrypted records; encrypting, with one or more processors, each of the plurality of data encryption keys with a first public cryptographic key to form encrypted data encryption keys, wherein: the first public cryptographic key is a member of a first public-private cryptographic key pair including the first public cryptographic key and a corresponding first private cryptographic key, the first public cryptographic key corresponds to the encryption zone, the distributed application comprises a trusted portion and an untrusted portion, the first private cryptographic key is unavailable to the untrusted portion of the distributed application, and the first private cryptographic key is available to at least part of the trusted portion of the distributed application; obtaining, with one or more processors, a second public cryptographic key in the trusted portion of the distributed application, wherein: the second public cryptographic key is a member of a second public-private cryptographic key pair including the second public cryptographic key and a corresponding second private cryptographic key, and the second public- private cryptographic key pair is different from the first public-private cryptographic key pair; generating, with one or more processors, a transformation key based on the first public-private cryptographic key pair and the second public cryptographic key, wherein the transformation key is generated in the trusted portion of the distributed application; transforming, with one or more processors, the encrypted data encryption keys with proxy re-encryption based on the transformation key to form transformed encrypted data encryption keys, wherein: the transformed encrypted data encryption keys are decryptable with the second private cryptographic key, and the encrypted data encryption keys are not decryptable with the second private cryptographic key; obtaining, with one or more processors, the second private cryptographic key and the transformed encrypted data encryption keys in the untrusted portion of the distributed application; decrypting, with one or more processors, in the untrusted portion of the distributed application, a first transformed encrypted data encryption key among the transformed encrypted data encryption keys to obtain a first data encryption key among the plurality of data encryption keys; and decrypting, with one or more processors, in the untrusted portion of the distributed application, a first encrypted record among the plurality of encrypted records with the first data encryption key.
[0012] Some aspects include a tangible, non-transitory, machine-readable medium storing instructions that when executed by a data processing apparatus cause the data processing apparatus to perform operations including the above-mentioned process.
[0013] Some aspects include a system, including: one or more processors; and memory storing instructions that when executed by the processors cause the processors to effectuate operations of the above-mentioned process. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above-mentioned aspects and other aspects of the present techniques will be better understood when the present application is read in view of the following figures in which like numbers indicate similar or identical elements:
[0015] Figure 1 shows an example of a logical architecture of a distributed processing and storage application performing key rotation in accordance with some embodiments of the present techniques;
[0016] Figure 2 shows an example of a process for key rotation that may be performed with a logical architecture of figure 1 in accordance with some embodiments of the present techniques;
[0017] Figure 3 shows an example of the logical architecture of figure 1 with greater detail depicting an example of delegated access being provided in accordance with some embodiments of the present techniques;
[0018] Figure 4 shows an example of a process by which relatively fine-grained access to different subsets of encrypted data is provided with delegated access like that of figure 3 in accordance with some embodiments of the present techniques;
[0019] Figure 5 shows the logical architecture of figure 1 with greater detail illustrating a read operation in accordance with some embodiments of the present techniques;
[0020] Figure 6 shows the logical architecture of figure 1 with greater detail illustrating a write operation in accordance with some embodiments of the present techniques;
[0021] Figure 7 illustrates the logical architecture of some embodiments;
[0022] Figure 8 illustrates an example of a process to write data to the file system of some embodiments;
[0023] Figure 9 illustrates an example of a process to read data from the file system of some embodiments; [0024] Figure 10 illustrates an example of a process to rotate keys in some embodiments;
[0025] Figure 11 illustrates an example of an architecture supporting encrypted subzones in some embodiments; and
[0026] Figure 12 shows an example of a computing device by which the above-described processes and systems may be implemented.
[0027] While the present techniques are susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. The drawings may not be to scale. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the present techniques to the particular form disclosed, but to the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the present techniques as defined by the appended claims.
DETAILED DESCRIPTION OF CERTAIN EMBODIMENTS
[0028] To mitigate the problems described herein, the inventors had to both invent solutions and, in some cases just as importantly, recognize problems overlooked (or not yet foreseen) by others in the fields of computer science and cryptography. Indeed, the inventors wish to emphasize the difficulty of recognizing those problems that are nascent and will become much more apparent in the future should trends in industry continue as the inventors expect. Further, because multiple problems are addressed, it should be understood that some embodiments are problem-specific, and not all embodiments address every problem with traditional systems described herein or provide every benefit described herein. That said, improvements that solve various permutations of these problems are described below.
[0029] Classes of embodiments are described below in two sections. Generally, embodiments applying proxy re-encryption in big data distributed applications are described first, with reference to figures 1-6 and 13, and the embodiments implementing those techniques along with refinements that, in some cases, afford transparent retrofitting of legacy big data applications and finer grained control of access than is afforded with traditional encryption zones is described subsequently, with reference to figures 5-13.
[0030] As noted, many existing approaches to encrypting data in distributed storage and processing applications do not adequately address key rotation. Old ways of doing this often involve transferring the data to a trusted computer and then decrypting the data with the old key and then re-encrypting the data with the new key. But this is slow when the data is in the cloud and a user is trying to keep the untrusted cloud in a zero-knowledge state. And cloud providers often charge for network bandwidth used to upload and download the data. (None of which is to suggest that such approaches are disclaimed or cannot be used in conjunction with the present techniques.)
[0031] One approach to mitigate this issue with key rotation for cloud-hosted encrypted data is use of hybrid encryption systems, where data is encrypted with a key (e.g., a symmetric key where the same secret value is used by encrypt the data and then decrypt the data), that key is then itself encrypted, and the encryption by which the key is accessed is subject to key rotation. This approach mitigates the problem above when the number of encryption keys is relatively small. But this approach often does scale to the number of keys needed for fine-grained allocation of selective access to data, e.g., where different data is encrypted with different keys, and then those different keys are distributed to entities authorized to access the subset of the data encrypted with that key. In these architectures, the volume of data consumed by just the keys can be relatively large, and the issues discusses above re-emerge as the data is subdivided into finer-grained segments with different keys. Such systems may have a huge number of symmetric keys to process (e.g., in some cases, more data than is encrypted in the first place).
[0032] To mitigate this problem, some embodiments use proxy re-encryption to implement a form of key rotation. Some embodiments: 1) generative a new (replacement) public/private key pair; 2) create a transformation key with proxy re-encryption based on the old public key and the new public key; 3) instruct the untrusted computers in the cloud to encrypt the data with the transformation key, so that the new private key can read the data and the old private/public key can be deleted. Of note, in some embodiments, the data is transformed without downloading the data to a trusted computer, on the untrusted computers of a public cloud, and without the untmsted computers having the data owner's private key by which they can access the full set of data.
[0033] Further, the proxy re-encryption techniques are used in some embodiments to selectively grant access on a relatively fine-grained basis. Embodiments have different pieces of data encrypted with different derived keys, allowing different entities (e.g., processes or jobs in Hadoop) to access different subsets of the data. For example, use cases may have a table with a billion rows and 200 columns, and a user may request an analysis in Hadoop™ on only 2 of those columns. In this scenario, some embodiments may implement different keys for just those two columns and only use those two keys for the task, leaving the rest of the data unexposed and reducing the system's attack surface.
[0034] Operations are described with reference to ciphertext and plaintext. In some cases, the plaintext may be workload data of the distributed processing and storage application (e.g., application state of the job being run), or the plaintext may be an encryption key (e.g., encrypted data encryption keys (EDEKs)) by which that workload data is encrypted. In some embodiments, for performance reasons, a symmetric key may be used to encrypt the workload data (e.g., a secret accessible to both sides), and the symmetric key may be conveyed with asymmetric key encryption (e.g., one side only knows the public key of the other side, who uses their private key to read the value encrypted with their public key, e.g., the symmetric key), which is then used to access the workload data.
[0035] A variety of proxy re-encryption algorithms may be used. Examples include those described in the following: Giuseppe Ateniese, Kevin Fu, Matthew Green, and Susan Hohenberger, "Improved Proxy Re-Encryption Schemes with Applications to Secure Distributed Storage," Cryptology ePrint Archive, at 2005/028; M. Blaze, G. Bleumer, and M. Strauss, "Divertible protocols and atomic proxy cryptography," In Proceedings of Eurocrypt '98, volume 1403, pages 127-144, 1998; and D. Nu~nez, I. Agudo, and J. Lopez, "Delegated Access for Hadoop Clusters in the Cloud," IEEE International Conference on Cloud Computing Technology and Science (CloudCom 2014), pp. 374-379, 2014, the contents of each of which are hereby incorporated by reference. [0036] As noted, Apache Hadoop 2.x introduced Transparent Data Encryption [TDE]. TDE provides symmetric encryption at rest for Hadoop File System (HDFS). Encryption at rest is an important measure for data security and compliance with PCI DSS, HIPAA, FICMA and other regulations.
[0037] Unfortunately, standard TDE falls short in many aspects:
• TDE generally supports only symmetric encryption (AES). This means that every time partners are used as data sources, they have to ask the system's Key Management System (KMS) to encrypt data encryption keys (DEKs). Which means that the KMS has to be online all the time.
• Symmetric encryption can only be AES in unauthenticated CTR mode. This means that your data can be corrupted or deliberately changed while encrypted without you knowing.
• When the system analyzes the data, all the nodes which access that data constantly talk to the KMS. This means that the KMS should always be online, be very close to the Hadoop cluster and to be able to handle large numbers of requests per second. These requirements are very expensive or impossible to satisfy effectively if the desire is to keep KMS and encryption keys on premise. Hadoop deployed in a remote cloud with keys on premise will be simply slow.
• Key rotation is very hard to perform because systems cannot employ the Hadoop cluster for this task as it would expose old and new secret keys to all the machines in the cluster. Key rotation is not supported in Hadoop KMS (as well as Key Trustee KMS and Ranger KMS), manual workarounds are slow or insecure. But key rotation every 1-12 months is desirable for security, compliance with regulations and internal policies.
[0038] Some embodiments implement one of more of the techniques described herein to secure Hadoop ™ or other distributed processing and storage applications, mitigating the above challenges in the following ways:
• Some embodiments support public key cryptography for encryption zones. In some cases, computational overhead in addition to AES is minimal.
• As a block cipher, some embodiments can use AES256 in authenticated GCM mode. • Some embodiments delegate access to compute nodes in a cryptographically secure way using proxy re-encryption [PRE]. As a result, in some cases, compute nodes do not have to talk to the KMS while performing a job, so it does not matter how far the KMS is located from the cluster and whether the KMS can handle many simultaneous requests.
• Key rotation with some embodiments is executed relatively quickly, e.g., less than a minute, less than 10 seconds, and in some cases, less than a second. To effectuate key rotation, some embodiments use proxy re-encryption to delegate data to the system's "future" self.
[0039] An example of a logical architecture 10 consistent with some embodiments is shown in figure 1. Some embodiments include a demilitarized zone (DMZ) 12 (an example of a trusted portion of the illustrated distributed application, outside of which is an example of an untrusted portion), a Hadoop file system (HDFS) layer 14, and an execution engine 16, each of which may communicate with one another via one or more networks, such as a secure local area network or in some cases, the Internet, using protocols such as Internet Protocol (IP) and Transport Control Protocol (TCP). In some cases, the DMZ hosts a key management server (KMS) 18 with a key store having a plurality of encryption keys by which data is encrypted in the HDFS, e.g., by the data owner.
[0040] In some cases, the HDFS layer may distribute workload data across a plurality of computing nodes on a plurality of computing devices, with data stored redundantly on different computing devices in case one device fails. Other embodiments may use other distributed filesystems, like PVFS, Lustre, or GFS. Some embodiments may store filesystem metadata and workload (application) data separately, e.g., with the metadata stored on a NameNode and workload data stored on DataNodes. The NameNode may store a filesystem namespace tree hierarchy and a mapping of data blocks to the DataNodes. Some embodiments may include a single NameNode and more than 10, more than 100, or more than 1,000 DataNodes.
[0041] In some cases, the execution engine 16 may perform operations on the workload data specified in a job, such as mapping operations or reducing operations. In some embodiments, the execution engine is MapReduce or Tez ™. Some embodiments may perform mapping operations in which filtering or sorting is performed concurrently on different subsets of the workload data by different computing nodes. Some embodiments may perform reducing operations by which the results of the mapping operations are aggregated or otherwise summarized, e.g., again with concurrent operations on different subsets of the results with different computing nodes in a cluster.
[0042] In some embodiments, these features may be implemented within the distributed processing and storage application described herein, using a plurality of the computing devices described with reference to figure 7, e.g., in a public or private cloud data center. Some embodiments secure a Hadoop™ distribution in such a way that, if an attacker hacks into any instance of the cluster, the attacker cannot gain anything beyond the information which the compromised instance is currently computing on. Moreover, unlike traditional TDE, some embodiments do not introduce any noticeable slowdown to jobs, no matter how far from the Hadoop deployment the encryption keys are stored. And some embodiments also provide near- instant key rotation.
[0043] In brief, some embodiments configure nodes in a Hadoop cluster to work on workload data without talking to the KMS (e.g., a remote KMS used in traditional Hadoop deployments). The DMZ, in some embodiments, generates temporary keys for some or all of the nodes and produces transformation keys for the HDFS layer, so that HDFS can transform selected data from being encrypted for the data owner into being encrypted for compute nodes. In some embodiments, the number of ciphertexts accessible with a different encryption key (e.g., EDEK's or other data owner keys) is relatively voluminous, such that fine-grained access may be granted to the different ciphertexts without granting access to the other ciphertexts. In some embodiments, the volume of such keys may be comparable to that of the data itself, in the extreme case with one or more keys per entry per field of data. In some embodiments, the volume of keys (e.g., measured in bytes) may be more than 2% that of the data encrypted with the keys, more than 5%, more than 20%, more than 50%, more than 80%, or more than 100%, depending on the resolution with which access (e.g., the ability to decrypt) is granted.
[0044] In some embodiments, cluster nodes do not need to send anything to the remote KMS, nor do they need to interact with the remote KMS while the job is executed. In some cases, the remote KMS may store private and public keys by which a data owner's data is encrypted. In some cases, an intermediary KMS described below may access and store these public keys to form transformation keys or temporary access keys described below.
[0045] Proxy re-encryption [PRE] a the cryptographic primitive by which some embodiments secure Hadoop in a more manageable manner than traditional approaches. PRE is a family of public key encryption algorithms, the first of which was introduced in 1998. In addition to usual functions for encryption and decryption, proxy re-encryption provides access delegation, so that a completely different private key can decrypt your data.
[0046] An explanation of proxy Re-encryption in Python-like pseudo-code follows. The preamble "»>" indicates entry of a command and the absence of "»>" indicates the response to the command.
[0047] Data owner has his own key pair:
»> private key = get_random_key()
»> public key = get_public_key(private_key)
[0048] Data is encrypted under the owner's public key, as is typical in public key cryptography:
»> e data = encrypt(public_key, data)
[0049] And the owner can decrypt it:
»> data == decrypt(private_key, e data)
True
[0050] Now, if a completely random person or process (e.g., an attacker) has its very own key pair, it cannot decrypt data encrypted under public key:
»> private_key_2 = get_random_key()
»> public_key_2 = get_public_key(private_key_2)
»> private_key_2 == private_key False
»> decrypt(private_key_2, e data) [0051] DecryptionError: Wrong key
[0052] But the owner of the data can enable the owner of a second key to read the data: »> t key = get_transformation_key(private_key, public_key_2)
[0053] After that, in some embodiments, this transformation key t key can be used to transform data where it is stored, e.g., without exposing any secret keys:
»> e_data_2 = transform(t_key, e data)
[0054] And then owner of private_key_2 can decrypt the data:
»> data == decrypt(private_key_2, e_data_2)
[0055] Figure 2 shows an example of a process 20 by which key rotation is achieved, e.g., with the architecture of figure 1. In some embodiments, key rotation is relatively manageable once the insights described herein are implemented. After a new version of a key for an Encryption Zone is introduced (block 22), in some embodiments, the KMS creates a transformation key (block 24), which after being distributed to computing nodes of a cluster (block 26), allows an untrusted party (e.g., the computing nodes) to transform data from being encrypted under an old version to a new version of the key (block 28). In other words, the user shares their own data with their future self with proxy re-encryption.
[0056] Then, in some embodiments, the transformation key is given to the cluster. And the whole cluster is employed for doing key rotation. A typical 1000-node cluster can perform key rotation at a speed of 2 petabytes per second. During this process, in some embodiments, no encryption keys are exposed to the Hadoop deployment and the data is never decrypted. (Of course, hybrid implementations are also envisioned in which the present techniques are used alongside traditional approaches, and some data may be decrypted in the portions implementing the traditional approach.) [0057] Some embodiments include a key management server (KMS) 18 that affords delegated access and is distinct from the Hadoop KMS, e.g., some embodiments may include two KMSs, with the present KMS sitting between the Hadoop KMS and computing nodes of the distributed storage and processing application, or some embodiments may replace the Hadoop KMS with the present KMS.
[0058] As shown in figure 3, unlike the typical Hadoop KMS, some embodiments have a KMS that communicates with the Hadoop cluster (e.g., by sending keys needed to access data) only when the KMS grants the permissions to execute the job being processed by the cluster in a cryptographically secure manner. In some cases, as shown in figure 3, these operations may be implemented with a TransformationNode 30 added to the HDFS layer and a LocalKMS 32 in the computing nodes 34 in support of computing processes 36, like mapping operations and reducing operations. As illustrated, and discussed above, the HDFS layer may include a NameNode 38 and DataNode 40 by which ciphertexts are accessed with the TransformationNode 30 and the computing node 34. Some embodiments may include substantially more computing nodes, e.g., more than 10, more than 100, or more than 1,000.
[0059] Before the cluster (of computing nodes constituting a Hadoop cluster in an instance of a distributed processing and storage application) executes the job (e.g., pipeline of one or more MapReduce operations on workload data), in some embodiments, the Key Management System 18 generates temporary encryption key pairs for some or all computing nodes in the cluster that will perform tasks in the job (e.g., with each node having its individual key pair (for instance, a public and private key in a public key encryption algorithm), and with different computing nodes having different key pairs). These temporary key pairs, in some embodiments, are transferred to the nodes 34 of the execution engine 16 over the network, e.g., with the transfer being secured by Transport Layer Security (TLS) communications between the KMS 18 and the nodes of the execution engine 16.
[0060] For each of those key pairs, in some embodiments, a transformation key is generated to grant permission to decrypt the data. These transformation keys may be deployed in the HDFS layer, e.g., by writing the key to designated locations in the distributed file system, in some cases, with keys being written to local memory of a computing node that will use the respective keys to access the data local to that computing node and perform operations on that data, or in some cases, the data or keys may be stored on a different computing node.
[0061] In some embodiments, when a node requests data from HDFS, blocks and files appear to the distributed processing and computing application as if they were encrypted under the node's temporary public key, e.g., in a manner that maintains compliance with the distributed processing and computing application's application program interface and data model. To maintain such compliance, while storing the data in a different format from that expected, HDFS layer nodes may transformed/re-encrypt the data prior to sending it to the execution engine, without having access to the encryption keys.
[0062] Figure 4 shows an example of a process 50, which may be executed by the logical architectures described herein, to provide relatively fine-grained access control using the delegated access features discussed above. In some embodiments, the process 50 includes obtaining a cluster of computing nodes in a distributed storage and processing application, as indicated by block 52. In some cases, this may include one or more of the distributed storage and processing applications described herein, and in some cases, obtaining the cluster, may be performed by obtaining access to a cluster hosted on a remote data center.
[0063] Some embodiments include accessing a transformation key with a first computing node, as indicated by block 54. In some cases, accessing the transformation key may include accessing one of the above-described key management servers discussed above, such as a key management server operative to provide a transformation key for a proxy re-encryption algorithm like those discussed above.
[0064] Some embodiments include transforming the ciphertext with the first computing node, as indicated by block 56. In some cases, the ciphertext is workload data stored in one of the above- described data nodes, for instance, ciphertext formed with data encrypted with a data owner's encryption key or with one of the above-described key rotation keys. In some embodiments, transforming the ciphertext with the first computing node may include transforming the ciphertext with the transformation key, for example, based upon a public key of a second computing node discussed below. In some embodiments, the transformation may be performed without access to a private key by which the ciphertext is encrypted and without access to a private key corresponding to a public key of the second computing node. In some embodiments, the transformation may be performed without the first computing node having access to the unencrypted plaintext form of the ciphertext.
[0065] Some embodiments may access the transformed ciphertext and the temporary access key with a second computing node, as indicated by block 58. In some cases, the second computing node is a worker node in a computing cluster executing one of the above-described computing processes 36. In some cases, the temporary access key is accessed with a local key management server 32 like that discussed above. In some cases, the transformed ciphertext is accessed with the read operation described below with reference to figure 5, For instance by interfacing with the above-described NameNode 38 to identify which DataNode 40 that stores the transformed ciphertext.
[0066] Next, some embodiments may decrypt the transformed ciphertext with the second computing node, as indicated by block 60. In some cases, these operations 58-64 may be performed concurrently, for example, by more than 10, more than 100, or more than 1000 different computing nodes that serve the role of the second computing node. Similarly, the operations of block 54 and 56 may be executed concurrently, for instance, by different instances of the TransformationNode 30 described above.
[0067] Next, some embodiments may perform a mapping task or a reducing task with the second computing node on the plaintext data, as indicated by block 62.
[0068] Next, some embodiments may store a result of the mapping task or the reducing task in memory, as indicated by block 64. In some cases, this may include the below-described write operations of figure 12. In some embodiments, a sequence of mapping, then reducing, then mapping, then reducing tasks, and so on, the repeated, for example, in a pipeline.
[0069] Some embodiments may use the result of the MapReduce job for a variety of purposes. In some cases, the resulting data may be subject to further transformations, and some embodiments may cause a client computing device to present user interface based on the result, as indicated by block 66. In some cases, the client computing device may present a user interface in a web application or a native mobile application or desktop application. [0070] In some embodiments, delegated access may be granted with relatively fine-grain control, for example, with different encryption keys being allocated to different computing nodes, such that the different computing nodes may access a subset of the present ciphertexts. For example, some embodiments may permit a given computing node to access a single column, or a single value of a single field with a single temporary access key suitable for that computing node (and only that computing node having a corresponding private key) to access that one and only value, or embodiments may group subsets of data in different ways, for example, by column, by row, by table, or the like, and provide access based upon these different subsets of data. Some embodiments may generate keys to access different subsets of data, such as the temporary access keys, for limited use, for example, on a job-by-job basis or on a task by task basis. In some cases, a given computing node may become compromised, but an adversary a may be prevented from accessing the full set of data based upon the above-describe segmentation with different encryption keys applying to different subsets of these ciphertext.
[0071] When HDFS clients read data encrypted with a block cipher and data encryption keys encrypted with a zone key (EDEKs) [TDE], they typically use the KeyProvider API to ask Hadoop KMS to decrypt EDEKs.
[0072] In contrast, with some embodiments, EDEKs are instead transformed by TransformationNodes to EDEK2 and sent for decryption to a local daemon (LocalKMS), which in some cases, provides the same KeyProvider API. The LocalKMS daemon may decrypt EDEK2 with the temporary private key it holds (after EDEKs are transformed by the HDFS layer) and give data encryption keys (DEKs) back to the local HDFS client that requested them.
[0073] In some embodiments, the HDFS client then uses DEKs to decrypt the data encrypted by the block cipher, similar to standard transparent data encryption.
[0074] By way of comparison, it is worth examining the sequence of events for reading an encrypted with both TDE (the standard Hadoop approach) and embodiments of the present techniques.
[0075] The sequence of events for reading an encrypted file with TDE includes the following: 1. The HDFS client calls openQ to read a file. 2. The NameNode provides the EDEK to the client
3. The HDFS client passes the EDEK and EZK-id/version to the KMS.
4. The KMS requests the EZK from the key server.
5. The KMS decrypts the EDEK using the EZK.
6. The KMS provides the DEK to the HDFS client.
7. The HDFS client reads the encrypted data blocks, decrypting them with the DEK.
[0076] In contrast, the sequence of events for reading an encrypted file with embodiments of the present techniques are shown in figure 5 and include the following:
1. Before any reading happens, KMS gives transformation key to TransformationNode, generates and gives temporary key to LocalKMS.
2. The HDFS client calls open() to read a file.
3. The EDEK provided by NameNode is proxied and transformed by TransformationNode.
4. The HDFS client passes the EDEK and EZK-id/version to the LocalKMS.
5. The LocalKMS decrypts the EDEK using its temporary key.
6. The LocalKMS provides the DEK to the HDFS client.
7. The HDFS client reads the encrypted data blocks, decrypting them with the DEK.
[0077] In some embodiments, when an HDFS client writes data to HDFS, LocalKMS generates a random data encryption key (DEK), which the client uses to encrypt data with a block cipher algorithm (typically AES). If this node is allowed to save data to HDFS, the KMS of some embodiments gives LocalKMS the public key for the Encryption Zone. LocalKMS may encrypt DEK using this public key to produce an EDEK, and this EDEK gets transferred to a NameNode in the HDFS layer. There is no need for the HDFS cluster to communicate with the KMS of the present embodiment during this process.
[0078] By way of comparison, it is worth examining the sequence of events for writing an encrypted file with both TDE and embodiments of the present techniques.
[0079] The sequence of events for writing an encrypted file with TDE includes the following:
1. The HDFS client calls create() to write to the new file.
2. The NameNode requests the KMS to create a new EDEK using the EZK-id version.
3. The KMS generates a new DEK.
4. The KMS retrieves the EZK from the key server.
5. The KMS encrypts the DEK, resulting in the EDEK.
6. The KMS provides the EDEK to the NameNode.
7. The NameNode persists the EDEK as an extended attribute for the file metadata.
8. The NameNode provides the EDEK to the HDF S client.
9. The HDFS client provides the EDEK to the KMS, requesting the DEK.
10. The KMS requests the EZK from the key server.
11. The KMS decrypts the EDEK using the EZK.
12. The KMS provides the DEK to the HDFS client.
13. The HDFS client encrypts data using the DEK.
14. The HDFS client writes the encrypted data blocks to HDFS. [0080] In contrast, the sequence of events for writing an encrypted file with embodiments of the present techniques are shown in figure 6 and include the following:
1. Before any writing happens, KMS gives LocalKMS public key for encryption zone.
2. The HDFS client calls create() to write to the new file.
3. LocalKMS on the same node as HDFS client generates new DEK.
4. LocalKMS encrypts DEK with the EZ public key.
5. LocalKMS provides EDEK to the NameNode.
6. The NameNode persists the EDEK as an extended attribute for the file metadata.
7. LocalKMS provides the EDEK to the HDFS client.
8. The HDFS client provides the EDEK to the LocalKMS, requesting the DEK.
9. LocalKMS gives back DEK it just encrypted to the HDFS client.
10. The HDFS client encrypts data using the DEK.
11. The HDFS client writes the encrypted data blocks to HDFS.
[0081] Operations are described with reference to ciphertext (the encrypted form of data) and plaintext (the unencrypted form of data, which may still be encrypted in cases where multiple layers of encryption are applied). In some cases, the plaintext may be workload data of the distributed processing and storage application (e.g., application state of the job being run), or the plaintext may be an encryption key (e.g., encrypted data encryption keys (EDEKs)) by which that workload data is encrypted. In some embodiments, for performance reasons, a symmetric key may be used to encrypt the workload data (e.g., a secret accessible to both sides), and the symmetric key may be conveyed with asymmetric key encryption (e.g., one side only knows the public key of the other side, who uses their private key to read the value encrypted with their public key, e.g., the symmetric key), which is then used to access the workload data. [0082] In some embodiments, the above techniques may be implemented as described with reference to the following embodiments.
[0083] As mentioned, many companies (and governments and other entities) are hesitant to move their data into the cloud or expose their data to could-based big data analytics tools. A significant barrier to adoption is security of both the data storage and analytics platform and the cloud. Organizations are increasingly concerned with the risk and cost of unending cyberattacks. Perimeter security plays an important role, but is often insufficient on its own. The ultimate protection against attacks is encryption at the data layer (e.g., both at rest and in transit). As malicious attacks have become more sophisticated, the ability to protect and regularly rotate encryption keys, while at the same time providing access to authorized users and partners, is a powerful tool for delivering against this mandate. (Though, it should be emphasized that multiple inventions are described herein, with different tradeoffs, so embodiments are not limited to systems affording this benefit, which is not to suggest that any other description is limiting.)
[0084] A common theme in many big data storage and analytics software tools is distributed processing and resiliency to the failure of any one computational entity, often with redundancy and fault-tolerant algorithms. Examples are described with reference to Apache Hadoop™, but the present techniques can be applied in a variety of other big data applications, including Apache Spark™, Apache Flink™, Apache Storm™, Apache Samza™, Cluster MapReduce, High Performance Computing Cluster, Hydra™, Ceph™, DataTorrent RTS™, Disco™, BigQuery™, Pachyderm™, Presto™, and the like. Many facing the challenges above would like to use these tools, but the same aspects that make the tools powerful for big data problems increase the attack surface for malicious actors. To mitigate these issues, some embodiments deploy certain cryptographic techniques in the context of these tools.
[0085] Apache Hadoop is a processing framework for big data repositories. Details are described at http ://hadoop . apache. org/ docs/ current/, the contents of which under the headings "General," "Common," and "HDFS," and "MapReduce," in the Internet Archive capture of 14 February 2017 are hereby incorporated by reference. Hadoop uses the MapReduce paradigm, which spreads the workload across the whole cluster in two distinct phases: (i) Map, where each data record is processed and an intermediate result is produced, (ii) and Reduce, where several intermediate results are merged into single outputs. This paradigm is very powerful since it scales very well and it is robust to node failures. Although Hadoop works with several filesystems, it also defines its own, named Hadoop Distributed File System (HDFS), specifically designed for high throughput and fault-tolerance. Hadoop 2.x introduced Transparent Data Encryption (TDE), enabling symmetric encryption at rest for HDFS, a very important measure for data security and compliance with PCI DSS, HIPAA, FISMA and other regulations. TDE works at the file level, encrypting each file using a random Data Encryption Key (DEK). The DEK is, in turn, encrypted with a "master" Encryption Zone key (EZkey), creating an Encrypted Data Encryption Key (EDEK). This way, the EZKey is required each time an operation over an encrypted file is performed. Management of EZKeys and their operations is centralized by a special component called the Key Management Server (KMS). The data owner can define in the KMS different "encryption zones", which essentially act as directories whose content is encrypted, each of them with a different EZKey. The KMS interoperates with key store servers in order to retrieve EZKeys when needed.
[0086] However, standard Hadoop TDE often presents challenges:
1. TDE generally supports only symmetric encryption. This means that in case of external organizations acting as data sources (e.g., contractors, partners, etc.), they have to ask the KMS to encrypt data encryption keys (DEKs). This implies that the KMS has to be online all the time (even for data collection purposes).
2. In many cases, there is only support for AES in unauthenticated CTR mode. This means that data can potentially be corrupted or deliberately changed while encrypted.
3. During regular read/write requests, all the nodes which access that data frequently (e.g,. at each map or reduce operation) communicate to the centralized KMS to obtain access to data upon which operations are performed locally. In addition to being always online, the KMS often has to be very close to the Hadoop cluster and be able to handle large numbers of requests per second. These requirements are expensive in scenarios where a Hadoop cluster is deployed in a remote cloud with keys on premise. 4. Key rotation is hard to perform because of the risk of exposing old and new secret keys to the machines in the cluster. Key rotation is generally not supported in Hadoop TDE, and manual workarounds are slow or insecure. Nevertheless, periodic key rotation is required for security and compliance with regulations in many use cases.
[0087] Certain existing public-key encryption schemes allow an entity holding a private key related to some public key to decrypt ciphertexts encrypted under said public key. The encryption scheme proposed by ElGamal is one example of public-key encryption scheme (see ElGamal, T. (1984, August). A public key cryptosystem and a signature scheme based on discrete logarithms. In Workshop on the Theory and Application of Cryptographic Techniques (pp. 10-18). Springer Berlin Heidelberg.) Public-key encryption is one of the basic tools of public-key infrastructures. In recent years, research on more advanced functionalities has been conducted in relation with public-key encryption, leading to schemes where decryption of ciphertexts originally encrypted by some public key can be performed with a private key not associated with said public key. This is what is known as "Proxy re-encryption" by the scientific community. There are several proxy re-encryption schemes in the literature, being the most prominent those based on ElGamal public-key encryption scheme, such as the ones proposed by Blaze et al. (see Blaze, M., Bleumer, G., & Strauss, M. (1998, May). Divertible protocols and atomic proxy cryptography. In International Conference on the Theory and Applications of Cryptographic Techniques (pp. 127- 144). Springer Berlin Heidelberg) and Ateniese et al. (see Ateniese, G., Fu, K., Green, M., & Hohenberger, S. (2006). Improved proxy re-encryption schemes with applications to secure distributed storage. ACM Transactions on Information and System Security (TISSEC), 9(1), 1- 30.)). Each paper referenced in this paragraph is hereby incorporated by reference.
[0088] Some embodiments provide nodes in a Hadoop cluster configured to operate on encrypted data (e.g., execute a mapping function or reducing function specified by a user to the Hadoop framework and that takes as input the encrypted data (in decrypted form) and outputs transformed versions of the encrypted data (in decrypted form) so that it can be encrypted in a newly encrypted set of data) in an untrusted portion of the distributed application while minimizing (or otherwise reducing) communication with the KMS in the trusted portion. Some embodiments integrate a proxy re-encryption scheme (which is a type of public key cryptosystem) within the TDE functionality. This way, in some embodiments, the EZKeys (which in Hadoop TDE are symmetric keys) are substituted by a pair of public and secret keys, namely the Public Encryption Zone Key (PEZKey) and the Secret Encryption Zone Key (SEZKey). The conjunction of these two keys is called an EZKeypair herein. As in any public- key encryption cryptosystem, the public key (which corresponds to the PEZKey in some embodiments) is used for encryption, while the secret key (which corresponds to the SEZKey some embodiments) can be used for decryption. Therefore, in some embodiments, when encrypting data files for storage in the filesystem, the PEZKey is used to create EDEKs from DEKs, while the SEZKey can be used to decipher DEKs from EDEKs (that is, the opposite operation). These actions correspond with write and read access flows, respectively. Since PEZKeys are public they do not need any special protection (apart from guaranteeing its integrity and authenticity in some use cases, for instance with a cryptographic hash signature). On the other hand, SEZKeys, in some embodiments, are kept secret (e.g., in a trusted portion of the distributed application), in a similar way than TDE handles regular, symmetric EZKeys.
[0089] Using proxy re-encryption, some embodiments improve the read access flow so that SEZKeys are not used directly by a consumer (such as a computing node in the untrusted portion of the application executing the mapping or reducing functions). In some embodiments, the owner of the encryption zone, which controls the SEZKey, generates a special key called Transformation Key (TK), which in some embodiments, allows embodiments to transform EDEKs under PEZKey to EDEKs under a different public key, such as the public key of a consumer, which can decrypt them using the corresponding secret key (this process is known as "Re-Encryption" in proxy re-encryption literature). Embodiments are described with reference to a pair of public and secret keys of a consumer as PCKey and SCKey, respectively. The conjunction of these two keys is called a CKeypair herein. Each consumer in the system, in some embodiments, has a different CKeypair, that is, a different pair of PCKeys and SCKeys. In sone cases, each of a plurality of tenants, applications, sessions, or users may have a different CKeypair. For a given PEZKey and SEZKey pair, the owner of the encryption zone generates a TK for each consumer in the system (in some cases, there is a consumer for each computing node, or all the nodes act may as a single consumer). Therefore, in some embodiments, the transformation process uses the re-encryption functionality offered by proxy re-encryption to transform an EDEK, initially encrypted under a PEZKey as part of a write access request, into a new EDEK, called Transformed EDEK (TEDEK), which can be decrypted by the consumer with its SCKey in some embodiments.
[0090] The architecture of some embodiments introduces two entities over conventional TDE (which is not to imply that all embodiments must include one or both of these entities or that other descriptions are limiting). One of them is the Transformation Node (TN), which is in charge of transforming data between the original PEZKey and the consumer PCKey using the corresponding TK. The other entity is called LocalKMS, since it is local to the consumer nodes, and it handles the decryption of data for each node.
[0091] In some embodiments, once the original EDEK is transformed into a TEDEK, a consumer that wants to read the data as part of a read access request does not need to communicate with the KMS at any moment. In some embodiments, the KMS communicates with the cluster only when it grants the permissions to execute a job. Before execution, in some embodiments, the KMS generates temporary key pairs for the consumer nodes (that is, pairs of a PCKey and a SCKey), which are securely transferred to the nodes (e.g., with SSH). Next, in some embodiments, a transformation key TK is generated to grant permission to decrypt data with the SCKey and subsequently deployed to the cluster, specifically, to the local Transformation Node.
[0092] When a node requests an encrypted file from the filesystem, in some embodimenst, the Transformation Node transparently transforms the data from the original PEZkey to the temporary PCKey. Hence, from the point of view of the consumer nodes, files appear as if they were originally encrypted under their temporary PCKey.
[0093] Figure 7 shows a high-level view of the architecture of some embodiments. Figure 7 and the above are examples of distributed applications, which are applications executing on a plurality of computing devices, such as on a plurality of computing nodes, like containers, virtual machines, uni-kernels, non-virtualized operating systems, and the like. In some embodiments, the distributed application described herein may be a subset of a larger distributed application, such as a backend to a web application or application program interface accessed by remote user computing devices or other distributed applications, arrangements which may be characterized under the rubric of being distributed applications themselves in the aggregate.
[0094] In some embodiments, the illustrated distributed application 70 may include a trusted portion 72 and an un-trusted portion 74. The term "trust" herein does not require a state of mind, but rather serves to distinguish different portions of the distributed application in which different security techniques are applied, with the "un-trusted" portion being assumed to be more vulnerable to attack potentially than the "trusted portion," or architected as if this is the case. In some embodiments, the trusted portion 72 may execute in different processes, on different computing devices, on different subnets, or otherwise separate from the un-trusted portion 74, and in some cases with communication therebetween only through relatively well-defined and manageable channels that tend to diminish the attack surface of the trusted portion 72 relative to the untrusted portion. For instance, the untrusted portion may execute user-supplied code, while the untrusted portion may not in some implementations.
[0095] In this example, the trusted portion 72 includes a keystore 76 having one or more public- private cryptographic key pairs, such as the key pair with a private cryptographic key 73 and a public cryptographic key 74, in some cases generated with the techniques described herein for public key cryptography. In some embodiments, the key store 76 may store a plurality of different cryptographic key pairs, in some cases each (or subsets thereof) corresponding to different tenants, use cases, encryption zones, users, applications, sessions, and the like. In some embodiments, the private cryptographic key 73, also referred to as a secret cryptographic key, of the illustrated key pair may remain within the trusted portion 72 of the distributed application 70 when data is protected with that key through encryption and while techniques described herein are used to delegate access to computing devices in the un-trusted portion 74 without the secret cryptographic key 73 leaving the trusted portion 72 or the computing devices in the un-trusted portion 74 otherwise having access to the secret cryptographic key 73 (at least before the key pair is rotated out).
[0096] In some embodiments, the trusted portion 72 may include a key management system 78. In some embodiments, the key management system 78 may operate as described below to emit transformation keys from the trusted portion 72 into the un-trusted portion 74 to facilitate proxy re-encryption of encrypted values without exposing the secret cryptographic key 73 to the untrusted portion and without transmitting the encrypted values from the un-trusted portion 74 into the trusted portion 72 (which in some cases may be remote and expensive in terms of bandwidth or latency to communicate with when exchanging data at that scale). In some embodiments, values, such as files or encryption keys, like symmetric encryption keys by which those files are encrypted, may themselves be encrypted with the public cryptographic key 75 in the keystore 76, for instance, by sending the public cryptographic key 75 from the trusted portion 72 into the un-trusted portion 74, such that the files may be encrypted, or encryption keys thereof may be encrypted, without transmitting the files to be encrypted into the trusted portion 72 from the un-trusted portion 74. Or in some cases, any of these values may be shuffled back and forth with the transformation in the trusted portion 72, which is not to suggest that any other description herein is limiting.
[0097] In some embodiments, a transformation node 80 may receive the transformation key and execute one or more of the above-described proxy re-encryption algorithms based on the transformation key to transform an encrypted data encryption key into a transformed encrypted data encryption key that is accessible with a different cryptographic key pair from that in the keystore 76. In some embodiments, the transformation node 80 may be in the trusted portion 72, or in some embodiments, the transformation node 80 may be in the un-trusted portion 74, as illustrated, e.g., to reduce latency and bandwidth by positioning the transformation node locally or on the same subnet. Some embodiments may include a plurality of transformation nodes 80 to facilitate concurrent operations. In some embodiments, each illustrated consumer computing node 90 may include its own instance of the transformation node 80 locally, several may share a transformation node, or transformation nodes may correspond to different sets of encryption zones and consumers may change which transformation node is accessed based on the encryption zone of data for which they seek access.
[0098] In some embodiments, a workload of the distributed application 70 may be executed by consumer computing nodes 90, such as worker nodes in the Hadoop framework. In some embodiments, these consumer nodes may execute a mapping function specified by a user of the distributed application 70 on stored records that are protected with the presently described cryptographic techniques, or the consumer nodes 90 may execute a reducing function specified by the user on these records. Or in some cases, other operations, like complex event processing rules or queries may be applied to such records by the consumer nodes 90. As mentioned above, there may be a relatively large number of consumer nodes 90 concurrently processing data, such as more than 10, more than 100 or more than 1000, or more than 2, more than 10, or more than 100 computing devices, e.g., in a datacenter remote from the trusted portion 72.
[0099] In some embodiments, each consumer node 90 may include a local key management system 92 operative to obtain encrypted data encryption key for a file to which the consumer node 90 seeks access, send the encrypted data encryption key to the transformation node 80 with a request to transform the data encryption key, in some cases with an identifier of a cryptographic key pair including a public cryptographic key 94 and a secret, or private, cryptographic key 96 of the respective consumer node 90. In some embodiments, both the public cryptographic key 94 and the secret cryptographic key 96 may be sent to the transformation node 80 for this operation, or some embodiments may just send the public cryptographic key 94 and not the secret cryptographic key 96.
[00100] In some embodiments, the local key management system 92 is operative to receive back a transformed encrypted data encryption key, which the consumer node 90 may decrypt with the secret cryptographic key 96. In some embodiments, the consumer node 90 may then access a symmetric cryptographic key of the encrypted file (also referred to as a record, though the term "record" is broader and encompasses a more diverse set of data structures than just files, like entries in a database, key -value pairs, portions of documents, binary -large-objects (BLOBs), and the like) to be accessed from the result of decrypting the transformed encrypted data encryption key. In some embodiments, the consumer node 90 may then decrypt the corresponding file of the transformed encrypted data encryption key with the accessed symmetric key to access the underlying information, i.e., accessing the message of the ciphertext, which is in decrypted form when accessed.
[00101] In some embodiments, the result of decrypting the record may be input into a mapping function, input into a reducing function, compared to a query to determine if it is responsive, or applied to a set of rules in an event processing system. In some embodiments, the result may then be output (in some cases, applying TLS encryption during transit on the network) or re- encrypted, for instance, with the same or a different symmetric encryption key. Symetric encryption keys may be, for instance, a random (e.g., pseudorandom) sequence of bits longer than 256 bits, 512 bits, 1028 bits, or longer. The symmetric encryption key, may then be encrypted with the public cryptographic key 75 that is associated with the secret cryptographic key 73 in the key store 76 of the trusted portion 72 of the distributed application 70.
[00102] In the illustrated embodiment, there is one local key management system per consumer node 90, but other embodiments may have other arrangements, such as architectures in which one local key management system serves multiple consumer nodes from within the un- trusted portion 74 of the distributed application 70.
[00103] In some embodiments, accessed files or other records may be stored in the file system layer 82 in the un-trusted portion 74, for instance, in an instance of the Hadoop file system (HDFS) described above. In some embodiments, files may be segmented into blocks each having some discrete size, other than a last block that stores a residual portion, and those blocks may be stored on different computing nodes of the distributed application, in some cases redundantly (e.g., in triplicate), with the same block stored on different nodes, and in some cases, stored records may be encoded with Hamming codes or Turbo codes to facilitate recovery even if every replicated instance of a given block is lost due to concurrent failure of multiple computing nodes. In some embodiments, the encrypted data encryption key (which may be a ciphertext that encrypts a symmetric encryption key with which the corresponding record was encrypted) may be encrypted with the public cryptographic key 75, and the result may be stored in association with the corresponding encrypted file 86, as indicated by block 88 in figure 7. Association in this example may be obtained, e.g., by storing the encrypted data encryption key as metadata of the file holding the ciphertext, with a lookup table, by pointers in metadata, or as entries in hashtables with an index based on a hash of information in the ciphertext. In some embodiments, each encrypted file may have a different data encryption key and, therefore, a different encrypted data encryption key, as illustrated. A file or other record may include both an encrypted portion, such as content of the file (or encrypted entries in the content), and an unencrypted portion, such as a file name and other metadata, while still being said to be encrypted. [00104] In some embodiments, encrypted files may be logically arranged in encryption zones 84, in some cases each of which may correspond to a different cryptographic key pair in the keystore 76, such that access to a given secret cryptographic key in the keystore 76 affords access to each of the records in a corresponding one of the encryption zones 84. In some embodiments, encryption zones may be further nested, for instance, by encrypting a collection of secret cryptographic keys corresponding to the collection of encryption zones and controlling access to that higher layer of encryption's secret cryptographic key. In some embodiments, three, four, five, six, or more layers of encryption may be applied to generate higher levels of hierarchical arrangement of access.
[00105] Proxy re-encryption
[00106] Some embodiments implement a proxy re-encryption scheme. A variety of different forms of proxy re-encryption may be used, including those described in U.S. Patent Application 62/427,401, filed 29 November 2016, titled METHOD AND SYSTEM FOR SWITCHING PUBLIC KEYS IN CIPHERTEXTS, the contents of which are hereby incorporated by reference. In some cases, the proxy re-encryption scheme prevents a delegate from accessing the content of a message or from accessing a private key corresponding to the public key with which the message was encrypted. In some embodiments, the proxy re-encryption schemes provide at least the following functionalities, embodied by these algorithms:
[00107] PRE.Setup(seci¾raw) -> publicParams. On input the security parameter secParam, the setup algorithm PRE. Setup outputs an object that contains the public parameters of the scheme. In some cases, these parameters are publicly known.
[00108] PRE.KeyGen() -> (pk#i, sk#i). The key generation algorithm PRE.KeyGen outputs a pair of public and secret keys (pk#i, sk#i) for entity i. The term "secret key" is also referred as "private key" in this description.
[00109] PRE.Enc(p / , m) -> ci . On input the public key pk#i and a message m, the encryption algorithm PRE.Enc outputs a ciphertext c#i. [00110] PKE.Decfsk i, c#i) -> m. On input the secret key sk#i and a ciphertext c#i, the decryption algorithm PRE.Dec outputs a message m.
[00111] PRE.ReKeyGen(p /, sk#i, pk#j , sk#j) rk[i->j]. On input the pair of public and secret keys (pk#i, sk#i) for entity i and the pair of public and secret keys (pk#j,sk#j) for entity j, the re-encryption key generation algorithm PRE.ReKeyGen outputs a re-encryption key rk[i- j].
[00112] PRE.ReEnc(V/c/7->y7/ c# ) -> c#j. On input a re-encryption key rk[i- j] and a ciphertext c#i, the re-encryption algorithm PRE.ReEnc outputs a second ciphertext c#j, which can be decrypted by entity j using sk#j.
[00113] In order to support key rotation, in some embodiments, the PRE scheme is multi-use, which means that re-encrypted ciphertexts can be re-encrypted again, which implies that the re- encryption process can be performed an arbitrary number of times. Another characteristic of the PRE scheme that can influence how the scheme is used is if it is interactive or non-interactive. The former means that the re-encryption key generation (i.e., the PRE.ReKeyGen function) uses the secret key sk#j, while the latter means that it does not use it. The implication of this is that interactive schemes, in some embodiments, require the participation of entity j in the re- encryption key generation process since it involves secret key sk#j, while non-interactives do not, since only pk#j is needed.
[00114] Additionally, in some embodiments, the PRE scheme has access to a secure source of randomness in the form of a cryptographically secure pseudorandom number generator (CSPRNG).
[00115] Generation of Cryptographic Keys [00116] Generation of EZKeypairs
[00117] In some embodiments, the KMS is in most cases in charge of generating EZKeypairs each time an authorized user creates an encryption zone or updates the version of an existing encryption zone (which entails using a new set of keys). It should be noted that it is not mandatory that the process of generating EZKeypairs is performed inside the system, which is not to imply that other described operations are mandatory. That is, the EZKeypair can be generated by the data owner externally and provided to the system. However, it is advisable that the KMS handles generation of EZKeypairs, and that the secret component (i.e., the SEZKey) is managed securely (for example, stored by a keystore server). In c, from the cryptographic point of view, EZKeypairs are generated using the PRE.KeyGen function as follows:
(PEZKey#i, SEZKey#i) = PRE.KeyGen()
That is, PEZKey#i and SEZKey#i are a proxy re-encryption public and private key, respectively. [00118] Generation of CKeypairs
[00119] In some embodiments, CKeypairs are intended to be short-lived, and are regenerated frequently, depending on an admin-suplied frequency (e.g., daily). Depending on the characteristics of the PRE scheme, the CKeypairs may be generated in different ways. In particular, this may depend on the scheme being interactive or not. If the scheme is not interactive, in some cases, then CKeypairs can be generated locally by the consumer nodes (specifically, in the LocalKMS), and it is only necessary to send the PCKey to the KMS after that, in some embodiments. If the scheme is interactive, in some cases, then CKeypairs are generated in the KMS, so the KMS can retain a copy of the SCKey before sending it to the consumer nodes. SCKeys are needed for generation of Transformation Keys when interactive PRE schemes are used in some embodiments. Since SCKeys are secret, special care must be taken to protect them properly and must be securely erased once they are not needed. In some cases, from the cryptographic point of view, CKeypairs are generated using the PRE.KeyGen function as follows:
(PCKey#j, SCKey#j) = PRE.KeyGen()
[00120] Generation of Transformation Keys (TKs)
[00121] Each time a new pair of CKeypairs is generated, some embodiments create or update the corresponding TK between the current EZKeypair and the new CKeypair. The KMS in some embodiments is in charge of generating TKs, since it involves using an encryption zone's secret key (SEZKey). TKs are generated as re-encryption keys, using the PRE.ReKeyGen algorithm between an EZKeypair and a CKeypair. Note that when the PRE scheme is non-interactive, the whole CKeypair is not needed, only the PCKey; in this case, TKs are generated using the PRE.ReKeyGen function as follows:
TK[i->j] = PRE.ReKeyGen(PEZKey#i, SEZKey#i, PCKey#j)
[00122] On the other hand, when the scheme is interactive, SCKeys are needed in some embodiments; in this case, TKs are generated using the PRE.ReKeyGen function as follows:
TK[i->j] = PRE.ReKeyGen(PEZKey#i, SEZKey#i, PCKey#j, SCKey#j) [00123] Generation of Key Rotation Keys (KRKs)
[00124] Upon request by the owner of an encryption zone, some embodiments rotate the EZKeypair, which in some cases entails modifying the encrypted files so they correspond to a new EZKeypair. To this end, the KMS issues a Key Rotation Key (KRK), which is basically a re-encryption key between two different EZKeypairs, and sends it to the cluster to perform the rotation operation. From the cryptographic point of view, in some embodiments, KRKs are generated as re-encryption keys, using the PRE.ReKeyGen algorithm, but between two EZKeypairs, instead of an EZKeypair and an CKeypair, as Transformation Keys (TKs). When the scheme is non-interactive, KRKs are generated as follows:
KRK[i->i'] = PRE.ReKeyGen(PEZKey#i, SEZKey#i, PEZKey#i')
[00125] On the other hand, when the scheme is interactive, KRKs are generated as follows:
KRK[i->i'] = PRE.ReKeyGen(PEZKey#i, SEZKey#i, PEZKey#i', SEZKey#i') [00126] Writing data to the filesystem
[00127] When a consumer writes data to the filesystem, in some embodiments, as shown in figure 8, the LocalKMS generates a random DEK, which the consumer uses as an encryption key to encrypt file's data with a symmetric encryption algorithm (typically AES, with 128/256 bits and CBC/GCM mode of operation). The LocalKMS encrypts the DEK using the PEZKey to produce an EDEK, as follows:
EDEK = PRE.Enc(PEZKey, DEK)
[00128] The resulting EDEK, in some embodiments, is associated to the encrypted file within the filesystem. There is no need for communication with the KMS during this process, as shown in Figure 8.
[00129] Figure 8 shows an example of a process 100 that may be executed by the distributed application 70 or other implementations to form the encrypted records upon which embodiments operate. In some embodiments, this process, the other processes described herein, and the other functionality described herein, may be implemented with tangible, non-transitory, machine- readable media storing instructions that when executed by one or more processors effectuate the operations described herein. It should be emphasized that, notwithstanding use of the singular term "medium," in some cases the instructions may be distributed in memory (a term which is used broadly to include storage or dynamic random-access memory) of different computing devices that execute different subsets of the instructions, an arrangement consistent with use of the singular term "medium." Similarly, the operations of this and the other processes described herein may be executed in a different order from that depicted, instructions may be inserted, instructions may be omitted, subsets of the instructions may be executed concurrently or serially, or different operations may be performed by different entities than those listed in the illustrated columns, none of which is to suggest that any other description herein is limiting.
[00130] In some embodiments, the process 100 includes a consumer computing device receiving a write request, as indicated by block 102. In some embodiments, this may be a request to write the result of a mapping function or a reducing function or request to write data being ingested by the distributed application 70, such as workload data of the application being written to the filesystem layer.
[00131] Some embodiments may then generate a new random data encryption key, as indicated by block 104, for example, by invoking a random number generator of the host computing device, which in some cases may seed a random value with, for example, electromagnetic noise, thermal fluctuations, reading from a Geiger counter, or the like.
[00132] Some embodiments may then encrypt the data encryption key with a public encryption key of a cryptographic key pair stored in the trusted portion of the distributed application to produce an encrypted data encryption key, as indicated by block 106.
[00133] Some embodiments may then encrypt the file data for which the request is received, in some cases included with the request, with the data encryption key, for instance, by repeatedly XOR'ing the message with the data encryption key or otherwise transforming the data in deterministic manner with the data encryption key. Some embodiments may further attach or otherwise associate the encrypted data encryption key with the encrypted file, as indicated by block 108. Some embodiments may then purge the data encryption key from memory and store the encrypted file in association with the encrypted data encryption key, as indicated by block 110, for instance, in the above-described filesystem layer 82.
[00134] Reading data from the filesystem
[00135] When a consumer node reads an encrypted file, in some embodiments, as shown in figure 9, it fetches from the filesystem the EDEK that corresponds to the file, sends this EDEK to its LocalKMS, which in turn asks the TN to transform the EDEK into a TEDEK. The TN, in some embodiments, performs the following operation, assuming it is already in possession of the corresponding TK between the PEZKey and the consumer's PCKey:
TEDEK = PRE.ReEnc(TK, EDEK)
[00136] The LocalKMS, in some embodiments, now can decrypt the TEDEK using his temporary private key (SCKey), obtaining a DEK, as follows:
DEK = PRE.Dec(SCKey, TEDEK)
[00137] After that, in some embodiments, the LocalKMS gives the DEK back to the consumer that requested it. The consumer then uses the DEK to decrypt the file, which was encrypted using symmetric encryption techniques. [00138] Figure 9 shows an example of a process 120 by which data is read in accordance with some embodiments of the present techniques. Some embodiments include a consumer computing node receiving a read request, as indicated by block 122, which may include generating a read request or determining to read data within the computing node. Some embodiments may then retrieve the encrypted file and associated encrypted data encryption key from the filesystem layer, as indicated by block 124. In some embodiments, each encrypted file may be associated with a unique identifier, and that unique identifier may be specified in the read request. Embodiments may parse the unique identifier from the read request and access the corresponding record in the file system later based on the identifier.
[00139] Some embodiments retrieve the encrypted data encryption key from the retrieved encrypted file and key pair and send the encrypted data encryption key to a local key management system, as indicated by block 126. In some embodiments the local key management system may then advance the encrypted data encryption key to the transformation node with a request to transform the encrypted data encryption key, as indicated by block 128. In some embodiments, the transformation node may then use a previously received transformation key to transform the encrypted data encryption key into a transformed encrypted data encryption key, as indicated by block 130, for instance with proxy re-encryption. In some cases, access to a given record may be delegated to multiple entities, and the request may include an entity identifier (e.g., a corresponding public cryptographic key) by which the transformation node selects among a plurality of different transformation keys to identify the one corresponding to the secret cryptographic key held by the requestor in the local key management system In some embodiments, transformation keys may be generated at the beginning of a computing job and sent to the transformation node or responsive to some other event in which it is determined that an entity is to be delegated access to records in a specified encryption zone.
[00140] Some embodiments may then retrieve the data encryption key by decrypting the transformed encrypted data encryption key with a secret cryptographic key of the local key management system, as indicated by block 132. This key, in some cases, may stay resident on the local system. As noted above, the secret cryptographic key may be a secret key of a cryptographic key pair of the entity to which access is delegated, operating in the un-trusted portion of the distributed application, and different from the cryptographic key pair with which the data encryption key is encrypted to produce the encrypted data encryption key.
[00141] Some embodiments may then decrypt the file with the data encryption key, indicated in block 134, accessed in the previous operation. Some embodiments may then return the file responsive to a query or operate on the file to execute user-specified instructions, for instance ,by calling a registered callback function from a framework of the distributed application, like a user-specified mapping function or a user-specified reducing function.
[00142] Key rotation
[00143] An example of key rotation is shown in figure 10. It should be noted that key rotation in some embodiments can be performed directly at the filesystem layer (e.g., using DataNodes). Or key rotation may be performed with a method more compliant with TDE, using computing nodes, as described below.
[00144] After a new version of PEZkey is introduced, in some embodiments, the KMS creates a Key Rotation Key (KRK) which allows to transform data from being encrypted under an old version of PEZkey, to a new version of the PEZkey. KRKs are similar to transformation keys, although they do not enable delegation of access to consumer nodes.
[00145] Next, in some embodiments, the KRK is given to the cluster, which is fully employed for doing key rotation. In order to do so, in some embodiments, each computing node receives a copy of the KRK (which is temporally stored in the LocalKMS), and is used as a consumer, with the assignment of rotation a set of encrypted files. For each file, in some embodiments, the procedure is the same: the consumer retrieves the EDEK associated to the file and sends it to its LocalKMS, which transforms it to EDEK' using the KRK (more specifically, the consumer performs a re-encryption operation over the EDEK ciphertext using the KRK as re-encryption key). The performed operation may be as follows:
EDEK' = PRE.ReEnc(KRK, EDEK)
[00146] The new EDEK' is sent back to the filesystem, where it replaces the previous version. [00147] It is expected that a typical 1000-node cluster can perform key rotation at a speed of 2 petabytes per second. During this process, in some embodiments, no decryption keys are exposed and the data is never decrypted.
[00148] Figure 10 shows an example of a process 136 by which keys may be rotated in accordance with some embodiments. Some embodiments may receive a key rotation request for a file, in some cases specifying the file's unique identifier, as indicated by block 138. Some embodiments may then retrieve the associated encrypted data encryption key of that file, as indicated by block 140, and send the encrypted data encryption key to the local key management system, as indicated by block 142. Some embodiments may then access a key rotation key and use the key rotation key to transform the encrypted data encryption key into a new encrypted data encryption key, as indicated by block 144.
[00149] Some embodiments may then send the new encrypted data encryption key to the filesystem layer for storage, as indicated by block 146, and replace the encrypted data encryption key that was previously stored in association with the file ciphertext with the new encrypted data encryption key, as indicated by block 148. (It should be noted that "sending" and related operations herein can be achieved by cutting and transmitting, copying and transmitting, or transmitting an address or other pointer to the item by which the item may be retrieved.)
[00150] After the transformation, the former data encryption key will no longer work to decrypt the file ciphertext, so a malicious entity in the un-trusted portion who was previously delegated access and surreptitiously retained in memory a data encryption key will no longer have access after key rotation, as that old data encryption key will not work to access the file after the rotation operation of block 144. Further, as noted above, in some cases, key rotation may be achieved at the local key management system, or transformation node, without transferring the ciphertext of the keys (or underlying files) from the un-trusted portion back to the trusted portion and then back into the trusted portion of the distributed application, thereby affording faster key rotation, reduced bandwidth, and a smaller attack surface for more sensitive parts of the system. It should be emphasized, though, that not all embodiments provide all described benefits, as various engineering and cost trade-offs are envisioned, none of which is to suggest that any other description herein is limiting. [00151] In order to improve performance and security, in some embodiments, it is possible to scale the transformation infrastructure horizontally. This is achieved by transparently partitioning a single encrypted zone into multiple subzones, in such a way that the transformation architecture is replicated for each subzone. The cryptographic material, in some embodiments, for each subzone is generated by a key derivation procedure, which potentially can account for contextual information of the data to drive the partitioning, such as data category, location, etc.
[00152] A secondary advantage of this method, in some embodiments, is that it provides automatic interoperability with existing key store servers that support the current format for EZKeys (normally, a symmetric encryption key, such as a AES-128 key), since PEZKeys and SEZKeys for the subzones can be derived from a single EZKey.
[00153] Figure 11 represents how subzone EZKeypairs, in some embodiments, are created from a single EZKey (which can be a traditional TDE key, e.g., AES-128). The figure is arranged horizontally to represent how the stages of key generation, in some embodiments, starting from a single symmetric EZKey (as in regular TDE) that is used by the KMS as source secret material to derive EZKeypairs, one for each encryption subzone. The final choice of key derivation depends on different factors, as well as on the nature of the proxy re-encryption scheme in use; in some embodiments, this process receives a common set of key derivation parameters and is deterministic. Next, in some embodiments, the KMS can use each of the suzones' EZKeypairs as input to the Transformation Key Generation process, together with key material about the consumer (which can be only the PCKey if the PRE scheme is non-interactive, or a CKeypair if the PRE scheme is interactive) in order to produce a TK for each subzone. Each TK is handled to the subzone' s corresponding Transformation Node (TN).
[00154] With the process described before, in some embodiments, subzones are transparent to Hadoop TDE, which can still operate as if there is only an encryption zone, although internally, the system can manage N subzones. Note that if the system is configured for only one subzone (i.e., N = 1), then there are not parallel transformation infrastructures, although transparency with respect Hadoop TDE is achieved. In other words, keystores and traditional TDE modules can manage symmetric EZKeys, while internally, the system operates with proxy re-encryption functions and keys, in some embodiments. [00155] Inputs to the key derivation function, in some embodiments, are the following parameters: (i) the cryptographic material of the symmetric EZKey (or an equivalent secret); (ii) relevant metadata of this key (such as key name and version); (iii) the number of subzones (N), which is an integer between 1 and 65535; (iv) the subzone identifier (ID), which is an integer between 0 and N-l; and (v) an optional salt value. It should be observed that, for a fixed set of parameters and only modifying the subzone identifier ID, it is possible to derive N different EZKeyPairs, one for each subzone, as shown in Figure 5.
EZKeypair#k = KeyDerivation(EZKey, keyMetadata, N, ID [, salt])
[00156] A variety of key derivation procedures may be used, and the procedure can depend on the PRE scheme in use. Some embodiments use a Key Derivation Function (KDF) over the aforementioned parameters to derive an auxiliary secret of enough size (e.g., 256 bits) and use this secret to seed a CSPRNG, which is used in the Key Generation algorithm of the PRE scheme (i.e., the PRE.KeyGen function). In some PRE schemes, public keys are computed with a deterministic function over the secret key, and admit to directly use the auxiliary secret as secret key, removing the need of the CSPRNG during key generation.
[00157] In order to transparently integrate the subzones functionality into the system architecture, some embodiments have a procedure to partition the file space with respect to the existing subzones. The system may include the definition of a partition function that map files to subzones according to some user-defined criteria. For consistency, this function may be deterministic. A simple partition function that can be used, which assumes that a hash value of the file (in integer representation) is known, consists of computing the integer value (PARTITION SEED A int hash) % N, where PARTITION SEED is an arbitrary, but relatively big integer (e.g., -30 bits or more), int hash is the hash of the file in integer representation, N is the total number of subzones, and A and % represent the XOR and mod operators.
[00158] Figure 11 shows an example of a process 150 by which a distributed application configured to use symmetric key cryptography is transparently retrofit to use public key encryption. This process further, in some implementations, may partition encryption zones of the distributed application, in some cases again in a manner that is transparent to the distributed application's legacy code base. Transparency here means that user code generally does not need to be rewritten to use the retrofit system and can be used both on a non-retrofit system and a retrofit system without substantial (or in some cases, any) modification. Further, transparency means that the distributed applications code generally continues to operate with the same logic outside of the retrofit before and after the retrofit without substantial (or in some cases, any) modification.
[00159] In some embodiments, the distributed application may be configured with a symmetric-key keystore that may supply a symmetric encryption key 152, such as a symmetric encryption key corresponding to an encryption zone, in some cases with a one-to-one correspondence in which each encryption zone is associated with a different symmetric cryptographic key and vice versa.
[00160] In some embodiments, key derivation parameters 154 and the symmetric encryption key may be supplied to a key derivation module 156, which in some cases may generate one or more public-private cryptographic key pairs based on the input key derivation parameters 154 and the symmetric cryptographic key 152. In some cases, the symmetric cryptographic key may not be discernible from a public cryptographic key of the generated cryptographic key pairs. In some embodiments, the symmetric cryptographic key, or value based thereon, may pass through a one-way function, such as a cryptographic hash function, and the key derivation may be based on the output of that one-way function. In some embodiments, 1, 2, 3, 10, 100, or more cryptographic key pairs may be generated based on a single symmetric cryptographic key.
[00161] In some embodiments, data encryption keys may be encrypted with one of the resulting public cryptographic keys of one of the cryptographic key pairs 158, for instance in accordance with one of the above-described write operations. In some embodiments, different files may have their data encryption keys encrypted with different resulting public cryptographic keys of different key pairs 158, thereby partitioning the data encryption zone into sub zones that are accessible with different public-private cryptographic key pairs. In some embodiments, some records may be stored with multiple encrypted data encryption keys corresponding to different ones of the key pairs 158. In some embodiments, sets of files protected by different ones of the cryptographic key pairs 158 may be disjoint or overlap and may be a subset of a different one of the sets. [00162] Some embodiments may delegate access to the different partitions by inputting a corresponding one of the deterministically generated key pairs 158 and a public cryptographic key of a delegate 160 into a transformation node 162 that generates a corresponding transformation key, as indicated by block 164. In some embodiments, multiple transformation keys corresponding to different delegate cryptographic key pairs may be generated for a single cryptographic key pair 158, and in some cases, a single delegate public cryptographic key may be used to generate multiple transformation keys from multiple ones of the cryptographic key pairs 158, thereby delegating access to multiple partitions of the encryption zone.
[00163] Resulting transformation keys may be provided to corresponding transformation nodes, as illustrated. Consumer nodes may then access data in the manner described above with corresponding transformation keys via corresponding transformation nodes, in some cases specifying a delegate that seeks access, for instance, with that delegate's public cryptographic key, and specifying a partition of an encryption zone to which access is sought, so that the appropriate transformation node or transformation key may be selected from among a plurality of such keys to effectuate the access request.
[00164] Figure 12 is a diagram that illustrates an exemplary computing system 1000 in accordance with embodiments of the present technique. Various portions of systems and methods described herein, may include or be executed on one or more computer systems similar to computing system 1000. Further, processes and modules described herein may be executed by one or more processing systems similar to that of computing system 1000.
[00165] Computing system 1000 may include one or more processors (e.g., processors 1010a- 1010η) coupled to system memory 1020, an input/output I/O device interface 1030, and a network interface 1040 via an input/output (I/O) interface 1050. A processor may include a single processor or a plurality of processors (e.g., distributed processors). A processor may be any suitable processor capable of executing or otherwise performing instructions. A processor may include a central processing unit (CPU) that carries out program instructions to perform the arithmetical, logical, and input/output operations of computing system 1000. A processor may execute code (e.g., processor firmware, a protocol stack, a database management system, an operating system, or a combination thereof) that creates an execution environment for program instructions. A processor may include a programmable processor. A processor may include general or special purpose microprocessors. A processor may receive instructions and data from a memory (e.g., system memory 1020). Computing system 1000 may be a uni-processor system including one processor (e.g., processor 1010a), or a multi-processor system including any number of suitable processors (e.g., lOlOa-lOlOn). Multiple processors may be employed to provide for parallel or sequential execution of one or more portions of the techniques described herein. Processes, such as logic flows, described herein may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating corresponding output. Processes described herein may be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). Computing system 1000 may include a plurality of computing devices (e.g., distributed computer systems) to implement various processing functions.
[00166] I/O device interface 1030 may provide an interface for connection of one or more I/O devices 1060 to computer system 1000. I/O devices may include devices that receive input (e.g., from a user) or output information (e.g., to a user). I/O devices 1060 may include, for example, graphical user interface presented on displays (e.g., a cathode ray tube (CRT) or liquid crystal display (LCD) monitor), pointing devices (e.g., a computer mouse or trackball), keyboards, keypads, touchpads, scanning devices, voice recognition devices, gesture recognition devices, printers, audio speakers, microphones, cameras, or the like. I/O devices 1060 may be connected to computer system 1000 through a wired or wireless connection. I/O devices 1060 may be connected to computer system 1000 from a remote location. I/O devices 1060 located on remote computer system, for example, may be connected to computer system 1000 via a network and network interface 1040.
[00167] Network interface 1040 may include a network adapter that provides for connection of computer system 1000 to a network. Network interface may 1040 may facilitate data exchange between computer system 1000 and other devices connected to the network. Network interface 1040 may support wired or wireless communication. The network may include an electronic communication network, such as the Internet, a local area network (LAN), a wide area network (WAN), a cellular communications network, or the like.
[00168] System memory 1020 may be configured to store program instructions 1100 or data 1110. Program instructions 1100 may be executable by a processor (e.g., one or more of processors 1010a- 1010η) to implement one or more embodiments of the present techniques. Instructions 1100 may include modules of computer program instructions for implementing one or more techniques described herein with regard to various processing modules. Program instructions may include a computer program (which in certain forms is known as a program, software, software application, script, or code). A computer program may be written in a programming language, including compiled or interpreted languages, or declarative or procedural languages. A computer program may include a unit suitable for use in a computing environment, including as a stand-alone program, a module, a component, or a subroutine. A computer program may or may not correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program may be deployed to be executed on one or more computer processors located locally at one site or distributed across multiple remote sites and interconnected by a communication network.
[00169] System memory 1020 may include a tangible program carrier having program instructions stored thereon. A tangible program carrier may include a non-transitory computer readable storage medium. A non-transitory computer readable storage medium may include a machine readable storage device, a machine readable storage substrate, a memory device, or any combination thereof. Non-transitory computer readable storage medium may include nonvolatile memory (e.g., flash memory, ROM, PROM, EPROM, EEPROM memory), volatile memory (e.g., random access memory (RAM), static random access memory (SRAM), synchronous dynamic RAM (SDRAM)), bulk storage memory (e.g., CD-ROM and/or DVD- ROM, hard-drives), or the like. System memory 1020 may include a non-transitory computer readable storage medium that may have program instructions stored thereon that are executable by a computer processor (e.g., one or more of processors lOlOa-ΙΟΙΟη) to cause the subject matter and the functional operations described herein. A memory (e.g., system memory 1020) may include a single memory device and/or a plurality of memory devices (e.g., distributed memory devices). Instructions or other program code to provide the functionality described herein may be stored on a tangible, non-transitory computer readable media. In some cases, the entire set of instructions may be stored concurrently on the media, or in some cases, different parts of the instructions may be stored on the same media at different times.
[00170] I/O interface 1050 may be configured to coordinate I/O traffic between processors lOlOa-ΙΟΙΟη, system memory 1020, network interface 1040, I/O devices 1060, and/or other peripheral devices. I/O interface 1050 may perform protocol, timing, or other data transformations to convert data signals from one component (e.g., system memory 1020) into a format suitable for use by another component (e.g., processors lOlOa-lOlOn). I/O interface 1050 may include support for devices attached through various types of peripheral buses, such as a variant of the Peripheral Component Interconnect (PCI) bus standard or the Universal Serial Bus (USB) standard.
[00171] Embodiments of the techniques described herein may be implemented using a single instance of computer system 1000 or multiple computer systems 1000 configured to host different portions or instances of embodiments. Multiple computer systems 1000 may provide for parallel or sequential processing/execution of one or more portions of the techniques described herein.
[00172] Those skilled in the art will appreciate that computer system 1000 is merely illustrative and is not intended to limit the scope of the techniques described herein. Computer system 1000 may include any combination of devices or software that may perform or otherwise provide for the performance of the techniques described herein. For example, computer system 1000 may include or be a combination of a cloud-computing system, a data center, a server rack, a server, a virtual server, a desktop computer, a laptop computer, a tablet computer, a server device, a client device, a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a vehicle-mounted computer, or a Global Positioning System (GPS), or the like. Computer system 1000 may also be connected to other devices that are not illustrated, or may operate as a stand-alone system. In addition, the functionality provided by the illustrated components may in some embodiments be combined in fewer components or distributed in additional components. Similarly, in some embodiments, the functionality of some of the illustrated components may not be provided or other additional functionality may be available.
[00173] Those skilled in the art will also appreciate that while various items are illustrated as being stored in memory or on storage while being used, these items or portions of them may be transferred between memory and other storage devices for purposes of memory management and data integrity. Alternatively, in other embodiments some or all of the software components may execute in memory on another device and communicate with the illustrated computer system via inter-computer communication. Some or all of the system components or data structures may also be stored (e.g., as instructions or structured data) on a computer-accessible medium or a portable article to be read by an appropriate drive, various examples of which are described above. In some embodiments, instructions stored on a computer-accessible medium separate from computer system 1000 may be transmitted to computer system 1000 via transmission media or signals such as electrical, electromagnetic, or digital signals, conveyed via a communication medium such as a network or a wireless link. Various embodiments may further include receiving, sending, or storing instructions or data implemented in accordance with the foregoing description upon a computer-accessible medium. Accordingly, the present techniques may be practiced with other computer system configurations.
[00174] In block diagrams, illustrated components are depicted as discrete functional blocks, but embodiments are not limited to systems in which the functionality described herein is organized as illustrated. The functionality provided by each of the components may be provided by software or hardware modules that are differently organized than is presently depicted, for example such software or hardware may be intermingled, conjoined, replicated, broken up, distributed (e.g. within a data center or geographically), or otherwise differently organized. The functionality described herein may be provided by one or more processors of one or more computers executing code stored on a tangible, non-transitory, machine readable medium. In some cases, notwithstanding use of the singular term "medium," the instructions may be distributed on different storage devices associated with different computing devices, for instance, with each computing device having a different subset of the instructions, an implementation consistent with usage of the singular term "medium" herein. In some cases, third party content delivery networks may host some or all of the information conveyed over networks, in which case, to the extent information (e.g., content) is said to be supplied or otherwise provided, the information may provided by sending instructions to retrieve that information from a content delivery network.
[00175] The reader should appreciate that the present application describes several independently useful techniques. Rather than separating those techniques into multiple isolated patent applications, applicants have grouped these techniques into a single document because their related subject matter lends itself to economies in the application process. But the distinct advantages and aspects of such techniques should not be conflated. In some cases, embodiments address all of the deficiencies noted herein, but it should be understood that the techniques are independently useful, and some embodiments address only a subset of such problems or offer other, unmentioned benefits that will be apparent to those of skill in the art reviewing the present disclosure. Due to costs constraints, some techniques disclosed herein may not be presently claimed and may be claimed in later filings, such as continuation applications or by amending the present claims. Similarly, due to space constraints, neither the Abstract nor the Summary of the Invention sections of the present document should be taken as containing a comprehensive listing of all such techniques or all aspects of such techniques.
[00176] It should be understood that the description and the drawings are not intended to limit the present techniques to the particular form disclosed, but to the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the present techniques as defined by the appended claims. Further modifications and alternative embodiments of various aspects of the techniques will be apparent to those skilled in the art in view of this description. Accordingly, this description and the drawings are to be construed as illustrative only and are for the purpose of teaching those skilled in the art the general manner of carrying out the present techniques. It is to be understood that the forms of the present techniques shown and described herein are to be taken as examples of embodiments. Elements and materials may be substituted for those illustrated and described herein, parts and processes may be reversed or omitted, and certain features of the present techniques may be utilized independently, all as would be apparent to one skilled in the art after having the benefit of this description of the present techniques. Changes may be made in the elements described herein without departing from the spirit and scope of the present techniques as described in the following claims. Headings used herein are for organizational purposes only and are not meant to be used to limit the scope of the description.
[00177] As used throughout this application, the word "may" is used in a permissive sense (i.e., meaning having the potential to), rather than the mandatory sense (i.e., meaning must). The words "include", "including", and "includes" and the like mean including, but not limited to. As used throughout this application, the singular forms "a," "an," and "the" include plural referents unless the content explicitly indicates otherwise. Thus, for example, reference to "an element" or "a element" includes a combination of two or more elements, notwithstanding use of other terms and phrases for one or more elements, such as "one or more." The term "or" is, unless indicated otherwise, non-exclusive, i.e., encompassing both "and" and "or." Terms describing conditional relationships, e.g., "in response to X, Y," "upon X, Y,", "if X, Y," "when X, Y," and the like, encompass causal relationships in which the antecedent is a necessary causal condition, the antecedent is a sufficient causal condition, or the antecedent is a contributory causal condition of the consequent, e.g., "state X occurs upon condition Y obtaining" is generic to "X occurs solely upon Y" and "X occurs upon Y and Z." Such conditional relationships are not limited to consequences that instantly follow the antecedent obtaining, as some consequences may be delayed, and in conditional statements, antecedents are connected to their consequents, e.g., the antecedent is relevant to the likelihood of the consequent occurring. Statements in which a plurality of attributes or functions are mapped to a plurality of objects (e.g., one or more processors performing steps A, B, C, and D) encompasses both all such attributes or functions being mapped to all such objects and subsets of the attributes or functions being mapped to subsets of the attributes or functions (e.g., both all processors each performing steps A-D, and a case in which processor 1 performs step A, processor 2 performs step B and part of step C, and processor 3 performs part of step C and step D), unless otherwise indicated. Further, unless otherwise indicated, statements that one value or action is "based on" another condition or value encompass both instances in which the condition or value is the sole factor and instances in which the condition or value is one factor among a plurality of factors. Unless otherwise indicated, statements that "each" instance of some collection have some property should not be read to exclude cases where some otherwise identical or similar members of a larger collection do not have the property, i.e., each does not necessarily mean each and every. Limitations as to sequence of recited steps should not be read into the claims unless explicitly specified, e.g., with explicit language like "after performing X, performing Y," in contrast to statements that might be improperly argued to imply sequence limitations, like "performing X on items, performing Y on the X'ed items," used for purposes of making claims more readable rather than specifying sequence. Statements referring to "at least Z of A, B, and C," and the like (e.g., "at least Z of A, B, or C"), refer to at least Z of the listed categories (A, B, and C) and do not require at least Z units in each category. Unless specifically stated otherwise, as apparent from the discussion, it is appreciated that throughout this specification discussions utilizing terms such as "processing," "computing," "calculating," "determining" or the like refer to actions or processes of a specific apparatus, such as a special purpose computer or a similar special purpose electronic processing/computing device. Features described with reference to geometric constructs, like "parallel," "perpindicular/orthogonal," "square", "cylindrical," and the like, should be construed as encompassing items that substantially embody the properties of the geometric construct, e.g., reference to "parallel" surfaces encompasses substantially parallel surfaces. The permitted range of deviation from Platonic ideals of these geometric constructs is to be determined with reference to ranges in the specification, and where such ranges are not stated, with reference to industry norms in the field of use, and where such ranges are not defined, with reference to industry norms in the field of manufacturing of the designated feature, and where such ranges are not defined, features substantially embodying a geometric construct should be construed to include those features within 15% of the defining attributes of that geometric construct.
[00178] In this patent, certain U.S. patents, U.S. patent applications, or other materials (e.g., articles) have been incorporated by reference. The text of such U.S. patents, U.S. patent applications, and other materials is, however, only incorporated by reference to the extent that no conflict exists between such material and the statements and drawings set forth herein. In the event of such conflict, the text of the present document governs, and terms in this document should not be given a narrower reading in virtue of the way in which those terms are used in other materials incorporated by reference. [00179] The present techniques will be better understood with reference to the following enumerated embodiments:
1. A tangible, non-transitory, machine-readable medium storing instructions that when executed by one or more processors effectuate operations comprising: obtaining, with one or more processors, a plurality of records associated with an encryption zone in a distributed application executing on a plurality of computing nodes; encrypting, with one or more processors, each of the plurality of records with a respective data encryption key among a plurality of data encryption keys to form a plurality of encrypted records; encrypting, with one or more processors, each of the plurality of data encryption keys with a first public cryptographic key to form encrypted data encryption keys, wherein: the first public cryptographic key is a member of a first public-private cryptographic key pair including the first public cryptographic key and a corresponding first private cryptographic key, the first public cryptographic key corresponds to the encryption zone, the distributed application comprises a trusted portion and an untrusted portion, the first private cryptographic key is unavailable to the untrusted portion of the distributed application, and the first private cryptographic key is available to at least part of the trusted portion of the distributed application; obtaining, with one or more processors, a second public cryptographic key in the trusted portion of the distributed application, wherein: the second public cryptographic key is a member of a second public-private cryptographic key pair including the second public cryptographic key and a corresponding second private cryptographic key, and the second public-private cryptographic key pair is different from the first public- private cryptographic key pair; generating, with one or more processors, a transformation key based on the first public-private cryptographic key pair and the second public cryptographic key, wherein the transformation key is generated in the trusted portion of the distributed application; transforming, with one or more processors, the encrypted data encryption keys with proxy re- encryption based on the transformation key to form transformed encrypted data encryption keys, wherein: the transformed encrypted data encryption keys are decryptable with the second private cryptographic key, and the encrypted data encryption keys are not decryptable with the second private cryptographic key; obtaining, with one or more processors, the second private
cryptographic key and the transformed encrypted data encryption keys in the untrusted portion of the distributed application; decrypting, with one or more processors, in the untrusted portion of the distributed application, a first transformed encrypted data encryption key among the transformed encrypted data encryption keys to obtain a first data encryption key among the plurality of data encryption keys; and decrypting, with one or more processors, in the untrusted portion of the distributed application, a first encrypted record among the plurality of encrypted records with the first data encryption key.
2. The medium of embodiment 1, wherein: the proxy re-encryption is interactive proxy re- encryption, in which the transformation key is generated based on both the second public cryptographic key and the second private cryptographic key.
3. The medium of embodiment 1, wherein: the proxy re-encryption is non-interactive proxy re- encryption, in which the transformation key is generated without using the second private cryptographic key.
4. The medium of embodiment 3, wherein: the second public-private cryptographic key pair is generated outside of the trusted portion of the distributed application; and the trusted portion of the distributed application does not have access to the second private cryptographic key.
5. The medium of any one of embodiments 1-4, wherein: transforming the encrypted data encryption keys is performed in the untrusted portion of the distributed application after the transformation key is provided by the trusted portion of the distributed application to the untrusted portion of the distributed application.
6. The medium of any one of embodiments 1-4, wherein: transforming the encrypted data encryption keys is performed in the trusted portion of the distributed application; and the first encrypted record is decrypted without the transformation key being accessed by the untrusted portion of the distributed application.
7. The medium of any one of embodiments 1-6, wherein: encrypting the plurality of records is done with a first plurality of computing nodes executing at least part of the distributed application; and the first plurality of computing nodes are not in the trusted portion of the distributed application.
8. The medium of any one of embodiments 1-7, further comprising: decrypting, in the untrusted portion of the distributed application, the transformed encrypted data encryption keys to obtain the plurality of data encryption keys; and decrypting the plurality of encrypted records based on the decrypted data encryption keys with a plurality of computing nodes executing at least part of the distributed application to obtain the plurality of records, wherein at least some different computing nodes concurrently decrypt at least some different encrypted records. 9. The medium of any one of embodiments 1-8, wherein: the plurality of records comprises more than a million records; each of the plurality of records has a different data encryption key; and the distributed application executes on more than 10 computing devices on more than 100 computing nodes, each being a network host in a network on which at least part of the distributed application executes.
10. The medium of any one of embodiments 1-9, wherein: the distributed application
implements a distributed file system in which the plurality of encrypted records are stored on a plurality of computing nodes; the records are files; each file is segmented into blocks; and the blocks are replicated on different ones of the computing nodes.
11. The medium of embodiment 10, wherein: each encrypted data encryption key is stored in a block of a respective file that is encrypted with a respective data encryption key of the respective encrypted data encryption key.
12. The medium of any one of embodiments 1-1 1, wherein: the distributed application is a distributed data storage and analysis application configured to concurrently apply a mapping function to the decrypted records on a plurality of computing nodes and then concurrently apply a reducing function to results of the mapping function on a plurality of computing nodes; and the distributed application stores records in encrypted form in a plurality of encryption zones, each having data encryption keys encrypted with different public-private cryptographic key pairs.
13. The medium of any one of embodiments 1-12, the operations comprising delegating access to a subset of the encryption zone to another entity different from an entity with access to the second private cryptographic key by: obtaining a third public cryptographic key in the trusted portion of the distributed application, wherein: the third public cryptographic key is a member of a third public-private cryptographic key pair including the third public cryptographic key and a corresponding third private cryptographic key, and the third public-private cryptographic key pair is different from the first public-private cryptographic key pair and the second public-private cryptographic key pair; generating another transformation key based on the first public-private cryptographic key pair and the third public cryptographic key, wherein the another
transformation key is generated in the trusted portion of the distributed application; and transforming a subset of the encrypted data encryption keys with proxy re-encryption based on the transformation key to form another set of transformed encrypted data encryption keys, wherein: a first entity with access to the second private cryptographic key has access to all of the records in the encryption zone, and a second entity, different from the first entity, with access to the third private cryptographic key has access to a subset of the records in the encryption zone corresponding to the subset of the encrypted data encryption keys.
14. The medium of any one of embodiments 1-13, the operations comprising: partitioning the encrypted zone into a plurality of encrypted sub-zones each corresponding to different public- private cryptographic key pairs by generating transformation keys based on respective public cryptographic keys of the different public-private cryptographic key pairs.
15. The medium of any one of embodiments 1-14, wherein the operations comprise:
instantiating a transformation node configured to form transformed encrypted data encryption keys with proxy re-encryption based on the transformation key; and instantiating local key management systems on computing nodes executing the untrusted portion of the distributed application, instances of the local key management system being configured to decrypted transformed encrypted data encryption keys locally, without sending the transformed encrypted data encryption keys to a centralized key management system of the distributed application before decrypting.
16. The medium of any one of embodiments 1-15, wherein: the distributed application includes a framework configured to call user-supplied code that specifies operations to be executed by the framework on data in the plurality of records; the framework comprises a key-management system; the framework is configured to protect the plurality records at rest with symmetric encryption based on one or more symmetric cryptographic keys stored in the key -management system; and the operations comprise transparently retrofitting the framework to protect the plurality of records with public-key encryption such that the same user-supplied code works in a retrofit version of the distributed application and in a pre-retrofitting version of the distributed application.
17. The medium of any one of embodiments 1-16, wherein obtaining the second public cryptographic key in the trusted portion of the distributed application comprises: obtaining a symmetric cryptographic key corresponding to the encryption zone from a key-management system of the distributed application; and deterministically generating the second public cryptographic key based on output of a one-way function that takes as input a value based on the symmetric key. 18. The medium of embodiment 17 wherein: deterministically generating the second public cryptographic key based on the output of a one-way function comprises deterministically generating a plurality of public-private cryptographic key pairs based on the symmetric cryptographic key; and the operation comprise: generating transformation keys for each of the plurality of the deterministically generated public-private cryptographic key pairs; and forming a plurality of encryption sub-zones of the encryption zone by transforming different subsets of the encrypted data encryption keys based on respective public cryptographic keys of the plurality of the deterministically generated public-private cryptographic key pairs.
19. The medium of embodiment 18, wherein respective public-private cryptographic key pairs among the deterministically generated plurality of public-private cryptographic key pairs are based on attributes of records in corresponding encryption sub-zones.
20. A method comprising: the operations of any one of embodiments 1-19.
21. A system, comprising: one or more processors; and memory storing instructions that when executed by the processors cause the processors to effectuate operations comprising: the operations of any one of embodiments 1-19.

Claims

CLAIMS What is claimed is:
1. One or more tangible, non-transitory, machine-readable medium storing instructions that when executed by one or more processors effectuate operations comprising:
obtaining, with one or more processors, data in a distributed computing application; transforming, with one or more processors, encrypted information in the data with proxy re-encryption to delegate access to the encrypted information; and
providing, with one or more processors, the transformed encrypted information to a delegee.
2. The one or more media of claim 1, the operations comprising:
obtaining, with one or more processors, a plurality of records associated with an encryption zone in a distributed application executing on a plurality of computing nodes;
encrypting, with one or more processors, each of the plurality of records with a respective data encryption key among a plurality of data encryption keys to form a plurality of encrypted records;
encrypting, with one or more processors, each of the plurality of data encryption keys with a first public cryptographic key to form encrypted data encryption keys, wherein:
the first public cryptographic key is a member of a first public-private
cryptographic key pair including the first public cryptographic key and a corresponding first private cryptographic key,
the first public cryptographic key corresponds to the encryption zone,
the distributed application comprises a trusted portion and an untrusted portion, the first private cryptographic key is unavailable to the untrusted portion of the distributed application, and
the first private cryptographic key is available to at least part of the trusted portion of the distributed application;
obtaining, with one or more processors, a second public cryptographic key in the trusted portion of the distributed application, wherein:
the second public cryptographic key is a member of a second public-private cryptographic key pair including the second public cryptographic key and a corresponding second private cryptographic key, and
the second public-private cryptographic key pair is different from the first public- private cryptographic key pair;
generating, with one or more processors, a transformation key based on the first public- private cryptographic key pair and the second public cryptographic key, wherein the
transformation key is generated in the trusted portion of the distributed application;
transforming, with one or more processors, the encrypted data encryption keys with proxy re-encryption based on the transformation key to form transformed encrypted data encryption keys, wherein:
the transformed encrypted data encryption keys are decryptable with the second private cryptographic key, and
the encrypted data encryption keys are not decryptable with the second private cryptographic key;
obtaining, with one or more processors, the second private cryptographic key and the transformed encrypted data encryption keys in the untrusted portion of the distributed application;
decrypting, with one or more processors, in the untrusted portion of the distributed application, a first transformed encrypted data encryption key among the transformed encrypted data encryption keys to obtain a first data encryption key among the plurality of data encryption keys; and
decrypting, with one or more processors, in the untrusted portion of the distributed application, a first encrypted record among the plurality of encrypted records with the first data encryption key.
3. The one or more media of claim 2, wherein:
the proxy re-encryption is interactive proxy re-encryption, in which the transformation key is generated based on both the second public cryptographic key and the second private cryptographic key.
4. The one or more media of claim 2, wherein:
the proxy re-encryption is non-interactive proxy re-encryption, in which the
transformation key is generated without using the second private cryptographic key.
5. The one or more media of claim 4, wherein:
the second public-private cryptographic key pair is generated outside of the trusted portion of the distributed application; and
the trusted portion of the distributed application does not have access to the second private cryptographic key.
6. The one or more media of any one of claims 2-5, wherein:
transforming the encrypted data encryption keys is performed in the untrusted portion of the distributed application after the transformation key is provided by the trusted portion of the distributed application to the untrusted portion of the distributed application.
7. The one or more media of any one of claims 2-5, wherein:
transforming the encrypted data encryption keys is performed in the trusted portion of the distributed application; and
the first encrypted record is decrypted without the transformation key being accessed by the untrusted portion of the distributed application.
8. The one or more media of any one of claims 2-5, wherein:
encrypting the plurality of records is done with a first plurality of computing nodes executing at least part of the distributed application; and
the first plurality of computing nodes are not in the trusted portion of the distributed application.
9. The one or more media of any one of claims 2-5, further comprising:
decrypting, in the untrusted portion of the distributed application, the transformed encrypted data encryption keys to obtain the plurality of data encryption keys; and
decrypting the plurality of encrypted records based on the decrypted data encryption keys with a plurality of computing nodes executing at least part of the distributed application to obtain the plurality of records, wherein at least some different computing nodes concurrently decrypt at least some different encrypted records.
10. The one or more media of any one of claims 2-9, wherein:
the plurality of records comprises more than a million records;
each of the plurality of records has a different data encryption key; and
the distributed application executes on more than 10 computing devices on more than 100 computing nodes, each being a network host in a network on which at least part of the distributed application executes.
11. The one or more media of any one of claims 2-10, the operations comprising delegating access to a subset of the encryption zone to another entity different from an entity with access to the second private cryptographic key by:
obtaining a third public cryptographic key in the trusted portion of the distributed application, wherein:
the third public cryptographic key is a member of a third public-private cryptographic key pair including the third public cryptographic key and a corresponding third private cryptographic key, and the third public-private cryptographic key pair is different from the first public- private cryptographic key pair and the second public-private cryptographic key pair;
generating another transformation key based on the first public-private cryptographic key pair and the third public cryptographic key, wherein the another transformation key is generated in the trusted portion of the distributed application; and
transforming a subset of the encrypted data encryption keys with proxy re-encryption based on the transformation key to form another set of transformed encrypted data encryption keys, wherein:
a first entity with access to the second private cryptographic key has access to all of the records in the encryption zone, and
a second entity, different from the first entity, with access to the third private cryptographic key has access to a subset of the records in the encryption zone corresponding to the subset of the encrypted data encryption keys.
12. The one or more media of claim 2, the operations comprising:
partitioning the encrypted zone into a plurality of encrypted sub-zones each
corresponding to different public-private cryptographic key pairs by generating transformation keys based on respective public cryptographic keys of the different public-private cryptographic key pairs.
13. The one or more media of claim 2, wherein:
the operations comprise:
instantiating a transformation node configured to form transformed encrypted data encryption keys with proxy re-encryption based on the transformation key; and
instantiating local key management systems on computing nodes executing the untrusted portion of the distributed application, instances of the local key management system being configured to decrypted transformed encrypted data encryption keys locally, without sending the transformed encrypted data encryption keys to a centralized key management system of the distributed application before decrypting;
the distributed application includes a framework configured to call user-supplied code that specifies operations to be executed by the framework on data in the plurality of records; the framework comprises a key-management system;
the framework is configured to protect the plurality records at rest with symmetric encryption based on one or more symmetric cryptographic keys stored in the key -management system;
the operations comprise transparently retrofitting the framework to protect the plurality of records with public-key encryption such that the same user-supplied code works in a retrofit version of the distributed application and in a pre-retrofitting version of the distributed application;
the distributed application is a distributed data storage and analysis application configured to concurrently apply a mapping function to the decrypted records on a plurality of computing nodes and then concurrently apply a reducing function to results of the mapping function on a plurality of computing nodes;
the distributed application stores records in encrypted form in a plurality of encryption zones, each having data encryption keys encrypted with different public-private cryptographic key pairs;
the distributed application implements a distributed file system in which the plurality of encrypted records are stored on a plurality of computing nodes;
the records are files;
each file is segmented into blocks; and
the blocks are replicated on different ones of the computing nodes.
14. The one or more media of claim 2 wherein:
obtaining the second public cryptographic key in the trusted portion of the distributed application comprises:
obtaining a symmetric cryptographic key corresponding to the encryption zone from a key-management system of the distributed application; and
deterministically generating the second public cryptographic key based on output of a one-way function that takes as input a value based on the symmetric key;
deterministically generating the second public cryptographic key based on the output of a one-way function comprises deterministically generating a plurality of public-private cryptographic key pairs based on the symmetric cryptographic key;
the operation comprise:
generating transformation keys for each of the plurality of the deterministically generated public-private cryptographic key pairs; and
forming a plurality of encryption sub-zones of the encryption zone by transforming different subsets of the encrypted data encryption keys based on respective public cryptographic keys of the plurality of the deterministically generated public-private
cryptographic key pairs; and
respective public-private cryptographic key pairs among the deterministically generated plurality of public-private cryptographic key pairs are based on attributes of records in corresponding encryption sub-zones.
15. A method, comprising:
obtaining, with one or more processors, a plurality of records associated with an encryption zone in a distributed application executing on a plurality of computing nodes;
encrypting, with one or more processors, each of the plurality of records with a respective data encryption key among a plurality of data encryption keys to form a plurality of encrypted records;
encrypting, with one or more processors, each of the plurality of data encryption keys with a first public cryptographic key to form encrypted data encryption keys, wherein:
the first public cryptographic key is a member of a first public-private
cryptographic key pair including the first public cryptographic key and a corresponding first private cryptographic key,
the first public cryptographic key corresponds to the encryption zone,
the distributed application comprises a trusted portion and an untrusted portion, the first private cryptographic key is unavailable to the untrusted portion of the distributed application, and
the first private cryptographic key is available to at least part of the trusted portion of the distributed application; obtaining, with one or more processors, a second public cryptographic key in the trusted portion of the distributed application, wherein:
the second public cryptographic key is a member of a second public-private cryptographic key pair including the second public cryptographic key and a corresponding second private cryptographic key, and
the second public-private cryptographic key pair is different from the first public- private cryptographic key pair;
generating, with one or more processors, a transformation key based on the first public- private cryptographic key pair and the second public cryptographic key, wherein the
transformation key is generated in the trusted portion of the distributed application;
transforming, with one or more processors, the encrypted data encryption keys with proxy re-encryption based on the transformation key to form transformed encrypted data encryption keys, wherein:
the transformed encrypted data encryption keys are decryptable with the second private cryptographic key, and
the encrypted data encryption keys are not decryptable with the second private cryptographic key;
obtaining, with one or more processors, the second private cryptographic key and the transformed encrypted data encryption keys in the untrusted portion of the distributed application;
decrypting, with one or more processors, in the untrusted portion of the distributed application, a first transformed encrypted data encryption key among the transformed encrypted data encryption keys to obtain a first data encryption key among the plurality of data encryption keys; and
decrypting, with one or more processors, in the untrusted portion of the distributed application, a first encrypted record among the plurality of encrypted records with the first data encryption key.
PCT/US2018/031614 2017-05-08 2018-05-08 Method and system for secure delegated access to encrypted data in big data computing clusters WO2018208786A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201762503005P 2017-05-08 2017-05-08
US62/503,005 2017-05-08

Publications (1)

Publication Number Publication Date
WO2018208786A1 true WO2018208786A1 (en) 2018-11-15

Family

ID=64104998

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2018/031614 WO2018208786A1 (en) 2017-05-08 2018-05-08 Method and system for secure delegated access to encrypted data in big data computing clusters

Country Status (1)

Country Link
WO (1) WO2018208786A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660555A (en) * 2019-01-09 2019-04-19 上海交通大学 Content safety sharing method and system based on proxy re-encryption
CN110336665A (en) * 2019-07-11 2019-10-15 成都卫士通信息产业股份有限公司 A kind of big data message encryption method, device
CN112839013A (en) * 2019-11-22 2021-05-25 航天信息股份有限公司 Key transmission method, device and computer readable storage medium
CN114518850A (en) * 2022-02-23 2022-05-20 云链网科技(广东)有限公司 Safe re-deletion storage system with re-deletion before encryption based on trusted execution protection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110131222A1 (en) * 2009-05-18 2011-06-02 Telcordia Technologies, Inc. Privacy architecture for distributed data mining based on zero-knowledge collections of databases
US20140237234A1 (en) * 2009-04-01 2014-08-21 Salesforce.Com, Inc. Enhanced system security
WO2015055762A1 (en) * 2013-10-18 2015-04-23 Robert Bosch Gmbh System and method for dynamic, non-interactive, and parallelizable searchable symmetric encryption
US9419951B1 (en) * 2001-03-23 2016-08-16 St. Luke Technologies, Llc System and method for secure three-party communications
US20170054716A1 (en) * 2015-05-07 2017-02-23 ZeroDB, Inc. Zero-knowledge databases

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9419951B1 (en) * 2001-03-23 2016-08-16 St. Luke Technologies, Llc System and method for secure three-party communications
US20140237234A1 (en) * 2009-04-01 2014-08-21 Salesforce.Com, Inc. Enhanced system security
US20110131222A1 (en) * 2009-05-18 2011-06-02 Telcordia Technologies, Inc. Privacy architecture for distributed data mining based on zero-knowledge collections of databases
WO2015055762A1 (en) * 2013-10-18 2015-04-23 Robert Bosch Gmbh System and method for dynamic, non-interactive, and parallelizable searchable symmetric encryption
US20170054716A1 (en) * 2015-05-07 2017-02-23 ZeroDB, Inc. Zero-knowledge databases

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660555A (en) * 2019-01-09 2019-04-19 上海交通大学 Content safety sharing method and system based on proxy re-encryption
CN109660555B (en) * 2019-01-09 2020-07-14 上海交通大学 Content secure sharing method and system based on proxy re-encryption
CN110336665A (en) * 2019-07-11 2019-10-15 成都卫士通信息产业股份有限公司 A kind of big data message encryption method, device
CN110336665B (en) * 2019-07-11 2022-06-14 成都卫士通信息产业股份有限公司 Big data message encryption method and device
CN112839013A (en) * 2019-11-22 2021-05-25 航天信息股份有限公司 Key transmission method, device and computer readable storage medium
CN112839013B (en) * 2019-11-22 2022-10-11 航天信息股份有限公司 Key transmission method, device and computer readable storage medium
CN114518850A (en) * 2022-02-23 2022-05-20 云链网科技(广东)有限公司 Safe re-deletion storage system with re-deletion before encryption based on trusted execution protection
CN114518850B (en) * 2022-02-23 2024-03-12 云链网科技(广东)有限公司 Safe re-deleting storage system based on trusted execution protection and comprising re-deleting and encryption

Similar Documents

Publication Publication Date Title
US10581603B2 (en) Method and system for secure delegated access to encrypted data in big data computing clusters
US10691817B2 (en) Encryption for distributed storage and processing
US11108753B2 (en) Securing files using per-file key encryption
US10574440B2 (en) High-performance access management and data protection for distributed messaging applications
US9088538B2 (en) Secure network storage
US7792300B1 (en) Method and apparatus for re-encrypting data in a transaction-based secure storage system
US9866375B2 (en) Multi-level key management
US9122888B2 (en) System and method to create resilient site master-key for automated access
US9894040B2 (en) Trust services for securing data in the cloud
US20140115327A1 (en) Trust services data encryption for multiple parties
US9363247B2 (en) Method of securing files under the semi-trusted user threat model using symmetric keys and per-block key encryption
Shetty et al. Data security in Hadoop distributed file system
WO2018208786A1 (en) Method and system for secure delegated access to encrypted data in big data computing clusters
US9659190B1 (en) Storage system configured for encryption of data items using multidimensional keys having corresponding class keys
US10284534B1 (en) Storage system with controller key wrapping of data encryption key in metadata of stored data item
WO2018208787A1 (en) High-performance access management and data protection for distributed messaging applications
WO2013008353A1 (en) Data distributed storage system
Huang et al. YI Cloud: Improving user privacy with secret key recovery in cloud storage
Giblin et al. Securing Kafka with encryption-at-rest
Sánchez‐Artigas et al. StackSync: Attribute‐based data sharing in file synchronization services
Bagyalakshmi et al. A survey on attribute-based encryption techniques in data security using cloud environment
Cui et al. Lightweight management of authorization update on cloud data
Vanitha et al. Secured data destruction in cloud based multi-tenant database architecture
Nandhini et al. A review of hilevel authorized deduplication method for cloud storage system
Zhang et al. Blockchain-Driven Revocable Ciphertext-Policy Attribute-Based Encryption for Public Cloud Data Sharing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18799389

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18799389

Country of ref document: EP

Kind code of ref document: A1