Information processing device, information processing method, and program
The information processing device addresses the issue of unnecessary shutdowns by selectively handling tampered modules based on startup mode, ensuring security and maintaining operational efficiency.
Patent Information
- Application Number
- JP2023122056
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-07-26
- Publication Date
- 2024-10-28
- Estimated Expiration
- 2039-06-27
AI Technical Summary
Existing systems stop the information processing device even when tampering with modules does not affect the current startup mode, leading to a decrease in operating rate.
An information processing device that detects tampering during execution and includes a request receiving unit, tampering detection units, and an error control unit to selectively stop the system or prohibit module execution based on the startup mode.
Prevents unnecessary system shutdowns when tampering does not affect functionality, maintaining security while improving operating rates.
Smart Images

Figure 0007574367000001 
Figure 0007574367000002 
Figure 0007574367000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and a program for detecting tampering. [Background technology]
[0002] Attacks in which a third party tampers with a program (hereinafter sometimes referred to as a module or an execution module) that controls an information processing device in an illegal manner to steal information assets in the information processing device, or attacks in which an information processing device with a tampered module is used as a springboard, have become a problem. To prevent such attacks, a method has been devised for verifying that a module in an information processing device has not been tampered with by a third party.
[0003] In order to ensure that a module within an information processing device has not been tampered with when a user uses a function realized by the information processing device, it is necessary to verify the integrity of the module that realizes the function immediately before execution.
[0004] In Patent Document 1, a module execution request is received, the hash value of the module is calculated, and compared with the whitelist, and the module is started only if it matches. The whitelist is a list of modules that are permitted to be started, and the hash value of a normal module is held for each module as a correct hash value in order to detect tampering with the module. In order to improve the operation rate, when tampering with a module not registered in the whitelist or an extended JAVA (registered trademark) application is detected, the execution of the module is simply prohibited, and the system does not stop, so the information processing device can be used continuously. On the other hand, since other modules affect the normal operation of the system, the system is stopped and operation is suspended. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent application 2018-214138 Summary of the Invention [Problem to be solved by the invention]
[0006] However, in Patent Document 1, since the start mode of the information processing device is not taken into consideration, even if tampering of a module that does not affect the function of the current start mode is detected, the system is stopped, and the operation rate is reduced. For example, an image forming device MFP (Multi-Functional Peripheral: multifunction device), which is an example of an information processing device, has a normal start mode (STD mode) and an update start mode (SAFE mode). Modules exist for each start mode. In the case of Patent Document 1, even if tampering of a module for SAFE mode is detected while starting in STD mode, the system is stopped even though the function of STD mode is not affected, and the operation rate is reduced. The present invention has been made in consideration of the above problem, and aims to prevent a decrease in the operation rate when tampering is detected by execution module verification using a whitelist. [Means for solving the problem]
[0007] The present invention is an information processing device that performs tamper detection during execution of an execution module during operation, the information processing device including a request receiving unit that receives an execution request issued by the execution module, a tamper detection unit that detects tampering of the execution module that issued the execution request, and a tamper detection unit that, when tampering is detected by the tamper detection unit, detects tampering of the execution module that issued the execution request. Is this a module for a particular mode? and an error control unit which selectively controls whether to halt the system of the information processing device or to prohibit only the execution of the execution module which issued the execution request in response to the request. Effect of the Invention
[0008] According to the present invention, in an information processing device having multiple startup modes, if tampering with a module that does not affect the functionality of the current startup mode is detected, the system does not stop but only prevents the execution of that module, thereby improving uptime while maintaining security. [Brief description of the drawings]
[0009] [Figure 1] FIG. 2 is a block diagram showing a connection form between an MFP and a PC according to the present invention. [Diagram 2] FIG. 2 is a diagram showing the internal configuration of a controller unit of the MFP according to the first embodiment. [Diagram 3] FIG. 2 is a block diagram of the software executed in a controller of the MFP according to the first embodiment. [Figure 4] FIG. 11 is a block diagram of the software executed in a controller of the MFP according to the second embodiment. [Diagram 5] An example of data placed in Flash ROM. [Figure 6] Whitelist example. [Figure 7] 11 is a flowchart for carrying out processing on the MFP side according to the first embodiment. [Figure 8] 11 is a flowchart for carrying out processing on the MFP side according to a modified example of the first embodiment. [Figure 9] 10 is a flowchart for carrying out processing on the MFP side according to the second embodiment. [Figure 10] 13 is a flowchart for implementing a process on the MFP side of a whitelist regeneration process according to the second embodiment. [Figure 11] FIG. 11 is a diagram showing the internal configuration of a controller unit of an MFP according to a second embodiment. [Figure 12] A diagram showing the configuration of the error display screen when a module is stopped. [Figure 13] A diagram of the error display screen when the system is stopped. [Figure 14] FIG. 13 is a configuration diagram of a setting display screen according to a modified example of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, information processing according to an embodiment of the present invention will be described in detail with reference to the drawings. In this embodiment, a runtime module verification process when an information processing device executes a module, and a control process of the information processing device when verification fails will be described. In this embodiment, an MFP, which is an image forming device, will be described as an example of an information processing device, but the present invention is a technology that can be applied to information processing devices other than multifunction devices.
[0011] Example 1 (Apparatus configuration of Example 1) The connection form between the MFP and the client PC according to the present invention will be explained with reference to the block diagram of FIG.
[0012] The MFP 100 and client PC 110 are connected via a LAN 120. The MFP 100 has an operation unit 102 that inputs and outputs data to and from the user. The MFP 100 has a printer unit 103 that outputs electronic data to paper media. The MFP 100 has a scanner unit 104 that reads paper media and converts it into electronic data. The operation unit 102, printer unit 103, and scanner unit 104 are connected to a controller unit 101, and function as a multifunction peripheral according to the control of the controller unit 101. The client PC 110 performs processes such as sending print jobs to the MFP 100.
[0013] FIG. 2 is a block diagram showing details of the controller unit 101 of the MFP. The CPU 201 performs main arithmetic processing within the controller. The CPU 201 is connected to the DRAM 202 via a bus. The DRAM 202 is used by the CPU 201 as a working memory for temporarily storing program data representing arithmetic instructions during the CPU 201's arithmetic process and data to be processed. The CPU 201 is connected to the I / O controller 203 via a bus. The I / O controller 203 performs input / output to various devices according to instructions from the CPU 201. A SATA (Serial Advanced Technology Attachment) I / F 205 is connected to the I / O controller 203, and a Flash ROM 211 is connected to the SATA I / F 205. The CPU 201 uses the Flash ROM 211 to permanently store programs for implementing the functions of the MFP and document files. A network I / F 204 is connected to the I / O controller 203, and a wired LAN device 210 is connected to the network I / F 204.
[0014] The CPU 201 realizes communication on the LAN 120 by controlling the wired LAN device 210 via the network I / F 204. A panel I / F 206 is connected to the I / O controller 203, and the CPU 201 realizes input / output for the user to the operation unit 102 via the panel I / F 206. A printer I / F 207 is connected to the I / O controller 203, and the CPU 201 realizes output processing of paper media using the printer unit 103 via the printer I / F 207. A scanner I / F 208 is connected to the I / O controller 203, and the CPU 201 realizes reading processing of an original using the scanner unit 104 via the scanner I / F 208. A USB I / F 209 is connected to the I / O controller 203, and controls any device connected to the USB I / F 209. The ROM 220 is connected to the CPU 201 via a bus, and stores a control program that realizes a BIOS (Basic Input Output System) 360, which will be described later.
[0015] When performing a copy function, the CPU 201 loads program data (module data) from the Flash ROM 211 into the DRAM 202 via the SATA I / F 205. The CPU 201 detects a copy instruction from the user to the operation unit 102 via the panel I / F 206 in accordance with the program (module) loaded into the DRAM 202. When the CPU 201 detects a copy instruction, it receives an original as electronic data from the scanner unit 104 via the scanner I / F 208 and stores it in the DRAM 202. The CPU 201 performs color conversion processing suitable for output on the image data stored in the DRAM 202. The CPU 201 transfers the image data stored in the DRAM 202 to the printer unit 103 via the printer I / F 207, and performs output processing onto paper media.
[0016] When PDL printing is performed, the client PC 110 issues a print instruction via the LAN 120. The CPU 201 loads module data from the Flash ROM 211 via the SATA I / F 205 into the DRAM 202, and detects a print instruction via the network I / F 204 according to the module loaded into the DRAM 202. When the CPU 201 detects a PDL transmission instruction, it receives print data via the network I / F 204, and stores the print data in the Flash ROM 211 via the SATA I / F 205. When the CPU 201 has completed storing the print data, it develops the print data stored in the Flash ROM 211 into the DRAM 202 as image data. The CPU 201 performs color conversion processing suitable for output on the image data stored in the DRAM 202. The CPU 201 transfers the image data stored in the DRAM 202 to the printer unit 103 via the printer I / F 207, and performs output processing onto paper media.
[0017] The functional configuration and the flow of the runtime tamper detection process in this embodiment will be described below.
[0018] (Functional configuration of the first embodiment) An example of a functional configuration realized by software executed in the controller unit 101 of the MFP of the first embodiment will be described with reference to the block diagram of Fig. 3. All of the software executed in the controller unit 101 is executed by the CPU 201.
[0019] The CPU 201 executes the BIOS 360 stored in the ROM 220. The CPU 201 loads the loader 370, initrd 380, and controller software 300 stored in the Flash ROM 211 into the DRAM 202 and then executes them. The BIOS 360 executes basic processing for the CPU 201 to control the I / O controller 203 and the DRAM 202. The BIOS 360 further includes processing for reading the loader 370 from the Flash ROM 211 and starting it up. The loader 370 loads the kernel 390 and initrd 380 according to the boot mode (to be described later) from the Flash ROM 211 and starts it up. The initrd 380 loads the controller software 300 from the Flash ROM 211 and starts it up.
[0020] An operation control unit 301 displays a screen image for the user on the operation unit 102, detects a user operation, and executes processing associated with screen components such as buttons displayed on the screen.
[0021] In response to a request from another control unit, the data storage unit 302 stores and reads data in the Flash ROM 211. For example, when a user wants to change some device setting, the operation control unit 301 detects the content input by the user to the operation unit 102, and in response to a request from the operation control unit 301, the data storage unit 302 saves the content in the Flash ROM 211 as a setting value.
[0022] A job control unit 303 controls job execution according to instructions from other control units.
[0023] An image processing unit 304 processes the image data into a format suitable for each purpose according to instructions from the job control unit 303 .
[0024] A print processing unit 305 prints and outputs an image on a paper medium via a printer I / F 207 in accordance with an instruction from the job control unit 303 .
[0025] The reading processing unit 306 reads the placed original via the scanner I / F 208 in accordance with an instruction from the job control unit 303 .
[0026] A network control unit 307 performs network settings such as IP address settings in a TCP / IP control unit 308 at system startup or when a change in settings is detected, in accordance with the setting values stored in the data storage unit 302 .
[0027] A TCP / IP control unit 308 performs transmission and reception processing of network packets via the network I / F 204 in accordance with instructions from other controls.
[0028] The USB control unit 309 controls the USB I / F 209, and controls any device connected via USB.
[0029] The execution request receiving unit 310 receives execution requests for modules A 502 and B 512 arranged on Flash ROM 211, which will be described later, when the MFP 100 is operating. Here, when the MFP 100 is operating refers to a state in which the BIOS 360, loader 370, initrd 380, kernel 390, and controller software 300 have started up normally and are capable of providing the functions of the MFP 100. In other words, the execution request receiving unit 310 has a function of receiving execution requests for modules that are appropriately executed when the MFP 100 is operating.
[0030] The first tampering detection unit 311 detects tampering of the STD whitelist 503 and the SAFE whitelist 513 arranged on the Flash ROM 211 in FIG. 5 described later. For example, a digital signature verification using a public key encryption algorithm can be used as a method of tampering detection. In this case, the first tampering detection unit 311 can detect tampering of the whitelist by verifying the signature value (signature data) of the whitelist using a public key that is a signature verification key. When tampering of the whitelist is detected, the first tampering detection unit 311 notifies the user that tampering has been detected via the notification unit 314 described later, and stops the system.
[0031] The second tampering detection unit 312 detects tampering of the module that issued the execution request received by the execution request receiving unit 310, using the whitelist determined by the first tampering detection unit 311 to be tamper-free. An example of the whitelist is a list in which, for each module to be verified, the module name and the hash value (correct hash value) of the module in a tamper-free state are written together, as shown in FIG. 6. As the hash value, for example, well-known SHA256, SHA512, etc. can be used. In order for the error control unit 313 described later to determine which startup mode the module is for, the whitelist is divided into an STD whitelist 503 in which STD modules are written and a SAFE whitelist 513 in which SAFE modules are written. This is merely an example, and the embodiment of the present invention can also be realized by modifying the module names so that STD modules and SAFE modules can be distinguished from each other as one whitelist 601. The second tamper detection unit 312 judges whether the module that issued the execution request (hereinafter, may be referred to as the execution module) is registered in the whitelist described above. If the module is registered, the second tamper detection unit 312 detects tampering of the execution module by calculating the hash value of the execution module and comparing it with the correct hash value in the whitelist. If the execution module is not registered in the whitelist, only the execution of the execution module is prohibited (execution is stopped), the system continues to operate without being stopped, and the user is notified that the execution module has been stopped via the notification unit 314 described later.
[0032] When the second tamper detection unit 312 determines that the hash value of the execution module does not match the correct hash value, the error control unit 313 switches error processing depending on whether the execution module is a module for the current startup mode. Specifically, when the execution module is not a module for the current startup mode, it is determined that there is no effect on the function of the current startup mode, and the system is not stopped, and only the execution request of the execution module is rejected. At this time, the execution of the module is prohibited. On the other hand, when the execution module is a module for the current startup mode, it is determined that there is an effect on the function of the current startup mode, and the system is stopped. As a method of determining which startup mode the execution module is a module for, for example, if the area in which the execution module is saved is the normal startup area (STD area) 501 of the Flash ROM 211 described later, it can be determined that it is an STD module. If it is the update startup area (SAFE area) 511, it can be determined that it is a SAFE module. Regarding the determination of the current startup mode, for example, if a startup mode flag 521 of the Flash ROM 211 described later is 0, the current startup mode can be determined as STD startup, and if it is 1, it can be determined as SAFE startup. By these means, it can be determined whether the current startup mode and the startup mode of the execution module match. Note that the value of the startup mode flag 521 is merely an example. For example, if the startup mode flag 521 is 1, it may be determined to be SAFE startup, and if it is 0, it may be determined to be STD startup.
[0033] When the first tamper detection unit 311, the second tamper detection unit 312, and the error control unit 313 stop an execution module or stop the system, the notification unit 314 notifies the user of that fact. There are the following notification methods. For example, the "module / whitelist name where tampering was detected," "detection time," and "executed error processing (module stop, system stop)" are made into a log file for each event that occurred. Then, there is a method of recording and saving one line at a time as a log file in the data storage unit 302. The recorded and saved log file can be transmitted to an external management server or displayed on the operation unit 102 so that the administrator can check the error situation. In addition, it is also possible to display the fact that tampering has been detected via a display area 1206 of the operation unit 102 as shown in FIG. 12. FIG. 12 shows a menu screen 1201 displayed on the operation unit 102, which is used by the user to instruct the execution of various functions of the multifunction device. A button 1202 is used by the user to instruct the copy function. The button 1203 is used by the user to instruct the function of scanning and saving. The button 1204 is used by the user to instruct the function of scanning and sending. The button 1205 is used by the user to instruct the change of the setting of the device. The display area 1206 displays various messages for the user that occur during the operation of the device. For example, when an execution module not registered in the whitelist is detected, the user can be notified by displaying "Execution of unknown program has been blocked" in the display area 1206. In this way, when only the execution module is stopped without stopping the system, the notification via the display area 1206 can be used. On the other hand, as a notification when the system is stopped, a message indicating that the system has been stopped is displayed on the entire surface 1301 of the operation unit 102 as shown in FIG. 13. In order to stop the system, the button display is removed, and a message indicating that the system has been stopped due to tampering detection is displayed on the entire surface 1301. The above-mentioned recording in the log file and the error display on the operation unit 102 may be performed either alone or both.
[0034] FIG. 5 shows an example of data stored in the Flash ROM 211.
[0035] The FlashROM 211 logically divides the usage area for each boot mode into a normal boot area (STD boot area) 501, an update boot area (SAFE boot area) 511, and other common areas. This is merely an example, and boot modes other than STD and SAFE may be additionally provided, in which case the FlashROM 211 area can also be divided into additional areas. The STD boot area 501 includes a module A 502, a whitelist for STD 503, a kernel for STD 504, and an initrd for STD 505, which will be described later. The SAFE boot area 511 includes a module B 512, a whitelist for SAFE 513, a kernel for SAFE 514, and an initrd for SAFE 515, which will be described later. A boot mode flag 521 stored in the common area is used to determine the current boot mode, etc. For example, the loader 370 reads the start mode flag 521, and if the flag indicates STD start, the loader 370 starts STD start by loading the STD kernel 504 and the STD initrd 505. Similarly, if the start mode flag 521 indicates SAFE start, the loader 370 starts SAFE start by loading the SAFE kernel 514 and the SAFE initrd 515. The module A 502 includes a module for STD start, and by executing this module, a function required for normal start is provided via the MFP 100. Similarly, the module B 512 includes a module for SAFE start, and by executing this module, a function required for update start is provided via the MFP 100. In the STD whitelist 503, as shown in FIG. 6, the module A 502 for STD start, which is the target of execution module verification, is described together with the correct hash value. In the SAFE whitelist 513, as shown in FIG. 6, the module B 512 for SAFE start, which is the target of execution module verification, is described together with the correct hash value. In the following description, the module included in STD startup area 501 is described as module A 502, and the module included in SAFE startup area 511 is described as module B 512, but a plurality of other modules may be included.
[0036] (Processing flow of the first embodiment) The execution time tamper detection process and the process when an error occurs (when tampering is detected) in this embodiment will be described with reference to the flowcharts in FIGS.
[0037] The execution request receiving unit 310 receives an execution request for a module (S701). The first tampering detection unit 311 verifies whether or not the whitelist has been tampered with (S702). When tampering with the whitelist is detected (S702), the notification unit 314 records a log and displays a screen on the operation unit 102 to notify the user, and the system is stopped (S710, S711, S712). When the whitelist is not tampered with (S702), the second tampering detection unit checks whether or not the module that issued the execution request is registered in the whitelist (S704). When the module is not registered in the whitelist (S705), the notification unit 314 records a log and displays a screen on the operation unit 102 to notify the user. The execution request received by the execution request receiving unit 310 is rejected, and the execution of the module is blocked (stopped) (S720, S721, S722). If the module is registered in the whitelist (S705), the second tamper detection unit calculates the hash value of the module and compares it with the correct hash value registered in the whitelist (S706, S707). If the hash values match as a result of the comparison (S707), the module is permitted to be executed and executed (S708). If the hash values do not match (S707), the error control unit 313 determines whether the module is for the current startup mode (S731), and if it is for the current startup mode, the system is stopped (S710, S711, S712). If it is for a startup mode different from the current startup mode (S731), only the module is stopped (S720, S721, S722).
[0038] It should be noted that the order of log recording / user notification (S711) and system shutdown (S712), and the processing order of module execution refusal (S721) and log recording / user notification (S722) are merely examples, and the order may be reversed.
[0039] In this way, in this embodiment, if tampering with a module that does not affect the functionality of the current startup mode is detected, the system does not stop, but only the execution module in question is stopped, thereby improving uptime while maintaining security.
[0040] (Modification of the first embodiment) In the first embodiment, the error processing is switched by the error control unit 313 according to the start mode of the execution module, but it can also be switched according to the start mode of the whitelist. Specifically, when the first tampering detection unit 311 detects tampering of the whitelist, the system is immediately stopped (S710) in the first embodiment, but in this modified example, when tampering of a whitelist other than that for the current start mode is detected, only the execution module is stopped. The method of determining whether or not it is a whitelist for the current start mode can be determined in the same way as for the module. Specifically, the current start mode is determined by the start mode flag 521, and it can be determined which start mode the whitelist currently referred to in the storage area of the whitelists 503 and 513 is for. For example, when the start mode flag 521 indicates the STD start mode, when tampering of the STD whitelist 503 is detected, the system is stopped, and when tampering of the SAFE whitelist 513 is detected, only the execution module is stopped. That is, in this modified example, the error control unit 313 further includes an error processing switching function based on the start-up mode determination of the whitelist described above.
[0041] The processing flow of this modified example will be described with reference to Figs. 7(A), (C), (D) and 8. The execution request receiving unit 310 receives an execution request for a module (S701). The first tampering detection unit 311 verifies whether or not the whitelist has been tampered with (S702). When tampering with the whitelist is detected, the error control unit 313 determines whether or not the whitelist is for the current startup mode (S801), and if it is for the current startup mode, the system is stopped (S710, S711, S712). On the other hand, if it is determined that the whitelist is for a startup mode different from the current startup mode (S801), only the module that issued the execution request is stopped (S720, S721, S722).
[0042] In this way, in this variant, if tampering with the whitelist that is unrelated to the whitelist's current startup mode is detected, the system does not stop, but only the execution module is stopped, thereby improving uptime while maintaining security.
[0043] Example 2 Hereinafter, information processing according to a second embodiment of the present invention will be described. In the second embodiment, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted.
[0044] In the second embodiment, when the first tampering detection unit 311 detects tampering of the whitelist, it is determined whether the MFP 100 is in a normal state, and if it is normal, it regenerates the whitelist from the current module. Since the system and modules are not stopped, and the whitelist is automatically regenerated if possible and operation continues, the operating rate can be further improved.
[0045] The device configuration, functional configuration, and processing flow in this embodiment will be described below.
[0046] (Apparatus configuration of Example 2) An example of the device configuration of the second embodiment will be described with reference to the block diagram of FIG.
[0047] In the second embodiment, in addition to the device configuration of the first embodiment, a TPM (Trusted Platform Module) 1101 which is a tamper-resistant security chip, and a BIOS verification unit 1102 are further provided.
[0048] The TPM1101 is a security chip with tamper resistance. Tamper resistance is a characteristic that makes external analysis difficult and protects itself by destroying modules or data stored inside if an attempt is made to analyze from the outside. The TPM1101 also holds NVRAM and multiple PCRs. NVRAM is a non-volatile memory to which any data can be written and read. The PCR is a volatile memory, and stores hash values of the BIOS 360, the loader 370, the initrd 380, the kernel 390, and the like when the MFP 100 is started up.
[0049] Here, the process of saving a hash value to a PCR will be explained. In the hash value saving process, the following formula is calculated using a hash value Hash1 already saved in a specific PCR and a hash value Hash2 of software or data input from outside the TPM 1101, and the calculated value Result1 is saved in the PCR.
[0050] Result1=H(Hash1|Hash2) (Formula 1) H(x) is a hash function for the value x. Well-known algorithms such as SHA1, SHA256, and SHA512 can be used as the hash function. “x|y” is the concatenation of the value x and the value y.
[0051] The above-described process of storing a hash value in a PCR is executed when the MFP 100 is started up.
[0052] The TPM 1101 also has a device certification function called the quote function, which uses a signature generation key managed within the TPM 1101 to attach a digital signature (signature data) to a hash value stored in the PCR and transmits it to an external server. Using the signature data generated by the quote function and the hash value of the PCR, the external server can verify the integrity of the module started by the MFP 100. Specifically, the external server verifies the signature data of the hash value of the PCR received from the MFP 100 with a signature verification key to verify whether the hash value of the PCR also received has been tampered with. If the signature verification is successful, the external server can remotely detect tampering of each module of the MFP 100 by comparing the correct hash value of each module of the MFP 100 held by the external server with the hash value of the received PCR.
[0053] The BIOS verification unit 1102 is connected to the ROM 220 and the CPU 201 via a bus, and verifies the BIOS data stored in the ROM 220 and issues a BIOS startup command to the CPU 201. Here, it is clearly stated that the BIOS verification unit 1102 is hardware, and it is confirmed that the BIOS verification is hardware verification. In order to prevent malicious third parties from tampering with the bus connecting the BIOS verification unit 1102 and the CPU 201, the bus is realized by the same chip or a configuration equivalent thereto, and is in a form that cannot be physically confirmed from the outside. In this embodiment, it is assumed that the control mechanism of the BIOS verification unit 1102 is realized by hardware as an integrated circuit, but elements such as a dedicated CPU and a ROM storing control software may be implemented in the same chip, and the configuration may be such that it cannot be changed after manufacturing.
[0054] (Functional configuration of the second embodiment) An example of the functional configuration of the second embodiment will be described with reference to the block diagram of FIG.
[0055] In the second embodiment, in addition to the functional configuration of the first embodiment, a loader read verification control unit 461, a kernel and initrd read verification control unit 471, a boot time verification unit 481, a whitelist generation unit 401, a device certification unit 402, and a log confirmation unit 403 are further provided. Also, the BIOS 360, the loader 370, and the initrd 380 have some additional functions in addition to those of the first embodiment, and will be described below together.
[0056] In addition to the functions of the first embodiment, the BIOS 360 is internally configured with control software as the BIOS and signature data corresponding to the control software.
[0057] In addition to the functions of the first embodiment, the loader 370 is internally configured with control software as a loader and signature data corresponding to the control software.
[0058] In addition to the functions of the first embodiment, initrd 380 is internally configured with control software as an initrd and signature data for the control software.
[0059] The loader reading verification control unit 461 is included in the control software of the BIOS 360, and includes a process for verifying the loader and a public key corresponding to the signature added to the loader.
[0060] The kernel and initrd read verification control unit 471 is included in the loader 370, and includes a process for verifying the kernel and initrd and a public key for the signature added to the kernel and initrd.
[0061] The start-up verification unit 481 is included in the initrd 380, and performs a process of verifying all modules constituting the controller software 300 at start-up, and includes a public key for the attached signature. Here, the private keys for all signature data are used only during software development and are not generally distributed.
[0062] The verification of each module at startup by the aforementioned BIOS verification unit 1102, loader reading verification control unit 461, kernel, initrd reading verification control unit 471, and startup verification unit 481 may be collectively referred to as a startup verification function.
[0063] When the first tampering detection unit 311 detects tampering of the whitelist, the whitelist generation unit 401 regenerates the whitelist only if it is determined that the MFP 100 is normal. To determine whether the MFP 100 is normal or not, the above-mentioned startup verification function, or verification by the device certification unit 402 or verification by the log confirmation unit 403, which will be described later, can be used. The whitelist is regenerated by calculating hash values from various modules (module A 502, module B 512) in the MFP 100 that are determined to be normal, generating the whitelist shown in FIG. 6, and replacing the tampered whitelist. In addition, tampering of the whitelist can be detected by generating signature data of the regenerated whitelist using a signature generation key held by the TPM 1101 or the like.
[0064] The device certification unit 402 uses the quote function of the TPM 1101 described above to inquire of an external server via the TCP / IP control unit 308 whether modules such as the BIOS 360, the loader 370, the initrd 380, and the kernel 390 have been tampered with. This makes it possible to remotely determine whether the MFP 100 is normal.
[0065] Log checking unit 403 reads the log file recorded by notification unit 314, and checks whether a log indicating that a module has been tampered with is recorded, thereby judging whether various modules of MFP 100 are normal or not. Specifically, if the log file indicates that a module has been tampered with, MFP 100 is judged to be abnormal since a tampered module exists. On the other hand, if no tampering is recorded, all modules are judged to be normal, and MFP 100 itself is also judged to be normal. Note that this is merely an example, and for example, even if the log file indicates that a module has been tampered with, if there is a description indicating that the tampered module has been restored to a normal state thereafter, it may be judged that the module has returned to normal, and MFP 100 may be judged to be normal.
[0066] (Processing flow of Example 2) The processing flow of the second embodiment will be described with reference to the flowcharts of FIG. 9 and FIGS.
[0067] First, the flow of the whitelist regeneration process using the startup verification function will be described with reference to FIG. 9 and FIG. 10(A).
[0068] The execution request receiving unit 310 receives a module execution request (S701). The first tampering detection unit 311 verifies whether or not the whitelist has been tampered with (S702). When tampering with the whitelist is detected (S901), the system is rebooted (S1001). Then, the BIOS verification unit 1102, the loader reading verification control unit 461, the kernel, initrd reading verification control unit 471, and the startup verification unit 481 perform startup verification (S1002). When no tampering is detected in the startup verification (S1003), the MFP 100 is determined to be normal, and the whitelist generation unit 401 regenerates the whitelist (S903). When tampering is detected in the startup verification (S1003), the MFP 100 is determined to be abnormal, and the system is stopped (S710).
[0069] Next, the flow of the whitelist regeneration process using the device certification function (quote function) of the TPM 1101 will be described with reference to FIG. 9 and FIG. 10(B).
[0070] The execution request receiving unit 310 receives a module execution request (S701). The first tampering detection unit 311 verifies whether or not the whitelist has been tampered with (S702). If tampering with the whitelist is detected (S901), the device certification unit 402 performs device certification using the quote function of the TPM 1101 (S1011). If no tampering is detected by the device certification (S1012), the MFP 100 is determined to be normal, and the whitelist generation unit 401 regenerates the whitelist (S903). If tampering is detected by the device certification (S1012), the MFP 100 is determined to be abnormal, and the system is stopped (S710).
[0071] Finally, the flow of the whitelist regeneration process performed by the log check unit 403 will be described with reference to FIG. 9 and FIG. 10(C).
[0072] The execution request receiving unit 310 receives a module execution request (S701). The first tampering detection unit 311 verifies whether or not the whitelist has been tampered with (S702, S703). When tampering with the whitelist is detected (S901), the log checking unit 403 checks the log file to determine whether or not the MFP 100 is normal (S1021). If it is determined that the MFP 100 is normal as a result of checking the log file, the whitelist generating unit 401 regenerates the whitelist (S903). When it is determined that the MFP 100 is not normal, the system is stopped (S710).
[0073] In this manner, in this embodiment, if the whitelist has been tampered with, the system is not stopped and an attempt is made to regenerate the whitelist as long as the various modules of MFP 100 are normal, thereby improving the operating rate.
[0074] (Modification of the second embodiment) In the second embodiment, when tampering with the whitelist is detected, the whitelist generation unit 401 may dynamically select a means for checking whether the MFP 100 is normal or not according to an available means. A description will be given using a setting screen 1401 in FIG. 14. FIG. 14 shows a setting screen 1401 displayed on the operation unit 102 after screen transition by pressing the setting button 1205 in FIG. 12. When the log record 1402 is selected, the event recording function in the log file by the notification unit 314 described above is enabled. When the TPM function 1403 is selected, the device certification function by the hash value storage in the PCR of the TPM 1101 and quote described above is enabled. When the start-up verification 1404 is selected, the start-up verification function described above is enabled. For example, in the setting screen 1401 in FIG. 14, only the TPM function 1403 is enabled, so the whitelist generation unit 401 uses the device certification function by the device certification unit 402 to check whether the MFP 100 is normal or not (S1011, S1012). Similarly, when only log recording 1402 is valid, whitelist generation unit 401 uses log confirmation unit 403 to confirm whether MFP 100 is normal or not (S1021). When only startup verification 1404 is valid, reboot (S1001). Then, startup verification is performed by BIOS verification unit 1102, loader read verification control unit 461, kernel, initrd read verification control unit 471, and startup verification unit 481 to confirm whether MFP 100 is normal or not (S1002, S1003).
[0075] In the above description, the case where only one of the settings is valid has been described, but the present invention can also be applied to the case where multiple settings are valid at the same time. In that case, it is sufficient to assign priorities and select the one with the highest priority. For example, consider a case where the log record 1402, the TPM function 1403, and the startup verification 1404 are all valid, and the priorities are set as "1" for the log record 1402, "2" for the TPM function 1403, and "3" for the startup verification 1404 (the higher the number, the higher the priority). In this case, the whitelist generation unit 401 can use the startup verification function with the highest priority to check whether the MFP 100 is normal or not. On the other hand, when all the settings are invalid, the state of the MFP 100 cannot be confirmed, so the system is stopped or the module is stopped only without regenerating the whitelist as in the first embodiment.
[0076] In this way, this modified example allows the whitelist to be dynamically regenerated in the most optimal manner depending on the available functions, thereby improving the operating rate.
[0077] (Other Examples) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
Claims
1. An information processing device that detects tampering of an execution module during operation, a request receiving unit that receives an execution request issued by the execution module; a tamper detection unit that detects tampering with the execution module that issued the execution request; When the tampering detection unit detects tampering, and an error control unit that selectively controls whether to stop the system of the information processing device or to prohibit only the execution module that issued the execution request, depending on whether the execution module that issued the execution request is a module for a specific mode.
2. the error control unit determines a start-up mode to be used by the execution module that issued the execution request according to a storage area of the execution module; shutting down the system of the information processing device when the determined startup mode in which the execution module that issued the execution request is used is the same as the current startup mode; 2. The information processing apparatus according to claim 1, wherein when the determined start mode used by the execution module which issued the execution request is different from the current start mode, only the execution of the execution module which issued the execution request is prohibited.
3. The error control unit further includes, when tampering with a whitelist used by the tampering detection unit is detected, according to a storage area of the whitelist, 3. The information processing apparatus according to claim 1, further comprising a step of selectively controlling whether to stop the system of the information processing apparatus or to prohibit only the execution of the execution module which has issued the execution request.
4. An information processing device that performs runtime tamper detection of an execution module during operation using a whitelist, a request receiving unit that receives an execution request issued by the execution module; a first tampering detection unit that detects tampering of the whitelist upon receiving the execution request; The execution request is made using the whitelist that is determined to be unaltered by the first tampering detection unit. a second tamper detection unit that detects tampering with the issued execution module; When the second tamper detection unit detects tampering, An information processing device characterized by having an error control unit that selects and controls whether to stop the system of the information processing device or to prohibit only the execution of the execution module that issued the execution request depending on the type of the execution module that issued the execution request, and a whitelist generation unit that regenerates a whitelist by checking whether the information processing device is normal when the first tampering detection unit detects tampering with a whitelist.
5. The information processing device according to claim 4, characterized in that the whitelist generation unit regenerates a whitelist when it is confirmed that the information processing device is normal, and when it is not confirmed that the information processing device is normal, it shuts down the system of the information processing device or prohibits only the execution of the execution module that issued the execution request.
6. The information processing device further checks a log file in which the detection of tampering by the first tampering detection unit or the second tampering detection unit is recorded, a log checking unit for checking whether the information processing device is normal; 6. The information processing apparatus according to claim 4, wherein the whitelist generating unit checks whether the information processing apparatus is normal by using the log checking unit.
7. The information processing device according to claim 4 or 5, further comprising a startup verification unit that detects tampering with modules that are started in sequence when the information processing device is started, thereby verifying whether the information processing device is normal or not.
8. The information processing device according to claim 4 or 5, further comprising a TPM, which is a tamper-resistant security chip, and a device certification unit that verifies, on an external server, the hash values of modules that are started in sequence when the information processing device is started, the hash values being stored in the TPM.
9. An information processing method including an information processing device that detects tampering of an execution module during operation, the information processing method comprising: a request receiving step of receiving an execution request issued by the execution module; a tamper detection step of detecting tampering with the execution module that issued the execution request; When tampering is detected in the tampering detection step, Depending on whether the execution module that issued the execution request is a module for a specific mode, an error control step of selectively controlling whether to stop the system of the information processing device or to prohibit only the execution of the execution module which issued the execution request.
10. An information processing method including an information processing device that performs runtime tamper detection of an execution module during operation using a whitelist, a request receiving step of receiving an execution request issued by the execution module; a first tampering detection step of detecting tampering of the whitelist upon receiving the execution request; a second tampering detection step of detecting tampering of the execution module that issued the execution request by using the whitelist determined to be unaltered in the first tampering detection step; When tampering is detected in the second tampering detection step, Depending on the type of execution module that issued the execution request, an error control step of selectively controlling whether to stop the system of the information processing device or to prohibit only the execution of the execution module which issued the execution request; An information processing method characterized by having a whitelist generation process that, when tampering with a whitelist is detected in the first tampering detection process, regenerates a whitelist by checking whether the information processing device is normal.
11. Computer, An information processing device that detects tampering of an execution module during operation, a request receiving unit that receives an execution request issued by the execution module; a tamper detection unit that detects tampering with the execution module that issued the execution request; When the tampering detection unit detects tampering, and an error control unit that selectively controls whether to stop the system of the information processing device or to prohibit only the execution module that issued the execution request, depending on whether the execution module that issued the execution request is a module for a specific mode.
12. Computer, An information processing device that performs runtime tamper detection of an execution module during operation using a whitelist, a request receiving unit that receives an execution request issued by the execution module; a first tampering detection unit that detects tampering of the whitelist upon receiving the execution request; a second tampering detection unit that detects tampering of the execution module that issued the execution request by using the whitelist that has been determined to be tampered with by the first tampering detection unit; When the second tamper detection unit detects tampering, A program for functioning as an information processing device, characterized by having an error control unit that selects and controls whether to stop the system of the information processing device or to prohibit only the execution of the execution module that issued the execution request depending on the type of the execution module that issued the execution request, and a whitelist generation unit that regenerates a whitelist by checking whether the information processing device is normal when the first tampering detection unit detects tampering with a whitelist.
Citation Information
Patent Citations
Program execution device and program execution method
JP2006053787A
System and method for preventing unauthorized program start
JP2009259160A
Computer system and file access controlling method
JP2018124893A
Control system
JP2018136811A
Information processing apparatus and control method thereof, and program
JP2020086469A
