Application identification

A secure electronic system with a shared software platform using encrypted random numbers for application identification and memory access control addresses security challenges in managing multiple software applications, preventing unauthorized access and substitution attacks.

FR3147030A1Active Publication Date: 2024-09-27STMICROELECTRONICS INT NV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
FR2023002751
Authority / Receiving Office
FR · FR
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-27
Estimated Expiration
2043-03-23

AI Technical Summary

Technical Problem

Existing electronic systems face challenges in securely implementing and managing multiple software applications, particularly in preventing unauthorized access and substitution attacks during updates.

Method used

A secure electronic system is implemented with a shared software platform that identifies each application using a unique random number stored encrypted in its execution code, with derived numbers managed by a secure operating system to control memory access and ensure only authorized applications can access or store digital resources.

Benefits of technology

The system effectively prevents unauthorized access and substitution attacks by ensuring only legitimate applications can access or store sensitive data, enhancing security and integrity of software applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Application Identification This description relates to a system (200) comprising at least one first application (202) and a shared software platform (201), in which each application (202) is identified by said software platform (201) by a first random number, said first random number being stored in encrypted form in an execution code of said first application (202), and a second number representing said first random number being stored in a first part of memory accessible only to said platform (201). Figure for the abbreviation: Fig. 2
Need to check novelty before this filing date? Find Prior Art

Description

Title of the invention: Identification of an application Technical field

[0001] The present description relates generally to electronic systems and devices, and the security of such electronic systems and devices. The present description relates more particularly to the protection of data, or digital resources, used by an application implemented by an electronic system or device. Prior art

[0002] It is common nowadays to use electronic devices and systems adapted to execute several different functionalities, themselves implemented by software applications.

[0003] It would be desirable to be able to improve, at least in part, certain aspects of software systems and architectures. More particularly, it would be desirable to be able to improve, at least in part, certain aspects of securing software applications. Summary of the invention

[0004] There is a need for electronic devices and systems suitable for implementing multiple software applications in a secure manner.

[0005] One embodiment overcomes all or part of the drawbacks of known electronic systems adapted to implement one or more software applications.

[0006] One embodiment overcomes all or part of the drawbacks of the methods for storing and retrieving digital resources of a software application.

[0007] One embodiment provides an electronic system in which applications are reliably identified to a shared software platform.

[0008] One embodiment provides a method for initializing such a system.

[0009] One embodiment provides methods for storing and retrieving digital resources in a system's memory.

[0010] One embodiment provides a system comprising at least a first application and a shared software platform, wherein each application is identified by said software platform by a first random number, said first random number being stored encrypted in an execution code of said first application, and a second number representative of said first random number being stored in a first part of a memory only accessible to said platform.

[0011] According to one embodiment, said second number representative of said first random number is generated by said software platform.

[0012] According to one embodiment, said first random number is generated by a first original equipment manufacturer of said first application.

[0013] According to one embodiment, said first random number is modified during an update of said first application.

[0014] According to one embodiment, said execution code of said first application is stored in a second part of a memory which is not accessible to a second original equipment manufacturer of a second application implemented by said platform.

[0015] According to one embodiment, the system is a secure operating system embedded in a secure element.

[0016] Another embodiment provides a method for initializing a system described previously comprising the following successive steps: - send, by said first application, said encrypted execution code to said platform; - extract, by said platform, said first random number; - generate, by said platform, said second number; and - store said second number.

[0017] According to one embodiment, the method further comprises the following successive steps: - decrypt, by said platform, said encrypted execution code with a first decryption key; and - store said decrypted execution code.

[0018] According to one embodiment, said decrypted execution code is stored in said second memory portion.

[0019] According to one embodiment, said key is not known to said second original equipment manufacturer.

[0020] Another embodiment provides a method for storing at least one first digital resource of said first application of the system described above, in which said platform stores said at least one digital resource and associates it with said second number.

[0021] According to one embodiment, the platform uses said second number to sign and / or encrypt said at least one first digital resource.

[0022] According to one embodiment, said at least one first digital resource is stored in a third part of a memory.

[0023] Another embodiment provides a method for recovering at least a second digital resource associated with a third number by a third application identified by a fourth random number, implemented by the system described above, wherein said platform verifies the concordance of said third and fourth numbers.

