Apparatus, method and computer program for executing an executable file
By introducing the noise injection mode during the execution of the executable file, and using the processing circuit to identify trigger events to activate or deactivate noise injection, the protection problem of existing software in side channel attacks is solved, and security improvement and performance balance are achieved.
Patent Information
- Application Number
- CN202311846220.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-26
- Filing Date
- 2023-12-29
- Publication Date
- 2024-10-29
AI Technical Summary
Existing software is difficult to effectively protect against side-channel attacks, especially when old software is still in use and the risk of upgrading or patching is high, especially in highly regulated areas where traditional protection measures are costly or difficult to implement.
By introducing noise injection mode during the execution of the executable file, using processing circuitry to identify trigger events to activate or deactivate noise injection, and indicating through the execution manifest whether the noise injection mode needs to be activated, without affecting software correctness and performance Improve security.
It effectively defeats side-channel attacks, reduces the risk of sensitive information leakage to software, and avoids performance losses caused by noise injection. It is suitable for the protection of existing software and does not require recompilation or redeployment.
Smart Images

Figure HDA0004639829810000011 
Figure HDA0004639829810000012 
Figure HDA0004639829810000021
Abstract
Description
Technical Field
[0001] The present disclosure relates to an apparatus, method and computer program for executing an executable file, and a method for distributing software or firmware. Background Art
[0002] Side-channel attacks on software are techniques used to extract sensitive information by measuring behavior-related data. These attacks often exploit a computer's power consumption, electromagnetic emissions, or timing behavior. Examples of side-channel attacks include, but are not limited to, power analysis, electromagnetic analysis, acoustic analysis, and cache-based attacks. Side-channel attacks (SCA) are becoming increasingly popular, to the point where new techniques and threat classes are emerging at a rate that even software development lifecycle methodologies and strategies are having trouble keeping up. Even software components that are considered "secure" today may be vulnerable to future threats.
[0003] In an ideal scenario, software would still be maintained and patchable, so any newly discovered threats could be analyzed, the vulnerabilities corrected in the code, and a new, fixed version released. In reality, some code may have a long lifespan or be difficult to redeploy. As a result, old software is still in use after its support period has ended. This is a real-world problem, especially in highly regulated or specialized fields such as industry, finance, healthcare, or military / government, where every simple change requires an expensive testing and recertification process, and the "risk of change" is high enough that even upgrading to a patched version may be considered too risky. Furthermore, in some cases, patches simply cannot be produced, for example because the software is integrity-protected against tampering (e.g., by signing), and the original software vendor is no longer in business, the source code is not available, and / or the signing key used to sign the software is no longer available. Summary of the invention
[0004] According to one aspect of the present disclosure, a device for executing an executable file is provided, the device comprising an interface circuit, machine-readable instructions, and a processing circuit, the processing circuit being used to execute the machine-readable instructions to perform the following operations: identifying a trigger for activating or deactivating a noise injection mode for the executable file during execution of the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file; and activating or deactivating the noise injection mode based on the identified trigger.
[0005] According to one aspect of the present disclosure, a method for executing an executable file is provided, the method comprising: identifying a trigger for activating or deactivating a noise injection mode for the executable file during execution of the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file; and activating or deactivating the noise injection mode based on the identified trigger.
[0006] According to one aspect of the present disclosure, a method for executing an executable file is provided, the method comprising: processing an execution list, the execution list indicating whether a noise injection mode needs to be activated when executing the executable file, the noise injection mode being suitable for introducing noise during the execution of the executable file; and executing the executable file based on the execution list by activating or deactivating the noise injection mode based on the execution list.
[0007] According to one aspect of the present disclosure, a method for distributing software or firmware is provided, the method comprising: providing an executable file of the software or firmware; and providing the execution manifest by bundling the execution manifest with the executable file, the execution manifest indicating whether a noise injection mode needs to be activated when executing the executable file, the noise injection mode being suitable for introducing noise during the execution of the executable file. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Some examples of apparatus and / or methods will be described below by way of example only with reference to the accompanying drawings, in which:
[0009] Figure 1a A schematic diagram showing an example of an apparatus or device for executing an executable file and a computer system including such an apparatus or device;
[0010] Figure 1b A flow chart illustrating an example of a method for executing an executable file;
[0011] Figure 2a A schematic diagram showing an example of another apparatus or device for executing an executable file and a computer system including such an apparatus or device;
[0012] Figure 2b A flow chart illustrating an example of another method for executing an executable file;
[0013] Figure 3 A flowchart illustrating an example of a method for distributing software or firmware; and
[0014] Figure 4 A schematic diagram showing components of an example of a concept for executing an executable file is shown. DETAILED DESCRIPTION
[0015] Some examples are now described in more detail with reference to the accompanying drawings. However, other possible examples are not limited to the features of these embodiments described in detail. Other examples may include modifications to these features, as well as equivalents and replacements to these features. In addition, the terms used herein to describe some examples should not limit other possible examples.
[0016] Throughout the description of the drawings, the same or similar reference numerals refer to the same or similar elements and / or features, which may be the same or implemented in a modified form while providing the same or similar functions. The thickness of the lines, layers and / or regions in the drawings may also be exaggerated for clarity.
[0017] When two elements A and B are combined using "or", this should be understood to disclose all possible combinations, i.e., only A, only B and A and B, unless otherwise explicitly defined in individual cases. As an alternative wording for the same combination, "at least one of A and B" or "A and / or B" can be used. This applies equally to combinations of more than two elements.
[0018] If singular forms such as "a", "an" and "the" are used, and there is no explicit or implicit limitation that only a single element is mandatory, other examples may also use several elements to achieve the same function. If a function is described below as being implemented using multiple elements, other examples may use a single element or a single processing entity to achieve the same function. It is also understood that the terms "comprises" and / or "comprising" when used describe the presence of specified features, integers, steps, operations, processes, elements, components and / or groups thereof, but do not exclude the presence or addition of one or more other features, integers, steps, operations, processes, elements, components and / or groups thereof.
[0019] In the following description, specific details are set forth, but examples of the technology described herein can be implemented without these specific details. Well-known circuits, structures, and techniques are not shown in detail to avoid obscuring the understanding of this specification. "An example / example", "various examples / examples", "some examples / examples", and the like may include features, structures, or characteristics, but not every example necessarily includes the particular feature, structure, or characteristic.
[0020] Some examples may have some, all, or none of the features described for other examples. "First," "second," "third," and the like describe common elements and indicate that different instances of similar elements are mentioned. Such adjectives do not mean that the element items so described must be in a given sequence (whether in time or space, in ranking, or in any other manner). "Connected" may indicate that elements are in direct physical or electrical contact with each other, while "coupled" may indicate that elements cooperate or interact with each other, but they may or may not be in direct physical or electrical contact.
[0021] As used herein, the terms "operate," "execute," or "run" are used interchangeably when referring to software or firmware associated with a system, device, platform, or resource, and may refer to software or firmware stored in one or more computer-readable storage media accessible to the system, device, platform, or resource, even if the instructions contained in the software or firmware are not being actively executed by the system, device, platform, or resource.
[0022] The description may use the phrases "in an example / example", "in an example / example", "in some examples / examples", and / or "in various examples / examples", each of which may refer to one or more of the same or different examples. In addition, the terms "including", "comprising", "having", etc., used with respect to the examples of the present disclosure, are synonymous.
[0023] Figure 1a A schematic diagram of an example of an apparatus 10 or device 10 for executing an executable file and a computer system 100 including such an apparatus 10 or device 10 is shown. The apparatus 10 includes circuitry for providing the functionality of the apparatus 10. For example, the circuitry of the apparatus 10 may be configured to provide the functionality of the apparatus 10. For example, Figure 1a The apparatus 10 includes an interface circuit 12, a processing circuit 14, and (optionally) a storage circuit 16. For example, the processing circuit 14 may be coupled to the interface circuit 12 and the storage circuit 16. For example, the processing circuit 14 may provide the functionality of the apparatus in combination with the interface circuit 12 (for exchanging information, such as exchanging information with other components inside or outside the computer system 100 including the apparatus or device 10) and the storage circuit 16 (for storing information, such as machine-readable instructions). Similarly, the device 10 may include means for providing the functionality of the device 10. For example, these means may be configured to provide the functionality of the device 10. The components of the device 10 are defined as component means, which may correspond to or be implemented by individual structural components of the device 10. For example, Figure 1aThe device 10 includes: a device 14 for processing, which may correspond to the processing circuit 14 or be implemented by the processing circuit 14; a device 12 for communicating, which may correspond to the interface circuit 12 or be implemented by the interface circuit 12; and (optionally) a device 16 for storing information, which may correspond to the storage circuit 16 or be implemented by the storage circuit 16. In general, the functions of the processing circuit 14 or the device 14 for processing may be implemented by the processing circuit 14 or the device 14 for processing executing machine-readable instructions. Therefore, any characteristics given to the processing circuit 14 or the device 14 for processing may be defined by one or more instructions of a plurality of machine-readable instructions. The device 10 or apparatus 10 may include machine-readable instructions, for example, in the storage circuit 16 or the device 16 for storing information.
[0024] The processing circuit 14 or the means for processing 14 is used to identify a trigger for activating or deactivating a noise injection mode for the executable file during execution of the executable file. The noise injection mode is suitable for introducing noise during execution of the executable file. The processing circuit 14 or the means for processing 14 is used to activate or deactivate the noise injection mode based on the identified trigger.
[0025] Figure 1b A flow chart of an example of a corresponding method for executing an executable file is shown. The method includes identifying 170 a trigger for activating or deactivating a noise injection mode for the executable file during execution of the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file. The method includes activating or deactivating 180 the noise injection mode based on the identified trigger. For example, the method may be performed by a computer system 100, such as by an apparatus 10 or device 10 of a computer system.
[0026] In the following, the functions of the apparatus 10, the device 10, the method and the corresponding computer program will be described with respect to the apparatus 10. The features described in connection with the apparatus 10 may also be included in the corresponding apparatus 10, method and computer program.
[0027] Various examples of the present disclosure relate to temporarily injecting noise during the execution of an executable file (i.e., a compiled software program). As described above, the security and confidentiality of software execution may sometimes be compromised by side-channel attacks. Side-channel attacks on software are techniques for extracting sensitive information by measuring data related to behavior. These attacks typically exploit the power consumption, electromagnetic radiation, or timing behavior of a computer. Examples of side-channel attacks include power analysis, electromagnetic analysis, acoustic analysis, and cache-based attacks. In order to defeat this attack vector, in the present disclosure, a so-called noise injection mode is used to introduce noise, particularly unexpected variability, during the execution of an executable file. For example, in order to defeat attacks that rely on highly accurate timing, a random or deterministic (e.g., pseudo-random, because the attacker does not know, but the protected system may know) delay can be (artificially) introduced into the original instruction to mask the true timing of the original instruction sequence, making it difficult or impossible to obtain knowledge about the true timing, and causing the attacker to observe different (non-real) timing. In this way, the attacker cannot guess meaningful information that can be used to leak confidentiality, for example. Such delays can be introduced, for example, when performing jump or return operations (which are easy to time) or during the execution of critical code (e.g., encryption-related code). Furthermore, the timing of operations can be distorted by running additional instructions in parallel that affect the timing of the executable. Acoustic and electromagnetic noise can be generated by directly controlling the hardware or by executing irrelevant (spurious) operations simultaneously, with the goal of increasing the acoustic or electromagnetic noise level.
[0028] While this technique generally helps to thwart side channel attacks, the injection of noise depends on the identification of a triggering event. This identification of a triggering event is used to enable the "noise injection" to be turned on at the right moment, and turned off immediately when the noise is no longer needed, because any noise artificially injected may result in performance loss, or an increase in energy consumption or heat emission, which is undesirable in most cases. By identifying the trigger, the noise injection can be activated as finely granular as possible to limit the overhead caused by the activation of the noise injection mode. In addition, in some examples, the amount of noise can be changed so as to inject (just) as much noise as is needed in a given scenario.
[0029] connect Figure 1a and Figure 1b, assuming that an executable file may be vulnerable to a side-channel attack. In some examples, while an executable file may be scanned to determine whether it is vulnerable to a side-channel attack, as an alternative measure, the executable file may be provided (e.g., bundled) with information about whether noise injection is required when the executable file is executed (i.e., whether the executable file is vulnerable to a side-channel attack). This information may be part of a so-called execution manifest. For example, the execution manifest may include information about the portions of the executable file into which noise should be injected (e.g., at which times the noise should be injected). In other words, the processing circuitry may process the execution manifest, which may be bundled / co-packaged with the executable file, or may be obtained separately from the executable file. Thus, as Figure 1b As shown, the method may include processing 110 an execution manifest bundled with an executable file. The execution manifest indicates whether noise injection is required when executing the executable file. In other words, the execution manifest may generally indicate whether noise injection is required during the execution of the executable file. In addition, the execution manifest may define one or more types of noise required, specific noise injection means / measures to be used, and / or triggers to be identified during the execution of the executable file. In some examples, the execution manifest may include an execution profile (i.e., profiling information), and information about the triggers to be used is included in the execution profile. In this context, the profiling information is information about the components of the executable file, with information about the memory areas being used and information about the transitions between different parts of the executable file (e.g., functions or basic blocks).
[0030] As an alternative or in addition to using an execution manifest to determine whether an executable file is vulnerable to a side-channel attack, the executable file may also be analyzed to determine whether the executable file is vulnerable, for example, by scanning for known vulnerable patterns, scanning for usage of known vulnerable libraries, and / or scanning for known vulnerable code patterns. Thus, the processing circuitry may determine whether at least a portion of the executable file may be suspected of being vulnerable to a side-channel attack by processing the executable file to determine an execution profile. Thus, if Figure 1b As shown, the method may include determining 130 whether at least a portion of the executable file is suspected of being vulnerable to a side-channel attack by processing 120 the executable file to determine an execution profile. In other words, profiling (e.g., performed in the context of profile-guided optimization) may be performed to determine the execution profile, and the execution profile may be used to determine whether at least a portion of the executable file is suspected of being vulnerable to a side-channel attack.
[0031] A further option is that, in addition to the execution list and the execution profile, information stored in a database (or more generally, a data repository, such as a lookup table, a list, an extensible markup language file, a Java Script object notation file, etc.) can be used to determine whether the executable file or a portion thereof is vulnerable to a side channel attack. Thus, the processing circuit can determine whether at least a portion of the executable file is suspected of being vulnerable to a side channel attack based on a first data repository including information about (specific) executable files that are vulnerable to side channel attacks and / or a second data repository including information about libraries (called by the executable file) that are vulnerable to side channel attacks. Thus, an execution list (or self-determined execution profile) specific to the executable file may not be required, which can improve scalability. Additionally, or alternatively, a computer system-wide policy, a deployment site-wide policy, or an enterprise-wide policy can be used to determine whether noise injection is required, in particular to determine whether the executable file is considered to be vulnerable to a side channel attack. Thus, the method may include determining 130 whether at least a portion of the executable file is suspected of being vulnerable to a side channel attack based on a policy (e.g., a computer system-wide policy, a deployment site-wide policy, or an enterprise-wide policy).
[0032] The above-mentioned execution profile, whether included in the execution manifest or determined, can also be used to identify triggers within the executable file, and in particular to detect the occurrence of triggers during the execution of the executable file. Specifically, the execution profile may include information about one or more code segments and / or one or more memory regions that trigger the activation or deactivation of the noise injection mode. During the execution of the executable file, the information about one or more code segments and / or one or more memory regions that trigger the activation or deactivation of the noise injection mode can be used to identify the presence of a "troublemaker".
[0033] Information about the executable file (or a portion thereof) may also be used to determine whether it is necessary to identify a trigger for activating the noise injection mode at all. In other words, if it is suspected that at least a portion of the executable file is vulnerable to a side channel attack, the processing circuitry may identify a trigger for activating the noise injection mode. Figure 1b As shown, the method may include identifying 170 a trigger for activating a noise injection mode if at least a portion of the executable file is suspected to be vulnerable to a side channel attack. In other cases, if the executable file is not vulnerable, additional work may be avoided by not checking for the trigger (and therefore not activating the noise injection mode).
[0034] Once it is determined whether noise injection is generally desirable (due to policy and / or vulnerability), the amount of noise injection can be selected. In general, while more noise can improve security against side-channel attacks, more noise can also have an adverse effect on the performance, energy consumption, and / or emission noise of individual computer systems. Thus, a balance can be struck between the amount of noise injection and the above effects. For example, the processing circuitry can determine a desired amount of noise injection and activate a noise injection mode at the desired amount of noise injection. Thus, if Figure 1b As shown, the method may include determining 150 a desired amount of noise injection, and activating 180 a noise injection mode with the desired amount of noise injection. This desired amount of noise injection is based on the vulnerability of the executable file during execution on a particular computer system. The vulnerability of the executable file and the specific execution environment of the executable file both have an impact - for example, if several high-precision measurements are required to exfiltrate information, the desired amount of noise injection may be lower than if a single measurement or a coarser measurement is sufficient. In addition, on a busy system that performs a large number of operations simultaneously, the basic noise level may be so high that only a small amount of additional noise may be required to defeat a side channel attack. Both of these aspects can be reflected by a so-called "Minimum Traces to Disclosure" (MTD) parameter, which indicates how many measurements are required (e.g., averaged) to exfiltrate target information or achieve a target result. For example, the processing circuit may determine the desired amount of noise injection based on the "Minimum Traces to Disclosure" (MTD) parameter.
[0035] Taking into account the MTD, another metric may be used as an intermediary to determine the desired amount of noise injection—the desired signal-to-noise ratio. For example, the processing circuit may determine the desired signal-to-noise ratio for the execution of the executable file, and determine the desired amount of noise injection based on the desired signal-to-noise ratio. Thus, if Figure 1bAs shown, the method may include determining 140 the expected signal-to-noise ratio (SNR) of the execution of the executable file, and determining 150 the expected noise injection amount based on the expected signal-to-noise ratio. In general, the signal-to-noise ratio (SNR) defines the amount of noise in the useful signal. For example, the signal-to-noise ratio can be defined by the amount of observations collected in order to recover the secret with a given probability. For example, the SNR can be determined by introducing noise through a processing circuit and measuring whether the side channel effect still allows the secret to be discovered. The noise can be gradually increased until the measurement result shows that the probability of leaking the secret is small enough. The threshold of the probability can be set by the user (for example, in a list). The expected signal-to-noise ratio can be used as a starting point for determining the expected noise injection amount-if the expected signal-to-noise ratio (SNR) is known (the expected MTD can be achieved at the expected signal-to-noise ratio), the expected signal-to-noise ratio can be compared with the current or baseline signal-to-noise ratio (that is, the signal-to-noise ratio without injected noise), and the expected noise injection amount is selected to achieve the expected SNR, thereby determining the expected noise injection amount. Alternatively, the desired amount of noise injection may be determined without calculating the desired SNR. The current (or baseline) signal-to-noise ratio may be determined by benchmarking (i.e., self-testing) the execution environment of the executable file to understand how much noise is already present in the execution environment without injecting additional noise. In other words, the processing circuitry may determine the current (or baseline) signal-to-noise ratio by running the runtime environment 102 (e.g., Figure 1a As shown in FIG. 1 ), at least one of a hypervisor 104 hosting a virtual machine for executing an executable file, an operating system 104 for executing the executable file, and a computer system 106 for executing the executable file performs a self-test when it is started to determine, for example, a current or baseline signal-to-noise ratio to determine the desired amount of noise injection. Therefore, as Figure 1b As shown, the method may include determining the desired amount of noise injection by performing 152 a self-test when at least one of a runtime environment, a hypervisor, an operating system, and a computer system is started. Additionally, or alternatively, the desired amount of noise injection may be determined using the current load of the computer system (e.g., estimating the current SNR and then using the SNR to determine the desired amount of noise injection). In other words, the processing circuit may further determine the desired amount of noise injection based on the load of the computer system used to execute the executable file.
[0036] The expected SNR may vary depending on the current executable - as described above, if several high-precision measurements are necessary to exfiltrate information, the expected amount of noise injection may be lower than if a single or coarser measurement is sufficient. Thus, the processing circuitry may determine the expected signal-to-noise ratio based on the vulnerability (e.g., degree of vulnerability) of the executable to side-channel attacks. For example, the expected signal-to-noise ratio may be obtained from an executable manifest that is bundled / co-packaged with the executable or obtained separately. For example, the expected signal-to-noise ratio may be selected so that the expected MTD can be achieved taking into account the vulnerability of the executable.
[0037] In some cases, the amount of injected noise can also be adjusted via the desired amount of noise injection to suit the current scenario. For example, a heuristic can be used to determine whether a side-channel attack is currently being performed (e.g., by determining a pattern of memory accesses, detecting suspicious use of a high-precision timer), for example, using widely available techniques. Once it is determined that a side-channel attack is being performed, the desired amount of noise injection can be increased to address the threat vector. In other words, the processing circuit can detect a side-channel attack being performed during the execution of the executable file, and further determine the desired amount of noise injection based on whether the side-channel attack is (currently) being performed during the execution of the executable file. Therefore, if Figure 1b As shown, the method may include detecting 154 a side-channel attack being performed during execution of the executable file, and further determining a desired amount of noise injection based on whether the side-channel attack is being performed during execution of the executable file.
[0038] In the proposed concept, the injection of noise is controlled by identifying a trigger. A trigger may be an event or condition that occurs during the execution of an executable file. For example, the processing circuit may execute the executable file and identify a trigger (event or condition) during the execution of the executable file, for example, based on the above-mentioned execution profile. Thus, Figure 1bAs further shown in , the method may include executing 160 an executable file, and identifying 170 a trigger (event or condition) during the execution of the executable file. In some cases, the triggering event may be a coarse-grained event. For example, in a simple but less efficient implementation, the triggering event may be the execution of the executable file. If it is known that the executable file is vulnerable as a whole, the noise injection mode may be activated (and deactivated thereafter) during the entire execution of the executable file. In this case, the processing circuit may identify the trigger for activating or deactivating the noise injection mode at the granularity of the executable file, so that the noise injection mode is activated at the beginning of the execution of the executable file and is deactivated when the execution of the executable file terminates. However, in many cases, a more fine-grained method is possible. For example, the processing circuit may identify the trigger for activating or deactivating the noise injection mode during the execution of the executable file, so that the noise injection mode is activated when a predefined instruction set is executed, when a predefined memory area is accessed, or when a predefined library is called, and is deactivated thereafter. For example, these conditions or events that cause the triggering may be derived from the above-mentioned execution profile. How such a trigger can be identified depends on the corresponding event or condition that is met and where the detection is performed. Figure 1a As shown, the execution environment includes multiple layers, such as a runtime environment 102, a hypervisor (e.g., a virtual machine manager / monitor VMM (including a microservice / container management / orchestration environment)) or an operating system (OS) 104, and hardware. For example, the runtime environment 102 and the VMM / OS 104 can detect the execution of a predefined instruction set, an access to a memory, or a call to a library, while the hardware 106 can detect the execution of a predefined instruction set (if the instruction is linked to a memory address or is otherwise recognizable by the hardware) and an access to a specific portion of the memory of the hardware.
[0039] Depending on the identified trigger, a noise injection mode is activated (or deactivated if the trigger indicates that a portion of the currently executing executable is not vulnerable or execution of the executable has terminated) to control the injection of noise during execution of the executable. The noise injection mode is suitable for introducing noise during execution of the executable, such as random or deterministic delays, electromagnetic noise, audio noise, noise caused by random traffic, etc. However, activation of the noise injection mode does not affect the correctness and / or validity of the executable. However, the injected noise is injected to affect the usefulness or feasibility of a potential side-channel attack.
[0040] In the proposed concept, the injection of noise, and the identification of triggers can be performed at multiple levels, which opens up additional degrees of freedom and also enables the concept to be applied to executable files that are part of an execution environment, such as an executable file of a runtime environment 102 or an executable file of a hypervisor / OS104 - as long as there is another layer below that can be used to inject a sufficient amount of noise, the proposed concept can be applied. Therefore, the processing circuit can activate or deactivate the noise injection mode in at least one of the runtime environment 102 for executing executable files, the hypervisor 104 hosting a virtual machine for executing executable files, the operating system 104 for executing executable files, and the hardware 106 components of the computer system for executing executable files. For example, the apparatus 10 or device 10 can be part of one or more of the runtime environment 102, the hypervisor 104, the operating system 104, or the hardware device 106, and the method can be performed by one or more of the runtime environment 102, the hypervisor 104, the operating system 104, or the hardware device 106. In this context, the runtime environment may include any software components required to run the executable file, such as an interpreter (in the case of an interpreted language), a software virtual machine for executing bytecode / intermediate representation (e.g., a Java virtual machine, JVM), a just-in-time compiler, a Docker daemon, a software library, and the like. The hypervisor may be a virtual machine manager, or may be an environment for hosting bare metal containers. The operating system may be an operating system for operating a computer system, or may be an operating system running within a virtual machine. The hardware may be any hardware of a computer system, such as a processor (or central processing unit, CPU), a graphics card (or graphics processing unit, GPU), an artificial intelligence (AI) accelerator, a load transfer accelerator, a field programmable gate array (Field-Programmable Gate Array, FPGA), a network interface card (network interface card, NIC), and the like. The above-mentioned processing units (CPU, GPU, AI accelerator, FPGA, load transfer accelerator, etc.) may also be represented as xPUs, that is, any type of processing unit.
[0041] Contact Figure 4 In more detail, each of these elements of the execution environment can be used to inject noise. Figure 4 In , this is illustrated by including an "obfuscation" module (which is a noise injection module) in the runtime environment 430, VMM / OS 440 and hardware 450. However, such an obfuscation module does not necessarily have to be integrated in all levels of the execution environment.
[0042] Depending on where the noise is injected (within the execution environment), different noise injection options may be used. In the following, some examples are given for the noise that can be injected. They are just examples because they have been proven to be useful noise injection vectors for thwarting side channel attacks.
[0043] For example, one or more of the following measures may be taken via the runtime environment. For example, the processing circuit may activate or deactivate a noise injection mode in a runtime environment for executing an executable file to activate or deactivate the runtime environment's insertion of random delays that may be introduced during a jump to another basic block of the executable file or during a return from a function. Additionally, or alternatively, the processing circuit may activate or deactivate a noise injection mode in a runtime environment for executing an executable file to activate or deactivate execution of a predefined set of instructions, thereby increasing or decreasing at least one of execution time, power consumption, heat emissions, electromagnetic noise and sound, and the like. It is to be noted that the above list of attributes to be increased is not exhaustive, that is, other attributes may also be increased or decreased. For example, a predefined set of instructions may be provided via a database or other data structure of appropriate instructions to increase (or decrease) execution time (by activating or deactivating the use of compound instructions, vector instructions, assigning instructions to performance cores versus efficiency cores, etc.), power consumption (by inserting additional instructions that require additional power, or by selecting between instructions that are known to consume more or less power, or by executing instructions on performance cores (more power usage) or efficiency cores (less power usage)), heat emissions (by inserting additional instructions that cause additional heat, or by selecting between instructions that are known to cause additional or less heat, or by executing instructions on performance cores (more heat) or efficiency cores (less heat)), audio emissions, or electromagnetic emissions (by using or avoiding the use of instructions that are known to generate audio or electromagnetic emissions). Additionally, or alternatively, the processing circuitry may activate or deactivate a noise injection mode in a runtime environment for executing an executable file to activate or deactivate the generation of random traffic on a bus of a computer system for executing the executable file (e.g., by executing instructions that cause random traffic on the bus). Additionally, or alternatively, the processing circuitry may activate or deactivate a noise injection mode in a runtime environment for executing the executable file to activate or deactivate execution of additional compute kernels on a processing unit (e.g., xPU) for executing the executable file in parallel with execution of the executable file. This is done to add non-deterministic noise in all aspects (emissions, execution time, latency, etc.) at the expense of preventing the use of resources used by the additional compute kernels. This is particularly an option if the executable file is or includes a compute kernel executed by a processing unit.
[0044] Similar, but less fine-grained, measures may be taken at the level of a hypervisor, operating system, or hardware component, e.g., in addition to introducing random delays at specific points in execution. For example, the processing circuitry may activate or deactivate a noise injection mode in the hypervisor, operating system, or hardware component to activate or deactivate at least one execution of a predefined set of instructions, thereby increasing or decreasing execution time (by activating or deactivating techniques such as simultaneous multithreading, vector extensions, reduced cache size, etc.), power consumption, heat emissions, electromagnetic noise, and sound, activate or deactivate the generation of random traffic on a bus of a computer system for executing the executable file, and / or activate or deactivate the execution of additional computing kernels on a processing unit for executing the executable file in parallel with the execution of the executable file. The implementation of these measures may be similar to the examples given above.
[0045] Obviously, multiple measures can be taken to inject noise during the execution of the executable file. These measures can be used to change the amount of noise, for example, according to the expected amount of noise injection, which can be derived from the difference between the expected SNR and the current / baseline SNR, and / or can depend on whether a side channel attack is currently being performed. Therefore, the processing circuit can change the amount of noise injection by selecting at least one subset of measures from a plurality of measures for introducing noise during the execution of the executable file. Therefore, the method may include changing the amount of noise injection by selecting at least one subset of measures from a plurality of measures for introducing noise during the execution of the executable file. As described above, these measures may include one or more of the following: inserting random delays by the runtime environment, executing a predefined instruction set to change at least one of power consumption, heat emission, electromagnetic noise and sound, generating random traffic on the bus of the computer system for executing the executable file, and executing additional computing kernels in parallel with the execution of the executable file on the processing unit for executing the executable file.
[0046] The interface circuit 12 or the means for communicating 12 may correspond to one or more inputs and / or outputs for receiving and / or sending information, which may be digital (bit) values according to a specified code within a module, between modules, or between modules of different entities. For example, the interface circuit 12 or the means for communicating 12 may include circuits configured to receive and / or send information.
[0047] For example, the processing circuit 14 or the means for processing 14 may be implemented using one or more processing units, one or more processing devices, any means for processing, such as a processor, a computer, or a programmable hardware component that can be operated using corresponding adapted software. In other words, the functions of the processing circuit 14 or the means for processing may also be implemented using software, which is then executed on one or more programmable hardware components. Such hardware components may include general-purpose processors, digital signal processors (DSPs), microcontrollers, and the like.
[0048] For example, the storage circuit 16 or the device for storing information 16 may include at least one element of the group of computer-readable storage media, such as magnetic or optical storage media, such as a hard drive, a flash memory, a floppy disk, a random access memory (Random Access Memory, RAM), a programmable read only memory (Programmable Read Only Memory, PROM), an erasable programmable read only memory (Erasable Programmable Read Only Memory, EPROM), an electronically erasable programmable read only memory (EEPROM), or a network storage device.
[0049] For example, the computer system 100 may be a server computer system, ie, a computer system for providing functional services, or a workstation computer system.
[0050] Linking the proposed concept or the preceding or following context (e.g. Figures 2a to 4 ) One or more examples described in the foregoing description mention more details and aspects of the apparatus 10, device 10, method, corresponding computer program, and computer system. The apparatus 10, device 10, method, corresponding computer program, and computer system may include one or more additional optional features corresponding to one or more aspects of the proposed concept or one or more examples described above or below.
[0051] Figure 2a A schematic diagram of an example of another apparatus 20 or device 20 for executing an executable file and a computer system 200 including such an apparatus 20 or device 20 is shown. The apparatus 20 includes circuitry for providing the functionality of the apparatus 20. For example, the circuitry of the apparatus 20 may be configured to provide the functionality of the apparatus 20. For example, Figure 2aThe apparatus 20 includes an interface circuit 22, a processing circuit 24, and (optionally) a storage circuit 26. For example, the processing circuit 24 may be coupled to the interface circuit 22 and the storage circuit 26. For example, the processing circuit 24 may provide the functionality of the apparatus in combination with the interface circuit 22 (for exchanging information, such as exchanging information with other components inside or outside the computer system 200 including the apparatus or device 20) and the storage circuit 26 (for storing information, such as machine-readable instructions). Similarly, the device 20 may include means for providing the functionality of the device 20. For example, these means may be configured to provide the functionality of the device 20. The components of the device 20 are defined as component means, which may correspond to or be implemented by individual structural components of the device 20. For example, Figure 2a The device 20 includes: a device 24 for processing, which may correspond to the processing circuit 24 or be implemented by the processing circuit 24; a device 22 for communication, which may correspond to the interface circuit 22 or be implemented by the interface circuit 22; and (optionally) a device 26 for storing information, which may correspond to the storage circuit 26 or be implemented by the storage circuit 26. In general, the functions of the processing circuit 24 or the device 24 for processing can be implemented by the processing circuit 24 or the device 24 for processing executing machine-readable instructions. Therefore, any characteristics given to the processing circuit 24 or the device 24 for processing can be defined by one or more instructions of a plurality of machine-readable instructions. The device 20 or apparatus 20 may include machine-readable instructions, for example, in the storage circuit 26 or the device 26 for storing information.
[0052] The processing circuit 24 or the means for processing 24 processes an execution manifest indicating whether a noise injection mode needs to be activated when executing the executable file, the noise injection mode being suitable for introducing noise during the execution of the executable file. The processing circuit 24 or the means for processing 24 executes the executable file based on the execution manifest by activating or deactivating the noise injection mode based on the execution manifest.
[0053] Figure 2b A flow chart of an example of a corresponding method for executing an executable file is shown. The method includes processing 210 an execution list. The method includes executing 220 the executable file based on the execution list by activating or deactivating a noise injection mode based on the execution list. For example, the method can be executed by a computer system 200, such as by an apparatus 20 or device 20 of the computer system 200.
[0054] In the following, the functionality of the apparatus 20, the device 20, the method and the corresponding computer program comprising machine-readable instructions will be described with respect to the apparatus 20. Features described in connection with the apparatus 20 may also be included in the corresponding method and computer program.
[0055] Figure 1a and Figure 1b involves the selective activation and implementation of noise injection features, while Figure 2a , Figure 2b and Figure 3 It involves the contextual application of policies and software distribution across multiple machines. To implement noise injection, you can use the Figure 1a and / or Figure 1b Therefore, the implementation of the apparatus 20, device 20 and / or computer system 200 may be similar to Figure 1a The apparatus 10, device 10 and / or computer system 100, for example, provides Figure 1a The same or similar functions of the apparatus 10, device 10 and / or computer system 100. Similarly, Figure 2b The implementation of the method can be similar to Figure 1b A method, for example, which may include Figure 1b One or more additional features of the method.
[0056] Some examples of this disclosure involve creating enterprise audit software packages, enforcing certain countermeasures at runtime, and hardware-assisted enforcement of these policies. While the concept of allowlist software is used by, for example, Windows Defender Application Control, in other systems, allowlists are not conditioned on the use of side-channel attack mitigation techniques such as those discussed above. In addition, as described in the Figure 1a and / or Figure 1b As noted, in other systems, policy enforcement is not performed at the lowest level of the stack (eg, xPU).
[0057] connect Figure 2a and Figure 2b (as well as Figure 3 ), executable files are used with an execution manifest. Figure 1a and Figure 1b As outlined, the execution manifest is used to selectively activate the noise injection mode. To this end, the execution manifest may indicate whether the noise injection is necessary (at all), i.e., whether the executable file is vulnerable to a side channel attack. In addition, the execution manifest may include information for controlling the activation or deactivation of the noise injection mode, such as one or more of the MTD, the expected signal-to-noise ratio, the expected noise injection amount, the execution profile, information about one or more code segments and / or one or more memory regions that trigger the activation or deactivation of the noise injection mode, and the like.
[0058] This information may be provided by the original software vendor (and bundled with the executable). In other words, the execution manifest may be bundled with the executable. Alternatively, the execution manifest may be provided by a third party (i.e., an entity different from the original software vendor). In other words, the source of the execution manifest may be different from the executable. In this case, the manifest may be obtained separately from the executable, or may be bundled with the executable by the original software vendor.
[0059] For example, in some examples, software signed by the original ISV (independent software vendor) can be packaged (e.g., bundled) together with a side-channel attack protection policy (i.e., an execution manifest), and the resulting software package can be signed by an enterprise IT key (trusted by the runtime) and a runtime policy that only allows such software packages to run. In other words, processing of the execution manifest can be mandatory by the policy, so that in the absence of the execution manifest, execution of the executable file may be prohibited. This policy can be provided or implemented by a hardware system, for example, by a computer system 200 including the device. In other words, the hardware of the computer system can be implemented so that the executable file will only be executed if the execution manifest is confirmed to exist and is followed.
[0060] The interface circuit 22 or the means for communicating 22 may correspond to one or more inputs and / or outputs for receiving and / or sending information, which may be digital (bit) values according to a specified code within a module, between modules, or between modules of different entities. For example, the interface circuit 22 or the means for communicating 22 may include circuits configured to receive and / or send information.
[0061] For example, the processing circuit 24 or the means for processing 24 may be implemented using one or more processing units, one or more processing devices, any means for processing, such as a processor, a computer, or a programmable hardware component that can be operated using corresponding adapted software. In other words, the functions of the processing circuit 24 or the means for processing may also be implemented using software, which is then executed on one or more programmable hardware components. Such hardware components may include general-purpose processors, digital signal processors (DSPs), microcontrollers, and the like.
[0062] For example, the storage circuit 26 or means for storing information 26 may include at least one element of the group of computer-readable storage media, such as magnetic or optical storage media, such as a hard drive, a flash memory, a floppy disk, a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electronically erasable programmable read-only memory (EEPROM), or a network storage device.
[0063] For example, the computer system 200 may be a server computer system, ie, a computer system for providing functional services, or a workstation computer system.
[0064] Linking the proposed concept or the preceding or following context (e.g. Figure 1a to Figure 1b , Figure 3 to Figure 4 ) One or more examples described in the foregoing description mention more details and aspects of the apparatus 20, device 20, method, corresponding computer program, and computer system. The apparatus 20, device 20, method, corresponding computer program, and computer system may include one or more additional optional features corresponding to one or more aspects of the proposed concept or one or more examples described above or below.
[0065] Figure 3 A flowchart showing an example of a method for distributing software or firmware is shown. Figures 1a to 2b The software or firmware may include an executable file. The method includes providing 310 an executable file of the software or firmware. The method includes providing 320 an execution manifest by bundling the execution manifest with the executable file, the execution manifest indicating whether a noise injection mode needs to be activated when the executable file is executed, the noise injection mode being suitable for introducing noise during execution of the executable file.
[0066] Figure 1a and Figure 1b involves the implementation of a noise injection pattern, and Figure 2a and Figure 2b involves implementing a noise injection pattern via an execution checklist, and Figure 3 The distribution of an executable file and an execution manifest is involved. The execution manifest is provided bundled with the executable file, for example, by the original software supplier of the software or by a third party. In other words, the execution manifest can be bundled with the executable file by the original software supplier of the executable file. For example, the execution manifest can be bundled with the executable file at the time of distribution (i.e., when the executable file is provided for use on a computer system). In this context, bundling refers to the process of providing two entities together. In some examples, the execution manifest is attached to the executable file, for example, as part of a software signature for signing the executable file. Alternatively, the execution manifest can be provided with the executable file, that is, separate from the executable file and provided side by side.
[0067] While the original software vendor is a prime candidate to also provide an execution manifest, an execution manifest may also be provided by a third party. In other words, the vendor of the execution profile / manifest may be a different entity than the original software vendor (the execution profile / manifest itself is monetizable software—i.e., an "external" patch). In other words, the vendor of the execution manifest may be a different entity than the original software vendor of the executable.
[0068] Contact Figure 2a and / or Figure 2b As described above, the presence of an execution list / profile can then be mandatory. For example, as described above, the presence of an execution profile of an IT (Information Technology) setting attribute can be mandatory by an IT policy to launch an executable file. For example, this IT policy can be enforced by a hardware platform.
[0069] Linking the proposed concept or the preceding or following context (e.g. Figures 1a to 2b , Figure 4 ) One or more examples described in the foregoing mention more details and aspects of the method. The method may include one or more additional optional features corresponding to one or more aspects of the proposed concept or one or more examples described above or below.
[0070] Various examples of the present disclosure relate to a concept for side-channel protection of legacy software (without recompilation). Various examples of the present disclosure aim to provide SCA protection without recompilation, for example, in situations where the executable file cannot be patched or cannot be obtained, even if there is known vulnerable code, it is impossible to change it.
[0071] Typical countermeasures against SCA-class attacks can be divided into two main categories - eliminating / limiting the leakage of additional information, and "distorting" the additional information so that it cannot be linked back to the secret data. The former (eliminating / limiting the leakage of additional information) usually involves rebuilding / re-deploying, and while this is the most obvious and effective countermeasure, it may be impossible, too late, or too expensive (e.g., in terms of software re-verification), so it does not address all use cases. The latter ("distorting" the additional information), when performed at the whole executable level, boils down to running the application in a "shielded" container (e.g., putting it inside a Software Guard Extensions (SGX) enclave, an operating system (OS) sandbox, etc.), where the attacker cannot easily observe its leakage (or has limited access to the attacker's tools (e.g., high-frequency timers)). Contemporary software prevention measures (performed at execution time) incur significant overhead (e.g., using Gramine to run the entire application in SGX) and can be bypassed by local adversaries, who can still exploit side channels if the software can be run without the protection measures enabled.
[0072] Unlike the aforementioned mitigations, the proposed concept (at least if implemented at the hardware or virtual machine manager (VMM) level) is general and not easily bypassed, while also allowing deployment against existing binaries while maintaining guarantees about their correctness.
[0073] The proposed concept is based on introducing a special operating mode of the execution environment (whether hardware, OS / VMM or runtime environment) Figure 1a to Figure 1b The proposed concept introduces a "noise interference mode" that can inject "noise" into the code execution without invalidating the (non-)architectural constraints, thereby masking side-channel leakage. Although such a "noisy" operation mode should naturally not be permanently enabled for power / performance reasons, in the proposed concept, this special operation mode is selectively turned on when (and only when) sensitive code segments are running. Moreover, the proposed concept provides a non-intrusive method to inject the noise itself, thereby maintaining the correctness / purposefulness of the program operation.
[0074] In the presence of potentially vulnerable software, the proposed concept allows running these workloads with additional protection without changing the core software, which allows securing multiple workloads that were previously unprotected.
[0075] The proposed concept can be implemented at various elements of the stack, such as at the VMM / OS level as well as at the hardware level (e.g., at the xPU, any processing unit such as a central processing unit, a graphics processing unit, a computing accelerator, a machine learning accelerator, a network offload unit, etc.). When combined with a technique for selectively switching this mode, and based on software or hardware-assisted detection (e.g., using When using thread instrumentation technology and processor tracing), the performance overhead can be well under 5%, resulting in significant security improvements by simply running the same workload on newer CPUs without the need for Trusted Execution Environment protection.
[0076] Figure 4 A schematic diagram showing components of an example of a concept for executing an executable file and an executable file 410 that is a protection target. Figure 4 An executable file 410 (which may be a conventional binary file that cannot be modified) and an execution environment 420 are shown, which includes a runtime environment 430 (e.g., a virtual machine such as a JVM, an interpreter, a Docker daemon, or library dependencies for executing an intermediate representation (e.g., bytecode), a virtual machine manager / operating system (VMM / OS) 440, and hardware (HW) 450. Each component of the execution environment 420 includes an "obfuscation" (noise injection) module 460, which includes an SNR (signal-to-noise ratio) calculation component 462 (to calculate the amount of noise based on the pre-disclosure minimum trace MTD metric) and a noise generator component (to generate a given type and / or amount of noise) 464. The obfuscation module 460 may be implemented in software and / or hardware, so that it may operate at some or all levels (runtime environment 430, VMM / OS 440, hardware 450).
[0077] As shown, the concept for executing executables can be implemented at any / all levels of the computing stack, including in hardware 450. Although executable 410 is visualized as a Ring 3 application, in fact, the scope of protection includes any code as long as layer N-1 of the stack 430-340 is capable of deploying countermeasures (for example, a traditional OS itself can be protected by a hardware-supported "obfuscation" module).
[0078] In this disclosure, the focus is on the problem of methods to protect "(one or more) vulnerable instructions", rather than the details of methods for identifying these instructions. The trigger to initiate protection can range from simple and direct schemes (e.g., "as long as code from executable file / library X runs"), to fully instrumented schemes (e.g., software "patch" profiles compatible with instrumentation tools that trigger protection precisely at specific code offsets, memory accesses...), to execution profile-driven schemes, allowing dynamic determination of such sections. While the techniques for identifying trigger conditions (e.g., based on execution profiles) are not the focus of this application, the temporary or temporary deployment of countermeasures is.
[0079] The proposed concept introduces an "obfuscation" module (460) that can be implemented in any or all computing stack layers. For example, the obfuscation module 460 can be implemented at the interpreter / JIT compiler / runtime level 430, at the OS / VMM level 440 and / or at the hardware level 450 (as shown in the figure). Depending on the layer of the application, the injected interference signal (noise) may have different properties. For example, the protection range can range from extending the observed call duration at the runtime level by adding "sleep" statements... all the way to selectively disabling or changing certain microarchitecture optimizations (e.g., speculative execution) at the hardware level, adding hardware-level noise while exploiting the physical properties of a specific die design, etc. The "obfuscation" module 460 may include an SNR calculation module 462 and a noise generator 464. The role of the SNR calculation module is to calculate the required amount of noise given a minimum trace before disclosure (MTD) target and control the noise generator accordingly. The MTD is a parameter that is determined depending on the desired level of protection (either per workload (e.g. pre-selected by the operator and part of the executable's signature manifest, which is checked by the execution environment) or a system-wide target (same value for the entire system / layer), depending on the current system performance / characteristics (properties of the "obfuscation module", which may be static or determined using self-tests / benchmarks performed during boot), and / or (optionally) depending on the current SCA "threat level" (i.e. if possible SCA attacks are detected by the runtime using any existing methods (e.g., T. Vateva-Gurova and N. Suri, "On the Detection of Side-Channel Threats"). Attacks”, 2018 IEEE 23rd Pacific Rim International Symposium on Trusted Computing (PRDC), Taipei, Taiwan, China, 2018, pp. 185-186, doi: 10.1109 / PRDC.2018.00031., or H. Wang, H. Sayadi, S. Rafatirad, A. Sasan, and H. Homayoun, “SCARF: Detecting Side-Channel Attacks at Real-time using Low-level HardwareFeatures”, 2020 IEEE 26th International Symposium on Online Testing and Design of Robust Systems (IOLTS), Naples, Italy, 2020, pp. 1-6, doi: 10.1109 / IOLTS50870.2020.9159708.) detected, then the MTD is increased).Noise generators are used to help defeat SCA by affecting (e.g., interfering with and / or negating) SCA emissions (e.g., execution time), but without changing architectural invariants (i.e., changes that do not affect the correctness of the software or its overall execution and can be considered microarchitectural).
[0080] For example, one or more of the following noise patterns may be used. For example, a random delay may be added to the instruction / function call (depending on the stack layer) return. For example, if the protection target is a "non-constant time string comparison" target (e.g., calling memcmp() on a password), a "fuzzer" (noise injector) implemented at the OS level may add an additional sleep time before returning (where the sleep time may be determined by the SNR ratio and may be both random and "fixed", so that all subsequent calls are fixed time). For example, additional (random) traffic may be generated on the bus (generated by HW or SW). For example, high-power instructions may be added. For example, power consumption and heat emissions may be increased or decreased (e.g., by running additional high-power instructions in software or using dedicated hardware modules that can manipulate power consumption). For example, a "tethered" core (compute kernel) may be used within the same xPU package to execute "anti-instructions" (offsetting or limiting overall SCA leakage at the package level). For example, other additional emissions may be introduced (e.g., sound or radiation, typically at the hardware level).
[0081] The core of this concept is not the SCA countermeasure itself, but the selectivity of enabling it during specific windows of runtime execution, and the concept of "patching" vulnerable code at the N-1 execution layer without recompilation.
[0082] While the approach is primarily applicable to legacy / existing software, some countermeasures may very well be compiled into the executable to provide additional protection (in which case the proposed concept does not rely on additional stimulus to enable / disable the "obfuscation" mode). In this case, trigger identification may be supported by state variables, registers or API calls included in the executable.
[0083] In the following, some examples of the present disclosure are given:
[0084] An example (e.g., Example 1) relates to an apparatus (10) for executing an executable file, the apparatus comprising an interface (12) circuit, machine-readable instructions, and processing circuitry (14), the processing circuitry being configured to execute the machine-readable instructions to identify a trigger for activating or deactivating a noise injection mode for the executable file during execution of the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file. The processing circuitry is configured to execute the machine-readable instructions to activate or deactivate the noise injection mode based on the identified trigger.
[0085] Another example (e.g., Example 2) relates to a previously described example (e.g., Example 1) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to activate or deactivate the noise injection mode in at least one of: a runtime environment for executing the executable file, a hypervisor hosting a virtual machine for executing the executable file, an operating system for executing the executable file, and hardware components of a computer system for executing the executable file.
[0086] Another example (e.g., Example 3) relates to a previously described example (e.g., Example 2) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to activate or deactivate the noise injection mode in a runtime environment for executing the executable file to activate or deactivate at least one of: inserting random delays by the runtime environment, executing a predefined set of instructions to increase or decrease at least one of execution time, power consumption, heat emissions, electromagnetic noise, and sound, generating random traffic on a bus of a computer system for executing the executable file, and executing additional computing kernels on a processing unit for executing the executable file in parallel with execution of the executable file.
[0087] Another example (e.g., Example 4) relates to a previously described example (e.g., one of Examples 2 to 3) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to activate or deactivate the noise injection mode in the hypervisor, operating system, or hardware component to activate or deactivate at least one of: executing a predefined set of instructions to increase or decrease at least one of execution time, power consumption, heat emissions, electromagnetic noise, and sound, generating random traffic on a bus of a computer system used to execute the executable file, and executing additional computing kernels on a processing unit used to execute the executable file in parallel with the execution of the executable file.
[0088] Another example (e.g., Example 5) relates to a previously described example (e.g., one of Examples 1 to 4) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to identify a trigger for activating the noise injection mode when at least a portion of the executable file is suspected of being vulnerable to a side-channel attack.
[0089] Another example (e.g., Example 6) involves a previously described example (e.g., Example 5) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to determine whether at least a portion of the executable file is suspected of being vulnerable to a side-channel attack based on at least one of: a first data repository including information about executable files that are vulnerable to side-channel attacks, a second data repository including information about libraries that are vulnerable to side-channel attacks, an execution manifest bundled with the executable file, an execution profile bundled with the executable file, a computer system-wide policy, a deployment site-wide policy, and an enterprise-wide policy.
[0090] Another example (e.g., Example 7) relates to a previously described example (e.g., one of Examples 5 to 6) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to determine whether at least a portion of the executable file is suspected of being vulnerable to a side-channel attack by processing the executable file to determine an execution profile.
[0091] Another example (e.g., Example 8) relates to a previously described example (e.g., Example 7) or any example described herein, further including the execution profile including information about one or more segments of code and / or one or more memory areas that trigger activation or deactivation of the noise injection mode.
[0092] Another example (e.g., Example 9) relates to a previously described example (e.g., one of Examples 1 to 8) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to identify a trigger for activating or deactivating the noise injection mode at the granularity of the executable file, so that the noise injection mode is activated when execution of the executable file starts and is deactivated when execution of the executable file terminates.
[0093] Another example (e.g., Example 10) relates to a previously described example (e.g., one of Examples 1 to 9) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to identify a trigger for activating or deactivating the noise injection mode during execution of the executable file, so that the noise injection mode is activated when a predefined set of instructions is executed, when a predefined memory area is accessed, or when a predefined library is called, and is deactivated thereafter.
[0094] Another example (e.g., Example 11) relates to a previously described example (e.g., one of Examples 1 to 10) or any example described herein, and also includes the processing circuit being used to execute the machine-readable instructions to determine a desired noise injection amount and activating the noise injection mode with the desired noise injection amount.
[0095] Another example (e.g., Example 12) relates to a previously described example (e.g., Example 11) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to determine an expected signal-to-noise ratio for execution of the executable file, and determining the expected noise injection amount based on the expected signal-to-noise ratio.
[0096] Another example (e.g., Example 13) relates to a previously described example (e.g., Example 12) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to determine the expected signal-to-noise ratio based on the vulnerability of the executable file to a side-channel attack.
[0097] Another example (e.g., Example 14) relates to a previously described example (e.g., one of Examples 12 to 13) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to obtain the desired signal-to-noise ratio from an execution manifest bundled with the executable file.
[0098] Another example (e.g., Example 15) relates to a previously described example (e.g., one of Examples 12 to 14) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to further determine the desired noise injection amount based on a load of a computer system used to execute the executable file.
[0099] Another example (e.g., Example 16) relates to a previously described example (e.g., one of Examples 12 to 15) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to determine the desired amount of noise injection by performing a self-test at the start of at least one of the following: a runtime environment for executing the executable file, a hypervisor hosting a virtual machine for executing the executable file, an operating system for executing the executable file, and a computer system for executing the executable file.
[0100] Another example (e.g., Example 17) relates to a previously described example (e.g., one of Examples 12 to 16) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to determine the desired noise injection amount based on a pre-disclosure minimum trace MTD parameter.
[0101] Another example (e.g., Example 18) relates to a previously described example (e.g., one of Examples 12 to 17) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to detect a side-channel attack performed during execution of the executable file, and further determining the desired amount of noise injection based on whether the side-channel attack is being performed during execution of the executable file.
[0102] Another example (e.g., Example 19) relates to a previously described example (e.g., one of Examples 11 to 18) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to change the amount of noise injection by selecting at least one subset of measures from a plurality of measures for introducing noise during execution of the executable file.
[0103] Another example (e.g., Example 20) relates to a previously described example (e.g., Example 19) or any example described herein, further including that the multiple measures for introducing noise include one or more of the following: inserting random delays by the runtime environment, executing a predefined set of instructions to change at least one of power consumption, heat emissions, electromagnetic noise, and sound, generating random traffic on a bus of a computer system used to execute the executable file, and executing additional computing kernels on a processing unit used to execute the executable file in parallel with execution of the executable file.
[0104] Another example (e.g., Example 21) relates to a previously described example (e.g., one of Examples 1 to 20) or any example described herein, and also includes that the noise injection mode does not affect the correctness and / or validity of the executable file.
[0105] Another example (e.g., Example 22) relates to a previously described example (e.g., one of Examples 1 to 21) or any example described herein, and further includes the processing circuit being used to execute the machine-readable instructions to process an execution manifest bundled with the executable file, the execution manifest indicating whether noise injection is required when executing the executable file, and executing the executable file based on the execution manifest.
[0106] An example (eg, Example 23) relates to a computer system (100) comprising an apparatus according to one of Examples 1 to 22 (or according to any other example).
[0107] An example (e.g., Example 24) relates to an apparatus (20) for executing an executable file, the apparatus comprising an interface (22) circuit, machine-readable instructions, and a processing circuit (24), the processing circuit being configured to execute the machine-readable instructions to process an execution manifest, the execution manifest indicating whether a noise injection mode needs to be activated when executing the executable file, the noise injection mode being suitable for introducing noise during the execution of the executable file. The processing circuit is configured to execute the machine-readable instructions to execute the executable file based on the execution manifest by activating or deactivating the noise injection mode based on the execution manifest.
[0108] Another example (eg, Example 25) relates to a previously described example (eg, Example 24) or any example described herein, further comprising bundling the execution manifest with the executable file.
[0109] Another example (e.g., Example 26) relates to a previously described example (e.g., Example 24) or any example described herein, further including that the manifest is obtained separately from the executable file.
[0110] Another example (e.g., Example 27) relates to a previously described example (e.g., one of Examples 24 to 26) or any example described herein, and further includes that the source of the execution manifest is different from the executable file.
[0111] Another example (e.g., Example 28) involves a previously described example (e.g., one of Examples 24 to 27) or any example described herein, and further includes processing of the execution manifest being policy-enforced such that execution of the executable file is prohibited in the absence of the execution manifest.
[0112] Another example (e.g., Example 29) relates to a previously described example (e.g., one of Examples 24 to 28) or any example described herein, further comprising the policy being provided or enforced by a computer system (200) including the apparatus.
[0113] An example (eg, Example 30) relates to a computer system (200) comprising an apparatus (20) according to one of Examples 24 to 29 (or according to any other example).
[0114] An example (e.g., Example 31) relates to an apparatus (10) for executing an executable file, the apparatus comprising a processing circuit (14) configured to identify a trigger for activating or deactivating a noise injection mode for the executable file during execution of the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file. The processing circuit is configured to activate or deactivate the noise injection mode based on the identified trigger.
[0115] An example (e.g., Example 32) relates to a device (10) for executing an executable file, the device (10) comprising means (14) for processing, for identifying a trigger for activating or deactivating a noise injection mode for the executable file during execution of the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file. The means for processing is used to activate or deactivate the noise injection mode based on the identified trigger.
[0116] An example (e.g., Example 33) relates to an apparatus (20) for executing an executable file, the apparatus comprising a processing circuit (24), the processing circuit being configured to process an execution manifest, the execution manifest indicating whether a noise injection mode needs to be activated when executing the executable file, the noise injection mode being suitable for introducing noise during the execution of the executable file. The processing circuit is configured to execute the executable file based on the execution manifest by activating or deactivating the noise injection mode based on the execution manifest.
[0117] An example (e.g., Example 34) relates to a device (20) for executing an executable file, the device comprising means (24) for processing, for processing an execution manifest, the execution manifest indicating whether a noise injection mode needs to be activated when executing the executable file, the noise injection mode being suitable for introducing noise during the execution of the executable file. The means for processing is further configured to execute the executable file based on the execution manifest by activating or deactivating the noise injection mode based on the execution manifest.
[0118] An example (e.g., Example 35) relates to a method for executing an executable file, the method comprising identifying (170) a trigger for activating or deactivating a noise injection mode for the executable file during execution of the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file. The method comprises activating or deactivating (180) the noise injection mode based on the identified trigger.
[0119] Another example (e.g., Example 36) relates to a previously described example (e.g., Example 35) or any example described herein, and also includes the method comprising identifying (180) a trigger for activating the noise injection mode when at least a portion of the executable file is suspected of being vulnerable to a side channel attack.
[0120] Another example (e.g., Example 37) relates to a previously described example (e.g., Example 36) or any example described herein, and also includes the method comprising determining (130) whether at least a portion of the executable file is suspected of being vulnerable to a side-channel attack based on at least one of: a first data repository including information about executable files that are vulnerable to side-channel attacks, a second data repository including information about libraries that are vulnerable to side-channel attacks, an execution manifest bundled with the executable file, an execution profile bundled with the executable file, a computer system-wide policy, a deployment site-wide policy, and an enterprise-wide policy.
[0121] Another example (e.g., Example 38) relates to a previously described example (e.g., Example 37) or any example described herein, and also includes the method comprising determining (130) whether at least a portion of the executable file is suspected of being vulnerable to a side channel attack by processing (120) the executable file to determine an execution profile.
[0122] Another example (e.g., Example 39) relates to a previously described example (e.g., one of Examples 35 to 38) or any example described herein, and also includes the method comprising determining (150) a desired noise injection amount and activating (180) the noise injection mode with the desired noise injection amount.
[0123] Another example (e.g., Example 40) relates to a previously described example (e.g., Example 39) or any example described herein, and also includes the method comprising determining (140) an expected signal-to-noise ratio for execution of the executable file, and determining (150) the expected noise injection amount based on the expected signal-to-noise ratio.
[0124] Another example (e.g., Example 41) relates to a previously described example (e.g., Example 40) or any example described herein, further including the method comprising determining the expected signal-to-noise ratio based on the vulnerability of the executable file to a side-channel attack.
[0125] Another example (e.g., Example 42) relates to a previously described example (e.g., one of Examples 40 to 41) or any example described herein, further including the method comprising determining the desired amount of noise injection based on a load of a computer system used to execute the executable file.
[0126] Another example (e.g., Example 43) relates to a previously described example (e.g., one of Examples 39 to 42) or any example described herein, and also includes the method comprising determining the expected amount of noise injection by performing (152) a self-test at the start of at least one of the following: a runtime environment for executing the executable file, a hypervisor hosting a virtual machine for executing the executable file, an operating system for executing the executable file, and a computer system for executing the executable file.
[0127] Another example (e.g., Example 44) relates to a previously described example (e.g., one of Examples 39 to 43) or any example described herein, and also includes the method comprising detecting (154) a side-channel attack performed during execution of the executable file, and further determining the desired amount of noise injection based on whether the side-channel attack is being performed during execution of the executable file.
[0128] Another example (e.g., Example 45) relates to a previously described example (e.g., one of Examples 35 to 44) or any example described herein, and also includes the method comprising changing the amount of noise injection by selecting at least one subset of measures from a plurality of measures for introducing noise during execution of the executable file.
[0129] Another example (e.g., Example 46) relates to a previously described example (e.g., one of Examples 35 to 45) or any example described herein, and also includes the method comprising processing (110) an execution manifest bundled with the executable file, the execution manifest indicating whether noise injection is required when executing the executable file, and executing (160) the executable file based on the execution manifest.
[0130] An example (eg, Example 47) relates to a computer system (100) configured to perform a method according to one of Examples 35 to 46 (or according to any other example).
[0131] An example (e.g., Example 48) relates to a method for executing an executable file, the method comprising processing (210) an execution manifest, the execution manifest indicating whether a noise injection mode needs to be activated when executing the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file. The method comprises executing (220) the executable file based on the execution manifest by activating or deactivating the noise injection mode based on the execution manifest.
[0132] An example (eg, Example 49) involves a computer system (200) configured to perform the method according to Example 48.
[0133] An example (e.g., Example 50) relates to a method for distributing software or firmware, the method comprising providing (310) an executable file of the software or firmware. The method comprises providing (320) the execution manifest by bundling the execution manifest with the executable file, the execution manifest indicating whether a noise injection mode needs to be activated when the executable file is executed, the noise injection mode being suitable for introducing noise during execution of the executable file.
[0134] Another example (e.g., Example 51) relates to a previously described example (e.g., Example 50) or any example described herein, further comprising the executable manifest being bundled with the executable file by an original software vendor of the executable file.
[0135] Another example (e.g., Example 52) relates to a previously described example (e.g., one of Examples 50 to 51) or any example described herein, further including that the manifest is provided with the executable file.
[0136] Another example (e.g., Example 53) relates to a previously described example (e.g., one of Examples 50 to 52) or any example described herein, and also includes the vendor of the execution manifest being a different entity than the original software vendor of the executable file.
[0137] An example (e.g., Example 54) relates to a system comprising an apparatus (10) or device (10) as described in one of Examples 1 to 23, 31 to 32 (or according to any other example) and an apparatus (20) or device (20) as described in one of Examples 24 to 30, 33 to 34 (or according to any other example).
[0138] An example (e.g., Example 55) involves a non-transitory machine-readable storage medium comprising program code that, when executed, causes a machine to perform a method as described in one of Examples 35 to 46 (or according to any other example) or a method according to Example 48 (or according to any other example).
[0139] An example (e.g., Example 56) relates to a computer program having program code for performing a method as described in one of Examples 35 to 46 (or according to any other example) or a method according to Example 48 (or according to any other example) when the computer program is executed on a computer, a processor, or a programmable hardware component.
[0140] An example (e.g., Example 57) relates to a machine-readable storage device comprising machine-readable instructions that, when executed, implement a method as claimed in any pending claim or shown in any example or implement an apparatus as claimed in any pending claim or shown in any example.
[0141] The aspects and features described herein with respect to a specific one of the preceding examples may also be combined with one or more other examples to replace the same or similar features of the other examples or to additionally introduce features into the other examples.
[0142] Examples may also be or may relate to a (computer) program including program code to perform one or more of the above methods when the program is executed on a computer, a processor or other programmable hardware component. Thus, the steps, operations or processes of the different methods described above may also be performed by a programmed computer, a processor or other programmable hardware component. Examples may also cover program storage devices, such as digital data storage media, which are machine, processor or computer readable and encode and / or contain machine executable, processor executable or computer executable instructions and programs. Program storage devices may include or may be, for example, digital storage devices, magnetic storage media such as disks and tapes, hard drives, or optically readable digital data storage media. Other examples may also include a computer, a processor, a control unit, a (field) programmable logic array ((field) programmable logic array, (F) PLA), a (field) programmable gate array ((field) programmable gate array, (F) PGA), a graphics processor unit (GPU), an application-specific integrated circuit (ASIC), an integrated circuit (IC), or a system-on-a-chip (SoC) system programmed to perform the steps of the above method.
[0143] It is also understood that the disclosure of several steps, processes, operations or functions disclosed in the specification or claims should not be interpreted as implying that these operations must comply with the described order, unless explicitly stated in individual cases or necessary for technical reasons. Therefore, the previous description does not limit the performance of several steps or functions to a certain order. In addition, in other examples, a single step, function, process or operation may include and / or be decomposed into several sub-steps, sub-functions, sub-processes or sub-operations.
[0144] If aspects have been described in connection with a device or system, these aspects should also be understood as descriptions of the corresponding methods. For example, blocks, devices, or functional aspects of the device or system may correspond to features of the corresponding methods, such as method steps. Therefore, aspects described in connection with a method should also be understood as descriptions of corresponding blocks, corresponding elements, attributes, or functional features of the corresponding device or corresponding system.
[0145] As used herein, the term "module" refers to logic that can be implemented in a hardware component or device, software or firmware running on a processing unit, or a combination of these to perform one or more operations consistent with the present disclosure. Software and firmware can be embodied as instructions and / or data stored on a non-transitory computer-readable storage medium. As used herein, the term "circuit" can include, alone or in any combination, non-programmable (hard-wired) circuits, programmable circuits (e.g., processing units), state machine circuits, and / or firmware that stores instructions that can be executed by programmable circuits. The modules described herein can be collectively or individually embodied as circuits that form part of a computing system. Thus, any module can be implemented as a circuit. A computing system that is referred to as being programmed to perform a method can be programmed to perform the method via software, hardware, firmware, or a combination thereof.
[0146] Any disclosed method (or a portion thereof) may be implemented as computer-executable instructions or a computer program product. Such instructions may cause a computing system or one or more processing units capable of executing computer-executable instructions to perform any disclosed method. As used herein, the term "computer" refers to any computing system or device described or mentioned herein. Thus, the term "computer-executable instructions" refers to instructions that can be executed by any computing system or device described or mentioned herein.
[0147] Computer executable instructions may be, for example, part of an operating system of a computing system, an application stored locally on the computing system, or a remote application accessible to the computing system (e.g., via a web browser). Any of the methods described herein may be performed by computer executable instructions, which are executed by a single computing system or by one or more networked computing systems operating in a network environment. Computer executable instructions and updates to computer executable instructions may be downloaded from a remote server to a computing system.
[0148] In addition, it is to be understood that the implementation of the disclosed technology is not limited to any specific computer language or program. For example, the disclosed technology can be implemented by software written in C++, C#, Java, Perl, Python, JavaScript, Adobe Flash, C#, assembly language, or any other programming language. Similarly, the disclosed technology is not limited to any particular computer system or any particular type of hardware.
[0149] In addition, any software-based examples (including, for example, computer-executable instructions for causing a computer to perform any disclosed method) can be uploaded, downloaded, or remotely accessed via appropriate communication means, including, for example, the Internet, the World Wide Web, an intranet, cables (including optical cables), magnetic communications, electromagnetic communications (including RF, microwave, ultrasonic, and infrared communications), electronic communications, or other such communications means.
[0150] The disclosed methods, apparatuses, and systems should not be construed as limiting in any way. Instead, the disclosure is directed to all novel and non-obvious features and aspects of the various disclosed examples, either alone or in various combinations and sub-combinations with each other. The disclosed methods, apparatuses, and systems are not limited to any particular aspect or feature or combination thereof, and the disclosed examples do not require that any one or more specific advantages exist or problems be solved.
[0151] The theories of operation, scientific principles or other theoretical descriptions proposed herein when referring to the devices or methods of the present disclosure are provided for better understanding and are not intended to be limiting in scope. The devices and methods in the appended claims are not limited to those devices and methods that operate in the manner described by such theories of operation.
[0152] The attached claims are hereby incorporated into the detailed description, where each claim may stand alone as a separate example. It should also be noted that although in the claims, a dependent claim refers to a specific combination with one or more other claims, other examples may also include a combination of the dependent claim with the subject matter of any other dependent or independent claim. Such combinations are explicitly proposed here, unless it is stated in an individual case that a specific combination is not intended. In addition, features of a claim should also be included for any other independent claim, even if the claim is not directly defined as dependent on the other independent claim.
Claims
1. A device for executing an executable file, the device comprising an interface circuit, a machine-readable instruction, and a processing circuit, wherein the processing circuit is configured to execute the machine-readable instruction to perform the following operations: identifying, for the executable file during execution of the executable file, a trigger for activating or deactivating a noise injection mode, the noise injection mode being adapted for introducing noise during execution of the executable file; and The noise injection mode is activated or deactivated based on the identified trigger.
2. The device according to claim 1, wherein: The processing circuit is to execute the machine-readable instructions to activate or deactivate the noise injection mode in at least one of: a runtime environment for executing the executable file, a hypervisor hosting a virtual machine for executing the executable file, an operating system for executing the executable file, and a hardware component of a computer system for executing the executable file.
3. The device according to claim 2, wherein: The processing circuit is configured to execute the machine-readable instructions to activate or deactivate the noise injection mode in a runtime environment for executing the executable file, to activate or deactivate at least one of: inserting random delays by the runtime environment, executing a predefined set of instructions to increase or decrease at least one of execution time, power consumption, heat emissions, electromagnetic noise, and sound, generating random traffic on a bus of the computer system for executing the executable file, and executing additional computational kernels on a processing unit for executing the executable file in parallel with execution of the executable file.
4. The device according to claim 2, wherein: The processing circuit is configured to execute the machine-readable instructions to activate or deactivate the noise injection mode in the hypervisor, operating system, or hardware component to activate or deactivate at least one of: executing a predefined set of instructions to increase or decrease at least one of execution time, power consumption, heat emissions, electromagnetic noise, and sound, generating random traffic on a bus of the computer system used to execute the executable file, and executing additional computational kernels on a processing unit used to execute the executable file in parallel with execution of the executable file.
5. The device according to claim 1, wherein: The processing circuit is to execute the machine-readable instructions to identify a trigger for activating the noise injection mode if at least a portion of the executable file is suspected of being vulnerable to a side-channel attack.
6. The device according to claim 5, wherein: The processing circuit is to execute the machine-readable instructions to determine whether at least a portion of the executable file is suspected of being vulnerable to a side-channel attack based on at least one of: a first data repository including information about executable files that are vulnerable to side-channel attacks, a second data repository including information about libraries that are vulnerable to side-channel attacks, an execution manifest bundled with the executable file, an execution profile bundled with the executable file, a computer system-wide policy, a deployment site-wide policy, and an enterprise-wide policy.
7. The device according to claim 5, wherein: The processing circuit is configured to execute the machine-readable instructions to determine whether at least a portion of the executable file is suspected of being vulnerable to a side-channel attack by processing the executable file to determine an execution profile, the execution profile comprising information about one or more sections of code and / or one or more memory regions that trigger activation or deactivation of the noise injection mode.
8. The device according to claim 1, wherein: The processing circuit is used to execute the machine-readable instructions to identify a trigger for activating or deactivating the noise injection mode during execution of the executable file, so that the noise injection mode is activated when a predefined instruction set is executed, when a predefined memory area is accessed, or when a predefined library is called, and is deactivated thereafter.
9. The device according to claim 1, wherein: The processing circuit is configured to execute the machine-readable instructions to determine a desired noise injection amount and to activate the noise injection mode at the desired noise injection amount.
10. The device according to claim 9, wherein: The processing circuit is configured to execute the machine-readable instructions to determine a desired signal-to-noise ratio for execution of the executable file and to determine the desired noise injection amount based on the desired signal-to-noise ratio.
11. The device according to claim 10, wherein: The processing circuit is to execute the machine-readable instructions to determine the desired signal-to-noise ratio based on a vulnerability of the executable file to a side-channel attack.
12. The device according to claim 10, wherein: The processing circuit is configured to execute the machine-readable instructions to obtain the desired signal-to-noise ratio from an execution manifest bundled with the executable file.
13. The device according to claim 10, wherein: The processing circuit is configured to execute the machine-readable instructions to determine the desired noise injection amount based further on a load of a computer system used to execute the executable file.
14. The device according to claim 10, wherein: The processing circuit is configured to execute the machine-readable instructions to determine the expected noise injection amount by performing a self-test at the start of at least one of: a runtime environment for executing the executable file, a hypervisor hosting a virtual machine for executing the executable file, an operating system for executing the executable file, and a computer system for executing the executable file.
15. The device according to claim 10, wherein: The processing circuit is configured to execute the machine-readable instructions to determine the desired noise injection amount based on a pre-disclosure minimum trace (MTD) parameter.
16. The device according to claim 10, wherein: The processing circuit is to execute the machine-readable instructions to detect a side-channel attack performed during execution of the executable file and to determine the desired amount of noise injection further based on whether a side-channel attack is being performed during execution of the executable file.
17. The device according to claim 1, wherein: The processing circuit is configured to execute the machine-readable instructions to process an execution manifest bundled with the executable file, the execution manifest indicating whether noise injection is required when executing the executable file, and execute the executable file based on the execution manifest.
18. A method for executing an executable file, the method comprising: identifying, for the executable file during execution of the executable file, a trigger for activating or deactivating a noise injection mode, the noise injection mode being adapted for introducing noise during execution of the executable file; and The noise injection mode is activated or deactivated based on the identified trigger.
19. A non-transitory machine-readable storage medium comprising a program code, which, when executed, causes a machine to perform the method of claim 18.
20. A method for executing an executable file, the method comprising: processing an execution manifest, the execution manifest indicating whether a noise injection mode needs to be activated when executing the executable file, the noise injection mode being suitable for introducing noise during execution of the executable file; and The executable file is executed based on the execution list by activating or deactivating the noise injection mode based on the execution list.
21. The method according to claim 20, wherein: The execution manifest is bundled with the executable file, or wherein the execution manifest is obtained separately from the executable file.
22. A non-transitory machine-readable storage medium comprising a program code which, when executed, causes a machine to perform the method of one of claims 20 or 21.
23. A method for distributing software or firmware, the method comprising: Providing executable files of said software or firmware; and The execution manifest is provided by bundling the execution manifest with the executable file, the execution manifest indicating whether a noise injection mode needs to be activated when the executable file is executed, the noise injection mode being suitable for introducing noise during execution of the executable file.
24. The method according to claim 23, wherein: The execution manifest is bundled with the executable file by an original software vendor of the executable file, or wherein the execution manifest is provided together with the executable file.
25. A non-transitory machine-readable storage medium comprising a program code which, when executed, causes a machine to perform the method of one of claims 23 or 24.
