EP2920736A1 - Procédé pour contrer une attaque par canal auxiliaire sur des données sensibles - Google Patents
Procédé pour contrer une attaque par canal auxiliaire sur des données sensiblesInfo
- Publication number
- EP2920736A1 EP2920736A1 EP13783050.1A EP13783050A EP2920736A1 EP 2920736 A1 EP2920736 A1 EP 2920736A1 EP 13783050 A EP13783050 A EP 13783050A EP 2920736 A1 EP2920736 A1 EP 2920736A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- sub
- buffers
- run
- physical
- address
- Prior art date
- Legal status (The legal status 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 status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
- G06F21/556—Detecting local intrusion or implementing counter-measures involving covert channels, i.e. data leakage between processes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
- G06F21/75—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by inhibiting the analysis of circuitry or operation
- G06F21/755—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by inhibiting the analysis of circuitry or operation with measures against power attack
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
- G06F21/79—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories
Definitions
- the present invention relates to a method to manage physical volatile memory storing sensitive data, especially data relative to a cryptography algorithm process.
- More and more powerful side channel attack methods are developed to attack embedded system crypto algorithms to get sensitive information. Such attacks can detect leakage of the data access because most of the case the address of the data is fixed in RAM. Different address value put into the address bus will give different power sign. Then attacker can know which data accessed even if the data itself is masked or randomized. Access to such information may be critical like in the case an attacker accesses to the modulus exponent in RSA. It can leak the bit value of the private exponent.
- the present invention aims at avoiding, or at least making more difficult the above-mentioned malicious attacks while maintaining reasonable the quantity of extra RAM required.
- this invention introduces a method to originally randomize the crypto RAM layout.
- the invention proposes a method to manage physical volatile memory storing sensitive data relative to a cryptography algorithm process, said method comprising an initial step of defining a plurality of logical sub-buffers ordered in a logical layout intended to include in physical volatile memory sensitive data relative to the cryptography algorithm process, and said method comprising, before each run of the cryptography algorithm process, the following steps:
- said method then implying the running of the sensitive process by accessing the sub-buffers' contents as ordered in a logical layout using the address table to call the corresponding physical addresses, then each time of run the algorithm will access different sub-buffers' physical addresses.
- each run of the algorithms makes the physical address of each sub-buffer always change. Thus it will be impossible to get peak signal in DPA DEMA.
- This method is also very efficient for reverse engineering because which data had been accessed is randomized.
- the invention enables to reach high possible physical layout n! where n is the number of sub-buffers.
- the physical orders of these sub-buffers are dynamically defined to make sure that the order is different at each run of the algorithm.
- the permutation table and the knowledge of the sub-buffers give successive addresses for each sub-buffer. It means that each sub-buffer is located with an offset from the start address of the RAM dedicated to store sub-buffers.
- the invention there is no need of physically shuffling data. Only their offsets are stored in the RAM space and used during the running of the algorithm. There is no real data movement because the initial content of the sub-buffers for each cryptography algorithm is not important, they can be any value at the beginning. Algorithms are in fact classically designed in such a way they are not depending on the initial value of buffers which would be unsafe. As sub-buffers are simply permuted, the invention offers the possibility to optimize the occupied memory space that will be occupied during the algorithm running when sub-buffers will be used. According to the invention, the logical layout of the sub-buffers is defined during the project design, never change after. It will be the base of the following randomization and access macro.
- said sub-buffers are of different lengths.
- sub-buffers are accessed as an atomic unit, i.e. as a piece of memory that cannot be separated into smaller sub-buffers, during the cryptography algorithm running and the initial value of these sub-buffers are not important.
- said method includes a step of defining an offset table from the permutation table and the lengths of the sub-buffers.
- This implementation is particularly simple and economic in term of required memory and management of the ordering of the sub-buffers.
- the buffer size can be initialized each time according to the key size.
- Much RAM can be saved.
- the key is only a 1024 bits key.
- the sub-buffer size table it is possible to only use 1280 bytes. Then the RAM usage can be optimized dynamically.
- the random permutation table's size and the address table's size are linearly related to the number of sub-buffers.
- the method is implemented using software programmed instructions.
- the invention is reachable for any kind of crypto system even if the invention is not implemented during the conception of the crypto system.
- the application of the invention at each run of the algorithm is also rendered possible by introducing code in the algorithm itself.
- the invention particularly fit to such an application.
- Extra code is indeed introduced during initialization of the algorithm to initialize the address table.
- the coding of algorithm itself is identical. Nevertheless as access to sub-buffers now necessitates dynamic access to the address table, the invention adds some code. This will depend on the compiler and on chip structure but in general it is a limited increase.
- the randomization of the RAM layout is accessed with negligible performance influence on the crypto system. It is especially true for PK where a 0.2-0.5 ms increase is observed for a process of 200+ms.
- the invention also pertains to a device using said method, said device being a cryptographic system comprising a physical volatile memory storing sensitive data relative to a cryptography algorithm process, said system comprising memory for storing:
- the attacks are more complex to carry out on a cryptographic system for a malicious attacker.
- Figure 2 illustrates the step of determining the address table according to the invention.
- FIG. 1 is a flowchart of the method of the invention.
- each crypto algorithm has its own structure.
- the logic sub-buffer layout is normally defined during the algorithm implementation design and is not generated dynamically. This step is thus preliminary and occurs once and is never changed after.
- step E1 a random permutation table PT(Bi) is generated.
- Such permutation table is of the following kind for, for example, eight sub-buffers:
- the first column shows the initial ordering of sub-buffers Bi listed in second column, i.e. the designed logical memory layout which is also the physical layout if the invention is not implemented.
- the starting address of BO is the base address of the RAM space which will be used by cryptography process.
- Third column shows one possible ordering that can be observed in physical memory during a running of the algorithm.
- the permutation table PT(Bi) is the source for randomization according to the invention.
- a next step E2 determines offsets of each sub-buffers Bi in the RAM space from the permutation table PT(Bi) and the length definition of the sub- buffers LT(Bi). This step E2 is more particularly illustrated on figure 2.
- an offset Oi of the physical address is advantageously calculated for each sub-buffer.
- the address determination is particularly critical when, according to the preferred embodiment of the invention, sub- buffers Bi are of different lengths.
- the step E2 has two inputs: the permutation table PT(Bi) and the table LT(Bi) of the lengths of the sub- buffers.
- the step E3 results in the reordered physical address of each sub- buffers i.e. the physical RAM layout PLyt. It also results in the construction of an address table AT(Bi).
- the invention enables to randomize the order of the sub-buffers each time the algorithm is run.
- the order of used sub-buffers is thus different from one run to the other.
- the offset table OT(Bi) constitutes the address table AT(Bi). It is indeed equivalent in term of use of a besides established address table.
- the exact offset in the whole crypto RAM block, randomized during each run of the algorithm is calculated on-the-fly by using the pre-computed offset including the offset of each sub- buffer.
- ⁇ ⁇ 0,1 ,..., ⁇ -1 ⁇ ;
- Offset + LT[PT[Bi]]
- the invention results in an improved security for RAM variable address leakage, with acceptable size increase and performance decrease.
- the invention is very efficient for counter side channel analysis and reverse engineering.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Storage Device Security (AREA)
Abstract
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP13783050.1A EP2920736A1 (fr) | 2012-11-14 | 2013-10-25 | Procédé pour contrer une attaque par canal auxiliaire sur des données sensibles |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP12306408.1A EP2733637A1 (fr) | 2012-11-14 | 2012-11-14 | Procédé pour contrer des attaques par canaux cachés sur des données sensibles |
| EP13783050.1A EP2920736A1 (fr) | 2012-11-14 | 2013-10-25 | Procédé pour contrer une attaque par canal auxiliaire sur des données sensibles |
| PCT/EP2013/072352 WO2014075891A1 (fr) | 2012-11-14 | 2013-10-25 | Procédé pour contrer une attaque par canal auxiliaire sur des données sensibles |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP2920736A1 true EP2920736A1 (fr) | 2015-09-23 |
Family
ID=47826791
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP12306408.1A Withdrawn EP2733637A1 (fr) | 2012-11-14 | 2012-11-14 | Procédé pour contrer des attaques par canaux cachés sur des données sensibles |
| EP13783050.1A Withdrawn EP2920736A1 (fr) | 2012-11-14 | 2013-10-25 | Procédé pour contrer une attaque par canal auxiliaire sur des données sensibles |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP12306408.1A Withdrawn EP2733637A1 (fr) | 2012-11-14 | 2012-11-14 | Procédé pour contrer des attaques par canaux cachés sur des données sensibles |
Country Status (2)
| Country | Link |
|---|---|
| EP (2) | EP2733637A1 (fr) |
| WO (1) | WO2014075891A1 (fr) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10747907B2 (en) | 2014-12-16 | 2020-08-18 | Cryptography Research, Inc. | Buffer access for side-channel attack resistance |
| KR102411884B1 (ko) * | 2017-09-28 | 2022-06-22 | 삼성전자주식회사 | 전자 장치 및 그의 제어 방법 |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090113217A1 (en) * | 2007-10-30 | 2009-04-30 | Sandisk Il Ltd. | Memory randomization for protection against side channel attacks |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7142670B2 (en) * | 2001-08-14 | 2006-11-28 | International Business Machines Corporation | Space-efficient, side-channel attack resistant table lookups |
-
2012
- 2012-11-14 EP EP12306408.1A patent/EP2733637A1/fr not_active Withdrawn
-
2013
- 2013-10-25 EP EP13783050.1A patent/EP2920736A1/fr not_active Withdrawn
- 2013-10-25 WO PCT/EP2013/072352 patent/WO2014075891A1/fr not_active Ceased
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090113217A1 (en) * | 2007-10-30 | 2009-04-30 | Sandisk Il Ltd. | Memory randomization for protection against side channel attacks |
Non-Patent Citations (1)
| Title |
|---|
| See also references of WO2014075891A1 * |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2014075891A1 (fr) | 2014-05-22 |
| EP2733637A1 (fr) | 2014-05-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3899774B1 (fr) | Arbre d'intégrité pour contrôle d'intégrité de mémoire | |
| EP3959618B1 (fr) | Dispositif de chiffrement de mémoire résistant aux attaques par canal latéral efficace basé sur une mise à jour de clé | |
| KR102532395B1 (ko) | 메모리 보안용 카운터 무결성 트리 | |
| US10261854B2 (en) | Memory integrity violation analysis method and apparatus | |
| US9298947B2 (en) | Method for protecting the integrity of a fixed-length data structure | |
| US20120260106A1 (en) | System and method for binary layout randomization | |
| US20060265563A1 (en) | Word-individual key generation | |
| CN107430671B (zh) | 用于在缓存中保护对安全重要的数据的方法 | |
| US20090113217A1 (en) | Memory randomization for protection against side channel attacks | |
| US20120246489A1 (en) | Encrypting and storing confidential data | |
| US20240080193A1 (en) | Counter integrity tree | |
| CN113673002A (zh) | 一种基于指针加密机制和risc-v协处理器的内存溢出防御方法 | |
| US11121867B2 (en) | Encryption methods based on plaintext length | |
| US20100070779A1 (en) | Integrity of ciphered data | |
| US20090100226A1 (en) | Cache memory device and microprocessor | |
| CN118377734A (zh) | 基于物理与访存地址转换的内存数据安全加强方法及系统 | |
| WO2014075891A1 (fr) | Procédé pour contrer une attaque par canal auxiliaire sur des données sensibles | |
| US12019759B2 (en) | Data processing system and method for protecting data in the data processing system | |
| US8832450B2 (en) | Methods and apparatus for data hashing based on non-linear operations | |
| EP3435586B1 (fr) | Procédé permettant de diminuer le vieillissement d'une mémoire cache | |
| US20140258353A1 (en) | Methods and devices for prime number generation | |
| US20050232416A1 (en) | Method and device for determining a result | |
| EP3531612A1 (fr) | Procédé et dispositif permettant d'effectuer des opérations de table de substitution | |
| US11677541B2 (en) | Method and device for secure code execution from external memory | |
| Choi et al. | Optimization of PBKDF2-HMAC-SHA256 and PBKDF2-HMAC-LSH256 in CPU Environments |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| 17P | Request for examination filed |
Effective date: 20150615 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
| AX | Request for extension of the european patent |
Extension state: BA ME |
|
| DAX | Request for extension of the european patent (deleted) | ||
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: EXAMINATION IS IN PROGRESS |
|
| 17Q | First examination report despatched |
Effective date: 20161209 |
|
| RAP1 | Party data changed (applicant data changed or rights of an application transferred) |
Owner name: THALES DIS FRANCE SA |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
| 18D | Application deemed to be withdrawn |
Effective date: 20200715 |