[0024] According to one embodiment, if the concordance is verified, said at least one second resource is transmitted to said third application by said platform.

[0025] According to one embodiment, if the concordance is not verified, an error is transmitted to said third application by said platform. Brief description of the drawings

[0026] These characteristics and advantages, as well as others, will be explained in detail in the following description of particular embodiments given without limitation in relation to the attached figures among which:

[0027] [Fig.l] represents, very schematically and in the form of blocks, an example of an electronic device to which the embodiments of figures 2 to 4 can be applied;

[0028] [Fig.2] represents, very schematically and in the form of blocks, an embodiment of an electronic system;

[0029] [Fig.3] represents a block diagram illustrating a mode of implementation of a method for initializing the system of [Fig.2]; and

[0030] [Fig.4] represents a first block diagram illustrating a mode of implementation of a method for storing a digital resource, and a second block diagram illustrating a mode of implementation of a method for recovering a digital resource. Description of the embodiments

[0031] The same elements have been designated by the same references in the different figures. In particular, the structural and / or functional elements common to the different embodiments may have the same references and may have identical structural, dimensional and material properties.

[0032] For the sake of clarity, only the steps and elements useful for understanding the described embodiments have been shown and are detailed.

[0033] Unless otherwise specified, when referring to two elements connected to each other, this means directly connected without intermediate elements other than conductors, and when referring to two elements connected (in English "coupled") to each other, this means that these two elements can be connected or be connected by means of one or more other elements.

[0034] In the following description, when referring to absolute position qualifiers, such as the terms "front", "back", "top", "bottom", "left", "right", etc., or relative position qualifiers, such as the terms "above", "below", "upper", "lower", etc., or to orientation qualifiers, such as the terms "horizontal", "vertical", etc., it is made reference unless otherwise specified to the orientation of the figures.

[0035] Unless otherwise specified, the expressions "about", "approximately", "substantially", and "of the order of" mean to within 10%, preferably to within 5%.

[0036] The embodiments described below relate to securing software applications, and more particularly to securing digital resources of such software applications. More specifically, it is a matter of preventing a software application from accessing digital resources that are not intended for it, such as digital resources of another software application, or digital resources of an old version of the same software application. The embodiments described below make it possible, in particular, to mitigate an application substitution attack, in which a pirate application takes the place of an already installed application by pretending to be it during an update, with the aim of gaining access to digital resources of the application.

[0037] The embodiments described below relate, more particularly, to a system comprising a software platform adapted to implement one or more software applications. Each software application is identified to the platform by means of a random number, which it stores in encrypted form, for example, in its execution code or in an element separate from its execution code to facilitate its protection and use.

[0038] [Fig. 1] is a block diagram representing, very schematically, an architecture of an example of an electronic device 100 adapted to implement the embodiments described in relation to FIGS. 2 to 4.

[0039] The electronic device 100 comprises a processor 101 (CPU) adapted to implement different processing of data stored in memories and / or provided by other circuits of the device 100. The processor 101 may, furthermore, be adapted to implement a software architecture of the type of the software architecture described in relation to [Fig.2].

[0040] The electronic device 100 further comprises different types of memories 102 (MEM), including, for example, a non-volatile memory, a volatile memory, and / or a read-only memory. Each memory 102 may be adapted to store different types of data, and may comprise access rules. In particular, the memory(s) 102 may comprise parts which are only accessible to one or more circuits of the electronic device, and / or to one or more software programs implemented by the device 100.

[0041] The electronic device 100 further comprises, for example, a secure element 103 (SE) adapted to process sensitive and / or secret data. The secure element 103 may comprise its own processor(s), its own memory(s), etc. The secure element 103 may, furthermore, be adapted to implement an architecture software of the type of software architecture described in relation to [Fig.2].

[0042] In the remainder of the description, sensitive data and secret data are data whose content is not intended to be public, and therefore, access to which is restricted to certain people and / or particular circuits.

[0043] The electronic device 100 may further comprise interface circuits 104 (IN / OUT) adapted to send and / or receive data originating from outside the device 100. The interface circuits 104 may further be adapted to implement a data display system, for example, a screen.

