US 7983423 B1
A system and method for pre-generating encryption keys for re-keying stored ciphertext. The encryption keys are illustratively distributed to LKMs and therefrom to the security appliances communicating with each other. A minimum number of un-used pre-generated encryption keys is established wherein when that number is reached more pre-generated encryption keys are created and distributed.
1. A method for re-keying ciphertext stored on a storage system, comprising:
pre-generating a plurality of encryption keys by a first security appliance to be used to re-key data containers before a re-keying command requiring use of the plurality of encryption keys is received at the first security appliance;
distributing the plurality of pre-generated encryption keys to a plurality of lifetime key management devices (LKMs) that are in communication with the first security appliance, wherein the plurality of LKMs distribute the plurality of pre-generated encryption keys to other security appliances;
receiving a re-key command for the ciphertext at the first security appliance coupled to the storage system, and in response thereto,
reading the stored ciphertext from the storage system;
decrypting the stored ciphertext using old keys to produce clear text;
utilizing one of the plurality of pre-generated encryption keys and encrypting the clear text to produce re-encrypted ciphertext;
writing the re-encrypted ciphertext to the storage system; and
communicating the utilization of the pre-generated encryption key to the LKMs in communication with the first security appliance, and to the other security appliances by the plurality of LKMs.
2. The method of
receiving and storing the distributed pre-generated encryption keys by the other security appliances in communication with the LKMs that are in communications with the first security appliance.
3. The method of
generating a number that represents a minimum count of unused pre-generated encryption keys of the plurality of pre-generated encryption keys; and
distributing the number to the other security appliances via the LKMs in communication with the first security appliance, wherein when the minimum count is reached, creating additional pre-generated encryption keys and distributing the additional pre-generated encryption keys to the other security appliances.
4. The method of
5. The method of
following a policy for re-keying, wherein re-keying is performed in accordance with the policy.
6. The method of
7. A system configured to re-key ciphertext stored on a storage system, comprising:
a first security appliance that pre-generates a plurality of encryption keys to be used to re-key data containers before a re-keying command requiring use of the plurality of encryption keys is received at the first security appliance;
a plurality of lifetime key management devices (LKMs) in communication with the first security appliance, to which the plurality of pre-generated encryption keys are distributed;
other security appliances in communications with the plurality of LKMs, to which the plurality of pre-generated encryption keys are distributed;
the first security appliance coupled to the storage system that receives the re-keying command for the ciphertext stored on the storage system;
a process executed on the first security appliance and configured to enable:
reading of the stored ciphertext from the storage system;
decrypting of the stored ciphertext using old keys to produce clear text;
utilizing one of the plurality of pre-generated encryption keys and encrypting the clear text to produce re-encrypted ciphertext;
writing the re-encrypted ciphertext to the storage system; and
communicating the utilization of the pre-generated encryption key to the plurality of LKMs in communication with the first security appliance, and to the other security appliances.
8. The system of
storage in the other security appliances that receive the distributed pre-generated encryption keys from the LKMs.
9. The system of
10. The system of
11. The system of
12. The system of
13. A system configured to re-key ciphertext stored on a storage system, comprising:
a processor of a first security appliance configured to pre-generate a plurality of encryption keys to re-key data containers before a re-keying command requiring use of the plurality of encryption keys is received at the first security appliance;
a distributor configured to distribute the plurality of pre-generated encryption keys to a plurality of lifetime key management devices (LKMs) and to other security appliances in communication with the LKMs;
the first security appliance configured to receive a re-key command for the ciphertext at the first security appliance, the first security appliance coupled to the storage system;
a storage device of the storage system configured to store the ciphertext;
a decryptor of the stored ciphertext configured to use old keys to produce clear text; and
an encryptor that utilizes one of the plurality of pre-generated encryption keys and encrypts the clear text to produce re-encrypted ciphertext, wherein the re-encrypted ciphertext is stored at the storage system, and wherein the first security appliance is further configured to communicate the utilization of the pre-generated encryption key to the LKMs in communication with the first security appliance and to the other security appliances.
14. The system of
15. The system of
16. The system of
17. The system of
18. The system of
19. A non-transitory computer-readable storage medium containing executable program instructions for execution by a processor, the non-transitory computer-readable storage medium comprising:
program instructions that pre-generate a plurality of encryption keys to be used to re-key data containers before a re-keying command requiring use of the plurality of encryption keys is received at a security appliance;
program instructions that receive a re-keying command for the ciphertext at the first security appliance coupled to a storage system;
program instructions that read ciphertext stored at the storage system;
program instructions that decrypt the stored ciphertext using old keys to produce clear text;
program instructions that encrypt the clear text to produce re-encrypted ciphertext; and
program instructions that write the re-encrypted ciphertext to the storage system.
20. The non-transitory computer-readable storage medium of
program instructions that store one or more re-keying policies, wherein the one or more policies determine when a re-keying command is issued.
The present invention relates to secure storage in a storage system, and more specifically, to generation and control of encryption keys used by secure systems
A storage system is a computer that provides storage service relating to the organization of information on writable persistent storage devices, such as memories, tapes or disks. The storage system is commonly deployed within a storage area network (SAN) or a network attached storage (NAS) environment. When used within a NAS environment, the storage system may be embodied as a file server including an operating system that implements a file system to logically organize the information as a hierarchical structure of data containers, such as files on, e.g., the disks. Each “on-disk” file may be implemented as a set of data structures, e.g., disk blocks, configured to store information, such as the actual data (i.e., file data) for the file.
Herein the term “client” and “host” are used interchangeably.
Where the information is organized as files, the client requesting the information, typically, maintains file mappings and manages file semantics, while its requests (and storage system responses) address the information in terms of block addressing on disk using, e.g., a logical unit number (lun).
A network environment may be provided wherein information (data) is stored in secure storage served by one or more storage systems coupled to one or more security appliances. Each security appliance is configured to transform unencrypted data (cleartext) generated by clients (or initiators) into encrypted data (ciphertext) destined for secure storage or “cryptainers” on the storage system (or target). As used herein, a cryptainer is a piece of storage on a storage device, such as a disk, in which the encrypted data is stored. In the context of a SAN environment, a cryptainer can be, e.g., a disk, a region on the disk or several regions on one or more disks that, in the context of a SAN protocol, is accessible as a lun (logical unit number).
Each cryptainer is associated with its own encryption key, e.g., a cryptainer key, which is used by the security appliance to encrypt and decrypt the data stored on the cryptainer. An encryption key is a code or number which, when taken together with an encryption algorithm, defines a unique transformation used to encrypt or decrypt data. Data remains encrypted while stored in a cryptainer until requested by an authorized client. At that time, the security appliance retrieves the encrypted data from the cryptainer, decrypts it and forwards the unencrypted data to the client.
In some systems encrypted data stored on a disk block (or other cryptainer) is often re-keyed, that is re-encrypted, according to a policy. If, for example, the policy may dictate that if an encryption key is compromised, the data may not be secure and must be re-keyed or re-encrypted. The policy may also dictate that, as a matter of common practice, data might be regularly re-encrypted on a time basis. For example, for critical information the data may be re-encrypted every day or week or month, whereas other data may be re-encrypted over longer time periods, e.g., every year. Herein re-keying involves reading and decrypting ciphertext data with the old key to yield clear data, and then re-encrypting the clear data with a new encryption key and restoring the data to the storage medium. Policy also includes “re-keying” a disk that initially contains clear text. Here the clear text is read, encrypted with a key and the ciphertext is written back onto the disk.
In some systems the security appliance performs the encryption and decryption, and, in addition, the security appliance may control access to both the storage and the client or authentication, where only “secure known” clients are served. The security appliance is the proxy for both the client and the storage system. That is the security appliance appears as the storage system to the client and appears as the client to the storage system. Additionally, re-keying is also handled by the security appliance, where the security appliance manages the key(s) and the block(s) associated with each key. In known systems each file may be encrypted with a given key and the file and the key are stored and tracked by the security appliance using a file system to manage all the file keys.
The security appliance logs and tracks the activities for a large number of different clients, a large number of different file blocks, a large number of different encryption keys that must be generated and implemented, and a large number of different storage systems. The security appliance store the policy governing such re-keying while tracking a very large number of new keys and corresponding very large number of blocks being re-keyed. The security appliance interacts with the storage system to reserve space and to initiate reads and writes to that space, and it ensures that there is no interference among the clients, files, keys, and storage systems.
In the known security systems, when data is to be re-keyed, a new key is generated “on the fly,” or when the key is needed in real time. This new key must then be distributed to other security appliances, lifetime key management (LKM) servers, and associated back-up and tracking facilities. This management/maintenance function may impact the performance of the security system.
The present invention addresses limitations in the known systems by pre-generating encryption keys. The security appliance generates a particular number of keys. These keys are then sent to a LKM, which then distribute them to other security appliances for virtually immediate use. The keys don't overlap among security appliances, unless they are in the same cluster. A number is also created and distributed to the security appliances and LKMs that represents the minimum number of unused pre-generated encryption keys. When that number is reached it triggers the creation of additional pre-generated encryption keys.
Illustratively a re-keying policy is defined and stored within the security appliances. That policy includes, for example, when an encryption key may have been compromised, when a time limit on the use of a key has been reached, and when the stored data is clear text.
When a re-keying command is issued, the targeted security appliance will read the targeted ciphertext from the storage system and use the old key to decrypt to create clear text. A pre-generated key is retrieved and used to encrypt the clear text forming a new ciphertext. That ciphertext is then re-written back onto the storage system. The newly used encryption key is then communicated to the LKMs, wherein they update their record of unused pre-generated encryption keys and the number that are used. LKM server can communicate the rekeyed cryptainer key to other security appliances in case they are using the same cryptainer.
When a security appliance uses a pregenerated encryption key and finds that the number of unused pre-generated encryption keys has reached the minimum, that security appliance creates new unused pre-generated encryption keys. These newly created keys are then distributed to the other security appliances and LKMs.
It will be appreciated by those skilled in the art that although the following Detailed Description will proceed with reference being made to illustrative embodiments, is the drawings, and methods of use, the present invention is not intended to be limited to these embodiments and methods of use. Rather, the present invention is of broad scope and is intended to be defined as only set forth in the accompanying claims.
The above and further advantages of the invention may be better understood by referring to the following description in conjunction with the accompanying drawings in which like reference numerals indicate identical or functionally similar elements:
The present invention pre=generates encryption keys in security appliances and sends them to LKMs associated with the security appliance. The LKM distributes these keys with no overlap and for immediate use to other security appliances. A minimum number of unused pre-generated keys are always kept available with new ones generated when the minimum number is reached.
In the illustrative embodiment, the security appliance employs a conventional encryption algorithm, e.g., the Advanced Encryption Standard (AES) or other appropriate algorithms, to transform unencrypted data (cleartext) generated by the clients 102 into encrypted data (ciphertext) intended for secure storage, i.e., one or more cryptainers, on the storage system 110. To that end, the security appliance illustratively uses a high-quality, software or hardware-based pseudo random number generation technique to generate encryption keys. The encryption and decryption operations are performed using these encryptions keys, such as a cryptainer key associated with each cryptainer. As described herein, the security appliance 200 uses an appropriate cryptainer key to encrypt or decrypt portions of data stored in a particular cryptainer. The security appliance, in addition to encrypting and decrypting, addresses the storage system 110, provides authentication, secure-logging and “virtualization.” Virtualization refers to the security appliance appearing as if it were the storage system to the client, while appearing as if it were the client to the storage system.
A lifetime key management (LKM) server 400 is configured to manage all encryption keys used by the security appliance 200 to encrypt and decrypt data securely stored on the storage system 110, ensuring encryption key availability for the life of the secured data. For example, the LKM server 400 receives encrypted cryptainer keys from the security appliance 200 and sends encrypted cryptainer keys on demand to the appliance. The LKM server is further configured to support a plurality of security appliances 200 such that, when a particular appliance encounters a data access request directed to a cryptainer for which it does not have the appropriate key, that appliance accesses the LKM server 400 to receive the appropriate key.
The clients may be running conventional operating system software, for example Windows, Unix, but other operating systems may be used, and, further, the operations may be implemented in hardware or firmware/hardware, etc. The protocol governing the communications between the clients and the security appliance may be XML, but others may be used.
The SEP 390 illustratively implements the AES-256 encryption algorithm. However, in alternative embodiments, the SEP 390 may implement additional and/or differing encryption algorithms including, e.g., HMAC-SHA-512, deterministic random number generator (DRNG) using SHA-1, elliptic curve cryptography, etc.
The network adapters 220 a,b couple the security appliance 200 between one or more clients 102 and one or more storage systems 110 over point-to-point links, wide area networks, virtual private networks implemented over a public network (Internet) or shared local area networks. In a SAN environment configured to support various Small Computer Systems Interface (SCSI)-based data access protocols, including SCSI encapsulated over TCP (iSCSI) and SCSI encapsulated over FC (FCP), the network adapters 220 may comprise host bus adapters (HBAs) having the mechanical, electrical and signaling circuitry needed to connect the appliance 200 to, e.g., a FC network or a support computer system. In a NAS environment configured to support, e.g., the conventional Common Internet File System (CIFS) and the Network File System (NFS) data access protocols, the network adapters 220 a,b may comprise network interface cards (NICs) having the mechanical, electrical and signaling circuitry needed to connect the appliance to, e.g., an Ethernet network.
The memory 210 illustratively comprises storage locations that are addressable by the processors and adapters for storing software programs and data structures associated with the present invention. The processor and adapters may, in turn, comprise processing elements and/or logic circuitry configured to execute the software programs and manipulate the data structures. An operating system 212, portions of which are typically resident in memory and executed by the processing elements, functionally organizes the appliance 200 by, inter alia, invoking security operations in support of software processes and/or modules implemented by the appliance. It will be apparent to those skilled in the art that other processing and memory means, including various computer readable media, may be used for storing and executing program instructions pertaining to the invention described herein.
Since the SEP 390 protects encryption keys from being “touched” (processed) by the system software executing on the CPU 202, a mechanism is needed, at least initially to load keys into and retrieve keys from the SEP. To that end, the card reader 230 provides an interface between a “smart” system card 250 and SEP 390 for purposes of exchanging encryption keys. Illustratively, the system card is a FIPS 140-2 certified card that is configured with customized software code. As described further below, a portion of the cryptographic information, needed to initialize the security appliance, is stored on the system card 250, thereby preventing the initialization of the appliance 200 without the presence of the card 250. The security appliance (and card reader 230) are further configured to support additional smart cards 260.
Operationally, encryption keys are exchanged between the SEPs 390 and system card 250, where they are “secret shared” (cryptographically assigned) with the recovery cards 260 as recovery keys. These recovery keys can thereafter be applied (via the recovery cards) to the security appliance 200 to enable restoration of other encryption keys (such as cryptainer keys). A quorum setting for the recovery cards 260 may be provided such that the recovery keys stored on the recovery cards are backed up in a threshold scheme whereby, e.g., any 2 of the 5 default cards can recover the keys. The use of these recovery cards may be referred to herein as activities performed by recovery officers, since the recovery cards are controlled by humans.
The operating system 212 illustratively organizes the memory 210 into an address space arrangement available to the software processes and modules executing on the processors.
For both NAS and SAN environments, data is received at a proxy 320 of the security appliance. The proxy 320 is a module embodied as, e.g., the network protocol stack configured to interpret the protocol over which data is received and to enforce certain access control rules based on one or more policies. Each policy is served by a box manager 360. The box manager 360 is illustratively embodied as a database application process configured to manage a configuration repository or database (ConfigDB 370) that stores system-wide settings and encryption keys. A socket server 380 provides interfaces to the box manager 360, including (i) an HTTP web interface 382 embodied as, e.g., a graphical user interface (GUI) adapted for web-based administration, (ii) an SSH interface 384 for command line interface (CLI) command administration, and (iii) and SNMP interface 386 for remote management and monitoring.
Specifically, the box manager 360 supplies permissions and encryption keys to the proxy 320, which intercepts data access requests and identifies the source (clients 102) of the those requests, as well as the types of requests and the storage targets (cryptainer) of those requests. The proxy also queries the box manager for permissions associated with each client/host and, in response, the box manager 360 supplies the appropriate permissions and encryption key (e.g., a cryptainer key). The proxy 320 then bundles the data together with the encryption key and forwards that information to a crypto layer 330.
The crypto layer 330 interacts with the DCC 340 (Data Crypto Card) by accessing (reading and writing) registers on the DCC and, to that end, functions as a system bus interface to present the starting and ending points of data, as well as offsets into the data and the encrypted keys used to encrypt the data. Upon completion of encryption of the data, the DCC returns the encrypted data as ciphertext to the proxy 320, which forwards the encrypted data to the storage system 110.
Pre-generated encryption keys 341 are stored with the SEP 390. These keys were generated by a command of a system administrator during initial set up of the system. Software is executed to generate encryption keys, that are then distributed to all the security appliances in communications with each other. There is a trigger based on the number of keys remaining that are unused. When that number is reached, new keys are generated and distributed when time allows. In this way system performance is not affected.
A network interface 420 provides connections to all security appliances 200 that utilize the LKM server. The LKM 400 illustratively communicates with the security appliance 200 via a proprietary protocol, preferably based on XML. A cryptographic module 430 is configured to implement algorithms needed to perform cryptographic operations for the LKM.
An overlapping, data decryption software (DDS) module 460 “shares” the cryptographic module (e.g., its algorithms) on the LKM server. Illustratively, the function of the DDS 460 is to decrypt a piece of storage (e.g., a file) with an appropriate key to thereby enable recovery of the data contained in the file. To that end, the DDS functions as a data recovery software module. The LKM server 400 also includes a GUI 470 that provides a user with an interface to the functionality of the LKM and DDS 460. Alternatively, an external user interface 480 may run on a stand alone machine, such as a Windows management station, to provide GUI functionality for the LKM.
In the illustrative embodiment, the LKM 400 is embodied as an independent server that is coupled to one or more security appliances 200. When initializing a security appliance, a system administrator specifies the LKM 400 with which the appliance is to communicate. In addition, a trust relationship is established between the security appliance and the LKM using, e.g., a shared secret or certificate to establish a secure communication channel. Note that storage of the key on the key database 410 is primarily for redundancy/backup of the key to thereby reduce the chances of data loss for information protected by the key.
In accordance with an aspect of the invention, the client/host enforces one or more policies that may include re-writing ciphertext. For example, a key has been compromised, or if a time limit attribute of a key has expired, policy may instruct the client/host to re-write (re-key) a group or all the blocks of a storage system. In response, the client host issues a re-write command to the security appliance, which generates new encryption keys. The stored ciphertext in the blocks is read and decrypted using the old keys and then re-encrypted using the new keys and written back into the same storage blocks. Thereafter, the old keys are deleted. The security appliance maintains a table or database that associates encryption keys with storage blocks.
In some systems, not shown, encryption keys are wrapped within another encrypted layer using a second encryption key. Such systems may be used advantageously with the present invention. Notably, a file key may be used to encrypt a data file, and a cryptainer key may be used to encrypt part of a metadata portion of the file. That is, each file key is encrypted and signed with the cryptainer key.
Specifically, the pre-generated list of encryption keys may be distributed 806 to LKMs that are in communications with the security appliance, and from those LKMs to other security appliances.
When a security appliance as directed by policy, initiates a re-keying 808, in step 810 the security appliance reads the stored ciphertext using the appropriate old key to yield clear text. The security appliance then removes an unused pre-generated key from a stack of pre-generated keys, encrypts the clear text and rewrites 814 the new ciphertext back onto the storage system. That used pre-generated encryption key is then sent 816 to the LKMs so they can update 816 their lists and minimum count. The LKMs then distribute the key to other security appliances. The number of unused pre-generated encryption keys is decremented 818 and compared 820 to the minimum number “m”. If the minimum number is reached 822, that security appliance generates 824 a number of encryption keys bringing the number of pre-generated encryption keys back to the original amount “n,” whereupon the process ends 828.
If the minimum “m” is not reached 826 the process ends 828.
As time is available, the newly created encryption keys are distributed by LKMs to 824 among the other security appliances, where the stack of pre-generated encryption keys and the count “n” is restored.
The above is presented as a series of process steps using stacks and count numbers, “n,” and “m.” Those skilled in the art will understand this process and details may be supplanted by many other techniques including using specific labels, designated areas of memory, etc., and that hardware and/or firmware may be used to advantage in other applications.
The foregoing description has been directed to specific embodiments of this invention. It will be apparent; however, that other variations and modifications may be made to the described embodiments, with the attainment of some or all of their advantages. For instance, it is expressly contemplated that the procedures, processes, layers and/or modules described herein may be implemented in hardware, software, embodied as a computer-readable medium having executable program instructions, firmware, or a combination thereof. Accordingly this description is to be taken only by way of example and not to otherwise limit the scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.