Control system, control device and management method
By introducing a security protection engine into the control system and using the distributed general ledger and the comparison results of multiple comparison units to manage the execution of the control program, the problem of insufficient intellectual property protection for the control program in the existing technology is solved, and effective control of the control program is achieved. Protection and security.
Patent Information
- Application Number
- CN202080039599.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-26
- Filing Date
- 2020-03-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-03-05
AI Technical Summary
The existing technology has shortcomings in protecting the intellectual property rights of the control program. Especially when the machine equipment information is tampered with, the control program is relatively easy to exploit and it is difficult to effectively prevent illegal execution.
A control system is designed, which contains multiple control devices that can communicate with each other. A security protection engine is used to generate, maintain and compare inherent information to ensure that the control program is not illegally executed in different environments. The security protection engine manages shared information in the form of a distributed ledger, uses the comparison results of multiple comparison units to determine the execution authority of the control program, and ensures that execution is only allowed if the entire execution environment and the structure of adjacent control devices are simulated.
It effectively protects the intellectual property rights of the control program, prevents illegal execution in different environments, and improves the security and reliability of inherent information.
Smart Images

Figure CN113939778B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a control system having a plurality of control devices configured to be able to communicate with each other, the control devices included in the control system, and a management method executed in the control system. Background Art
[0002] In various manufacturing sites, control devices such as PLC (Programmable Logic Controller) are introduced. Such a control device is a computer that executes a control program designed for a manufacturing device or manufacturing equipment.
[0003] In recent years, there has been a problem of extracting a control program from a control device that already has actual operating results at a manufacturing site, creating a new control device at another manufacturing site, and using the extracted control program.
[0004] Japanese Patent Publication No. 2008-065678 (Patent Document 1) discloses a method for dealing with such a problem. Specifically, Patent Document 1 discloses the following method: PLC determines whether the encrypted control program is a program inherent to the machine device, and if it is a program inherent to the machine device, the control program is decrypted according to the program, and the control program is executed to control the machine device.
[0005] Prior art literature
[0006] Patent Literature
[0007] Patent Document 1: Japanese Patent Application Publication No. 2008-065678 Summary of the invention
[0008] Problems to be solved by the invention
[0009] In the method disclosed in Patent Document 1, when the information of a device such as a unique device for executing a control program is tampered with, the use of the control program is permitted. That is, if the information of the device that uses the control program as a target is tampered with, the control program can be used, and the use of the control program can be realized relatively easily. That is, in the method disclosed in Patent Document 1, there is room for improvement in realizing the protection of intellectual property rights such as control programs.
[0010] One object of the present invention is to achieve protection of intellectual property such as control programs.
[0011] Means for solving problems
[0012] According to an example of the present disclosure, a control system is provided, which has a plurality of control devices configured to be able to communicate with each other, wherein the control devices each include: a control engine that executes a control program for controlling a control object; and a security engine that manages whether the control program in the control engine can be executed. The security engines each include: a generation unit that generates inherent information representing the structure of one or more devices constituting the control device itself; a holding unit that holds shared information in the form of a distributed ledger with other control devices, wherein the shared information at least includes first inherent information pre-generated for each control device; a comparison unit that compares second inherent information generated by the control device itself in accordance with a comparison request with the first inherent information of the control device itself included in at least one of the shared information held by each security engine; and a permission unit that, in response to a request to start the execution of the control program, requests comparison to two or more comparison units respectively, and determines whether the control program can be executed based on the comparison results obtained from the two or more comparison units respectively.
[0013] According to this structure, the security protection engine includes the pre-generated first inherent information in the tamper-proof shared information maintained in the form of a distributed ledger for management. Each security protection engine uses the managed first inherent information as a reference, compares the second inherent information generated in response to the execution start request of the control program, and determines whether the control program can be executed based on the comparison result. Therefore, the security protection engine can prevent the start of the control program in an environment different from the environment managed by maintaining shared information. In addition, the security protection engine determines whether the control program can be executed based on the comparison results from two or more comparison units. Therefore, the control program cannot be executed unless not only the execution environment for executing the control program but also the structure of the adjacent control device is imitated. As a result, protection of intellectual property rights such as control programs can be achieved.
[0014] In the above disclosure, the holding unit may process information in which the first inherent information and an identifier capable of identifying the security engine that generated the first inherent information are associated with each other as one transaction.
[0015] According to the present disclosure, since the information including the first unique information is set as one transaction, the first unique information can be easily referred to when the matching unit performs matching.
[0016] In the above disclosure, the comparison unit may compare the second inherent information generated by the own control device with the shared information held by the security engine of the own control device.
[0017] When the second inherent information is exchanged between control units, it is possible that the second inherent information may be tampered with to allow the execution of the control program. However, according to the present disclosure, the control unit does not need to send the second inherent information to the control units of other control devices, thereby improving the security protection of the inherent information.
[0018] In the above disclosure, the comparison unit may compare the second inherent information generated by its own control device with each shared information respectively maintained by more than two security protection engines, and obtain a comparison result based on the result of the comparison with each shared information.
[0019] According to the present disclosure, since a plurality of shared information are used as comparison targets, a comparison result with high reliability can be obtained.
[0020] In the above disclosure, the control device may also be composed of a plurality of devices. The plurality of devices may include a control device having a control engine and a safety protection device having a safety protection engine.
[0021] According to the present disclosure, by utilizing different devices to implement a control engine that needs to satisfy the freedom to change the control program and a safety protection engine that does not preferably have the freedom to change in terms of safety protection, it is possible to design devices corresponding to the characteristics of each engine.
[0022] In the above disclosure, the security protection device includes a system program that implements the basic functions of the security protection device. The security protection engine can also be a function implemented by executing the system program.
[0023] According to the present disclosure, when the function of the security device is copied, the function of the security program is also copied. As a result, the shared information held is also copied, which can prevent the control program from being executed outside the environment where the security program is executed.
[0024] In the above disclosure, the permission unit may also respond to a request to start execution of the control program, and when the comparison result obtained by requesting a comparison with the comparison unit of its own control device meets predetermined conditions, request a comparison with the comparison unit included in other security protection engines.
[0025] According to the present disclosure, there is no need to excessively make comparison requests to other control devices, so the processing is simplified as a whole of the control system.
[0026] According to another example of the present disclosure, a control device that forms a control system with other control devices is provided. The control device includes: a control engine that executes a control program for controlling a control object; and a security protection engine that manages whether the control program in the control engine can be executed. The security protection engine includes: a generation unit that generates inherent information representing the structure of one or more devices constituting its own control device; a holding unit that holds shared information in the form of a distributed ledger with other control devices, wherein the shared information at least includes the first inherent information pre-generated for each control device; a comparison unit that compares the second inherent information generated by its own control device in accordance with a comparison request with the first inherent information of its own control device contained in at least one of the shared information held by each security protection engine; and a permission unit that, in response to a request to start the execution of the control program, requests the comparison to two or more comparison units respectively, and determines whether the control program can be executed based on the comparison results obtained from the two or more comparison units respectively.
[0027] According to the present disclosure, the security protection engine manages the pre-generated first inherent information by including it in the tamper-proof shared information maintained in the form of a distributed general ledger. The security protection engine uses the managed first inherent information as a reference, compares the second inherent information generated in response to the execution start request of the control program, and determines whether the control program can be executed based on the comparison result. Therefore, the security protection engine can prevent the start of the control program in an environment different from the environment managed by maintaining shared information. In addition, the security protection engine determines whether the control program can be executed based on the comparison results from two or more comparison units. Therefore, the control program cannot be executed unless not only the execution environment for executing the control program but also the structure of the adjacent control device is imitated. As a result, the protection of intellectual property rights such as control programs can be achieved.
[0028] According to another example of the present disclosure, a management method is provided, which is executed in a control system having a plurality of control devices configured to communicate with each other. The management method includes the following steps: generating first inherent information representing the structure of one or more devices constituting the control device in each of the plurality of control devices; maintaining shared information in the form of a distributed ledger between the plurality of control devices, the shared information at least including the first inherent information generated by each control device; in a control device that receives a request to start the execution of a control program for controlling a control object, making a comparison request to two or more control devices that maintain the shared information; in each control device that receives the comparison request, generating second inherent information representing the structure of one or more devices constituting the control device; in each control device that receives the comparison request, comparing the second inherent information generated by the control device with the first inherent information of the control device contained in at least one of the shared information maintained by each control device; and permitting the execution of the control program when the comparison result obtained from each control device that receives the comparison request satisfies a specified condition.
[0029] According to this structure, the first inherent information generated in advance is included in the shared information that is difficult to tamper with and maintained in the form of a distributed ledger for management. The second inherent information generated in response to the execution start request of the control program is compared with the managed first inherent information. Whether the control program can be executed is determined based on the comparison result. Therefore, it is possible to prevent the start of the control program in an environment different from the environment managed by maintaining the shared information. In addition, the execution of the control program is determined based on the comparison results from two or more comparison units, so the control program cannot be executed unless not only the execution environment for executing the control program but also the structure of the adjacent control device is imitated. As a result, protection of intellectual property rights such as control programs can be achieved.
[0030] Effects of the Invention
[0031] According to the present invention, it is possible to protect intellectual property rights such as control programs. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a diagram showing an example of a scene to which a control system 1X according to one embodiment is applied.
[0033] Figure 2 1 is a schematic diagram showing the overall structure of the control system 1 .
[0034] Figure 3 1 is a schematic diagram showing a hardware configuration example of the control unit 100 constituting the control device 10 according to the present embodiment.
[0035] Figure 4 1 is a schematic diagram showing a hardware configuration example of the safety guard unit 200 constituting the control device 10 according to the present embodiment.
[0036] Figure 5 This is a diagram showing the flow of a method for determining whether the control program 140 is executable.
[0037] Figure 6 1 is a block diagram showing an example of the functional configuration of the control unit 100 and the security guard unit 200 .
[0038] Figure 7 It is a diagram showing the shared information 30 .
[0039] Figure 8 1 is a diagram showing a functional configuration of the security guard unit 200 that functions when a new block 40 is generated.
[0040] Fig. 9 This is a sequence diagram showing a processing procedure when a request to start execution of a control program is received.
[0041] Fig.10 This is a diagram showing an example of a state in which the execution of the control program is permitted.
[0042] Fig.11 This is a diagram showing an example of a situation where execution of a control program is not permitted.
[0043] Fig.12 This is a sequence diagram showing a modified example of the processing procedure when a request to start execution of a control program is received.
[0044] Fig.13 It is a diagram showing the processing procedure of Modification 1 of the system hash value comparison method.
[0045] Fig.14 It is a diagram showing the processing procedure of Modification 2 of the system hash value comparison method. DETAILED DESCRIPTION
[0046] Hereinafter, various embodiments of the present invention will be described with reference to the accompanying drawings. In the following description, the same reference numerals are used for the same components and structural elements. Their names and functions are also the same. Therefore, their detailed description will not be repeated. In addition, various embodiments and various modifications described below may also be appropriately and selectively combined.
[0047] §1. Application examples
[0048] The outline of the control system of this embodiment will be described. Figure 1 1 is a diagram showing an example of a scene to which a control system 1X according to an embodiment is applied. Figure 1The control system 1X includes a plurality of control devices 10X(A) and 10X(B) configured to communicate with each other. Hereinafter, the control device 10X(A) and the control device 10X(B) are also collectively referred to as the control device 10X. Figure 1 In the figure, the reference numerals denoted by (A) refer to the configuration of the control device 10X(A). The reference numerals denoted by (B) refer to the configuration of the control device 10X(B).
[0049] The control device 10X includes: a control engine 142X that executes a control program 140X for controlling a control object; and a security protection engine 230X that manages whether the control program 140X can be executed by the control engine 142X.
[0050] The control device 10X is composed of a plurality of devices, and controls each device by executing a control program 140X, and controls manufacturing equipment or the like that is a control target by controlling each device.
[0051] The security engine 230X includes a permission unit 232X, a generation unit 234X, a storage unit 236X, and a comparison unit 238X.
[0052] The permission unit 232X receives a start request for the control program 140X from the control engine 142X, and determines whether the control program 140X can be executed.
[0053] The generator 234X generates inherent information indicating the structure of one or more devices constituting the control device 10X. The inherent information is information specified by the devices constituting the control device 10X, and changes according to the structure of the control device 10X. The structure is defined by at least one of the type of device and the method of connecting the device. The classification method of the type of device may include a classification method based on the function of the device, a classification method based on different models, and a classification method based on serial numbers.
[0054] The holding unit 236X holds shared information 30X including at least unique information pre-generated for each control device 10X in the form of a distributed ledger with other control devices 10X. For example, if the holding unit 236X(A) is focused on, the holding unit 236X(A) holds shared information 30X including unique information (A) and unique information (B) pre-generated for each control device 10X(A) and 10X(B) in the form of a distributed ledger with the control device 10X(B).
[0055] That is, the control device 10X (A) and the control device 10X (B) each hold common shared information 30X. Since the shared information 30X is held in the form of a distributed ledger, it is difficult to tamper with.
[0056] The comparison unit 238X compares the unique information of a control device 10X generated in accordance with the comparison request with the unique information corresponding to the control device 10X included in the shared information 30X. For example, when focusing on the control device 10X (A), the comparison unit 238X (A) compares the unique information (A) generated at the timing of the comparison request with the unique information (A) included in the shared information 30X. Comparison refers to determining whether there is a match.
[0057] Next, from Figure 1 The method of managing whether or not the control program executed in the control system 1X is executable will be described in order from (1) shown.
[0058] (1) The generator 234X(A) generates unique information (A) of the own control device 10X(A) in advance. The storage 236X(A) and the storage 236X(B) store the shared information 30X including the unique information (A) generated in advance.
[0059] Similarly, the generator 234X(B) generates the unique information (B) of the own control device 10X(B) in advance. The storage 236X(B) stores the shared information 30X including the unique information (B) generated in advance with the storage 236X(A).
[0060] (2) The permission unit 232X(A) receives a start request from the control program 140X(A). Figure 1 In the example shown, the control engine 142X makes a start request, but the security engine 230X may also have an accepting unit that accepts the start request.
[0061] (3) The permission unit 232X(A) requests the comparison unit 238X(A) and the comparison unit 238X(B) to perform the comparison. In addition, when the control system is composed of three or more control devices, the permission unit does not need to request the comparison to all the control devices, but only needs to request the comparison to at least two or more control devices that have shared information. In addition, the two or more control devices do not necessarily need to include the own control device.
[0062] (4) The comparison unit 238X(A) receives the comparison request and requests the generator 234X(A) to generate the unique information (A). Similarly, the comparison unit 238X(B) receives the comparison request and requests the generator 234X(B) to generate the unique information (B).
[0063] (5) Generator 234X(A) receives the generated request, generates unique information (A) of control device 10X(A), and provides it to comparison unit 238X(A). Similarly, generator 234X(B) receives the generated request, generates unique information (B) of control device 10X(B), and provides it to comparison unit 238X(B). That is, generator 234X also generates unique information at the timing of receiving the comparison request.
[0064] (6) The comparison unit 238X(A) compares the pre-generated inherent information (A) included in the shared information 30X with the inherent information (A) generated at the timing when the generation unit 234X(A) receives the comparison request in (5), and obtains the comparison result. Similarly, the comparison unit 238X(B) compares the pre-generated inherent information (B) included in the shared information 30X with the inherent information (B) generated at the timing when the generation unit 234X(B) receives the comparison request in (5), and obtains the comparison result.
[0065] (7) The comparison unit 238X(A) and the comparison unit 238X(B) respectively provide the obtained comparison results to the permission unit 232X(A). Based on the comparison results provided by the comparison units 238X(A) and 238X(B), the permission unit 232X(A) allows the execution of the control program 140X(A) when the comparison results satisfy the prescribed conditions. The prescribed conditions can be arbitrarily designed, for example, that all the comparison results show consistency, that a prescribed proportion of the comparison results in all the comparison results show consistency, that the comparison results obtained from a specific control device show consistency, etc.
[0066] (8) The permission unit 232X(A) provides the control engine 142X(A) with the result of the determination (permission or prohibition) based on the comparison result. The control engine 142X(A) controls the control program 140X(A) according to the determination result of the permission unit 232X(A).
[0067] As described above, in this embodiment, each security engine 230X includes the pre-generated inherent information in the tamper-proof shared information 30X maintained in the form of a distributed general ledger for management. Each security engine 230X uses the managed inherent information as a reference, compares the inherent information generated when starting the control program, and determines whether the control program can be executed based on the comparison result. Therefore, it is possible to prevent the control program from being started in an environment different from the environment managed by the security engine 230X.
[0068] In addition, in this embodiment, not only the structure of the own control device, but also the structure of other control devices connected in a communicative manner are used as the reference object. Therefore, for example, if a malicious person wants to imitate the execution environment of the control program, it is necessary not only to copy the hardware and software of the own control device, but also to copy the hardware and software of other control devices connected in a communicative manner. As a result, intellectual property rights such as control programs can be protected.
[0069] §2. Specific examples
[0070] <A.Control system>
[0071] Figure 2 Schematic diagram showing the overall structure of the control system 1. Figure 2 The control system 1 includes control devices 10A, 10B, and 10C. Hereinafter, when there is no need to distinguish the control devices 10A, 10B, and 10C from each other, the control devices 10A, 10B, and 10C are also referred to as the control device 10. In addition, when there is no need to distinguish each of the control units 100A, 100B, and 100C, the safety protection units 200A, 200B, and 200C, the I / O units 300A, 300B, and 300C, and the communication couplers 400A, 400B, and 400C, they are also referred to as the control unit 100, the safety protection unit 200, the I / O unit 300, and the communication coupler 400.
[0072] also, Figure 2 The control system 1 shown is composed of three control devices 10 , but may be composed of two control devices 10 , or may be composed of four or more control devices 10 .
[0073] Each control device 10 controls a control object. The control object includes various industrial equipment used to automate the production process, including a device that provides a certain physical effect on a manufacturing device, a production line, etc. (hereinafter, also collectively referred to as a "site"), and an input / output device that exchanges information with the site. In addition, the entire production line can also be used as a control object.
[0074] The control devices 10 are connected to each other in a communicative manner via the information system network 2. The information system network 2 is, for example, EtherNET (registered trademark) or a network compliant with a communication standard such as OPC UA (Object Linking and Embedding for Process Control Unified Architecture) that enables data exchange regardless of the type of vendor or OS (Operating System).
[0075] The control device 10 is composed of a plurality of devices. Figure 2 In the example shown, the control device 10 is composed of a control unit 100, a safety guard unit 200, an I / O (Input / Output) unit 300, a communication coupler 400, etc. In the following, the units and the communication coupler constituting the control device 10 are collectively referred to as "devices".
[0076] The control unit 100 is an example of a control device constituting the control device 10 , executes a control program for controlling a control target, and performs central processing in the control device 10 .
[0077] The safety guard unit 200 is an example of a safety guard device constituting the control device 10, and manages whether or not the control program in the control unit 100 is executable. The method of managing whether or not the control program is executable will be described later.
[0078] The control unit 100 and the security unit 200 are connected to each other via an arbitrary data transmission path (for example, PCI Express or Ethernet (registered trademark)).
[0079] The I / O unit 300 is an example of a device constituting the control device 10 and is a unit related to normal input / output processing. The I / O unit 300 collects detection values from IO devices including various sensors, various switches, encoders, and the like.
[0080] The control unit 100 and the I / O unit 300 are communicably connected via an internal bus. The control unit 100 executes the operation of the control program using the detection values collected by the I / O unit 300 and outputs the value of the operation result to the I / O unit 300.
[0081] The communication coupler 400 is communicatively connected to the control unit 100 via the field network 4. The communication coupler 400 performs processing related to data transmission in the field network 4. The communication coupler 400 is communicatively connected to one or more I / O units 300, for example, via an internal bus. The detection values collected by each of the one or more I / O units 300 connected to the communication coupler 400 are output to the control unit 100 via the field network 4.
[0082] As the field network 4, various industrial Ethernet (registered trademark) can be typically used. As industrial Ethernet (registered trademark), for example, EtherCAT (registered trademark), Profinet IRT, MECHATROLINK (registered trademark)-III, Powerlink, SERCOS (registered trademark)-III, CIP Motion, etc. are known, and any one of them can be used. In addition, field networks other than industrial Ethernet (registered trademark) can also be used. For example, if motion control is not performed, DeviceNet, CompoNet / IP (registered trademark), etc. can also be used.
[0083] Each device constituting the control device 10 has identification data ID. Typically, the identification data ID is a model number, a serial number, etc., and is information preset for each device.
[0084] In addition, the devices constituting the control device 10 are not limited to Figure 2 The devices constituting the control device 10 may include, for example, a power supply unit for supplying power, a special unit having functions that are not supported by the I / O unit 300, a safety unit that provides a safety function for preventing human safety from being threatened by equipment or machinery, etc. In addition, the devices constituting the control device 10 may include, for example, an HMI (Human Machine Interface), which prompts the operator with various information obtained through control operations in the control unit 100 or other units, and generates internal commands to the control unit 100 or other units based on operations from the operator.
[0085] <B. Hardware structure>
[0086] An example of the hardware configuration of main devices constituting the control device 10 of the present embodiment will be described.
[0087] (b1. Control unit)
[0088] Figure 3 Schematic diagram showing a hardware configuration example of the control unit 100 constituting the control device 10 of the present embodiment. Figure 3 As main components, the control unit 100 includes a processor 102 such as a CPU (Central Processing Unit) or a GPU (Graphical Processing Unit), a chipset 104, a main storage device 106, a secondary storage device 108, a communication controller 110, a USB controller 112, a memory card interface 114, a field network controller 116, an internal bus controller 118 and an information system network controller 120.
[0089] The processor 102 reads various programs stored in the secondary storage device 108 or the memory card 115, expands and executes them in the main storage device 106, thereby realizing control operations for controlling the control object and processing related to the execution start request of the control program 140 described later.
[0090] The main storage device 106 is composed of a volatile storage device such as DRAM (Dynamic Random Access Memory) or SRAM (Static Random Access Memory). The secondary storage device 108 is composed of a non-volatile storage device such as HDD (Hard Disc Drive) or SSD (Solid State Drive).
[0091] The chipset 104 implements the overall processing of the control unit 100 by mediating data exchange between the processor 102 and various components.
[0092] The secondary storage device 108 stores, in addition to a system program 1082 for realizing the basic functions of the control unit 100 , a control program 140 created according to a control target such as a device or machine, and identification data ID for identifying the control unit 100 .
[0093] The authentication program 130 is incorporated into the system program 1082. The authentication program 130 is a program executed when the control program 140 is started, and is a program for requesting the security guard unit 200 to permit the execution of the started control program 140. The system program 1082 also provides a function as a control engine for executing the control program 140.
[0094] The control program 140 is, for example, intellectual property created by a program development company whose basic algorithm is such that, for example, a user sets parameters according to the control device 10 , thereby preparing an environment in which the control program 140 provided by the program development company can be executed.
[0095] The communication controller 110 is responsible for data exchange with the security unit 200. As the communication controller 110, for example, a communication chip compatible with PCI Express or Ethernet (registered trademark) can be used.
[0096] The USB controller 112 is responsible for data exchange with an arbitrary information processing device via a USB connection. The arbitrary information processing device includes, for example, a support device that provides the user with functions such as creation or editing of the control program 140, debugging, and setting of various parameters.
[0097] The memory card interface 114 is configured to be removable with a memory card 115 as an example of a storage medium. The memory card interface 114 can write the control program 140 and various setting data to the memory card 115 or read the control program 140 and various setting data from the memory card 115 .
[0098] The field network controller 116 controls data exchange with other devices via the field network 4 .
[0099] The internal bus controller 118 controls data exchange with other devices (such as the I / O unit 300) via the internal bus. The internal bus may use a vendor-specific communication protocol or a communication protocol that is the same as or complies with any industrial network protocol.
[0100] The information system network controller 120 controls data exchange with other control devices 10 via the information system network 2 .
[0101] exist Figure 3 , a configuration example is shown in which the processor 102 executes a program to provide the required functions, but a dedicated hardware circuit (such as ASIC or FPGA, etc.) may be used to implement part or all of the provided functions. Alternatively, the main part of the control unit 100 may be implemented using hardware that complies with a general-purpose architecture (such as an industrial personal computer based on a general-purpose personal computer). In this case, virtualization technology may be used to execute multiple OSs with different purposes in parallel, and the required application programs may be executed on each OS.
[0102] (b2. Safety protection unit)
[0103] Figure 4 2 is a schematic diagram showing an example of the hardware configuration of the safety protection unit 200 constituting the control device 10 of the present embodiment. Figure 4 As main components, the security protection unit 200 includes a processor 202 such as a CPU or a GPU, a chipset 204, a primary storage device 206, a secondary storage device 208, a communication controller 210, a USB controller 212, a memory card interface 214 and an information system network controller 220.
[0104] The processor 202 reads various programs stored in the secondary storage device 208 or the memory card 215, expands and executes them in the main storage device 206, thereby realizing the function of managing whether the control program in the control unit 100 can be executed. The main storage device 206 is composed of a volatile storage device such as DRAM or SRAM. The secondary storage device 208 is composed of a non-volatile storage device such as HDD or SSD.
[0105] The chipset 204 implements the processing of the security protection unit 200 as a whole by mediating the data exchange between the processor 202 and each component.
[0106] In the secondary storage device 208 , in addition to the system program 2082 for realizing the basic functions of the security unit 200 , identification data ID and shared information 30 are stored.
[0107] The system program 2084 includes a security program 230. The security program 230 is a program for managing whether the control program 140 executed in the control device 10 can be executed. That is, the security program 230 provides a function as a security engine that manages whether the control program 140 can be executed.
[0108] The shared information 30 is information for managing inherent information, and the inherent information indicates the configuration of the plurality of devices constituting each control device 10 included in the control system 1. The shared information 30 is managed and shared by each control device 10 constituting the control system 1 using the known distributed ledger technology. The shared information 30 is information that is difficult to be tampered with due to the use of the distributed ledger technology. The shared information 30 is used as reference information for determining whether to permit the execution of the control program 140. The shared information 30 and the inherent information indicating the configuration of the plurality of devices constituting the control device 10 will be described later.
[0109] The communication controller 210 is responsible for data exchange with the control unit 100. As the communication controller 210, similarly to the communication controller 110 of the control unit 100, for example, a communication chip compatible with PCI Express or Ethernet (registered trademark) can be adopted.
[0110] The USB controller 212 is responsible for data exchange with any information processing device via a USB connection. The arbitrary information processing device includes, for example, a support device that provides functions such as setting the security protection program 230 to the user.
[0111] The memory card interface 214 is configured to be removable from a memory card 215 as an example of a storage medium. The memory card interface 214 can write programs, various settings, and other data to the memory card 215 , or read programs, various settings, and other data from the memory card 215 .
[0112] The information system network controller 220 controls data exchange with other control devices 10 via the information system network 2. The information system network controller 220 may use a general-purpose network protocol such as Ethernet (registered trademark).
[0113] exist Figure 4, a structural example is shown in which the processor 202 executes a program to provide the required functions, but a dedicated hardware circuit (such as ASIC or FPGA, etc.) can also be used to install part or all of these provided functions. Alternatively, the main part of the security protection unit 200 can also be implemented using hardware that follows a general architecture (such as an industrial personal computer based on a general personal computer). In this case, virtualization technology can also be used to execute multiple OSs with different purposes in parallel, and the required application programs can be executed on each OS.
[0114] In addition, refer to Figure 3 as well as Figure 4 The control device 10 can be connected to the information system network 2 via the information system network controller 120 of the control unit 100, and can also be connected to the information system network 2 via the information system network controller 2200 of the security protection unit 200. In this embodiment, the case where the control device 10 is connected via the information system network controller 220 of the security protection unit 200 is described.
[0115] <C. Overview of the method for determining whether a control program can be executed>
[0116] Reference Figure 5 , a method for determining whether the control program 140 can be executed is briefly described. Figure 5 1 is a diagram showing a flow chart of a method for determining whether or not the control program 140 can be executed. Figure 5 In the illustrated example, for the sake of simplicity of the drawing, description of units other than the control unit 100 and the safety guard unit 200 constituting each control device 10 (I / O unit 300, communication coupler 400, etc.) is omitted.
[0117] exist Figure 5 In the example shown, it is assumed that the control unit 100A starts executing the control program 140. In this case, the control unit 100A first requests the security guard unit 200A to determine whether the control program 140 is executable ((1) in the figure).
[0118] In response to the determination request from the control unit 100A, the control unit 100 checks whether the unique information of each control device 10 in the control system 1 managed by the shared information 30 is consistent with the unique information currently generated by each control device 10 .
[0119] Specifically, the security protection unit 200A collects identification data ID ((2) in the figure), and generates a system hash value as inherent information based on the collected identification data ID ((3) in the figure). The system hash value is obtained by using a known hash function using the identification data ID of other devices in the devices constituting the control device 10, except the security protection unit 200, as independent variables.
[0120] The inherent information is information specified by the devices constituting the control device 10, and is not limited to the system hash value obtained by using the identification data ID, as long as it can determine that the structure of the control device 10 has changed. For example, the inherent information may also be information indicating the network topology that specifies the connection relationship between the devices in the control device 10.
[0121] The security unit 200A compares the inherent information (system hash value) obtained from the identification data ID with the shared information 30 ((4) in the figure). Specifically, the security unit 200A compares the inherent information of the control device 10A generated based on the identification data ID collected in (2) with the inherent information of the control device 10A managed by the shared information 30 to determine whether they are consistent.
[0122] In (4) of the figure, the newly generated unique information is compared with the unique information managed by the shared information 30. If they match, it is guaranteed that the control device 10A is a properly managed control device 10. On the other hand, if they do not match, the control device 10A may not be managed by the shared information 30.
[0123] Next, the security unit 200A requests a comparison ((5) in the figure) to each control device 10B and 10C included in the control system 1. Specifically, the security unit 200A generates the inherent information (system hash value) obtained from the current control device 10, and requests to compare the generated inherent information (system hash value) with the inherent information managed by the shared information 30 to check whether they are consistent.
[0124] The security unit 200B of the control device 10B receives the comparison request, collects the identification data ID ((1B) in the figure), and generates a system hash value based on the collected identification data ID ((2B) in the figure). Then, the security unit 200B of the control device 10B compares the generated system hash value of the control device 10B with the shared information 30 ((3B) in the figure). Similarly, the security unit 200C of the control device 10C performs the processing of (1C) to (3C) in the figure.
[0125] The safety guard unit 200A obtains the comparison result ((6) in the figure) from each of the control devices 10B and 10C.
[0126] The safety protection unit 200A determines whether the control program requested in (1) can be executed based on the comparison result for the control device 10A obtained in the process of (4) and the comparison results for the control devices 10B and 10C obtained in the processes of (5) and (6) ((7) in the figure). The safety protection unit 200A permits the execution of the control program if these comparison results meet the specified conditions. The specified conditions can be arbitrarily designed to be, for example, the case where the comparison results of the control devices 10A to 10C are consistent, or the case where a specified ratio is consistent.
[0127] The security guard unit 200A notifies the control unit 100A of the determination result indicating whether the control program can be executed ((8) in the figure).
[0128] <D. Functional structure>
[0129] Figure 6 1 is a block diagram showing an example of the functional structure of the control unit 100 and the security unit 200. Figure 6 In the diagram, dotted arrows represent the flow of instructions. Solid arrows represent the flow of information.
[0130] Reference Figure 6 The control unit 100 includes a control program execution unit 142 and an authentication unit 132. These functions are implemented by the processor 102 of the control unit 100 executing the system program 1082.
[0131] The control program execution unit 142 functions to execute the control program 140. The control program execution unit 142 receives a request to start execution of the control program 140, and requests the authentication unit 132 to authenticate the control program 140. Authentication is to authenticate whether the execution environment of the control program 140 is an environment managed by the shared information 30 held by each control device 10 of the control system 1, and whether the environment is an environment in which the control program 140 can be executed.
[0132] The authentication unit 132 includes a determination request unit 134, an identification data transmission unit 136, and an identification data collection unit 138. Upon receiving an authentication request from the control program execution unit 142, the determination request unit 134 requests the permission unit 232 of the security unit 200 to determine whether the control program 140 is executable.
[0133] The identification data transmitting unit 136 transmits the identification data ID of each device constituting the control device 10 collected by the identification data collecting unit 138 to the security guard unit 200 .
[0134] The identification data collection unit 138 receives a request from the generation unit 234 of the security unit 200, and collects the identification data ID of each device constituting the control device 10. In addition to determining whether the control program 140 can be executed, the identification data collection unit 138 is also requested by the security unit 200 to collect the identification data ID when registering new inherent information (system hash value) to the shared information 30. In addition, in the present embodiment, the identification data collection unit 138 collects the identification data ID from each device constituting the control device 10 except the security unit 200. In addition, the identification data ID used to generate the system hash value as inherent information may also include the identification data ID of the security unit 200.
[0135] After the control program execution unit 142 requests authentication of the control program 140, the authentication unit 132 receives the judgment result of whether the control program 140 can be executed from the permission unit 232 of the security unit 200. The authentication unit 132 performs processing according to the judgment result received from the security unit 200. When the authentication unit 132 obtains the judgment result indicating that the execution can be permitted, it notifies the control program execution unit 142 to start the execution of the control program 140. On the other hand, when the authentication unit 132 obtains the judgment result indicating that the execution cannot be permitted, it instructs the control program execution unit 142 to prohibit the execution of the control program 140.
[0136] The security unit 200 includes a permission unit 232, a generation unit 234, a storage unit 236, and a comparison unit 238. These functions are realized by the processor 202 of the security unit 200 executing the security program 230.
[0137] The permission unit 232 includes a determination unit 2322 and a comparison request unit 2324. The determination unit 2322 determines whether to permit the execution of the control program 140 based on the comparison results obtained from the comparison unit 238 of the security protection unit 200 including the determination unit 2322 and the comparison units 238 of other security protection units 200, and notifies the authentication unit 132 of the control unit 100 of the determination result.
[0138] The comparison request unit 2324 requests the comparison unit 238 to compare the inherent information. In addition to requesting the comparison unit 238 of the safety protection unit 200 including the comparison request unit 2324 to compare the inherent information, the comparison request unit 2324 also requests the comparison units 238 of other control devices 10 to compare the inherent information. In addition, the comparison request unit 2324 only needs to request the comparison of the inherent information to more than two comparison units 238, and does not need to request the comparison of the inherent information to the comparison units 238 included in all the control devices 10 included in the control system 1. In addition, among the more than two comparison units 238 for which the comparison of the inherent information is requested, it is not necessary to include the comparison unit 238 including the comparison request unit 2324.
[0139] The generation unit 234 generates a system hash value as unique information. The generation unit 234 includes a collection request unit 2342 and a system hash value calculation unit 2344 .
[0140] The collection request unit 2342 functions when the generation of the system hash value is requested by the comparison unit 238 or the storage unit 236. The comparison unit 238 requests the generation of the system hash value when the comparison starts. The storage unit 236 requests the generation of the system hash value when, for example, the control device 10 is changed to be regular, the device constituting the control device 10 is changed and the unique information of the changed control device 10 is newly registered in the shared information 30. The collection request unit 2342 requests the identification data collection unit 138 of the control unit 100 to collect the identification data ID.
[0141] The system hash value calculation unit 2344 generates a system hash value based on the identification data ID of each device sent from the identification data sending unit 136. The system hash value calculation unit 2344 typically generates the system hash value using an algorithm used by a well-known hash function. When the system hash value calculation unit 2344 is requested by the comparison unit 238 to generate a system hash value, the system hash value calculation unit 2344 sends the generated system hash value to the comparison unit 238. In addition, when the system hash value calculation unit 2344 is requested by the storage unit 236 to generate a system hash value, the system hash value calculation unit 2344 sends the generated system hash value to the storage unit 236.
[0142] The storage unit 236 stores shared information 30 in the form of a distributed ledger with other control devices 10. The shared information 30 includes at least the unique information (system hash value) generated by the generation unit 234 of each control device 10 included in the control system 1. The storage unit 236 includes a registration unit 2362 and a search unit 2364.
[0143] The registration unit 2362 functions when the device of any of the plurality of control devices 10 included in the control system 1 is changed, and the unique information of the changed control device 10 is newly registered in the shared information 30, and the management of the unique information is started. The registration unit 2362 starts the management of the new unique information according to the known distributed ledger technology.
[0144] In addition, when the equipment constituting the control device 10 including the security unit 200 including the registration unit 2362 is changed and the management of the unique information of the changed control device 10 is started, the registration unit 2362 requests the generation unit 234 to generate the unique information. The unique information generated by the generation unit 234 in response to the request of the registration unit 2362 is managed as the shared information 30 between the storage unit 236 of each control device 10 using the distributed ledger technology.
[0145] The search unit 2364 searches the shared information 30 for the unique information of the control device 10 to be compared based on the request from the comparison unit 238 , and transmits the unique information included in the shared information 30 to the comparison unit 238 .
[0146] The comparison unit 238 receives the request from the comparison request unit 2324 and requests the generation unit 234 to generate the inherent information. In addition, the comparison unit 238 receives the request from the comparison request unit 2324 and requests the search unit 2364 to send the inherent information included in the shared information 30. The comparison unit 238 compares the inherent information sent from the system hash value calculation unit 2344 with the inherent information included in the shared information 30 sent from the search unit 2364, and sends the comparison result to the determination unit 2322.
[0147] That is, the comparison unit 238 compares the inherent information generated in advance and registered in the shared information 30 with the inherent information generated in accordance with the comparison request. In addition, in the present embodiment, the comparison target of the inherent information generated in accordance with the comparison request is set to the shared information 30 held by the holding unit 236 of the own control device 10, but the comparison target may also be the shared information 30 held by other control devices 10. In addition, the comparison unit 238 may use two or more shared information 30 as the comparison target of the inherent information generated in accordance with the comparison request.
[0148] <E. Sharing Information>
[0149] Reference Figure 7 and Figure 8 , the shared information 30 is explained. Figure 7 It is a diagram showing the shared information 30 . Figure 8 1 is a diagram showing a functional configuration of the security guard unit 200 that functions when a new block 40 is generated.
[0150] Reference Figure 7 The shared information 30 is composed of a plurality of connected blocks 40. Each block 40 contains at least a system hash value 48 obtained from the structure of the control device 10 at a certain timing. The block 40 is generated when the device constituting the control device 10 is changed or a new control device 10 is connected to the control system 1. The information in each block 40 is not updated, and a new block 40 is generated in association with the latest block 40.
[0151] Specifically, each block 40 includes a block hash value 42, system configuration information 44, and a random number 46. The system configuration information 44 includes identification data ID of the security guard unit 200 and a system hash value 48 of the control device 10 including the security guard unit 200.
[0152] The block hash value 42 is unique information indicating the information of the previous block. The block hash value 42 is, for example, a return value obtained by using the information of the previous block as an argument and following a known hash function.
[0153] exist Figure 7 In the example shown, it is assumed that the shared information 30 sequentially includes blocks 40-1 to 40-n, and the device configuration of the control device 10 is changed, and a new block 40-n+1 is added to the shared information 30. Block 40-n+1 includes a block hash value 42-n. Block hash value 42-n is a return value obtained by using the information of block 40-n as an independent variable according to a known hash function.
[0154] The random number 46 is a value generated when a new block 40 is generated, and is a value generated every time a block 40 is generated. The random number 46 is a value unique to each block 40 .
[0155] Reference Figure 8 , the function of the security protection unit 200 that functions when generating a new block 40 is described. Figure 6 The functions described are omitted. Figure 8 , an example is shown in which a block 40 - n is stored in the shared information 30 , and a block 40 - n+1 is newly stored based on a change in a device constituting the control device 10A.
[0156] As described above, the collection request unit 2342 of the generator 234 receives the request to generate the system hash value 48 from the storage unit 236, and requests the control unit 100A to collect the identification data ID. The system hash value calculation unit 2344 generates the system hash value 48 based on the identification data ID of each device constituting the control device 10A sent from the control unit 100A.
[0157] The registration unit 2362 of the storage unit 236 includes a distribution unit 236A, a mining unit 236B, and a block hash value calculation unit 236C. The system hash value calculation unit 2344 sends the generated system hash value 48 to the distribution unit 236A.
[0158] The distribution unit 236A generates the system configuration information 44 based on the system hash value 48 and the identification data ID of the security unit 200A, and distributes it to each mining unit 236B of the security units 200A, 200B, and 200C.
[0159] The digging unit 236B cooperates with the digging units 236B of other security units 200B and 200C to generate the block 40-n+1.
[0160] The block hash value calculation unit 236C generates a block hash value 42 based on the last registered block 40 according to the shared information 30. Figure 8 In the example shown, the last registered block 40 is block 40 - n , and thus a block hash value 42 - n is generated based on block 40 - n .
[0161] The mining unit 236B generates a block 40 by setting a random number 46 based on the system configuration information 44 and the block hash value 42-n so that the information obtained from the generated block 40 satisfies the prescribed conditions. In addition, the process of setting the random number 46 in this way to generate a block 40 that satisfies the prescribed conditions is called mining. The mining unit 236B of each security protection unit 200 performs mining, and the block 40 generated by the mining unit 236B that first finds the random number 46 that satisfies the prescribed conditions is saved in the shared information 30.
[0162] That is, the subject that generates the system configuration information 44 and the subject that generates the block 40 may be different.
[0163] The block 40 is stored in the shared information 30 of each security unit 200. That is, the shared information 30 of each security unit 200 is public unless it is tampered with.
[0164] As reference Figure 7 and Figure 8 As described above, each block 40 included in the shared information 30 includes a block hash value 42 obtained based on a previous block 40. That is, if one block 40 is tampered with, other blocks 40 need to be tampered with in a chain, and tampering with the shared information 30 requires a lot of effort. In other words, the shared information 30 can be said to be information that is difficult to tamper with.
[0165] In the present embodiment, the system hash value 48 included in the shared information 30 which is difficult to tamper with is used as a comparison object.
[0166] In addition, as long as the shared information 30 can be maintained in the form of a distributed ledger between multiple control devices 10, the method of generating a block 40 is not limited to the method of referring to Figure 7 as well as Figure 8 The method of generating a block 40 can also be designed arbitrarily for each control system 1 .
[0167] For example, the method for generating the block 40 may be selected according to the safety protection level when the new control device 10 is added to the control system 1. For example, when the safety protection level when the new control device 10 is added to the control system 1 is high, the safety protection level (transparency, strictness) of the process of generating the block 40 can be lowered. On the other hand, when the degree of freedom of adding the new control device 10 to the control system 1 is increased, the safety protection level (transparency, strictness) of the process of generating the block 40 needs to be increased.
[0168] Specifically, when the shared information 30 is maintained in the form of a distributed ledger using a private or consortium blockchain technology, it is possible to reduce the barriers to consensus and shorten the time required to reach a consensus, that is, the time required to generate a block 40 and save it in the shared information 30. On the other hand, when the shared information 30 is maintained in the form of a distributed ledger using a public blockchain technology, the degree of freedom of allowing a new control device 10 to participate in the control system 1 is high, so it is necessary to increase the barriers to consensus.
[0169] <F. Sequence diagram>
[0170] Fig. 9 is a sequence diagram showing the processing procedure when a request to start execution of a control program is received. In addition, the sequence is simply recorded as "SQ" below. Fig. 9 In the description, it is assumed that the control unit 100A issues a request to start execution of the control program 140 .
[0171] At SQ102 , the control unit 100A notifies the security guard unit 200A of a request to start the control program.
[0172] In SQ104 , the security guard unit 200A notifies the control device 10B of a comparison request. Comparison is comparing the system hash value 48 generated according to the current configuration of the control device 10 with the system hash value 48 stored in the shared information 30 in advance, also known as “system hash value comparison”.
[0173] At SQ106 , the security guard unit 200A notifies the control device 10C of the comparison request.
[0174] Each control device 10A, 10B, and 10C constituting the control system 1 performs a comparison of system hash values (SQ108). Specifically, in SQ108A, the control device 10A performs a comparison of system hash values. In SQ108B, the control device 10B performs a comparison of system hash values. In SQ108C, the control device 10C performs a comparison of system hash values.
[0175] Taking the control device 10A as an example, the system hash value comparison method is described. In SQ108A-1, the security unit 200A requests the control unit 100A to collect the identification data ID.
[0176] In SQ108A-2, the control unit 100A transmits the identification data ID of each device constituting the control device 10A to the security guard unit 200A.
[0177] In SQ108A-3, the security guard unit 200A generates a system hash value 48 based on the identification data ID of each device constituting the control device 10A.
[0178] In SQ108A-4, the security unit 200A compares it with the system hash value 48 in the shared information 30. Specifically, the security unit 200A sequentially searches for the block 40 storing the identification data ID of the security unit 200A from the latest block in the shared information 30, and obtains the system hash value 48 in the block 40 storing the identification data ID of the security unit 200A. The security unit 200A compares the system hash value 48 generated in SQ108A-3 with the system hash value 48 obtained from the shared information 30 to obtain the comparison result.
[0179] In addition, Fig. 9 In the example, the system hash value check ( SQ108B) performed by the control device 10B and the system hash value check ( SQ108C) performed by the control device 10C are the same as the system hash value check ( SQ108A) performed by the control device 10A, and thus description thereof is omitted.
[0180] Specifically, the security unit 200B of the control device 10B requests the control unit 100B to collect the identification data ID. The control unit 100B sends the identification data ID of each device constituting the control device 10B to the security unit 200B. The security unit 200B generates a system hash value 48 based on the identification data ID of each device constituting the control device 10B. The security unit 200B sequentially searches for the block 40 storing the identification data ID of the security unit 200B, starting from the latest block in the shared information 30, and obtains the system hash value 48 in the block 40 storing the identification data ID of the security unit 200B. The security unit 200B compares the system hash value 48 generated in accordance with the comparison request generated according to the start request of the control program with the system hash value 48 obtained from the shared information 30 to obtain a comparison result.
[0181] Similarly, the control device 10C collects the identification data ID of each device constituting the control device 10C according to the comparison request corresponding to the start request of the control program, and generates the system hash value 48 based on the collected identification data ID. The security unit 200C of the control device 10C obtains the system hash value 48 in the block 40 storing the identification data ID of the security unit 200C from the shared information 30. The security unit 200C compares the system hash value 48 generated according to the comparison request generated according to the start request of the control program with the system hash value 48 obtained from the shared information 30 to obtain a comparison result.
[0182] At SQ110 , the control device 10B transmits the comparison result to the safety guard unit 200A.
[0183] At SQ112 , the control device 10C transmits the comparison result to the security guard unit 200A.
[0184] In SQ114, the security unit 200A determines whether the control program can be executed. Specifically, based on the comparison result obtained by SQ108A, the comparison result obtained in SQ110, and the comparison result obtained in SQ112, the security unit 200A permits the execution of the control program if these comparison results meet the prescribed conditions. On the other hand, if these comparison results do not meet the prescribed conditions, the security unit 200A does not permit the execution of the control program.
[0185] The predetermined conditions are not limited to the conditions that all the comparison results show a match, and may include the conditions that at least a part of the comparison results of all the comparison results show a match.
[0186] At SQ116 , the security guard unit 200A notifies the control unit 100A of the determination result.
[0187] <G. Example of a situation where execution of control procedures is permitted>
[0188] Reference Fig.10 , explaining the status of the license execution control program. Fig.10 This is a diagram showing an example of a state in which the execution of the control program is permitted. Fig.10 The “Serial No.” is the identification data ID. “Hash(S)” is the system hash value 48.
[0189] exist Fig.10 In the above description, it is assumed that the I / O unit 300A of the control device 10A is replaced with the I / O unit 300a, and the shared information 30 is normally updated. First, the control system 1 before the update will be described.
[0190] The system hash value 48 (Hash (S)) obtained from the identification data (Serial No.) of each device (control unit 100A, I / O unit 300A, etc.) constituting the control device 10A except the safety protection unit 200A is "Abcde". The system hash value 48 "Abcde" and the identification data ID "2a2" of the safety protection unit 200A are registered in block 40-A.
[0191] Likewise, regarding control device 10B, system hash value 48 "aBcde" and identification data ID "2b2" of security guard unit 200B are registered in block 40-B. Regarding control device 10C, system hash value 48 "abCde" and identification data ID "2c2" of security guard unit 200C are registered in block 40-C.
[0192] In this situation, when the I / O unit 300A of the control device 10A is replaced with the I / O unit 300 a and the shared information 30 is updated normally, the block 40 -D is newly registered in the shared information 30 .
[0193] Specifically, the identification data of the I / O unit 300A is "3a3", and the identification data of the I / O unit 300a is "3A3". Therefore, the system hash value 48 calculated based on the identification data of the control device 10A becomes "1bcde" which is different from "Abcde". The block 40-D including the system hash value 48 "1bcde" and the identification data ID "2a2" of the security unit 200A is generated by the generation unit 234 included in each of the security units 200A to 200C in cooperation with each other and is registered in the shared information 30. At this time, the block 40-D is newly added to the shared information 30, and the information of the block 40-A is not overwritten.
[0194] like Fig.10As shown, when the shared information 30 is normally updated according to the configuration change in the control system 1, the system hash value 48 obtained from the control devices 10A to 10C is consistent with the system hash value 48 of the control devices 10A to 10C registered in the shared information 30. Fig.10 As shown, when the shared information 30 is normally updated according to the configuration change in the control system 1 , the execution of the control program is permitted.
[0195] <H. Example of a situation where execution of a control program is not permitted>
[0196] Reference Fig.11 , explaining the situation where the execution of the control program is not permitted. Fig.11 This is a diagram showing an example of a situation where execution of a control program is not permitted.
[0197] exist Fig.11 In the above description, it is assumed that a control system 1a including a control device 10A' imitating the control device 10A and a control device 10B' imitating the control device 10B is newly generated.
[0198] When the control device 10A is simulated, both the hardware and software of the control device 10A are copied to execute the control program. Similarly, when the control device 10B is simulated, both the hardware and software of the control device 10B are copied to execute the control program.
[0199] Copying the software means copying both the authentication program 130 and the security program 230. In addition, by copying the software, the shared information 30 retained by the execution of the security program 230 is also copied.
[0200] Therefore, both the control device 10A' and the control device 10B' hold the shared information 30. Here, as described above, the shared information 30 is information that is difficult to tamper with. Therefore, in the shared information 30, the blocks 40-A, 40-B, and 40-C are stored as the latest unique information of the control devices 10A, 10B, and 10C.
[0201] It is assumed that the control device 10A' is composed of the same devices as the control device 10A. Similarly, it is assumed that the control device 10B' is composed of the same devices as the control device 10B.
[0202] The identification data ID of the security unit 200A' of the control device 10A' is tampered with to be the same as the identification data ID of the security unit 200A. In addition, the identification data ID of the security unit 200B' of the control device 10B' is tampered with to be the same as the identification data ID of the security unit 200B.
[0203] It is assumed that the identification data ID of the devices other than the security guard unit 200 (control units 100A', 100B', I / O units 300A', 300B', etc.) has not been tampered with.
[0204] In this case, when the control unit 100A′ requests the start of execution of the control program, the security unit 200A′ executes Fig. 9 Specifically, the security guard unit 200A′ generates the system hash value 48 of the control device 10A′ and compares the generated system hash value 48 with the system hash value 48 of the security guard unit 200 whose identification data is “2a2” stored in the shared information 30 .
[0205] exist Fig.11 In the example shown, the identification data ID of the devices other than the security unit 200A' has not been tampered with, and is different from the identification data ID of each device included in the control device 10A. Therefore, the system hash value 48 of the control device 10A' is "1BCDE", which is inconsistent with the system hash value 48 "Abcde" of the security unit 200 identification data "2a2" stored in the pre-generated shared information 30.
[0206] The security unit 200A' requests the security unit 200B' to compare the system hash value. The security unit 200B' generates the system hash value 48 of the control device 10B' and compares the generated system hash value 48 with the system hash value 48 of the security unit 200 stored in the shared information 30, where the identification data is "2b2".
[0207] exist Fig.11 In the example shown, the identification data ID of the devices other than the security unit 200B' has not been tampered with, and is different from the identification data ID of each device included in the control device 10B. Therefore, the system hash value 48 of the control device 10B' is "A2CDE", which is inconsistent with the system hash value 48 "aBcde" of the security unit 200 identification data "2b2" stored in the pre-generated shared information 30.
[0208] As a result of the inconsistency between the control device 10A' and the control device 10B', the safety unit 200A' prohibits the execution of the control program.
[0209] In addition, regarding the control device 10C in the shared information 30, the security unit 200A' may obtain an inconsistent result because the result of the comparison request is not returned.
[0210] The control program for realizing the environment managed by the control device 10A may be developed by a company different from the company using the control device 10A. In such a case, if the control program and the environment in which the control program can be used are easily imitated, the intellectual property rights of the company developing the control program cannot be fully protected.
[0211] In this embodiment, in addition to copying the identification data of each device constituting the control device 10A, the entire control system 1 including the control device 10A needs to be simulated. When the entire control system 1 is simulated, the identification data of the devices constituting the control device 10 needs to be tampered.
[0212] Sometimes there are dozens of devices constituting the control device 10. In this case, the identification data of all the dozens of devices is tampered with. In addition, this operation needs to be performed on each control device included in the control system. Therefore, in order to imitate a control device managed by a control program, it is necessary to make great efforts.
[0213] That is, in the control system 1 of the present embodiment, since the environment in which the control program can be used cannot be easily simulated, the intellectual property rights such as the control program can be protected.
[0214] <I. Modifications>
[0215] (i1. Modification of the Processing Procedure When a Request to Start Execution of a Control Program is Receiving)
[0216] Fig.12 1 is a sequence diagram showing a modified example of the processing procedure when a request to start execution of a control program is received. Fig.12 In, with Fig. 9 The same SQ number means the same treatment.
[0217] In the above embodiment, when there is a request to start a control program, a comparison request is made to each control device 10. Alternatively, the control device itself may perform a comparison and make a comparison request to another control device 10 on the condition that the comparison is consistent.
[0218] Specifically, when the safety guard unit 200A receives the start request of the control program (SQ102), it compares the system hash value of the control device 10A (SQ104a), and when the system hash value 48 is consistent ("Yes" in SQ106a), it makes a comparison request to each control device 10B and 10C. Fig. 9 The processing contents (SQ108-1 to SQ108A-4) of SQ108A shown are the same.
[0219] In SQ106a, if the system hash values 48 do not match (No in SQ106a), the security guard unit 200A does not make a comparison request to each control device 10B, 10C, but determines whether the control program can be executed (SQ114). In this case, since the system hash values 48 do not match, it is determined that the control program is not allowed to be executed.
[0220] As described above, by performing a comparison in the own control device 10 and making a comparison request to other control devices 10 on the condition of agreement, there is no need to make excessive comparison requests to other control devices 10, thereby simplifying the processing of the control system 1 as a whole.
[0221] In addition, the administrator may set a part of the control devices 10 in the control system 1, and determine whether the control program can be executed based on the comparison result from the administrator. When the number of control devices 10 constituting the control system 1 is large, the comparison may take time, so by determining whether the control program can be executed based on the comparison results from some administrators, the time required for the comparison can be shortened. In addition, the administrator does not necessarily need to include the control device 10 that executes the control program that is the object of the judgment of whether it can be executed. In addition, it is sufficient to set two or more control devices for the administrator.
[0222] (i2. Modification 1 of the system hash value comparison method)
[0223] Fig.13 1 is a diagram showing the processing procedure of the first variant of the system hash value comparison method. Fig.13 The process shown is Fig. 9 A modified example of SQ108A shown in FIG. Fig.13 In, with Fig. 9 The same SQ number is handled in the same way. Fig. 9 That is, the processing of SQ108-1 to SQ108A-4 is different from Fig. 9 Similarly, the description will be given from SQ108A-5 onwards.
[0224] exist Fig. 9 In the example, the system hash value 48 of the own control device 10 is compared only with the shared information 30 held by the own control device 10. Alternatively, the system hash value 48 of the own control device 10 may be compared with the shared information 30 held by other control devices 10.
[0225] Specifically, the security guard unit 200A transmits the system hash value 48 generated in SQ108A-3 to the control device 10B in SQ108A-5.
[0226] In SQ108A-6, the control device 10B compares it with the system hash value in the shared information 30. Specifically, the security unit 200B of the control device 10B sequentially searches for the block 40 storing the identification data ID of the security unit 200A from the latest block in the shared information 30, and obtains the system hash value 48 in the block 40 storing the identification data ID of the security unit 200A. The security unit 200B compares the system hash value 48 generated by the security unit 200A in SQ108A-3 and sent in SQ108A-5 with the system hash value 48 obtained from the shared information 30 maintained by the control device 10B, and obtains the comparison result.
[0227] In SQ108A-7, the control device 10B sends the comparison result obtained in SQ108A-6 to the safety guard unit 200A.
[0228] In SQ108A- 8 , the security guard unit 200A transmits the system hash value 48 generated in SQ108A- 3 to the control device 10C.
[0229] In SQ108A-9, the control device 10C compares it with the system hash value in the shared information 30. Specifically, the security unit 200C of the control device 10C compares the system hash value 48 generated by the security unit 200A in SQ108A-3 and sent in SQ108A-8 with the system hash value 48 of the control device 10A in the shared information 30 maintained by the control device 10C, and obtains a comparison result.
[0230] In SQ108A-10, the control device 10C sends the comparison result obtained in SQ108A-9 to the safety guard unit 200A.
[0231] That is, when comparing the system hash value 48 of the own control device 10, in addition to comparing with the system hash value 48 in the shared information 10 maintained by the own control device 10, it is also possible to compare with the system hash values 48 in the shared information 10 maintained by other control devices 10 to see if they are consistent.
[0232] For example, it is assumed that the control device 10A is illegally imitated to generate the control device 10A', and the shared information 30 held by the control device 10A' is tampered with, and the system hash value 48 of the control device 10A' is registered in the shared information 30. In this case, the safety protection program of the control device 10A' is checked not only with the shared information 30 of the control device 10A' itself, but also with other control devices 10. Therefore, unless the shared information 30 of other control devices 10 is also tampered with, the execution of the control program will not be permitted, so that the safety protection level can be improved.
[0233] (i3. Modification 2 of the system hash value comparison method)
[0234] Fig.14 : is a diagram showing the processing procedure of the second variant of the system hash value comparison method. Fig.14 The process shown is Fig. 9 A modified example of SQ108A shown in FIG. Fig.14 In, with Fig. 9 The same SQ number is handled in the same way. Fig. 9 That is, the processing of SQ108-1 to SQ108A-3 is different from Fig. 9 Similarly, the description will be given from SQ108A-4' onwards.
[0235] Specifically, the security guard unit 200A transmits the system hash value 48 generated in SQ108A-3 to the control device 10B in SQ108A-4'.
[0236] In SQ108A-5', the control device 10B compares it with the system hash value in the shared information 30. Specifically, the security unit 200B of the control device 10B sequentially searches for the block 40 storing the identification data ID of the security unit 200A from the latest block in the shared information 30, and obtains the system hash value 48 in the block 40 storing the identification data ID of the security unit 200A. The security unit 200B compares the system hash value 48 generated by the security unit 200A in SQ108A-3 and sent in SQ108A-4' with the system hash value 48 obtained from the shared information 30 maintained by the control device 10B, and obtains the comparison result.
[0237] In SQ108A-6', the control device 10B sends the comparison result obtained in SQ108A-5' to the security guard unit 200A.
[0238] In SQ108A-7', the security guard unit 200A sends the system hash value 48 generated in SQ108A-3 to the control device 10C.
[0239] In SQ108A-8', the control device 10C compares it with the system hash value in the shared information 30. Specifically, the security unit 200C of the control device 10C compares the system hash value 48 generated by the security unit 200A in SQ108A-3 and sent in SQ108A-7' with the system hash value 48 of the control device 10A in the shared information 30 maintained by the control device 10C, and obtains a comparison result.
[0240] In SQ108A-9', the control device 10C sends the comparison result obtained in SQ108A-8' to the security guard unit 200A.
[0241] That is, the comparison result is not limited to the result obtained by comparing with the system hash value 48 in the shared information 30 maintained by the own control device 10, as long as it is the result obtained by comparing with the system hash value 48 in the shared information 30 maintained by at least one of the security protection units 200 in the control system 1.
[0242] (i4. Other Modifications)
[0243] In the above embodiment, the processor 102 executing the control program and the processor 202 executing the security program are processors of different devices. Alternatively, the processor 202 executing the security program and the processor 102 executing the control program may be included in one device.
[0244] In the above embodiment, an example is shown in which the control system 1 is composed of only a plurality of control devices 10. In addition, the control system 1 may include a central management device such as a database system, a manufacturing execution system (MES), or an analysis system that obtains information from each control device 10 to perform macroscopic or microscopic analysis, in addition to the plurality of control devices 10. In addition, an HMI may be connected to the information system network 2.
[0245] §3. Notes
[0246] As described above, the disclosure based on the above-mentioned embodiment and modification examples includes the following disclosure.
[0247] <Structure 1>
[0248] A control system (1X, 1) includes a plurality of control devices (10X, 10) configured to be able to communicate with each other, wherein:
[0249] The control devices respectively include:
[0250] A control engine (142X, 1082) that executes a control program for controlling a control object; and
[0251] A security protection engine (230X, 230) that manages whether the control program in the control engine can be executed.
[0252] The security protection engines respectively include:
[0253] A generating unit (234X, 234) that generates unique information representing the structure of one or more devices constituting the self-control device;
[0254] A holding unit (236X, 236) that holds shared information (30X, 30) in the form of a distributed ledger with other control devices, wherein the shared information (30X, 30) includes at least first inherent information (48) pre-generated for each of the control devices;
[0255] A comparison unit (238X, 238) that compares the second inherent information (48) generated by the own control device in accordance with the comparison request with the first inherent information of the own control device included in at least one of the shared information held by each security protection engine; and
[0256] A permission unit (232X, 232) responds to a request to start execution of the control program by making a request for the comparison to two or more comparison units respectively, and determines whether the control program can be executed based on the comparison results obtained from the two or more comparison units respectively.
[0257] <Structure 2>
[0258] In the control system described in Structure 1,
[0259] The holding unit processes information (44) that associates the first inherent information with an identifier (ID) that can identify a security engine that generated the first inherent information as one transaction.
[0260] <Structure 3>
[0261] In the control system described in structure 1 or 2,
[0262] The comparison unit compares the second inherent information generated by the own control device with the shared information held by the security engine of the own control device (SQ108A, SQ104a).
[0263] <Structure 4>
[0264] In the control system described in structure 1 or 2,
[0265] The comparison unit compares the second inherent information generated by its own control device with the shared information respectively maintained by more than two security protection engines, and obtains a comparison result (SQ108A-4~SQ108-10, SQ108A-4'~SQ108A-9') based on the result of the comparison with each shared information.
[0266] <Structure 5>
[0267] In the control system described in any one of structures 1 to 4,
[0268] The control device is composed of a plurality of devices (100, 200, 300, 400),
[0269] The plurality of devices include a control device (100) having the control engine, and a security protection device (200) having the security protection engine.
[0270] <Structure 6>
[0271] In the control system described in Structure 5,
[0272] The safety protection device has a system program (2082) that implements the basic functions of the safety protection device.
[0273] The security protection engine is a function realized by executing the system program.
[0274] <Structure 7>
[0275] In the control system described in any one of structures 1 to 6,
[0276] The permission unit responds to the request to start execution of the control program, and when the comparison result obtained by requesting the comparison unit of its own control device satisfies a predetermined condition, the permission unit requests the comparison unit included in other security protection engines (SQ104a, SQ106a).
[0277] <Structure 8>
[0278] A control device (10X, 10) forms a control system with other control devices, wherein the control device (10X, 10) comprises:
[0279] A control engine (142X, 1082) that executes a control program for controlling a control object; and
[0280] A security protection engine (230X, 230) that manages whether the control program in the control engine can be executed.
[0281] The security protection engine has:
[0282] A generating unit (234X, 234) that generates unique information representing the structure of one or more devices constituting the self-control device;
[0283] A holding unit (236X, 236) that holds shared information (30X, 30) in the form of a distributed ledger with other control devices, wherein the shared information (30X, 30) includes at least first inherent information (48) pre-generated for each of the control devices;
[0284] A comparison unit (238X, 238) that compares the second inherent information (48) generated by the own control device in accordance with the comparison request with the first inherent information of the own control device included in at least one of the shared information held by each security protection engine; and
[0285] A permission unit (232X, 232) responds to a request to start execution of the control program by making a request for the comparison to two or more comparison units respectively, and determines whether the control program can be executed based on the comparison results obtained from the two or more comparison units respectively.
[0286] <Structure 9>
[0287] A management method is performed in a control system (1X, 1) having a plurality of control devices (10X, 10) configured to be able to communicate with each other, wherein the management method comprises:
[0288] Step ((1)), generating, in each of the plurality of control devices, first inherent information indicating the structure of one or more devices constituting the control device itself;
[0289] Step ((1)), maintaining shared information in the form of a distributed ledger between the plurality of control devices, wherein the shared information at least includes the first inherent information generated by each control device;
[0290] Step ((2), (3)), in which, in a control device that has received a request to start executing a control program for controlling a control object, a control device requests comparison with two or more control devices that hold the shared information;
[0291] Step ((4), (5)), in which each control device that receives the request for comparison generates second inherent information indicating the configuration of one or more devices constituting the control device itself;
[0292] Step ((6)), in each control device that receives the request for comparison, comparing the second inherent information generated by the own control device with the first inherent information of the own control device contained in at least one of the shared information held by each control device; and
[0293] In steps ((7) and (8)), when the comparison result obtained from each control device that has received the comparison request satisfies a predetermined condition, execution of the control program is permitted.
[0294] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all aspects. The scope of the present invention is indicated by the claims, not by the above description, and is intended to include all changes within the meaning and scope equivalent to the claims. In addition, the inventions described in the embodiments and various modifications can be implemented individually or in combination as long as possible.
[0295] Description of symbols
[0296] 1, 1X, 1a: control system; 2: information system network; 4: field network; 10, 10X: control device; 30, 30X: shared information; 40: block; 42: block hash value; 44: system structure information; 46: random number; 48: system hash value; 100: control unit; 102, 202: processor; 104, 204: chipset; 106, 206: primary storage device; 108, 208: secondary storage device; 110, 210: communication controller; 112, 212: USB controller; 114, 214: memory card interface; 115, 215: memory card; 116: field network controller; 118: internal bus controller; 120, 220: information system network controller; 130: authentication program; 132: authentication unit; 134: determination request unit; 135: 6: identification data sending unit; 138: identification data collecting unit; 140, 140X: control program; 142: control program execution unit; 142X: control engine; 200: security protection unit; 230: security protection program; 230X: security protection engine; 232, 232X: permission unit; 234, 234X: generation unit; 236, 236X: retention unit; 236A: distribution unit; 236B: mining unit; 236C: block hash value calculation unit; 238, 238X: comparison unit; 300: I / O unit; 400: communication coupler; 1082, 2082: system program; 2322: determination unit; 2324: comparison request unit; 2342: collection request unit; 2344: system hash value calculation unit; 2362: registration unit; 2364: retrieval unit; ID: identification data.
Claims
1. A control system comprising a plurality of control devices configured to communicate with each other, wherein: The control devices respectively include: a control engine that executes a control program for controlling a control object; and A security protection engine that manages whether the control program in the control engine can be executed. The security protection engines respectively include: A generating unit that generates unique information indicating the configuration of one or more devices constituting the self-control device; A holding unit that holds shared information in the form of a distributed ledger with other control devices, wherein the shared information at least includes first inherent information pre-generated for each of the control devices; a comparison unit that compares the second inherent information generated by the own control device in accordance with the comparison request with the first inherent information of the own control device included in at least one of the shared information held by each security protection engine; and The permission unit requests the comparison to be performed to two or more comparison units in response to the execution start request of the control program, and determines whether the control program can be executed based on the comparison results obtained from the two or more comparison units.
2. The control system according to claim 1, wherein: The holding unit processes information in which the first inherent information and an identifier capable of identifying a security engine that generated the first inherent information are associated with each other as one transaction.
3. The control system according to claim 1 or 2, wherein: The comparison unit compares the second inherent information generated by the own control device with the shared information maintained by the security engine of the own control device.
4. The control system according to claim 1 or 2, wherein: The comparison unit compares the second inherent information generated by its own control device with each shared information respectively maintained by more than two security protection engines, and obtains a comparison result based on the result of the comparison with each shared information.
5. The control system according to claim 1 or 2, wherein: The control device is composed of multiple devices. The multiple devices include a control device having the control engine, and a security protection device having the security protection engine.
6. The control system according to claim 5, wherein: The safety protection device has a system program that realizes the basic functions of the safety protection device. The security protection engine is a function realized by executing the system program.
7. The control system according to claim 1 or 2, wherein: The permission unit responds to the request to start execution of the control program, and when the comparison result obtained by requesting the comparison unit of its own control device satisfies a predetermined condition, the permission unit requests the comparison to the comparison unit included in other security protection engines.
8. A control device, which forms a control system with other control devices, wherein: The control device has: a control engine that executes a control program for controlling a control object; and A security protection engine that manages whether the control program in the control engine can be executed. The security protection engine has: A generating unit that generates unique information indicating the configuration of one or more devices constituting the self-control device; A holding unit that holds shared information in the form of a distributed ledger with other control devices, wherein the shared information at least includes first inherent information pre-generated for each of the control devices; a comparison unit that compares the second inherent information generated by the own control device in accordance with the comparison request with the first inherent information of the own control device included in at least one of the shared information held by each security protection engine; and The permission unit requests the comparison to be performed to two or more comparison units in response to the execution start request of the control program, and determines whether the control program can be executed based on the comparison results obtained from the two or more comparison units.
9. A management method, which is performed in a control system having a plurality of control devices configured to communicate with each other, wherein: The management method has the following steps: In each of the plurality of control devices, first inherent information indicating a configuration of one or more devices constituting the control device is generated; maintaining shared information in the form of a distributed ledger between the plurality of control devices, wherein the shared information at least includes the first inherent information generated by each control device; In a control device that has received a request to start execution of a control program for controlling a control object, a request for comparison is made to two or more control devices that hold the shared information; In each control device that has received the request for comparison, second unique information indicating a configuration of one or more devices constituting the control device is generated; In each control device that receives the request for comparison, the second inherent information generated by the own control device is compared with the first inherent information of the own control device included in at least one of the shared information held by each control device; and When the comparison result obtained from each control device that has received the comparison request satisfies a predetermined condition, execution of the control program is permitted.