[0044] The electronic device 100 further comprises different circuits 105 (FCT1) and 106 (FCT2) adapted to perform different functions. For example, the circuits 105 may comprise measurement circuits, data conversion circuits, electronic or electromechanical equipment control circuits, etc.

[0045] The electronic device 100 further comprises one or more data buses 107 adapted to transfer data between its different components.

[0046] [Fig.2] represents, very schematically and in the form of blocks, an embodiment of a software architecture, or software system 200.

[0047] The architecture, or system, 200 comprises: - a shared and secure software platform 201 (Platform); - one or more secure software applications 202 (Service); - one or more memories 203 (MEM); and - at least one secure operating system 204 (Secure OS).

[0048] The shared software platform 201 is software used to implement the application(s) 202. More particularly, the platform 201 is adapted to communicate with the applications, and, more particularly, to receive and transmit data to them. According to one embodiment, the platform 201 is adapted to manage the storage of data used by the software application(s) 202. According to one example, the software platform 201 is designed by an original equipment manufacturer (OEM), or manufacturer, different from the electronic device, such as the processor or the secure element, implementing it.

[0049] Here we call the original equipment manufacturer, or simply manufacturer, the initial designer of an element, such as a circuit, a device or software.

[0050] The secure software application(s) 202 (Service) are secure software adapted to implement one or more functionalities. An application 202 may also be called a software service, or simply a service. According to one embodiment, an application 202 is implemented from its execution code, and may use digital resources (Assets).

[0051] Here we call execution code the set of data and instructions forming the or the programs implemented by an application. When an application is updated, its execution code is modified. Without execution code, a 202 application cannot function.

[0052] In addition, a digital resource is herein one or more data used during and by an application for its operation. This data can be collected, generated, and / or processed by said application. A digital resource can be data stored temporarily by the application, or stored more durably by the application. An application 202 does not necessarily need a digital resource to operate. When an application is updated, the digital resources are not modified. A digital resource is generally considered to be sensitive and / or secret data.

[0053] According to one embodiment, each software application 202 may be designed by a manufacturer different from the manufacturer of the software platform 201 and the manufacturer of the electronic device, such as the processor or the secure element implementing them. Similarly, different applications may have different manufacturers.

[0054] Each application 202 is adapted to communicate with the platform 201, and, more generally, is adapted to be implemented or executed by the platform 201.

[0055] The memory or memories 203 represent the accesses to the different memory or memories of the device implementing the system 200. Among these memories, there is at least one part of a memory whose access is strictly reserved for the platform 201, and at least one part of a memory used for storing the digital resources of the applications 202. It is the platform 201 which is adapted to manage the memory accesses. The applications 202 do not have direct access to the memories 203.

[0056] The secure operating system 204 is, for example, the operating system of the electronic device, such as a processor or a secure element, implementing the system 200. The operating system 204 is adapted to communicate with the platform 201, but also, according to an example not shown, with the memories 203 and the applications 202.

[0057] According to one embodiment, each application 202 is adapted to be identified to the platform 201 by means of a random number Rand. This random number Rand is stored encrypted in, for example, the execution code of each application, or in an element separate from its execution code to facilitate its protection and use. According to one example, this random number Rand is generated by the manufacturer of the application 202. The use of this random number is described in relation to the modes of implementation of the methods described in relation to FIGS. 3 and 4.

[0058] [Fig. 3] is a block diagram illustrating a mode of implementation of an initialization method 300 of an electronic device of the type of electronic device 100 described in relation to [Fig.l] implementing a system, or architecture, of the type of system 200 described in relation to [Fig.2].

[0059] The initialization method 300, or boot method, is the method of starting the device and the system. This method is necessarily implemented before any implementation of an application of the system.

[0060] At a step 301 (BOOT START), the device and the system start. Each application presents its execution code to the shared software platform. According to one embodiment, the execution code of each application is encrypted. Step 301 is followed by two steps 302 (E(rand)-> rand) and 303 (Image Payload Decryption).

[0061] In step 302, the random number Rand allowing the identification of the application is extracted from the execution code of the application by the platform. According to one embodiment, the random number Rand is encrypted like the execution code of the application. The platform is adapted to decrypt the random number.

