Physically Secure Memory Partitioning
Physically secure memory partitioning with separate address ranges and additional security measures ensures only authorized access to sensitive data, effectively protecting against physical attacks and hardware failures in memory devices.
Patent Information
- Application Number
- JP2023019801
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-08-09
- Filing Date
- 2023-02-13
- Publication Date
- 2024-10-09
- Estimated Expiration
- 2043-02-13
AI Technical Summary
Existing memory devices are vulnerable to physical attacks and hardware failures that allow unauthorized access to secure data, compromising the security of sensitive information stored in memory partitions.
The memory device employs physically secure memory partitioning with separate address ranges for secure and plain data, using hardware mechanisms to prevent plain access circuits from accessing secure partitions, and incorporates error detection codes to verify data integrity, along with dedicated control signals and hardwired bus lines to enhance security.
The solution effectively prevents unauthorized access to secure data, ensuring only authorized users can access sensitive information, even in the presence of physical attacks or hardware failures, thereby enhancing security and safety in applications like automotive systems.
Smart Images

Figure 0007564901000001 
Figure 0007564901000002 
Figure 0007564901000003
Abstract
Description
[Technical field]
[0001] The present invention relates generally to secure data storage, and more particularly to physically secure memory partitioning. [Background technology]
[0002] Memory devices are used in a variety of applications and host systems to store both secure and plain data. For example, a section of a memory device may be reserved for storing sensitive data such as encryption keys. It is important to ensure that only authorized personnel can access the secure data, even if the device is subject to a fault injection attack. Summary of the Invention [Problem to be solved by the invention]
[0003] The present invention provides physically secure memory partitioning to ensure that only authorized individuals have access to secure data. [Means for solving the problem]
[0004]
[0009] Embodiments of the invention described herein provide a memory device including a memory, a secure access circuit, a plane access circuit, and protection hardware. The memory includes at least a secure storage partition assigned a first address range and a plain storage partition assigned a second address range separate from the first address range. The secure access circuit is configured to access the secure storage partition by generating addresses within the first address range. The plane access circuit is configured to access the plain storage partition by generating addresses within the second address range. The protection hardware is configured to prevent the plane access circuit from accessing the first address range assigned to the secure storage partition.
[0005] There is further provided, in accordance with embodiments described herein, a memory access method, in a memory including at least (i) a secure storage partition assigned a first address range and (ii) a plain storage partition assigned a second address range separate from the first address range, accessing the secure storage partition with a secure access circuit by generating an address within the first address range, and accessing the plain storage partition with a plane access circuit by generating an address within the second address range, and preventing the plane access circuit from accessing the first address range assigned to the secure storage partition. Effect of the Invention
[0006] In summary, the present invention provides physically secure memory partitioning to ensure that only authorized individuals have access to secure data. [Brief description of the drawings]
[0007] The present invention can be more fully understood from the following detailed description of the embodiments thereof, when read in conjunction with the drawings. [Figure 1] 1 is a block diagram that illustrates a schematic of a secure memory device, according to an embodiment of the present invention; [Diagram 2] FIG. 2 illustrates a schematic diagram of secure data storage using a cyclic redundancy check (CRC) according to an embodiment of the present invention. [Diagram 3] 1 is a flow chart that generally illustrates a method for secure data storage, according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] overview
[0009] The embodiments of the invention described herein provide improved techniques for storing both secure and plain data in the same memory device.
[0010] In a disclosed embodiment, a secure memory device includes a memory in which one or more memory regions are designated as secure storage partitions and one or more regions are designated as plain storage partitions. Each partition is assigned a respective address range. The secure memory device further includes at least one secure access circuit configured to access the secure storage partitions, i.e., configured to generate addresses within the corresponding ranges, and at least one plain access circuit configured to access the plain storage partitions.
[0011] The use of separate address ranges and partitioned memory access circuitry provides some degree of logical separation between secure and plain data. Nevertheless, such configurations are still vulnerable to physical attacks, e.g., fault injection or power glitches, that could cause the plane access circuitry to inadvertently access the secure storage partition, i.e., generate addresses within the address range of the secure storage partition.
[0012] In some embodiments of the present invention, a secure memory device includes hardware-implemented means for preventing a plane access circuit from accessing a secure storage partition. For example, such protection hardware (shown as 42 in FIG. 1 ) may prevent a plane access circuit from generating addresses that fall within the address range of a secure storage partition. For ease of explanation, the following description primarily refers to an apparatus including a single secure storage partition, a single plain storage partition, a single secure access circuit, and a single plane access circuit. However, the disclosed technology is not limited to this configuration and any suitable number of secure storage partitions, plain storage partitions, secure access circuits, and plane access circuits may be used.
[0013] In some embodiments, the memory is partitioned into a "lower" address range and an "upper" address range. The lower address range includes addresses with a predetermined number of Most Significant Bits (MSBs) equal to "0". The upper address range consists of addresses with one or more of these MSBs having a different value than the lower address range. Any suitable number of MSBs may be used for this partitioning, for example a single MSB. The lower address range is designated as a plain storage partition and the upper address range is designated as a secure storage partition.
[0014] To prevent the plane access circuitry from generating addresses in the upper address range, a predetermined number of MSBs on the address bus of the plane access circuitry are hardwired to a voltage corresponding to a logic "0." This protection prevents a physical attack or hardware failure from causing the plane access circuitry to generate an address belonging to the secure storage partition.
[0015] In some embodiments, the address ranges for the secure storage partition and the plain storage partition are assigned such that the Hamming distance between any address in the secure storage partition and any address in the plain storage partition is greater than 1. This condition is stricter than simply assigning disjoint address ranges, and requires a proper offset between them. In one example, the lower address range includes addresses with the four MSBs equal to "0" and the upper address range includes addresses with the four MSBs equal to 0x3 (or 0x6, or any other 4-bit value containing at least two "1's").
[0016] In some embodiments, the additional protection includes a dedicated control signal that the secure access circuitry asserts when accessing the secure storage partition. The memory array includes circuitry that monitors the dedicated control signal and allows access to the secure storage partition only when the signal is asserted. The plane access circuitry does not support this signal and therefore cannot access the secure storage partition.
[0017] In some embodiments, when writing data to a memory line, the secure access circuitry and / or the plane access circuitry writes the data with an error detection code (EDC), such as a cyclic redundancy check (CRC) code or an error correction code (ECC). When reading data from a memory line, the memory access circuitry calculates an expected EDC based on the read data and compares it to the EDC stored in the memory line. To further block unauthorized access to the secure storage partition, the memory access circuitry calculates an EDC not only for the data, but also for at least a portion of the address, and returns the data to the user only if the EDCs match. In this way, even if a physical attack or hardware failure successfully writes to a memory line of the secure storage partition, the unauthorized write is more likely to be detected when the data is read because the expected EDC will not match the stored EDC.
[0018] In some embodiments, the secure memory device has two or more exposed "blocking points" to block physical attacks and mitigate hardware failures with a very high probability.
[0019] The techniques described herein are highly effective in preventing unauthorized access to the secure storage partition. The disclosed techniques are effective against both physical attacks and hardware failures, thus enhancing both security and safety in some use cases, such as automotive systems. The enhanced safety and security facilitates sharing of memory device resources (power supplies, charge pumps, sense amplifiers, control logic, etc.) between the plain and secure partitions.
[0020] System Description
[0021] 1 is a schematic block diagram of a secure memory device, in accordance with one embodiment of the present invention. Device 20 includes a memory array 24, also referred to simply as "memory." Memory 24 may include, for example, non-volatile memory, such as flash memory, volatile memory, such as random access memory (RAM), or any other suitable memory type.
[0022] In this example, two memory partitions are defined: a secure storage partition 28 and a plain storage partition 32 (also referred to simply as the "secure partition" and the "plain partition", respectively). The secure partition 28 is used to store sensitive information, such as security keys, passwords or other credentials, personal information such as credit card numbers, or any other suitable information that is considered sensitive or confidential for any reason. Access to the secure partition 28 may be restricted or require some cryptographic operation, such as encryption or authentication. The plain partition 32 may be used to store any suitable information, typically information that is considered less secure or confidential than the information stored in the secure partition 28.
[0023] Secure partition 28 and plain partition 32 are each assigned an address range within the address space of memory 24. The address ranges may be the same or different sizes, may be contiguous or non-contiguous, and may each contain any suitable addresses. The address ranges assigned to secure partition 28 and plain partition 32 are non-overlapping, i.e., disjoint.
[0024] The device 20 further comprises a secure access circuit 36 for accessing (reading and writing) data in the secure partition 28 and a plane access circuit 40 for accessing (reading and writing) data in the plane partition 32 .
[0025] Each memory access circuit (secure access circuit 36 or plane access circuit 40) accesses (reads and / or writes) memory 24 using the data bus and the address bus. In a typical write operation, the memory access circuit (secure or plane) receives data to be written to memory 24. The memory access circuit generates an address within the address range of the appropriate partition (secure partition 28 or plane partition 32) and sends a write command to memory 24 with the address on the address bus and the data on the data bus. In a typical read operation, the memory access circuit receives a request to read data from memory 24. The memory access circuit generates an address within the address range of the appropriate partition and sends a read command to memory 24 with the address on the address bus. In response, memory 24 returns the requested data on the data bus.
[0026] Circuits 36 and 40 may include, for example, a data path or any other suitable circuitry for performing memory access operations. Circuits 36 and 40 may provide services to any suitable host, application, or other entity that stores data in memory device 20.
[0027] The various components of secure memory device 20, including memory 24 and circuits 36 and 40, are typically integrated in a single semiconductor device package, e.g., on a single die or on different dies. Secure memory device 20 may be installed in, for example, a computer, an automotive electronic unit, or any other suitable host system.
[0028] 1 is an exemplary configuration selected merely for conceptual clarity. In alternative embodiments, any other suitable configuration may be used. For example, as noted above, memory 24 may include any suitable number of secure storage partitions 28 and plain storage partitions 32, and device 20 may include any suitable number of secure access circuitry 36 and plain access circuitry 40.
[0029] In various embodiments, secure memory device 20 may be implemented using hardware, such as using one or more application specific integrated circuits (ASICs) and / or field programmable gate arrays (FPGAs). Memory 24 may include any suitable type of volatile or non-volatile memory, such as RAM or flash.
[0030] Preventing access of plain access circuits to secure storage partitions
[0031] In various embodiments, secure memory device 20 may include various hardware-enforced mechanisms for preventing plane access circuitry 40 from generating addresses that fall within the address range of secure storage partition 28. These hardware mechanisms are also referred to as "blocking points."
[0032] Regarding hardwiring of the address bus lines of the plane access circuit.
[0033] 1, the plain partition 32 is assigned a "lower" address range and the secure partition 28 is assigned an "upper" address range. The lower address range includes addresses with a predetermined number of MSBs (one or more MSBs) that are "0". The upper address range includes addresses with a predetermined number of MSBs that are "1".
[0034] Additionally, a predetermined subset of the lines of the address bus of circuitry 40 that correspond to the MSBs set to "0" in the address range of plane partition 32 are hardwired to a voltage corresponding to a logical "0." Depending on the logic being used, this voltage may be, for example, the power supply voltage Vcc, ground, or any other suitable voltage that forces the MSB to a "0" regardless of the voltage that circuitry 40 intends to send on those bus lines. Hardwiring the address bus MSBs to "0" prevents plane access circuitry 40 from generating addresses in the high address range (the address range of secure partition 28).
[0035] In one embodiment, the address range of the plain partition 32 is 00000000h to 00FFFFFFh, providing 16 MB of plain access memory. The address range of the secure partition 28 is 01000000h and above. In this example, the predetermined number of MSBs hardwired to "0" is 2. Alternatively, other suitable address ranges and other suitable numbers of MSBs may be used.
[0036] More generally, in alternative embodiments, a lower address range may be assigned to the secure partition and an upper address range may be assigned to the plane partition 32. As a further alternative, the bit distinguishing the address ranges of the secure and plane partitions need not necessarily be the MSB of the address. Thus, more generally, addresses within the address range of the secure partition have one or more predefined bits set to a respective first bit value. Addresses within the address range of the plane partition 32 have one or more designated bits set to a respective second bit value opposite the respective first bit value. The apparatus 20 includes protection hardware 42 that forces one or more designated bits on the address bus of the plane access circuitry to a respective second bit value.
[0037] About maintaining a large Hamming distance between the address ranges of the plain and secure partitions.
[0038] In some embodiments, the address ranges of secure partition 28 and plain partition 32 are assigned such that the Hamming distance between any address in secure partition 28 and any address in plain partition 32 is greater than 1. The Hamming distance between two addresses is defined as the number of corresponding bits that the addresses differ in. If the Hamming distance is greater than 1, then in the event of an attack or hardware failure, multiple bits must be flipped to change an address in plane partition 32 to an address in secure partition 28. This condition significantly reduces the likelihood of such an event.
[0039] In one exemplary embodiment, when using 32-bit addresses, the plain partition 32 is assigned an address range in which the four MSBs (bits [31:28]) of the address are "0". To achieve a large Hamming distance, the secure partition 28 is assigned an address range in which the four MSBs are 0x3 ("0011"). In another embodiment, the secure partition 28 is assigned an address range in which the four MSBs are 0x6 ("0110"). Further alternatively, any other 4-bit value containing at least two "1's" may be used.
[0040] For a dedicated control signal indicating safe storage.
[0041] In some embodiments, the protection hardware 42 is configured to assert a dedicated control signal, denoted as “SEC” in FIG. 1, when accessing the secure storage partition 28, and the memory 24 is configured to allow access to the secure storage partition only while the dedicated control signal “SEC” is asserted. More specifically, the secure access circuit 36 asserts the dedicated control signal “SEC” while accessing the secure partition 28. The memory 24 includes circuitry that monitors the “SEC” control signal and allows access to the secure partition 28 only when the signal is asserted. The plane access circuit 40 does not support and is unable to assert the “SEC” control signal. Thus, even if a physical attack or hardware failure causes the plane access circuit 40 to successfully generate an address within the address range of the secure partition 28, the circuitry in the memory 24 will deny access to the secure partition 28 because the “SEC” control signal is not asserted.
[0042] About including the address in the EDC (e.g., CRC) calculation.
[0043] In some embodiments, when writing data to a memory line, the write memory access circuit (secure access circuit 36 or plane access circuit 40) writes the data to memory 24 along with an error detection code (EDC), such as a cyclic redundancy check (CRC) or an error correction code (ECC). When reading data from a memory line, the memory access circuit calculates an expected EDC based on the read data and compares it to the EDC stored for the memory line. The read operation is considered legitimate only if the expected EDC matches the stored EDC. In some embodiments, to further block unauthorized access to secure partition 28, the memory access circuit (36 or 40) calculates an EDC not only for the data (or at least a portion of the data), but also for at least a portion of the address.
[0044] 2 is a schematic diagram of secure data storage using CRC, according to one embodiment of the present invention. The diagram illustrates, for example, multiple memory lines within secure partition 28. Each memory line includes a respective data field 44 and a respective CRC field 48. The CRC 48 for a given memory line is calculated (e.g., by circuitry 36) on both the data 44 of the memory line and the address of the memory line.
[0045] Using this mechanism, even if a physical attack or hardware failure causes plane access circuitry 40 to successfully write to a memory line within secure partition 28, the incorrect write will be detected (with a high probability) when the data is read because the expected EDC will not match the stored EDC.
[0046] 3 is a flow chart that illustrates, in accordance with one embodiment of the present invention, a method for secure data storage in a secure memory device 20. The example in FIG. 3 refers to a write operation as an example. A read operation is performed in a similar manner.
[0047] The method begins with an address allocation stage 52 where appropriate address ranges are assigned to the plain partition 32 and the secure partition 28. In a data input stage 56, the secure memory device 20 receives data for storage in memory 24. In a verification stage 60, the secure memory device 20 verifies whether the data is intended for storage in plain storage or secure storage.
[0048] If the data is to be stored in the plane partition 32, the secure memory device 20 assigns the store operation to the plane access circuitry 40 in a plane allocation stage 64. If the data is to be stored in the secure partition 28, the secure memory device 20 assigns the store operation to the secure access circuitry 36 in a secure allocation phase 68.
[0049] In an address generation stage 72, the allocated memory access circuit generates an address where the data is to be stored. In a CRC calculation stage 76, the memory access circuit calculates a CRC on both the data and the address. In a store stage 80, the memory access circuit stores the data and the CRC in the memory line with the generated address.
[0050] The method flow of Figure 3 is an example flow chosen purely for conceptual clarity - in alternative embodiments, any other suitable flow may be used.
[0051] 3 illustrates that in some embodiments, secure memory device 20 includes two or more of the disclosed "blocking points" (hardwiring the address bus lines of the plane access circuitry, maintaining a large Hamming distance between the address ranges of the plane and secure partitions, using dedicated control signals to indicate access to the secure partition, and including addresses in EDC calculations). Using multiple "blocking points" further reduces the likelihood of a physical attack or hardware failure causing the plane access circuitry to generate an address within the address range of the secure partition. Various embodiments may use various subsets of these "blocking points" and / or other suitable "blocking points."
[0052] The above-described embodiments are given by way of example, and it should be understood that the present invention is not limited to what has been particularly shown and described above. Rather, the scope of the present invention includes both combinations and subcombinations of the various features described above, as well as variations and modifications thereof not disclosed herein that may occur to one skilled in the art upon reading the above description. Documents incorporated into this patent application by cross-reference are considered an integral part of the application, except to the extent that terms defined in these incorporated documents in a manner that is inconsistent with definitions expressly or impliedly made herein and that must be taken into account in the definitions of this specification. [Industrial Applicability]
[0053] The physically secure memory partitioning of the present invention can be applied to techniques for protecting data storage. [Explanation of symbols]
[0054] 20: Secure Memory Device 24: Memory 28: Secure Storage Partition 32: Plain storage partition 36: Secure Access Circuit 40: Plane access circuit 44: Each data area 48: Each CRC area 52: Address allocation stage 56: Data Entry Stage 60: Confirmation Stage 64: Plane Allocation Stage 68: Secure Allocation Stage 72: Address generation stage 76: Circulation Stage 80: Storage Stage
Claims
1. a memory comprising at least (i) a secure storage partition assigned a first address range and (ii) a plain storage partition assigned a second address range separate from the first address range; a secure access circuit configured to access the secure storage partition by generating an address within the first address range; a plane access circuit configured to access the plane storage partition by generating addresses within the second address range; protection hardware configured to prevent the plane access circuitry from accessing the first address range assigned to the secure storage partition; Equipped with The protection hardware includes: hardwiring each line on an address bus of the plane access circuitry to a respective second bit value, thereby preventing the plane access circuitry from generating addresses within the first address range assigned to the secure storage partition, addresses within the first address range having one or more designated bits set to a respective first bit value and addresses within the second address range having one or more designated bits set to a respective second bit value opposite to a respective first bit value; setting a Hamming distance between any address in the first address range and any address in the second address range to be greater than 1; asserting a dedicated control signal when the secure storage partition is accessed by the secure access circuitry, and the memory permits the secure access circuitry to access the secure storage partition only while the dedicated control signal is asserted; A memory device configured to be at least one of:
2. 2. The memory apparatus of claim 1, wherein the protection hardware is configured to prevent the plane access circuitry from generating addresses within the first address range assigned to the secure storage partition.
3. addresses within the first address range have one or more designated bits set to respective first bit values; addresses within the second address range have one or more designated bits set to a respective second bit value opposite to said respective first bit value; 2. The memory device of claim 1, wherein the protection hardware includes hardwiring each line on an address bus of the plane access circuitry to each of the second bit values, thereby preventing the plane access circuitry from generating addresses within the first address range assigned to the secure storage partition.
4. 2. The memory device of claim 1, wherein a Hamming distance between any address in the first address range and any address in the second address range is greater than one.
5. 2. The memory device of claim 1, wherein the protection hardware is configured to assert a dedicated control signal when accessing the secure storage partition, and the memory is configured to allow access to the secure storage partition only while the dedicated control signal is asserted.
6. One or both of the secure access circuit and the plain access circuit are While data is stored at the designated address, performing an error detection code (EDC) calculation or an error correction code (ECC) calculation on at least a portion of the data and at least a portion of the designated address, and storing the data and the EDC or the ECC in the secure storage partition or the plain storage partition according to the designated address; verifying the EDC or the ECC while reading the data from the specified address; 2. The memory device of claim 1, configured to identify a fault or attack and refrain from providing the data as an output in response to an error detected by the EDC or the ECC.
7. one or both of the secure access circuitry and the plain access circuitry, verifying the EDC or the ECC when reading data from the specified address; 7. The memory device of claim 6, configured to identify a fault or attack and refrain from providing the data as an output in response to an error detected by the EDC or the ECC.
8. 8. The memory device of claim 7, wherein the EDC is a cyclic redundancy check (CRC) code.
9. in a memory including at least (i) a secure storage partition assigned a first address range and (ii) a plain storage partition assigned a second address range separate from the first address range, accessing the secure storage partition with a secure access circuit by generating an address within the first address range, and accessing the plain storage partition with a plain access circuit by generating an address within the second address range; preventing the plane access circuitry from accessing a first address range assigned to the secure storage partition; Preventing the plane access circuitry from accessing the first address range includes: hardwiring each line on an address bus of the plane access circuitry to a respective second bit value, thereby preventing the plane access circuitry from generating addresses within the first address range assigned to the secure storage partition, addresses within the first address range having one or more designated bits set to a respective first bit value and addresses within the second address range having one or more designated bits set to a respective second bit value opposite to a respective first bit value; setting a Hamming distance between any address in the first address range and any address in the second address range to be greater than 1; asserting a dedicated control signal when the secure access circuitry accesses the secure storage partition, and allowing the secure access circuitry to access the secure storage partition only while the dedicated control signal is asserted; A memory access method comprising at least one of the above.
10. 10. The method of claim 9, wherein preventing the plane access circuitry from accessing the first address range comprises preventing the plane access circuitry from generating addresses within a first address range assigned to the secure storage partition.
11. addresses within the first address range have one or more designated bits set to respective said first bit values; addresses within the second address range have one or more designated bits set to a respective second bit value opposite to said respective first bit value; 10. The method of claim 9, wherein each line on an address bus of the plane access circuitry is hardwired to each of the second bit values, thereby preventing the plane access circuitry from generating addresses within the first address range assigned to the secure storage partition.
12. 10. The method of claim 9, wherein a Hamming distance between any address in the first address range and any address in the second address range is greater than one.
13. 10. The method of claim 9, wherein preventing the plane access circuitry from accessing a first address range comprises asserting a dedicated control signal when accessing the secure storage partition, and allowing access to the secure storage partition only while the dedicated control signal is asserted.
14. The method of claim 13, wherein access to one or both of the secure storage partition and the plain storage partition comprises: While data is stored at the designated address, performing an error detection code (EDC) calculation or an error correction code (ECC) calculation on at least a portion of the data and at least a portion of the designated address, and storing the data and the EDC or the ECC in the secure storage partition or the plain storage partition according to the designated address; verifying the EDC or the ECC while reading the data from the specified address; in response to an error detected by the EDC or the ECC, identifying a fault or attack and refraining from providing the data as output; 10. The method of claim 9, comprising:
15. Access to one or both of the secure storage partition and the plain storage partition is verifying the EDC or the ECC when reading data from the specified address; in response to an error detected by the EDC or the ECC, identifying a fault or attack and refraining from providing the data as output; 15. The method of claim 14, comprising:
16. 16. The method of claim 15, wherein the EDC is a cyclic redundancy check (CRC) code.
Citation Information
Patent Citations
Device and method for protecting memory
JP1998260901A
Storage device
JP2000517080A
Controlling device access to memory
JP2006506754A
Printer controller, printer and composite machine
JP2009193397A
How to prevent the installation of malicious software on computers connected to the Internet
JP2009526284A
