Configuration software prevention and control method, device, equipment and storage medium
By hashing and comparing the configuration software of the programmable logic controller to detect tampering and differences, the problem of hidden security risks of the configuration software is solved, and the prevention, control and management efficiency of the configuration software are improved.
Patent Information
- Application Number
- CN202410798042.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The programmable logic controller cannot directly control the validity and status of the configuration software, which poses operational security risks. How to prevent configuration software tampering and malicious code implantation.
By obtaining the signal of the controlled device, matching the corresponding configuration software, performing a hash operation on it, comparing the hash function value with the initial hash function value, and generating prevention and control prompt information to detect tampering and differences.
Ensure the integrity of the configuration software, prevent tampering and malicious code implantation, improve management efficiency, detect abnormal situations in a timely manner, and ensure the normal operation of the programmable logic controller.
Smart Images

Figure CN118378252B
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial information technology, and in particular to a configuration software prevention and control method, device, equipment and storage medium. Background Art
[0002] With the refinement and segmentation of industrial business scenarios and the rapid development of the industrial Internet, programmable logic controllers (PLCs) are often used in industrial production lines for automated control.
[0003] The programmable logic controller is connected to the controlled device through input and output modules, and the configuration software configured by the programmable logic controller is usually run on a computer. Therefore, the programmable logic controller cannot directly control the configuration software and cannot ensure whether the configuration software has been tampered with or implanted with malicious code during the operation of the programmable logic controller, posing a potential operational safety risk.
[0004] Therefore, how to prevent and control configuration software is a problem that needs to be solved urgently. Summary of the invention
[0005] The main purpose of this application is to provide a configuration software prevention and control method, device, equipment and storage medium, aiming to solve the technical problem of how to prevent and control configuration software.
[0006] To achieve the above objectives, the present application provides a configuration software prevention and control method, the configuration software prevention and control method comprising:
[0007] Acquire a controlled device signal, and match the corresponding configuration software according to the controlled device signal;
[0008] Performing a hash operation on the configuration software to obtain a hash function value of the configuration software, and acquiring an initial hash function value of the configuration software;
[0009] The hash function value is compared with the initial hash function value to obtain a comparison result, and configuration software prevention and control prompt information is generated according to the comparison result.
[0010] In one embodiment, the step of acquiring the controlled device data and matching the corresponding configuration software according to the controlled device signal includes:
[0011] Sampling a signal of a controlled device to obtain a signal of the controlled device;
[0012] Perform signal identification according to the controlled device signal to obtain the signal type of the controlled device signal;
[0013] Match the corresponding configuration software according to the signal type.
[0014] In one embodiment, the step of obtaining the initial hash function value of the configuration software further includes:
[0015] Obtaining a preset random factor and file information set by the configuration software;
[0016] A hash operation is performed on the file information set by the configuration software according to the random factor to obtain an initial hash function value of the configuration software.
[0017] In one embodiment, the step of performing a hash operation on the configuration software to obtain a hash function value of the configuration software includes:
[0018] A hash operation is performed on the current file information of the configuration software according to the random factor to obtain a hash function value of the configuration software.
[0019] In one embodiment, the configuration software prevention and control prompt information includes configuration software prevention and control alarm information, and the step of generating the configuration software prevention and control prompt information according to the comparison result includes:
[0020] If the hash function value is different from the initial hash function value, a configuration software prevention and control alarm message is generated.
[0021] In one embodiment, the step of generating configuration software prevention and control prompt information according to the comparison result further includes:
[0022] If the hash function value is different from the initial hash function value, determining the set version information of the configuration software according to the file information set by the configuration software;
[0023] Determining the current version information of the configuration software according to the current file information of the configuration software;
[0024] The set version information is compared with the current version information, and if the set version information is different from the current version information, configuration software version prompt information is generated.
[0025] In one embodiment, the step of generating configuration software prevention and control prompt information according to the comparison result further includes:
[0026] If the hash function value is different from the initial hash function value, performing a difference comparison analysis based on the file information set by the configuration software and the current file information of the configuration software to determine the difference data between the current file information of the configuration software and the file information set by the configuration software;
[0027] According to the difference data, configuration software difference prompt information is generated.
[0028] In addition, to achieve the above purpose, the present application also provides a configuration software prevention and control device, the configuration software prevention and control device comprising:
[0029] An acquisition module, used to acquire a signal of a controlled device and match the corresponding configuration software according to the signal of the controlled device;
[0030] A calculation module, used to perform a hash operation on the configuration software to obtain a hash function value of the configuration software, and obtain an initial hash function value of the configuration software;
[0031] The comparison module is used to compare the hash function value with the initial hash function value to obtain a comparison result, and generate configuration software prevention and control prompt information according to the comparison result.
[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a configuration software prevention and control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the configuration software prevention and control method described above.
[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a program for implementing the configuration software prevention and control method is stored on the computer-readable storage medium. The program for implementing the configuration software prevention and control method is executed by a processor to implement the steps of the configuration software prevention and control method as described above.
[0034] This application provides a configuration software prevention and control method. This application obtains the signal of the controlled device and performs hash operation and comparison on the configuration software corresponding to the controlled device, which can ensure the integrity of the configuration software and prevent tampering and malicious code implantation. By generating configuration software prevention and control prompt information, the management efficiency of configuration software prevention and control can be improved, abnormal situations can be discovered in time, and the normal operation of the programmable logic controller can be ensured.
[0035] In summary, this application can detect whether the configuration software has been illegally modified or replaced by performing a hash operation on the configuration software corresponding to the controlled device and comparing it with the initial hash function value of the configuration software. This overcomes the technical defect that the programmable logic controller cannot directly control the effectiveness and status of the configuration software. When an abnormality in the configuration software is detected, a configuration software prevention and control prompt information can be generated in time to improve the management efficiency of configuration software prevention and control. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] Figure 1 A flowchart of the first embodiment of the configuration software prevention and control method of this application is provided;
[0039] Figure 2 This is a schematic diagram of the configuration software composition of the programmable logic controller of the embodiment of the present application;
[0040] Figure 3 This is a schematic diagram of the operation steps of the programmable logic controller according to the embodiment of the present application;
[0041] Figure 4 This is a schematic diagram of the module structure of the configuration software control device of the embodiment of the present application;
[0042] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the configuration software prevention and control method in the embodiment of the present application.
[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0045] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0046] The main solution of this application is: obtain the controlled device signal, and match the corresponding configuration software according to the controlled device signal; perform hash operation on the configuration software to obtain the hash function value of the configuration software, and obtain the initial hash function value of the configuration software; compare the hash function value with the initial hash function value to obtain a comparison result, and generate configuration software prevention and control prompt information according to the comparison result.
[0047] The PLC is connected to the controlled device through the input and output modules, and the configuration software configured by the PLC is usually run on a computer. Therefore, the PLC cannot directly control the configuration software and cannot ensure whether the configuration software has been tampered with or implanted with malicious code during the operation of the PLC, which poses a hidden danger to operation security. Therefore, how to prevent and control the configuration software is a problem that needs to be solved urgently.
[0048] This application can detect whether the configuration software has been illegally modified or replaced by performing a hash operation on the configuration software corresponding to the controlled device and comparing it with the initial hash function value of the configuration software. This overcomes the technical defect that the programmable logic controller cannot directly control the effectiveness and status of the configuration software. When an abnormality in the configuration software is detected, a configuration software prevention and control prompt message can be generated in time to improve the management efficiency of configuration software prevention and control.
[0049] It should be noted that the execution subject of this embodiment can be a configuration software prevention and control system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a configuration software prevention and control device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the configuration software prevention and control system as the execution subject as an example to illustrate this embodiment and the following embodiments.
[0050] Based on this, this application proposes a configuration software prevention and control method of the first embodiment, please refer to Figure 1 The configuration software prevention and control method includes steps S10 to S30:
[0051] Step S10, obtaining a controlled device signal, and matching corresponding configuration software according to the controlled device signal;
[0052] It should be noted that, refer to Figure 2 , the configuration software configured by the programmable logic controller is mainly divided into two categories, including system programs and application programs. System programs refer to software components used to control the operation of the programmable logic controller itself, including the operating system (OS), the runtime environment (Runtime), and the threads PLC_Task (programmable logic controller task), KBUS_CYCLE_TASK (inter-process communication system cycle task), KUBS (operating system software package and driver), OPC UAServer (open platform communication unified architecture server) and Modbus TCP (transmission control protocol). Application programs are programs written by the user of the programmable logic controller according to specific control requirements to control the operation of the controlled equipment. These programs compile logic according to actual needs, such as controlling the operation of the machine, monitoring the signals of the sensor, and realizing the control of the automated production line. The application program runs through a process of the operating system (OS) and works with the system program to control the operation of the controlled equipment.
[0053] The programmable logic controller is connected to the controlled device through the input module, and can detect various signals of the controlled device, such as switch status, sensor output, analog signal, etc. The controlled device signal is sampled according to the predetermined periodicity, and the selection of the sampling period depends on the specific application requirements. The controlled device signal is received, analyzed and processed by the corresponding configuration software, which can realize the control operation, data analysis, troubleshooting, performance optimization and other tasks of the corresponding controlled device.
[0054] Step S20, performing a hash operation on the configuration software to obtain a hash function value of the configuration software, and obtaining an initial hash function value of the configuration software;
[0055] It should be noted that, refer to Figure 3 , the programmable logic controller has two working states: RUN and STOP. In the RUN working state, the application in the configuration software will be executed repeatedly. In order to prevent the application from being tampered with, between the steps of "input sampling" and "execution of application" in the figure, that is, before each execution of the application, the hash function value of the application is calculated and compared with the initial hash function value of the application when it is set. When performing hash operations, hash algorithms such as MD5 (Message Digest Algorithm 5), SHA-256 (Secure Hash Algorithm 256), and HMAC (Hash-based Message Authentication Code) can be used.
[0056] Step S30, comparing the hash function value with the initial hash function value to obtain a comparison result, and generating configuration software prevention and control prompt information according to the comparison result.
[0057] It should be noted that if the hash function value is inconsistent with the initial hash function value, it means that the application may be tampered with, and configuration software prevention and control prompt information is generated, including alarm information or configuration software file information difference prompt information, etc. It helps to ensure the normal operation and security of industrial control systems and enhance the system's security and real-time response capabilities to abnormalities.
[0058] This application involves a PLC configuration application program programmed by a host computer. After being programmed and compiled by the configuration software of the host computer, the program is downloaded to the PLC (Programmable Logic Controller) and runs directly on the PLC. This technology is different from traditional configuration software that only runs on the host computer (such as ifix, wincc, etc.). It is a configuration software that focuses on realizing specific control logic and automation functions on the PLC platform.
[0059] Compared with the method of performing anti-tampering detection of configuration applications outside the programmable logic controller, the method of this embodiment performs anti-tampering detection inside the programmable logic controller, which can realize real-time monitoring and real-time detection of configuration applications, avoid time delays in data transmission and processing, and promptly discover abnormal situations, which can improve the accuracy of abnormal identification of configuration software prevention and control. Compared with the application comparison method provided by the configuration software provided by the industrial control system design manufacturer, this method can prevent attacks that counterfeit host computers connect to the programmable logic controller and cut off the connection with the normal host computer. At the same time, since the application comparison method provided by the configuration software provided by the industrial control system design manufacturer has a certain scanning cycle, including program logic comparison methods or data model comparison methods, this method can more quickly identify configuration software prevention and control abnormalities and improve the efficiency of configuration software prevention and control.
[0060] This application provides a configuration software prevention and control method. This application obtains the signal of the controlled device and performs hash operation and comparison on the configuration software corresponding to the controlled device, which can ensure the integrity of the configuration software and prevent tampering and malicious code implantation. By generating configuration software prevention and control prompt information, the management efficiency of configuration software prevention and control can be improved, and abnormal situations can be discovered in time.
[0061] In summary, this application can detect whether the configuration software has been illegally modified or replaced by performing a hash operation on the configuration software corresponding to the controlled device and comparing it with the initial hash function value of the configuration software. This overcomes the technical defect that the programmable logic controller cannot directly control the effectiveness and status of the configuration software. When an abnormality in the configuration software is detected, a configuration software prevention and control prompt information can be generated in time to improve the management efficiency of configuration software prevention and control.
[0062] In a feasible implementation, step S10 may include steps S101 to S103:
[0063] Step S101, sampling a signal of a controlled device to obtain a signal of the controlled device;
[0064] Step S102, performing signal identification according to the controlled device signal to obtain the signal type of the controlled device signal;
[0065] Step S103, matching corresponding configuration software according to the signal type.
[0066] It should be noted that, refer to Figure 3When the programmable logic controller is running, the signal of the controlled device is sampled to obtain the signal of the controlled device, and the signal of the controlled device is identified. The signal type of the controlled device signal can determine the functional requirements of the controlled device, and the corresponding configuration software will execute the corresponding function of the controlled device signal. Before the configuration software executes the corresponding function, the configuration software can be detected to prevent the configuration software from being tampered with or maliciously implanted with code.
[0067] In this embodiment, the configuration software corresponding to the controlled device is matched by performing signal sampling and signal recognition on the controlled device. After determining the configuration software to be executed, the configuration software is subjected to prevention and control detection to prevent the configuration software from being tampered with, ensure the security and stability of the configuration software configuration files and parameters, and improve the management efficiency of configuration software prevention and control.
[0068] In a feasible implementation, step S20 may include steps S202 to S203:
[0069] Step S202, obtaining a preset random factor and file information set by the configuration software;
[0070] Step S203: performing a hash operation on the file information set by the configuration software according to the random factor to obtain an initial hash function value of the configuration software.
[0071] It should be noted that in order to improve the randomness and security of the calculated hash function value, a random factor can be added when calculating the hash function value. The random factor is randomly generated data or specific parameters, which can include some representation of the current time, such as a UNIX timestamp, or some random numbers generated by a random number generator, or a unique identifier of a device, such as a network device address, serial number, etc., or a random string or password provided by the user can be used.
[0072] Use the selected hash function, such as MD5, SHA-256, HMAC and other hash algorithms to perform hash calculation on the configuration software file information, take the file information set by the configuration software as input, and generate a unique hash function value as output. Combine or connect the preset random factor with the hash value, add the random factor to the beginning, end or middle of the hash function value, or perform an XOR operation to increase the randomness and anti-collision of the hash function value, and finally obtain the initial hash function value of the configuration software.
[0073] In this embodiment, the security and unpredictability of the hash function are increased by introducing a preset random factor, ensuring the uniqueness of the hash function value. The initial hash function value obtained by the hash function operation will verify the integrity of the configuration software. If the configuration software is tampered with, damaged, or maliciously implanted with code, the hash function value will not match, thereby achieving prevention and control detection of configuration software changes.
[0074] In a feasible implementation, step S20 may include step S201:
[0075] Step S201 , performing a hash operation on the current file information of the configuration software according to the random factor to obtain a hash function value of the configuration software.
[0076] It should be noted that the configuration software file information is hashed by hashing the configuration software file information using hash algorithms such as MD5, SHA-256 or HMAC, the current file information of the configuration software is used as input, the preset random factor is merged or connected with the hash value, the random factor can be added to the beginning, end or middle of the hash function value, or an XOR operation can be performed to increase the randomness and anti-collision properties of the hash function value, and finally the hash function value of the configuration software is obtained, which will be compared with the initial hash function value to verify the integrity of the configuration software.
[0077] In this implementation, the security and randomness of the hash function are increased by introducing a preset random factor. The hash function value obtained by the hash function operation will be used to compare with the initial hash function value to verify the integrity of the configuration software. If the configuration software is tampered with, damaged, or maliciously implanted with code, the hash function value will not match, thereby achieving prevention and control of configuration software changes.
[0078] In a feasible implementation, step S30 may include step S301:
[0079] Step S301: If the hash function value is different from the initial hash function value, a configuration software prevention and control alarm message is generated.
[0080] It should be noted that the hash function, as a method of file integrity verification, can effectively detect whether the system configuration file has been tampered with or modified. Once it is detected that the hash function value is different from the initial hash function value, a configuration software prevention and control alarm message is generated to prompt the user that there may be security risks and that corresponding measures need to be taken in a timely manner. Due to the high requirements for production continuity in industrial scenarios, only configuration software prevention and control alarm messages are generated, but the operation of the programmable logic controller is not stopped, to avoid situations where the programmable logic controller has stopped running, for example, when an engineer normally updates the configuration software without tampering or implanting malicious code.
[0081] In this implementation, file integrity is detected by comparing hash functions, changes in configuration files are discovered and processed in a timely manner, and alarm information is automatically generated. This improves the degree of automation of industrial control systems, facilitates management and maintenance, helps ensure the normal operation and security of industrial control systems, and enhances the security and real-time response capabilities of the system.
[0082] In a feasible implementation, step S30 may include steps S302 to S304:
[0083] Step S302, if the hash function value is different from the initial hash function value, determining the set version information of the configuration software according to the file information set by the configuration software;
[0084] Step S303, determining the current version information of the configuration software according to the current file information of the configuration software;
[0085] Step S304: compare the set version information with the current version information, and if the set version information is different from the current version information, generate configuration software version prompt information.
[0086] It should be noted that the set version information of the configuration software is determined based on the file information set by the configuration software, such as the software version number, the content of the configuration file, etc. The file information of the configuration software currently actually running is read, including the version number, the content of the configuration file, etc., to determine the current version information of the configuration software. The set version information is compared with the current version information. If the set version information is different from the current version information, it means that the difference between the hash function value and the initial hash function value may be caused by reasons such as the update of the configuration software version. Therefore, the configuration software version prompt information is generated to remind the system administrator or user to pay attention to the version of the current configuration software.
[0087] In this embodiment, by comparing the hash function value, if the initial hash function value and the current hash function value are different, the set version information and the current version information of the configuration software are further determined based on the set file information and the current file information. If the two are different, the configuration software version prompt information is generated to facilitate timely analysis of the reasons for the change in the hash function value and reduce the impact on the normal operation of the industrial control system.
[0088] In a feasible implementation manner, step S30 may include steps S305 to S306 before step S30:
[0089] Step S305, if the hash function value is different from the initial hash function value, performing a difference comparison analysis based on the file information set by the configuration software and the current file information of the configuration software to determine the difference data between the current file information of the configuration software and the file information set by the configuration software;
[0090] Step S306: generating configuration software difference prompt information according to the difference data.
[0091] It should be noted that when the hash function value is different from the initial hash function value, further analysis can be performed to determine the difference data between the current file information of the configuration software and the set file information. By comparing the content or structure of the set file information and the current file information, the difference points or change records can be found, and the difference data can be generated, and then the configuration software difference prompt information can be generated, listing the specific change content, which can include the file name of the changed file, directory list, log file, file change path, file change content, change time and other information, so as to help system administrators or users quickly understand the changes in the configuration software files and make necessary adjustments or repairs.
[0092] In this embodiment, if the hash function value is different from the initial hash function value, by monitoring and comparing the setting file information and current file information of the configuration software, automatic difference comparison analysis and prompt information generation can be achieved, which can quickly discover any unauthorized modification or tampering behavior, help prevent potential security threats, and improve the security of the system.
[0093] The present application also provides a configuration software control device, please refer to Figure 4 , the configuration software prevention and control device comprises:
[0094] The acquisition module 10 is used to acquire the controlled device signal and match the corresponding configuration software according to the controlled device signal;
[0095] The calculation module 20 is used to perform a hash operation on the configuration software to obtain a hash function value of the configuration software and acquire an initial hash function value of the configuration software;
[0096] The comparison module 30 is used to compare the hash function value with the initial hash function value to obtain a comparison result, and generate configuration software prevention and control prompt information according to the comparison result.
[0097] Optionally, the acquisition module 10 further includes:
[0098] Sampling a signal of a controlled device to obtain a signal of the controlled device;
[0099] Perform signal identification according to the controlled device signal to obtain the signal type of the controlled device signal;
[0100] Match the corresponding configuration software according to the signal type.
[0101] Optionally, the calculation module 20 further includes:
[0102] Obtaining a preset random factor and file information set by the configuration software;
[0103] A hash operation is performed on the file information set by the configuration software according to the random factor to obtain an initial hash function value of the configuration software.
[0104] Optionally, the calculation module 20 further includes:
[0105] A hash operation is performed on the current file information of the configuration software according to the random factor to obtain a hash function value of the configuration software.
[0106] Optionally, the comparison module 30 further includes:
[0107] If the hash function value is different from the initial hash function value, a configuration software prevention and control alarm message is generated.
[0108] Optionally, the comparison module 30 further includes:
[0109] If the hash function value is different from the initial hash function value, determining the set version information of the configuration software according to the file information set by the configuration software;
[0110] Determining the current version information of the configuration software according to the current file information of the configuration software;
[0111] The set version information is compared with the current version information, and if the set version information is different from the current version information, configuration software version prompt information is generated.
[0112] Optionally, the comparison module 30 further includes:
[0113] If the hash function value is different from the initial hash function value, performing a difference comparison analysis based on the file information set by the configuration software and the current file information of the configuration software to determine the difference data between the current file information of the configuration software and the file information set by the configuration software;
[0114] According to the difference data, configuration software difference prompt information is generated.
[0115] The configuration software prevention and control device provided in the embodiment of the present application adopts the configuration software prevention and control method in the above embodiment, which can solve the technical problem of how to improve the comprehensiveness and accuracy of the diagnostic report. Compared with the prior art, the beneficial effects of the configuration software prevention and control device provided in the embodiment of the present application are the same as the beneficial effects of the configuration software prevention and control method provided in the above embodiment, and the other technical features in the configuration software prevention and control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0116] The present application provides a configuration software prevention and control device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the configuration software prevention and control method in the above-mentioned embodiment 1.
[0117] Reference below Figure 5 , which shows a schematic diagram of the structure of a configuration software prevention and control device suitable for implementing the embodiment of the present application. The configuration software prevention and control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The configuration software prevention and control device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0118] like Figure 5As shown, the configuration software prevention and control device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the configuration software prevention and control device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the configuration software control device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a configuration software control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0119] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0120] The configuration software prevention and control device provided by the present application adopts the configuration software prevention and control method in the above embodiment, which can solve the technical problems of configuration software prevention and control. Compared with the prior art, the beneficial effects of the configuration software prevention and control device provided by the present application are the same as the beneficial effects of the configuration software prevention and control method provided by the above embodiment, and the other technical features in the configuration software prevention and control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0121] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0123] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the configuration software prevention and control method in the above-mentioned embodiment.
[0124] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0125] The above-mentioned computer-readable storage medium may be included in the configuration software prevention and control device; or it may exist independently without being assembled into the configuration software prevention and control device.
[0126] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the configuration software prevention and control device, the configuration software prevention and control device: obtains a controlled device signal, and matches the corresponding configuration software according to the controlled device signal; performs a hash operation on the configuration software to obtain a hash function value of the configuration software, and obtains an initial hash function value of the configuration software; compares the hash function value with the initial hash function value to obtain a comparison result, and generates configuration software prevention and control prompt information according to the comparison result.
[0127] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0128] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0129] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0130] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned configuration software prevention and control method, and can solve the technical problem of how to prevent and control configuration software. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the configuration software prevention and control method provided in the above-mentioned embodiment, and will not be repeated here.
[0131] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A configuration software prevention and control method, It is characterized in that The configuration software prevention and control method comprises: Acquire a controlled device signal, and match the corresponding configuration software according to the controlled device signal; Performing a hash operation on the configuration software to obtain a hash function value of the configuration software, and acquiring an initial hash function value of the configuration software; Comparing the hash function value with the initial hash function value to obtain a comparison result, and generating configuration software prevention and control prompt information according to the comparison result; The step of obtaining the initial hash function value of the configuration software further includes: Obtaining a preset random factor and file information set by the configuration software; Performing a hash operation on the file information set by the configuration software according to the random factor to obtain an initial hash function value of the configuration software; The step of generating configuration software prevention and control prompt information according to the comparison result also includes: If the hash function value is different from the initial hash function value, determining the set version information of the configuration software according to the file information set by the configuration software; Determining the current version information of the configuration software according to the current file information of the configuration software; Comparing the set version information with the current version information, and if the set version information is different from the current version information, generating configuration software version prompt information; The step of generating configuration software prevention and control prompt information according to the comparison result also includes: If the hash function value is different from the initial hash function value, performing a difference comparison analysis based on the file information set by the configuration software and the current file information of the configuration software to determine the difference data between the current file information of the configuration software and the file information set by the configuration software; According to the difference data, configuration software difference prompt information is generated.
2. The method according to claim 1, It is characterized in that The step of acquiring the controlled device data and matching the corresponding configuration software according to the controlled device signal includes: Sampling a signal of a controlled device to obtain a signal of the controlled device; Perform signal identification according to the controlled device signal to obtain the signal type of the controlled device signal; Match the corresponding configuration software according to the signal type.
3. The method according to claim 1, It is characterized in that The step of performing a hash operation on the configuration software to obtain a hash function value of the configuration software includes: A hash operation is performed on the current file information of the configuration software according to the random factor to obtain a hash function value of the configuration software.
4. The method according to claim 1, It is characterized in that The configuration software prevention and control prompt information includes configuration software prevention and control alarm information, and the step of generating the configuration software prevention and control prompt information according to the comparison result includes: If the hash function value is different from the initial hash function value, a configuration software prevention and control alarm message is generated.
5. A configuration software prevention and control device, It is characterized in that The configuration software prevention and control device comprises: An acquisition module, used to acquire a signal of a controlled device and match the corresponding configuration software according to the signal of the controlled device; A calculation module, used to perform a hash operation on the configuration software to obtain a hash function value of the configuration software, and obtain an initial hash function value of the configuration software; A comparison module, used to compare the hash function value with the initial hash function value to obtain a comparison result, and generate configuration software prevention and control prompt information according to the comparison result; The computing module is further used for: Obtaining a preset random factor and file information set by the configuration software; Performing a hash operation on the file information set by the configuration software according to the random factor to obtain an initial hash function value of the configuration software; The comparison module is further used for: If the hash function value is different from the initial hash function value, determining the set version information of the configuration software according to the file information set by the configuration software; Determining the current version information of the configuration software according to the current file information of the configuration software; Comparing the set version information with the current version information, and if the set version information is different from the current version information, generating configuration software version prompt information; The comparison module is further used for: If the hash function value is different from the initial hash function value, performing a difference comparison analysis based on the file information set by the configuration software and the current file information of the configuration software to determine the difference data between the current file information of the configuration software and the file information set by the configuration software; According to the difference data, configuration software difference prompt information is generated.
6. A configuration software control device, It is characterized in that The configuration software prevention and control device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the configuration software prevention and control method as described in any one of claims 1 to 4.
7. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the configuration software prevention and control method according to any one of claims 1 to 4 are implemented.