[0062] At a step 304 (rand -> rand2), following step 302, the platform can, according to one example, apply a derivation function to the random number Rand obtained at step 303. According to one example, the derivation function is a function adapted to provide a new secret data item from a first secret data item, such as a new random number from a first random number. According to one example, the derivation function is a pseudo-random function. The platform therefore provides a derived random number Rand2 from the decrypted random number Rand obtained previously. In practice, each electronic device implementing the initialization method 300 comprises a derivation function adapted to provide a random number different from the random numbers provided by derivation functions of other devices.So, according to one example, the derivation function is a physically unclonable function (PUF).

[0063] At a step 305 (Storage), following step 304, the platform stores the derived random number Rand2 in a part of a memory of the device which is only accessible to the platform. This derived random number Rand2 is used to verify the concordance between a random number extracted from the execution code of a first application and that of a second application having already been received by the platform. An advantage of using a random number is that it constitutes data whose value is almost unique and which is difficult to find by cryptographic means.

[0064] The random number Rand is only known by the device implementing the method 300, and is never stored decrypted during the implementation of steps 301 to 304. The derived random number Rand2 can, for its part, be shared with other devices, for example directly or in an encrypted manner.

[0065] In step 303, following step 301, the encrypted execution code of the application is decrypted and / or authenticated. According to one embodiment, the execution code is decrypted, by the platform, using a decryption key that is known only to the manufacturers of the application and the platform, or device implementing the platform. In particular, the decryption key is not known to other application manufacturers.

[0066] In a step 306 (Storage), the decrypted execution code of the application is stored, by the platform, in a part of a memory which is only accessible to the manufacturers of the application and the platform, or device implementing the platform. In particular, the part of memory is not known to other application manufacturers.

[0067] Steps 302 to 306 are implemented for each application included in the system.

[0068] [Fig.4] comprises two block diagrams (A) and (B) illustrating modes of implementation of a method 400 for storing digital resources and a method 450 for retrieving digital resources. These methods are suitable for being implemented by an electronic device of the type of the electronic device 100 described in relation to [Fig.1] implementing a system of the type of the system 200 described in relation to [Fig.2].

[0069] The methods 400 and 450 are necessarily implemented after the implementation of the method 300 described in relation to [Fig. 3]. Thus, the random numbers identifying each application of the system have already been derived and stored by the shared software platform. In other words, the derived random number Rand2 of [Fig. 3] has already been stored by the shared software platform, for example in a volatile memory by a step of the type of step 305 described in relation to [Fig. 3]. According to an alternative embodiment, the derived random number Rand2 of [Fig. 3] can be stored in a non-volatile memory, this has the advantage of saving time at each start-up and avoiding a decryption operation which can be time-consuming.

[0070] In a step 401 (Asset), an application of the type of one of the applications 202 described in relation to [Fig. 2] wishes to store digital resources in memory. According to one example, the digital resources concerned are sensitive and / or secret data provided to the application by external means, or sensitive and / or secret data generated by the application.

[0071] In a step 402 (Send), subsequent to step 401, the application sends the digital resources to be stored to the platform. According to one example, the platform may encrypt the digital resources using the derived random number associated with the application as an encryption key. According to another example, the platform may sign the digital resources using the derived random number.

[0072] At a step 403 (Store), following step 402, the platform stores the digital resources in a part of a memory associated with the derived random number, i.e. the random number Rand2 of [Fig.3]. According to one example, said portion of memory is only accessible to the shared software platform. According to a variant, said portion of memory is only accessible to the shared software platform and to the manufacturer of said application.

[0073] At a step 451 (Want Access), an application of the type of one of the applications 202 described in relation to [Fig.2] wishes to have access to digital resources stored in memory, for example to be able to implement certain of its functionalities.

[0074] At a step 452 (Req), following step 451, the application sends a request to the shared software platform, indicating that it wishes to recover the digital resources associated with its random number.

