Device and method for providing protected data, microcontroller system and sensor system
The device and method for providing protected data in electronic devices ensure that only authenticated firmware is used by preventing user access to writable memory during initialization and locking down the memory area post-authentication, thereby preventing unauthorized operation and ensuring system reliability.
Patent Information
- Application Number
- PCT/EP2024/054350
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-22
- Filing Date
- 2024-02-21
- Publication Date
- 2024-08-29
AI Technical Summary
In electronic devices where firmware can be modified, there is a risk of faulty or unauthorized software being introduced, which can compromise system reliability and safety, necessitating a method to detect and prevent such software from executing.
A device and method that utilize a control device to prevent user access to a writable memory during initialization, allowing only authenticated data to be written and verified, ensuring that only authenticated data is used by the system, with the memory area being protected from further write access post-authentication.
This approach ensures that only correct and authorized data is used, preventing unauthorized operation and ensuring system reliability by confirming data authenticity during the initialization phase and locking down the memory area to prevent data manipulation during operation.
Smart Images

Figure EP2024054350_29082024_PF_FP_ABST
Abstract
Description
[0001] Description
[0002] title
[0003] Device and method for providing protected data, microcontroller system and sensor system
[0004] Technical area
[0005] The present invention relates to a device and a method for providing protected data. The present invention further relates to a microcontroller system and a sensor system comprising such a device.
[0006] State of the art
[0007] In many electronic devices, at least part of their functionality is implemented using software. For this purpose, a program code, also called firmware, can be executed by a microcontroller or similar device. This firmware can be provided, for example, via a ROM (read-only memory) or similar device. This prevents subsequent modification of the program code. Alternatively, the firmware can also be provided via rewritable memory. This allows for later modifications and software updates.
[0008] The publication DE 10 2015 209 116 A1, for example, describes a method and update gateway for updating an embedded control unit, such as can be used in motor vehicles.
[0009] For systems where the firmware can be subsequently modified, it is desirable to detect faulty or unauthorized software and, if necessary, prevent its execution.
[0010] Disclosure of the Invention The present invention provides a device and a method for providing protected data, as well as a microcontroller system and a sensor system having the features of the independent claims. Further advantageous embodiments are the subject of the dependent claims.
[0011] Accordingly, it is provided:
[0012] A device for providing protected data, comprising a rewritable storage device and a control device. The control device is configured to initially prevent a user instance from reading and writing to the storage device during an initialization phase, while enabling an initialization unit to write to the storage device. Furthermore, the control device is configured to subsequently completely prevent writing to the storage device and subsequently verify the data stored in the storage device. This verification can confirm the authenticity of the stored data. The control device can then enable the user instance to read the verified stored data if the authenticity of the stored data has been confirmed.
[0013] Furthermore, it is planned:
[0014] A microcontroller system comprising a device according to the invention for providing protected data, an initialization unit, and a user instance. The initialization unit is designed to provide operating data for the microcontroller system during the initialization phase. In particular, the operating data is provided to the device for providing the protected data. The user instance comprises a microcontroller. The microcontroller is designed to receive and process the protected data from the device for providing protected data after the initialization phase.
[0015] Furthermore, it is planned:
[0016] A sensor system with a microcontroller system according to the invention, wherein the
[0017] User instance is configured to receive sensor data from a sensor and process the data using the protected data from the protected data providing device.
[0018] Finally, it is planned:
[0019] A method for providing protected data, comprising a step for preventing a user instance from reading from and writing to a writable storage device. The method further comprises a step for subsequently writing to the storage device by an initialization unit. The method further comprises a step in which the initialization unit then completely prevents writing to the storage device. The method further comprises a step for checking the data stored in the storage device. This check can confirm the authenticity of the stored data. Finally, the method comprises a step for enabling the user instance to read the data stored in the storage device if the authenticity of the data stored in the storage device has been confirmed.
[0020] Advantages of the invention
[0021] The present invention is based on the realization that in technical systems, part of the functionality can be implemented by software. This software, also called firmware, can be subsequently modified or updated if necessary. This poses the risk that the intended software may be replaced by faulty or unauthorized software. However, to ensure trouble-free and reliable functionality, it is desirable to detect faulty or unauthorized software and prevent its use.
[0022] To this end, the present invention creates a concept that can ensure in a simple and reliable manner that, on the one hand, data such as firmware or the like can be modified or updated, while ensuring that operation with faulty or unauthorized data can be prevented. According to the invention, when a system is started, during an initialization phase, the data to be protected is first transferred to a rewritable memory and then the authenticity of this data is checked. Only if the authenticity of this data can be confirmed is the checked data then released for use by a user instance. Furthermore, the memory area with the authenticated data is protected from further write access during operation, so that modification of the authenticated data is no longer possible during operation.
[0023] This makes it possible to operate a technical system with subsequently replaceable data while still ensuring that the data used is correct and authenticated. Operation with incorrect or unauthorized data can thus be reliably prevented.
[0024] Through the inventive verification of the data to be protected and the concept applied therein, which can also reliably prevent manipulation of the data to be protected during operation, it is thus possible to ensure the reliability of the data used. In particular, it is not possible, for example, to operate the system outside of its permissible specifications by importing unauthorized data or software. This prevents damage, destruction, or other risks due to unauthorized operation with unauthenticated data.
[0025] Since the data to be protected can be easily provided by the initialization unit at system startup, i.e., during the initialization phase, subsequent modification or updating of the data can be very easily implemented by loading the relevant data into the initialization unit. Furthermore, no special or complex concept for secure transmission is initially required for the transfer of data from the initialization unit to the storage device during the initialization phase. Rather, the verification and authentication of the data only takes place after transfer from the initialization unit to the storage device. Therefore, it is sufficient if the control device that performs the data authentication has the required integrity.In principle, any type of storage device capable of enabling or disabling write and read accesses in accordance with the inventive concept can be used as the storage device. In particular, storage devices with a very short access time can also be used. This allows for correspondingly fast execution of the corresponding software based on the protected data in the storage device.
[0026] According to one embodiment, the control device is designed to permanently prevent the user instance from reading the storage device if the authenticity of the data stored in the storage device has not been confirmed. In particular, the user instance can permanently prevent the data from being read from the storage device until a further initialization phase. This prevents the user instance from receiving faulty or unauthenticated data from the storage device. If a new initialization phase occurs at a later time, in which new data can be written to the storage device by the initialization unit, the data can then be checked again and, if necessary, authenticated.Until then, however, it can be ensured that the user instance is not operated with incorrect or unauthenticated data.
[0027] According to a further embodiment, the control device is designed to verify the authenticity of the data stored in the storage device using authentication data permanently stored in the control device. This authentication data can be, for example, a cryptographic key or the like. It is also possible, for example, to determine the authenticity of the data to be verified using an algorithm stored in the control device for calculating a checksum or the like. Furthermore, the control device can, of course, also determine the authenticity of the data in the storage device in any other way and, if necessary, use fixed and thus immutable data in the control device.
[0028] According to one embodiment, at least the memory device and the control device are integrated into a common semiconductor component. This ensures that connections between the memory device and the control device cannot be compromised by external manipulation. Optionally, at least parts of the user instance or the entire user instance can also be integrated into the shared unit of the memory device and the control device. Thus, the data transmission between the memory device and the user instance can also be protected from external manipulation.
[0029] According to one embodiment, the storage device is designed to be communicatively coupled to the user instance via a protected connection. As already explained above, this may involve, for example, integrating the user instance or at least parts of the user instance on the same assembly as the storage device and the control device. Alternatively, however, any other concepts for protecting the data connection between the storage device and the user instance are also possible.
[0030] According to one embodiment, the control device is designed to receive address information for a protected memory area in the memory device. Based on this address information, the initialization unit's writing to the memory device, the checking of the stored data in the memory device, and the enabling of the reading of the stored data by the user instance can be applied to the memory area of the memory device specified by the address information. Furthermore, additional parts of the memory device outside the memory area specified by the address information can optionally be used for other applications. In particular, the parts of the memory device not specified by the address range of the address information can also be enabled for write and read access, for example by the user instance.
[0031] According to one embodiment, the control device is designed to release memory areas outside the protected memory area specified by the address information for read and write operations by the user instance. This allows for particularly efficient use of the memory device, since the memory device can be used as conventional RAM (Random Access Memory) and, in addition, can also provide the protected, authenticated data for the user instance. The above embodiments and refinements can be combined with one another as desired, where appropriate. Further embodiments, refinements, and implementations of the invention also include combinations of features of the invention not explicitly mentioned above or described below with respect to the exemplary embodiments.In particular, the person skilled in the art will also add individual aspects as improvements or additions to the respective basic forms of the invention.
[0032] Short description of the drawings
[0033] Further features and advantages of the invention are explained below with reference to the figures. These show:
[0034] Fig. 1: a schematic representation of a block diagram of an apparatus for providing protected data according to an embodiment;
[0035] Fig. 2: a schematic representation of a block diagram of a device for providing protected data according to another embodiment; and
[0036] Fig. 3: a flowchart underlying a method for providing protected data according to one embodiment.
[0037] Description of embodiments
[0038] Figure 1 shows a schematic representation of a block diagram of a device 1 for providing protected data according to one embodiment. The protected data that can be provided by this device 1 can be, for example, software, in particular firmware for operating a technical system. The protected data can, for example, comprise operating data or parameters for configuring a technical system, in particular a sensor system such as a radar sensor or the like. Furthermore, any other types of data are also possible, which should preferably be provided as data that should be protected from manipulation. In principle, the inventive concept can be applied to almost any technical system.For example, software for an entertainment electronics device such as a smartphone, tablet computer, or the like can be provided based on the inventive concept. Furthermore, the protected data can also be used for any other systems that, for example, perform software-based data processing using a microcontroller or the like. In particular, the inventive concept can be used, for example, for sensor systems in which sensor-detected signals are processed based on software, or the system is configured based on the protected data, or is operated based on software code in the protected data. For example, such sensor systems can be sensor systems for a motor vehicle. Examples include radar systems, LiDAR, or the like.For example, a radar system can be controlled using data output by the device 1 for providing protected data described below. Such a radar system can, for example, comprise a system on chip (SoC) for processing the radar signals, which uses data originating from such a device for providing protected data.
[0039] The device 1 for providing protected data comprises a storage device 11 in which the data to be protected can be stored. This storage device 11 can, in principle, be implemented using any suitable rewritable memory. The data to be protected, which is stored in this storage device 11, can be provided, for example, to a user instance 2. The user instance 2 can then perform any suitable processing using this provided data. For this purpose, a microcontroller 21 can be provided, for example, in the user instance 2, which performs corresponding processing using the protected data.
[0040] Furthermore, a control device 12 is provided in the device 1 for providing the protected data. This control device 12 can control the data exchange between the storage device 11 and the user instance 2 and, in particular, can enable or disable it according to the following explanations. Furthermore, the control device 12 can also control the storage of the data to be protected by an initialization unit 3. Furthermore, the control device 12 can check and authenticate the data stored in the storage device 11. The concept for storing the data to be protected in the storage device 11, checking the data, and releasing the data for the user instance 2 is explained in more detail below.
[0041] After starting a system with the device 1 for providing the protected data, an initialization phase first occurs. During this initialization phase, access to the storage device 11 by the user instance 2 is completely blocked, i.e., the user instance 2 cannot access the storage device 11 either read or write. Furthermore, during this initialization phase, the initialization unit 3 is initially granted write access to the storage device 11 of the device 1 for providing the protected data. The initialization unit 3 can thus write data to the storage device 11. This data can be data that was previously provided in the initialization unit 3 in any desired manner. For example, this data can be stored in a non-volatile memory of the initialization unit 3 using a special programming device.In principle, any wired or wireless interface is possible for storing the data in the initialization unit 3. Likewise, for example, it is possible to provide the desired data in the initialization unit 3 using a memory card, such as an SD memory card or similar. However, any other concepts for providing the desired data to the initialization unit 3 are also possible. In principle, no special protection is required either for storing the data in the initialization unit 3 or for transmitting the protected data from the initialization unit 3 to the storage device 11 of the apparatus 1. Of course, suitable protective measures can be taken if necessary to prevent the intentional or inadvertent loading of faulty or unauthorized data into the initialization unit 3.
[0042] After the data has been transferred from the initialization unit 3 to the storage device 11, further external access to the storage device 11 is completely prevented. Thus, the initialization unit 3 can no longer write to the storage device 11 in the future. The control device 12 then checks the data transferred by the initialization unit 3 to the storage device 11. For this purpose, the data can be checked, for example, by forming a checksum. Furthermore, any other methods for checking the data in the storage device 11 are also possible. In particular, cryptographic methods can be used, for example. For this purpose, a corresponding key for a cryptographic analysis of the data in the storage device 11 can be permanently stored in the control device 12.Alternatively, any other data, parameters, algorithms, or the like can be stored in the control device 12, enabling verification of the data in the storage device 11. If the data in the storage device 11 is successfully verified, the authenticity of the data in the storage device 11 can be confirmed. In this case, the verified data can subsequently be made available for reading by the user instance 2. This means that the user instance 2 can read the data stored in the storage device 11 after the authenticity of this data has been confirmed by the control device 12.
[0043] If, however, the authenticity of the data in the storage device 11 cannot be confirmed by the control device 12, access, in particular read access to the corresponding data, by the user instance 2 will continue to be prevented. Operation of the user instance 2 using the data from the storage device 11 is thus only possible if the authenticity of the data has been confirmed. Otherwise, the user instance 2 cannot access the data in the storage device 11. Thus, operation of the user instance 2 using unauthorized or faulty data from the storage device 11 can be prevented.
[0044] The status for releasing authorized data or preventing read access by user instance 2 is generally maintained during further operation until the system is shut down or reinitialized.
[0045] Figure 2 shows a schematic representation of a block diagram of a device 1 for providing protected data according to a further embodiment. The embodiment according to Figure 2 differs from the previously described embodiment in particular in that the data to be protected is stored only in one partition or sub-area 11a of the storage device 11. Further areas or the remainder of the storage device 11 can also be used for any read or write / read access.
[0046] The subarea 11a for storing the data to be protected can be specified by suitable address information. This address information can be provided, for example, by a corresponding external or internal component 15. Preferably, the address information or the storage area 11a with the data to be protected is fixed and cannot be subsequently modified.
[0047] The initialization phase, in which the memory area 11a is protected from access by the user instance 2, then the data to be protected are written into the memory area 11a by the initialization unit 3, this data is checked by the control device 12 and, upon authentication of the checked data, read access is released by the user instance 2, takes place analogously to the embodiment previously described in connection with Figure 1.
[0048] Furthermore, any access, in particular read and write access, can be granted to memory areas outside of the protected memory area 11a by user instance 2. Thus, the memory areas outside of the sub-area 11a are available for further use by user instance 2.
[0049] The control, in particular the enabling or prohibiting of write or read access to the storage device 11 or the sub-area 11a, can be carried out, for example, by suitable components 13 or 14. For example, the component 13 between the initialization unit 3 and the storage device 11 can initially grant write access to the storage device 11 during the start of the initialization phase of the initialization unit 3. After the write processes have been completed by the initialization unit 3, further write access to the storage device 11 or the sub-area 11a can then be permanently prevented until a restart or a new initialization. The component 14 between the storage device 11 and the user instance 2 can accordingly initially prevent all access by the user instance 2 to the storage device 11 until the authenticity of the data to be protected in the storage device 11 orthe sub-area 11a has been confirmed. Subsequently, if authenticity is confirmed, read access to the storage device 11 or the sub-area 11a can be granted. If, in the embodiment according to Figure 2, write and read access to areas of the storage device 11 outside of the sub-area 11a is also to be granted, this can also be controlled by the corresponding component 14.
[0050] For example, suitable logic circuits or the like can be provided in components 13 and 14 for this purpose.
[0051] Figure 3 shows a flowchart underlying a method for providing protected data according to one embodiment. The method can, in principle, comprise any steps as previously described in connection with the devices 1 according to Figures 1 and 2. Accordingly, the previously described devices 1 for providing the protected data can also comprise any components required to implement the method described below.
[0052] In step S1, the reading and writing of a writable storage device 11 by a user instance 2 is prevented. In other words, the user instance 2 is initially unable to have either write or read access to the writable storage device 11.
[0053] In step S2, the memory device 11 is then written to by an initialization unit 3.
[0054] After the initialization unit 3 has written to the memory device 11, further access by the initialization unit 3, in particular write access to the memory device 11, is prevented in step S3.
[0055] Subsequently, in step S4, the data stored in the storage device 11 is checked, in particular the data written into the storage device 11 by the initialization unit 3. If the data is successfully checked, the authenticity of the stored data can be confirmed.
[0056] In step S5, the user instance 2 then authorizes the reading of the verified data stored in the storage device 11 if the authenticity of the data stored in the storage device 11 has been confirmed.
[0057] Alternatively, in step S6, access to the storage device 11 can be permanently blocked if the authenticity of the data stored in the storage device could not be confirmed. Access to the storage device 11 is blocked until a later re-initialization.
[0058] In summary, the present invention relates to a device and a method for providing protected data, for example, firmware, parameterization, or the like. The data to be protected is written to a storage device during an initialization phase. Subsequently, all access to the storage device is initially blocked, the authenticity of the data is verified, and read access to the data to be protected is granted only if authenticity is confirmed.
Claims
Claims 1. Device (1) for providing protected data, comprising: a multi-writable storage device (11); and a control device (12) which is designed, during an initialization phase, to first prevent reading and writing to the storage device (11) by a user instance (2) and to enable writing to the storage device (11) by an initialization unit (3), then to prevent writing to the storage device (11), to check the data stored in the storage device (11) in order to confirm the authenticity of the stored data, and to enable reading of the storage device (11) by the user instance (2) only if the authenticity of the data stored in the storage device (11) has been confirmed.
2. Device (1) according to claim 1, wherein the control device (12) is designed to prevent the reading of the storage device (11) by the user instance (2) until a further initialization phase if the authenticity of the data stored in the storage device (11) has not been confirmed.
3. Device (1) according to claim 1 or 2, wherein the control device (12) is designed to check the authenticity using authentication data permanently stored in the control device (12).
4. Device (1) according to one of claims 1 to 3, wherein at least the memory device (11) and the control device (12) are integrated in a common component, in particular a common semiconductor component.
5. Device (1) according to one of claims 1 to 4, wherein the storage device (11) is designed to be communicatively coupled to the user instance (2) via a protected connection.
6. Device (a) according to one of claims 1 to 5, wherein the control device (12) is designed to provide address information for a protected memory area (11a) of the memory device (11), and to apply the writing of the memory device (11) by the initialization unit, the checking of the stored data and the enabling of the reading of the stored data by the user instance (2) to a memory area (11a) of the memory device (11) protected by the address information.
7. Device (1) according to claim 6, wherein the control device (12) is designed to release memory areas outside the protected memory area (11a) specified by the address information for read and write operations by the user instance.
8. A microcontroller system, comprising: a device (1) for providing protected data according to one of claims 1 to 7; an initialization unit (3) designed to provide operating data for the microcontroller system to the device (1) for providing the protected data during the initialization phase; and a user instance (2) with a microcontroller, designed to receive the protected data from the device (1) for providing protected data after the initialization phase and to process the received protected data by means of the microcontroller.
9. A sensor system, comprising: a microcontroller system according to claim 8; wherein the user instance (2) is configured to receive sensor data from a sensor and to process the protected data using the protected data received from the device for providing protected data.
10. Procedure for providing protected data, comprising the steps: Preventing (Sl) reading and writing of a writable storage device (11) by a user instance (2); Writing (S2) to the memory device by an initialization unit (3); Preventing (S3) the initialization unit (3) from writing to the memory device; Checking (S4) the data stored in the storage device (11) to confirm the authenticity of the stored data; and Enabling (S5) the reading of the verified data stored in the storage device (11) by the user instance (2) if the authenticity of the data stored in the storage device (11) has been confirmed.
Citation Information
Patent Citations
Method and update gateway for updating an embedded control device
DE102015209116A1
Method for performing a secure start sequence of a control unit
DE102020207866A1
Dynamic configuration and peripheral access in a processor
US20180157603A1
Method for securely updating control units
US20210406361A1
Method for checking data in a computer unit
WO2024056443A1
