A method and system for detecting Trojans in industrial control hosts based on behavioral characteristics
By analyzing the Trojan intrusion behavior on the industrial control host, combined with whitelist and file content analysis, Trojan detection based on behavioral characteristics is realized, which solves the problem of limited industrial control host resources and old equipment that is difficult to detect Trojans in depth, and achieves efficient and accurate detection. Trojan detection and early warning.
Patent Information
- Application Number
- CN202410954053.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-17
AI Technical Summary
Existing Trojan detection technology is difficult to efficiently and economically detect Trojan intrusions on industrial control hosts in industrial scenarios, especially due to limited resources and old equipment, which results in slow system response. Traditional methods require a large amount of CPU and memory resources and are difficult to detect in depth. Detection Trojan signature library.
Through in-depth analysis of the Trojan intrusion behavior, the key node status rules are summarized, and a detection method based on behavioral characteristics is used to monitor abnormal login behavior, file system changes and new files, combined with whitelist and file content analysis, to generate intrusion warning information. Reduces resource usage and is suitable for industrial control scenarios.
It achieves efficient and accurate Trojan detection on industrial control hosts, reduces resource occupation, avoids the trouble of regularly updating the signature database, and reduces losses to industrial production due to Trojan intrusions.
Smart Images

Figure CN118503970B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of industrial control digital information transmission, and in particular relates to a method and system for detecting Trojans in an industrial control host based on behavioral characteristics. Background Art
[0002] As an attack tool, Trojan programs are used to steal users' accounts, confidential files, private information and other important information, thereby seeking profits for attackers and seriously threatening users' privacy and data security. At present, there are two mainstream Trojan detection technologies: signature code detection technology and detection technology based on Trojan behavior characteristics.
[0003] The detection technology based on signature detection is to analyze known Trojan programs and infected system files, summarize the Trojan program signature codes, and construct a Trojan program signature library. The signature library needs to be configured on the local end and needs to be updated regularly. The detection technology based on the behavior characteristics of Trojan programs is a method to judge Trojan programs through the unique behavior characteristics of Trojan programs. The traditional Trojan detection technology based on behavior characteristics is applied to traditional computer systems, focusing on suspicious behaviors such as writing to executable files after Trojan implantation, stealing and intercepting system interrupts, switching between virus programs and host programs, writing boot sectors or executing formatted disks, modifying registry entries, modifying startup items, modifying file associations, registering as system services, creating network communication channels, using common ports, and opening uncommon ports, which requires a large amount of computer monitoring resources.
[0004] In industrial scenarios, industrial control hosts generally have low performance, limited resources, or are even old and resource-poor, and do not have the conditions to set up a Trojan program feature library locally. On the other hand, the existing Trojan detection technology based on behavioral features does not take into account the actual application scenarios of industrial control computers. When performing virus detection, it takes up a large amount of CPU and memory resources, which will lead to insufficient system capabilities and resources for other tasks, slow system response speed, or even freeze.
[0005] Based on the above situation, using traditional methods to detect Trojans on industrial control hosts does not fit the actual situation of industrial scenarios. There is an urgent need for better and more targeted methods to help industrial control hosts detect Trojan programs. Summary of the invention
[0006] The embodiments of the present application provide a method and system for detecting Trojans in industrial control hosts based on behavioral characteristics. Since the present invention conducts in-depth analysis and research on the entire execution link of Trojan intrusion, and highly combines the actual equipment and network environment of industrial production, summarizes the key node status rules for Trojan intrusions in industrial scenarios, and thus consumes very few resources when performing Trojan detection, it is very suitable for Trojan detection of industrial control hosts in industrial control scenarios, and overcomes the defect that the prior art lacks economical and effective timely detection of Trojan intrusions in industrial control hosts.
[0007] In a first aspect, an embodiment of the present application provides a method for detecting Trojans in an industrial control host based on behavioral characteristics, the method comprising:
[0008] Monitor and record the results of the industrial control host login attempts. When a number of login failures exceeding a preset threshold is detected within a preset time period, the event is marked as abnormal login behavior.
[0009] Continue to monitor the login status of the industrial control host, and after detecting a successful login event after the abnormal login behavior, compare the file system status of the industrial control host before and after the successful login event occurs to detect whether a new file appears;
[0010] When it is detected that the industrial control host has the abnormal login behavior, the login success event and the behavior characteristics of the new file appearing in the file system appear in sequence, it is determined that the industrial control host is invaded by a Trojan horse and an invasion warning information is generated.
[0011] Furthermore, when the successful login event is detected, detailed information of the successful login is recorded, and the detailed information includes the IP address and / or MAC address of the login device.
[0012] Furthermore, the industrial control host has a whitelist of devices allowed to log in, and the whitelist includes IP addresses and / or MAC addresses of devices allowed to log in. When it is detected that the successful login event is a login by a device in the whitelist, the login is determined to be a safe login, and the file system status of the industrial control host is not compared.
[0013] Furthermore, the industrial control host adjusts the preset time period and the preset threshold according to the actual operating environment and security requirements.
[0014] Furthermore, after detecting that the industrial control host has the abnormal login behavior, the successful login event, and the behavioral characteristics of the new file appearing in the file system in sequence, the industrial control host sends the new file to the Trojan identification terminal, and the Trojan identification terminal applies a file content analysis method to identify potential malicious features of the new file. The file content analysis method includes: hash comparison, and / or virus library matching, and the potential malicious features include: encryption, and / or hiding, and / or self-starting.
[0015] Furthermore, after determining that the industrial control host is invaded by a Trojan horse, if the industrial control host has unauthorized IP external connection behavior, it is determined that the Trojan horse file of the industrial control host has been enabled, and serious invasion warning information is generated.
[0016] Furthermore, after determining that the industrial control host is invaded by a Trojan horse, if an unknown new process appears in the industrial control host, it is determined that the Trojan horse file of the industrial control host has been enabled, and serious invasion warning information is generated.
[0017] In a second aspect, an embodiment of the present application provides an industrial control host Trojan detection system based on behavioral characteristics, the system comprising:
[0018] A login monitoring unit is used to monitor and record the login attempt results of the industrial control host. When a number of login failure messages exceeding a preset threshold is detected within a preset time period, the event is marked as an abnormal login behavior. When the login is successful, the event is marked as a successful login event.
[0019] A file system monitoring unit, used to detect the file system status of the industrial control host and whether new files appear;
[0020] A behavior analysis unit, configured to determine that the industrial control host is invaded by a Trojan horse when the login monitoring unit and the file system monitoring unit detect that the industrial control host has the abnormal login behavior, the login success event, and the behavior characteristics of the newly added file appearing in the file system in sequence;
[0021] The alarm unit is used to generate intrusion warning information when the behavior analysis unit determines that the industrial control host is invaded by a Trojan horse.
[0022] In a third aspect, an embodiment of the present application provides an industrial control host, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, an industrial control host Trojan detection method based on behavioral features as described in any one of the first aspects above is implemented.
[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the industrial control host Trojan detection method based on behavioral characteristics as described in any one of the first aspects above.
[0024] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0025] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the method of the present invention combines the characteristics of the industrial control scenario environment, where there are few unknown devices connected and the equipment maintenance has a fixed process, and simplifies the behavior recognition characteristics of Trojans to the maximum extent, which can not only reduce the occupation of industrial control host resources, but also accurately and efficiently solve the Trojan detection needs of industrial control scenarios. The industrial control host Trojan detection method and system based on behavioral characteristics using the method of the present invention analyzes the impact of the key links and steps that will be executed on the host when the Trojan intrusion behavior occurs, and through real-time monitoring of these impacts, reversely infers that the host is likely to be invaded by the Trojan, so as to give an early alarm and intervene early. This industrial control host Trojan detection method based on behavioral characteristics is particularly suitable for the detection of Trojan intrusion in industrial control scenarios. This behavior-based Trojan detection method for industrial control hosts can solve the problem that industrial control hosts are difficult to detect Trojans in depth using traditional feature code-based detection methods due to old systems and low resources. It also does not require administrators to spend energy to keep the Trojan program feature library up to date, eliminating the trouble of regularly updating the feature library and reducing the losses to industrial production caused by Trojan intrusions. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 This is a schematic diagram of a Trojan horse intrusion behavior state chain process provided by an embodiment of the present application;
[0028] Figure 2 This is a state diagram of detecting multiple failed attempts to log into an industrial control host within a short period of time provided by an embodiment of the present application;
[0029] Figure 3 This is a state diagram of detecting successful login of an industrial control host provided by an embodiment of the present application;
[0030] Figure 4 A state diagram of a newly added file in the file system of an industrial control host is detected, provided by an embodiment of the present application;
[0031] Figure 5 This is a state diagram of an unknown new process appearing on an industrial control host provided by an embodiment of the present application;
[0032] Figure 6 This is a schematic diagram of a Trojan detection system for an industrial control host based on behavioral characteristics provided by an embodiment of the present application;
[0033] Figure 7 It is a schematic diagram of an industrial control host using an industrial control host Trojan detection method based on behavioral features provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0035] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0036] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0037] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0038] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0039] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0040] The embodiment of the present application provides a method and system for detecting Trojans in industrial control hosts based on behavioral characteristics. In a possible implementation, the method can be applied to industrial control hosts. In this embodiment, a series of operating behaviors when a Trojan intrusion occurs are first analyzed, and the key behavior chain is extracted. The host state changes caused by each key behavior are observed and deeply analyzed, so as to summarize the rules and form a Trojan intrusion behavior state chain. Based on the analysis of a large number of Trojan intrusion cases, the main steps of Trojan intrusion are summarized as shown in Figure 1, including:
[0041] S101, multiple attempts to log in to the host;
[0042] S102, login successful;
[0043] S103, create a new unknown file;
[0044] S104: An unknown process appears on the host.
[0045] The method for detecting Trojans in industrial control hosts based on behavioral features of the present invention monitors and records the results of the attempts to log in to the industrial control hosts according to the above-mentioned behavioral status chain. When a number of login failures exceeding a preset threshold is detected within a preset time period, the event is marked as an abnormal login behavior; the login status of the industrial control hosts is continuously monitored, and after a successful login event is detected after the abnormal login behavior, the file system status of the industrial control hosts before and after the successful login event is compared to detect whether new files appear; when the abnormal login behavior, successful login event, and new files appearing in the file system of the industrial control host are detected in sequence, it is determined that the industrial control host is invaded by a Trojan and an invasion warning message is generated. The detection method of the present invention is explained below in conjunction with the main steps of Trojan invasion.
[0046] S101 tried to log in to the host multiple times:
[0047] Hackers usually use tools such as NTscan to scan IP ports, and then use password attempt programs to try to log in to the target host. At this time, check the event log of the host, such as Figure 2 As shown, it can be found that in this stage, there will be a situation where a device attempts to log in to the host multiple times in a short period of time, and thus a large number of login failure records are generated. In order to distinguish normal login failure behaviors in daily production (such as forgetting the password, or logging in with the wrong device, etc.) from hackers' password collision behaviors, the present invention sets a threshold for the number of login failure information within a preset time period, that is, it is stipulated that within the preset time period, when the login failure information is equal to or less than the threshold number, these login failure behaviors are determined to be normal login behaviors, and when the login failure information exceeds the preset threshold number, these login failure behaviors are determined to be abnormal logins, and the event is marked as abnormal login behavior. The producer can adjust the preset time period and preset threshold of the industrial control host according to the actual operating environment and security needs. For example, in an environment with a higher security level, the preset time period can be set to a longer time, and the preset threshold can be set to a smaller number, that is: when the number of login failures allowed is the same (that is, the threshold is the same), the longer the preset time period, the higher the security level; when the preset time period is the same, the fewer the number of login failures allowed (that is, the smaller the threshold), the higher the security level.
[0048] The current methods for detecting Trojans based on Trojan behavior judgment do not target abnormal login behaviors. This is because login failures are common in general Internet environments, so the abnormal behavior cannot be used as a signature action of Trojan intrusion. The present invention combines the characteristics of industrial control scenarios, where the number of devices connected to industrial computers is limited and the access devices have relatively fixed access time requirements. The frequent login behaviors of industrial computers in a short period of time are regarded as abnormal login behaviors, which is different from the existing methods for identifying Trojans based on behavioral features. At the same time, for industrial control hosts, this process of simply detecting abnormal login behaviors consumes very little memory and computing resources, and general industrial control hosts can handle it.
[0049] In another possible implementation, the industrial control host has a whitelist of devices that are allowed to log in. When monitoring the host event log, it also compares whether the IP or MAC address of the login is in the whitelist. If it is in the whitelist, it is regarded as a normal login behavior and no subsequent detection process is performed; if it is outside the whitelist, the subsequent detection is continued. In this implementation, since the whitelist detection process is added in step S101, the detection efficiency is improved, but the cost is that the computing and storage resources of the industrial control host need to be consumed. The user can choose according to their own situation.
[0050] S102, Login successful:
[0051] The Trojan's intrusion behavior is inevitably accompanied by a successful login. By combining steps S101 and S102, it is possible to discover illegal logins in industrial control scenarios that are ultimately successful through password collisions.
[0052] In another possible implementation, the industrial control host has a whitelist of devices that are allowed to log in. When the host detects a successful login event, it also records the detailed information of the login device, including the IP address and / or MAC address of the login device. After the login behavior has gone through steps S101 and S102, when the industrial control host detects that the successful login event is a login by a device in the whitelist, it determines that this login is a safe login, and does not continue with the subsequent step S103, that is, it does not compare the file system status of the industrial control host, but directly determines that this login is a normal login; if the query finds that this login is a successful login by a device outside the whitelist, it is necessary to perform subsequent detection steps to determine whether it is a Trojan intrusion. In this implementation, since the whitelist detection process is added in step S102, the detection efficiency is improved, but the cost is that the computing and storage resources of the industrial control host need to be consumed. Users can choose according to their own situation.
[0053] S103. Create a new unknown file:
[0054] like Figure 4 As shown, when hackers implant Trojans, they need to use the copy command to copy files to the target host. Since all files in the industrial control host have MD5 identifiers, by monitoring and comparing the MD5 identifiers, it is possible to find out whether the host has additional files that were not originally there, and then find out whether there are new unknown files. In this embodiment, due to the particularity of the industrial control scenario, any new files added to the industrial control equipment generally need to be reported in advance. Therefore, after S101 and S102, if a new unknown file appears, it can be determined that the industrial control host has been invaded by a Trojan. At this time, the system generates an intrusion warning message to warn, and the warning message can be in any form or a combination of voice, text, light, etc.
[0055] S104, unknown process appears on the host:
[0056] In another possible implementation, in order to further improve the accuracy of Trojan detection and reduce false positives, the industrial control host will be further detected to see if there are any unknown processes. Figure 5As shown, when the Trojan virus starts to infringe the host, it must start the executable file added in step S103 to perform corresponding dangerous operations such as stealing secrets and tampering. At this time, a new process will be added to the host system. Therefore, after completing the detection of steps S101, S102 and S103 in sequence, continuing to detect the process will improve the accuracy of Trojan detection. It should be pointed out that some Trojans have a long incubation period. Therefore, for the system, if there is a reliance on detecting the newly added process, it is likely to cause missed reports. Therefore, this step is an optional step.
[0057] In another embodiment, the monitored industrial control host is connected to a Trojan identification terminal, which has a Trojan program feature library. The Trojan program feature is obtained by analyzing the process name when the Trojan is running in the target program, the feature string of the Trojan original file and the generated file, the startup loading method, the generated file name, the file size and the directory where it is located, the fixed port used, etc. The Trojan identification terminal with Trojan analysis function compares the feature code of the target program with the feature code in the Trojan program feature library when judging whether the target program is a Trojan program or Trojan detailed information. If the feature code matches, the target program is determined to be a corresponding Trojan program.
[0058] In this embodiment, when the industrial control host has abnormal login behavior, successful login events, and the behavior characteristics of newly added files appearing in the file system appear in sequence, the industrial control host determines that it has been invaded by a Trojan horse, and then sends the newly added files in the file system to the Trojan horse identification terminal, and the Trojan horse identification terminal applies a file content analysis method to identify the potential malicious features of the newly added files. The file content analysis technology includes: hash comparison, and / or virus library matching, and the malicious features include: encryption, and / or hiding, and / or self-starting. Through this method, the accuracy of Trojan horse detection can be further improved without occupying the computing and storage resources of the local industrial control host. Due to the Trojan horse identification and analysis capabilities of the Trojan horse terminal, the type or name of the implanted Trojan horse can be specifically obtained, so that the user can use the appropriate Trojan horse response strategy in time to eliminate the impact of the Trojan horse and improve the Trojan horse protection level.
[0059] In another embodiment, when the industrial control host is determined to be invaded by a Trojan horse through the above-mentioned Trojan horse detection method, the generated intrusion warning information is divided into different warning levels according to the harmfulness of the Trojan horse, and different intrusion warning information is issued: Low: After the industrial control host shows the abnormal login behavior, successful login event, and the behavioral characteristics of new files appearing in the file system, the industrial control host does not have other abnormal operations; Severe: After the industrial control host shows the abnormal login behavior, successful login event, and the behavioral characteristics of new files appearing in the file system, the industrial control host shows unauthorized IP external connection behavior, or an unknown new process appears (at this time, the Trojan horse file of the industrial control host has been enabled).
[0060] According to the damage caused by Trojans to the system, when the industrial control host is determined to be invaded by Trojans through the above Trojan detection method, if the Trojan is simply implanted without starting the Trojan program, the system is still temporarily "safe" and no substantial damage is caused to the system. Therefore, a lower level of alarm can be used to prompt the corresponding preventive measures. When an unknown new process appears in the industrial control host (usually the name of the new process is the same as the name of the newly added file), the Trojan is likely to have been started and started to carry out real system intrusion activities; or when the host has unauthorized IP external connection behavior, the Trojan is likely to have been started at this time and transmit local messages to other hosts through the network, or spread the Trojan. In both cases, the alarm level needs to be raised to prompt immediate system disposal to minimize the loss.
[0061] Based on the same technical concept, such as Figure 6 As shown, the embodiment of the present application also provides an industrial control host Trojan detection system based on behavioral characteristics. For the sake of convenience, only the parts related to the embodiment of the present application are shown. Figure 6 The industrial control host has a login monitoring unit 301, a file system monitoring unit 302, a behavior analysis unit 303, and an alarm unit 304.
[0062] The login monitoring unit 301 is used to monitor and record the login attempt results of the industrial control host. When a number of login failure messages exceeding a preset threshold is detected within a preset time period, the event is marked as an abnormal login behavior. When the login is successful, the event is marked as a successful login event.
[0063] The file system monitoring unit 302 is used to detect the file system status of the industrial control host and whether there are new files;
[0064] The behavior analysis unit 303 is used to determine that the industrial control host is invaded by a Trojan horse when the login monitoring unit and the file system monitoring unit detect that the industrial control host has the abnormal login behavior, the login success event, and the behavior characteristics of the newly added file appearing in the file system in sequence;
[0065] The alarm unit 304 is used to generate intrusion warning information when the behavior analysis unit determines that the industrial control host is invaded by a Trojan horse.
[0066] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0067] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0068] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0069] like Figure 7 As shown, an embodiment of the present application also provides an industrial control host, wherein the industrial control host device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the industrial control host program, the steps in any of the above-mentioned method embodiments are implemented.
[0070] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal, the terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0071] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / target device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0072] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0073] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0074] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0075] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0076] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for detecting Trojans in industrial control hosts based on behavioral characteristics, characterized in that: The method comprises: Monitor and record the results of the industrial control host's login attempts. When a number of login failures exceeding a preset threshold is detected within a preset time period, the event is marked as an abnormal login behavior. The industrial control host adjusts the preset time period and preset threshold according to the actual operating environment and security requirements; Continue to monitor the login status of the industrial control host, and after detecting a successful login event after the abnormal login behavior, compare the file system status of the industrial control host before and after the successful login event occurs to detect whether a new file appears; When it is detected that the industrial control host has the abnormal login behavior, the login success event and the behavior characteristics of the new file appearing in the file system appear in sequence, it is determined that the industrial control host is invaded by a Trojan horse and an invasion warning information is generated.
2. The method for detecting Trojans in an industrial control host based on behavioral characteristics as claimed in claim 1, characterized in that: When the successful login event is detected, the detailed information of the successful login is recorded, and the detailed information includes the IP address and / or MAC address of the login device.
3. The method for detecting Trojans in an industrial control host based on behavioral characteristics as claimed in claim 2, characterized in that: The industrial control host has a whitelist of devices allowed to log in, which includes the IP addresses and / or MAC addresses of the devices allowed to log in. When it is detected that the successful login event is a login by a device in the whitelist, the login is determined to be a safe login, and the file system status of the industrial control host is not compared.
4. The method for detecting Trojans in an industrial control host based on behavioral characteristics as claimed in claim 1, characterized in that: After detecting that the abnormal login behavior, successful login event, and new files appear in the file system of the industrial control host appear in sequence, the industrial control host sends the new files to the Trojan identification terminal, and the Trojan identification terminal applies a file content analysis method to identify potential malicious features of the new files. The file content analysis method includes: hash comparison and / or virus library matching, and the potential malicious features include: encryption, and / or hiding, and / or self-starting.
5. The method for detecting Trojans in an industrial control host based on behavioral characteristics as claimed in claim 1, characterized in that: After determining that the industrial control host is invaded by a Trojan horse, if the industrial control host has an unauthorized IP external connection behavior, it is determined that the Trojan horse file of the industrial control host has been enabled, and a serious invasion warning information is generated.
6. The method for detecting Trojans in an industrial control host based on behavioral characteristics as claimed in claim 1, characterized in that: After determining that the industrial control host is invaded by a Trojan horse, if an unknown new process appears in the industrial control host, it is determined that the Trojan horse file of the industrial control host has been enabled, and serious invasion warning information is generated.
7. A Trojan detection system for industrial control hosts based on behavioral characteristics, characterized in that: The system comprises: A login monitoring unit is used to monitor and record the login attempt results of the industrial control host. When a number of login failure messages exceeding a preset threshold is detected within a preset time period, the event is marked as an abnormal login behavior. When the login is successful, the event is marked as a successful login event. A file system monitoring unit, used to detect the file system status of the industrial control host and whether new files appear; A behavior analysis unit, configured to determine that the industrial control host is invaded by a Trojan horse when the login monitoring unit and the file system monitoring unit detect that the industrial control host has the abnormal login behavior, the login success event, and the behavior characteristics of the newly added file appearing in the file system in sequence; The alarm unit is used to generate intrusion warning information when the behavior analysis unit determines that the industrial control host is invaded by a Trojan horse.
8. An industrial control host, characterized in that: The industrial control host includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program implements the method according to any one of claims 1 to 6 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