[0075] In a step 453 (Verif), following step 452, the platform verifies the concordance between the random number derived from the application that formulated the request and the derived random numbers that it has stored in a part of memory. For this, the platform uses the random number derived from said application, of the type of the random number rand2 of [Fig. 3]. According to a first example, the derived random number can be simply compared to all the derived random numbers stored by the platform. According to a second example, the derived random number received can be compared to the random number associated with the digital resources and / or the part of memory storing digital resources to which the application requests access.According to a third example, if the derived random number is used to sign or encrypt digital resources, then the received random number is used to verify whether it is the one that was used to sign or encrypt the digital resources. Two of the three or all three examples cited above can be implemented successively or simultaneously in step 453. If step 453 results in success (output Y of step 453), a step 454 (Access) is implemented, otherwise (output N of step 454) is implemented.

[0076] At step 454, the platform has found digital resources associated with the random number of said application. The platform provides these resources to the application.

[0077] At step 455, the platform has not found a digital resource associated with the random number of said application. The platform therefore does not provide a resource to the application. According to one example, the platform may provide error data to the application.

[0078] In one example, an application may change its random number during an update of its runtime code. This allows the platform to not provide a digital resource stored by an earlier version of an application to a newer version of that application. In one specific example, this allows the platform to thwart an application substitution attack.

[0079] Additionally, according to one example, if a platform detects that an application associated with a first random number has changed its random number to a second random number, a possibility of deleting the stored digital resources may be considered. Similarly, according to one example, if a platform detects that an application associated with a first random number has changed its random number to a second random number, the new version of the application may be uninstalled and an older, more secure version may be reinstalled.

[0080] Various embodiments and variations have been described. Those skilled in the art will understand that certain features of these various embodiments and variations could be combined, and other variations will occur to those skilled in the art.

[0081] Finally, the practical implementation of the embodiments and variants described is within the reach of those skilled in the art from the functional indications given above.

Claims

Claims

1. System (200) comprising at least a first application (202) and a shared software platform (201), in which each application (202) is identified by said software platform (201) by a first random number, said first random number being stored encrypted in an execution code of said first application (202), and a second number representative of said first random number being stored in a first part of a memory only accessible to said platform (201).

2. The system of claim 1, wherein said second number representative of said first random number is generated by said software platform (201).

3. The system of claim 1 or 2, wherein said first random number is generated by a first original equipment manufacturer of said first application (202).

4. System according to any one of claims 1 to 3, wherein said first random number is modified during an update of said first application (202).

5. A system according to any one of claims 1 to 4, wherein said execution code of said first application (202) is stored in a second portion of a memory which is not accessible to a second original equipment manufacturer of a second application (202) implemented by said platform (201).

6. System according to any one of claims 1 to 5, being a secure operating system embedded in a secure element.

7. Method for initializing (300) a system according to any one of claims 1 to 6, comprising the following successive steps: - sending, by said first application (202), said encrypted execution code to said platform (201); - extracting, by said platform (201), said first random number; - generating, by said platform (201), said second number; and - storing said second number.

8. Method according to claim 7, further comprising the following successive steps: - decrypting, by said platform (201), said encrypted execution code with a first decryption key; and - storing said decrypted execution code.

9. A method according to claim 8 as appended to claim 5, wherein said decrypted execution code is stored in said second memory portion.

10. A method according to claim 8 or 9 as appended to claim 5, wherein said key is not known to said second original equipment manufacturer.

11. Method for storing (400) at least one first digital resource of said first application (202) of the system according to any one of claims 1 to 6, wherein said platform (201) stores said at least one digital resource and associates it with said second number.

12. The method of claim 11, wherein the platform (201) uses said second number to sign and / or encrypt said at least one first digital resource.

13. A method according to claim 11 or 12, wherein said at least one first digital resource is stored in a third part of a memory.

14. Method for recovering (450) at least one second digital resource associated with a third number by a third application (202) identified by a fourth random number, implemented by the system according to any one of claims 1 to 6, in which said platform (201) verifies the concordance of said third and fourth numbers.

15. Method according to claim 14, wherein if the match is verified, said at least one second resource is transmitted to said third application (202) by said platform (201).

16. Method according to claim 14 or 15, wherein if the match is not verified, an error is transmitted to said third application (202) by said platform (201).

Citation Information

Patent Citations

  • Secure software installation

    US20130061314A1

  • Host-convertible secure enclaves in memory that leverage multi-key total memory encryption with integrity

    US20210064546A1