This invention relates to physically secure cryptographic hardware modules, and particularly to tamper response methods to protect sensitive data stored within the module.
Systems that provide physical security of sensitive data such as cryptographic keys typically require enclosures that contain the circuitry that stores and processes the sensitive data. U.S. Pat. No. 4,860,351—‘Tamper Resistance Packaging Protection of Information Stored in Electronic Circuitry’ describes how such a secure enclosure is implemented md is hereby incorporated in its entirety herein. The tamper response to penetration of physical enclosures must remove sensitive data within a period of time that makes breach of the enclosure and data retrieval or data preservation in memory devices highly unlikely. SRAM memory technology is frequently used for memory applications that store sensitive data in security modules. SRAM data remains stored in the memory device as long as power is applied to the device (volatile memory) and the data is not purposely over written using write enable signals. This volatile memory device is used to store sensitive data in secure enclosures because the sensitive data in the entire memory can be destroyed in a relatively fast operation by removing power to the device when a tamper event occurs. The power to the SRAM memory is also backed up with a battery source as there is a requirement to retain certain security data in the security module when the security module is not powered by system power.
When the memory device or security module is subjected to low temperatures the electrical discharge (data destruction) of the memory cell upon power removal or grounding of the power supply takes longer. If some charge still remains on the memory cells when the device is repowered, the memory cells will come up in the same state as before the power was removed. In this ease data previously stored in the memory will be retained. Significant data retention time increases have been observed at lower temperatures but at temperatures still within environmental ranges.
Low temperature attacks try to take advantage of the increased data retention lime to breach the enclosure and repower the memory device before the memory data is destroyed from the tamper response (power removal to the memory device) caused by the enclosure breach.
Conversely, subjecting the memory device to higher voltage than the maximum specified operating voltage of the device for extended periods and/or subjecting the device to higher temperatures for long periods can cause preferential states to be ‘burned into’ the memory storage elements devices. In this scenario memory devices that store data that is not overwritten for long periods of time such as cryptographic keys, could reveal this long term data when first powered up before any initial write operations. Therefore the tamper response becomes ineffective because the removal of power to the memory device may not affect the preferred states within the memory device that will be revealed when powered up.
In light of the above, low temperature attacks that could increase retention time of data in memory technology and high temperature/high voltage attacks that could ‘burn in’ preferred states in memory must be considered in designing the security of the enclosure and enclosed hardware. To address these exposures, temperature and voltage min/max tamper limits can be used to invoke a tamper response if the enclosure and memory device are subjected to temperature extremes. However, temperature and voltage limit thresholds are difficult to determine based on technology retention/burn-in sensitivity. For example different memory technology from different memory suppliers may have longer or shorter retention time sensitivities to lower temperatures and as technology evolves sensitivities of retention time to lower temperatures may change. Such voltage and temperature setting limits also create handling (Electrostatic discharge), shipping, and product storage limitations. For Example, during shipment cargo holds in planes can reach sub 0 Farenheight temperatures and warehouse temperatures may reach well over 100 degrees F. Therefore, if in order to protect against data retention times temperature tamper limit needs to be higher or lower than the temperature the device is exposed to during shipment, special thermal provisions must be made for shipment of the security product. Additionally, with voltage tamper limits, care must be taken to insulate all parts of the security module from accidentally shorting the power distribution system of the module so that an accidental voltage tamper cannot occur due to handling of the security module under battery back up power.
Actively erasing memory using the write function or write enable of the memory provides a more reliable destruction of data than removing power and is not sensitive to the data retention problem. However, in a large memory typical of the sizes needed for the storage of secure data writing over every memory location to be sure all sensitive data is destroyed (active erasure) cannot be completed within the time constraint of a tamper response.
Continuously inverting the memory storage bit locations (changing a 2 state element from 1 state to the other) at a 50% duty cycle to prevent imprinting of a preferred state will prevent the ‘data imprinting’ or ‘burn in’ of the memory cells of the SRAM device, however, it is also difficult and time consuming to implement constant inverting of data in a large memory due to it's size, and the power consumed by a constant switching factor.
To summarize, typical tamper responses to destroy sensitive data trigger off of penetration sensing and temperature/voltage sensing limits, and respond with power removal to SRAM memory to destroy sensitive data. As previously discussed, the quality and time required of this data erasure response can be influenced by temperature and voltage extremes. This invention offers better protection from breaches of the secure enclosure when temperature and voltage extremes (attacks) are used to preserve data retention (time) than only power removal (or grounding of the power terminal) to the memory device.
The shortcomings of the prior art are overcome and additional advantages are provided through the provision of encrypting the sensitive data in secure storage volatile memory with a master key. This master key becomes the data that can be more confidently destroyed upon a tamper event. Since the amount of sensitive data has been reduced to the master key, active erasure can be used to provide faster more complete data removal within the tamper response window, and constant inverting of master key data can be easily implemented to reduce exposure to data imprinting in storage memory. As an added measure, power removal (grounding of the power terminal or reversing polarity of the power terminal) to the memory containing the encrypted secure data is also done upon a tamper event. System and computer program products corresponding to the above-summarized methods are also described and claimed herein.
Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention. For a better understanding of the invention with advantages and features, refer to the description and to the drawings. As a result of the summarized invention, technically we have achieved a solution which provides better security of data that needs to be protected, more rapid and sure removal of data to be protected upon a tamper event, and better immunity to temperature and voltage influences (attacks) that can impair the removal of data to be protected.
The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other objects, features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
The detailed description explains the preferred embodiments of the invention, together with advantages and features, by way of example with reference to the drawings.
Turning now to the drawings in greater detail, it will be seen that
In operation, the master key storage 71 is generated at system initialization and loaded into a special secure storage area that could be a low power CPLD or microcontroller. The characteristic of the data register location within the master key is stored such that it can be globally reset with one simple input signal. This master key is used to encrypt/decrypt sensitive data such as cryptographic keys when the data is stored or retrieved from the secure memory. The secure memory storage 4 maybe implemented in a volatile memory such as SRAM. The encryption is done rapidly in a hardware encryption engine 30 or via software when the sensitive data is loaded, or decrypted when retrieved and needed. A typical software implementation of the encryption interlace consists in the host controller 2 reading the proper encryption key from master key storage 71 and encrypting/decrypting the data traffic to/from the secret data storage 4. The hardware implementation of the same interface relies on a hardware encryption engine or interface 30 integrated with the memory controller used to interface the secret data storage 4.
An embodiment is depicted in
When a tamper event occurs the response is to immediately reset the master key data registers, thereby actively destroying the master key, and then remove power (ground the power terminal of the device storing the master key) from the master key storage area as well as removing power to the encrypted sensitive/secure data storage (SRAM) device. Since the sensitive data at rest in the volatile SRAM memory is encrypted, the data is protected from unauthorized access even if the data in the SRAM is recovered due to increased data retention time at low temperature or ‘burned in states’. Only the master key needs to be reliably destroyed on the tamper response. The exposure of possibly retaining data with power removal that is sensitive to temperature or voltage is reduced by being able to actively erase the master key and constant inversion of the master key at 50% duty cycle. Active reset of the master key protects against low temperature attacks that could retain data longer upon power removal and offer an opportunity to lengthen the time window of attack. Further, the master key data bits are continuously inverted at a 50% duty cycle (changing a 2 state element from 1 state to the other) to prevent imprinting of a preferred state in the master key storage elements.
This action provides protection from a high, temperature or high voltage attack that could set the storage elements to a preferred stale on power up and reveal the master key. The removal of power to the secret data storage area offers an additional layer of protection that can be considered when determining the strength of the encryption mode to be used.
The capabilities of the present invention can be implemented in software, firmware, hardware or some combination thereof.
The flow diagrams depicted herein are just examples. There may be many variations to these diagrams or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order, or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.
While the preferred embodiment to the invention has been described, it will be understood that those skilled in the art, both now and in the fixture, may make various improvements and enhancements which fall within the scope of the claims which follow. These claims should be construed to maintain the proper protection for the invention first described.