Method, device and computer-readable storage medium for preventing illegal attacks

By obtaining and analyzing multi-source standardized log data, the attackers are determined and the threat level of suspicious access behaviors is calculated, which solves the problem of insufficient information sharing in the existing technology and achieves in-depth prevention of illegal attacks.

CN114244617BActive Publication Date: 2024-08-27SANGFOR TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111577990.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-08-27
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

In the existing technology, when the simulated topology network and security equipment are linked to prevent illegal attacks, information sharing is insufficient, allowing illegal attackers to bypass the security equipment and continue the attack.

Method used

By obtaining standardized log data from different sources, including simulated topology networks, real network security equipment and business system logs, analyze attack behavior logs, determine the attacker set, and match the corresponding alarm logs and suspicious access behavior logs, based on multiple sources The data calculates the threat level of each suspicious access behavior.

Benefits of technology

It achieves more in-depth prevention of illegal attacks, discovers potential attackers, and effectively prevents illegal attacks with higher threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114244617B
    Figure CN114244617B
Patent Text Reader

Abstract

The present application relates to a method, device and computer-readable storage medium for preventing illegal attack behaviors. The method includes: obtaining standardized log data from different sources, wherein the standardized log data from different sources include attack behavior logs from simulated topology networks and standardized, alarm logs from real network security devices and standardized, and business logs from business systems and standardized; analyzing attack behavior logs to determine the attacker set; matching the attacker alarm log set and suspicious access behavior log set corresponding to the attacker set from the alarm log and business log respectively; determining the threat level of each suspicious access behavior in the suspicious access behavior log set based on the attack behavior log, attacker alarm log set and suspicious access behavior log set. The solution provided by the present application can effectively prevent illegal attack behaviors with higher threat levels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security, and in particular to a method, device and computer-readable storage medium for preventing illegal attacks. Background Art

[0002] The Internet has penetrated into every field of modern society. Whether it is personal life, public welfare or public organizations or business groups, they are inseparable from the Internet. Once these networks are attacked illegally, they will cause huge losses to individuals or groups. Therefore, network security has always been an important research topic in related fields.

[0003] It is a popular technology to link simulated topology networks, such as Honeynet, with security devices to prevent illegal attacks. In related technologies, illegal attack information discovered by security devices and simulated topology networks such as Honeynet is usually shared. However, this information sharing is usually not sufficient or in-depth, and still gives illegal attackers opportunities to take advantage. Summary of the invention

[0004] In order to solve or partially solve the problems existing in the related art, the present application provides a method, device and computer-readable storage medium for preventing illegal attacks, which can effectively prevent illegal attacks with higher threats.

[0005] The first aspect of the present application provides a method for preventing illegal attack behaviors, comprising:

[0006] Acquire standardized log data from different sources, wherein the standardized log data from different sources include attack behavior logs from simulated topology networks and standardized, alarm logs from real network security devices and standardized, and business logs from business systems and standardized;

[0007] Analyze the attack behavior log to determine the attacker set;

[0008] Matching an attacker alarm log set and a suspicious access behavior log set corresponding to the attacker set from the alarm log and the business log respectively;

[0009] According to the attack behavior log, the attacker warning log set and the suspicious access behavior log set, the threat level of each suspicious access behavior in the suspicious access behavior log set is determined.

[0010] A second aspect of the present application provides a device for preventing illegal attack behaviors, comprising:

[0011] An acquisition module, used to acquire standardized log data from different sources, wherein the standardized log data from different sources include attack behavior logs from simulated topology networks and standardized, alarm logs from real network security devices and standardized, and business logs from business systems and standardized;

[0012] An analysis module, used to analyze the attack behavior log and determine the attacker set;

[0013] A matching module, used to match an attacker alarm log set and a suspicious access behavior log set corresponding to the attacker set from the alarm log and the business log respectively;

[0014] The determination module is used to determine the threat level of each suspicious access behavior in the suspicious access behavior log set according to the attack behavior log, the attacker warning log set and the suspicious access behavior log set.

[0015] A third aspect of the present application provides an electronic device, including:

[0016] Processor; and

[0017] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0018] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0019] It can be seen from the technical solution provided by the present application that after determining the attacker set by analyzing the attack behavior log from the simulated topology network, the attacker alarm log set and the suspicious access behavior log set corresponding to the attacker set are matched, and finally the threat level of each suspicious access behavior in the suspicious access behavior log set is determined based on the attack behavior log, the attacker alarm log set and the suspicious access behavior log set. Since the threat level of each suspicious access behavior in the suspicious access behavior log set is not based on the data of a single device, but is obtained by correlation analysis of data from different sources, the data sharing of various (individual) devices is more sufficient or in-depth, so that potential attackers in normal business access records can be discovered, and illegal attacks with higher threats can be effectively prevented.

[0020] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0022] Figure 1 It is a flowchart of a method for preventing illegal attack behaviors provided by an embodiment of the present application;

[0023] Figure 2 It is a schematic diagram of the structure of a device for preventing illegal attack behaviors provided by an embodiment of the present application;

[0024] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0026] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0027] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0028] In the field of network security, in the related technology, a simulated topology network, such as a Honey Net, is linked with a security device to prevent illegal attacks. Specifically, the attack traffic discovered by the security device is diverted to the honeypot device, or the IP used for the attack identified by the honeypot device is sent to the security device so that the security device can intercept it, or the honeypot device and the security device are linked, etc. However, in the above-mentioned related technologies, diverting the attack traffic discovered by the security device to the honeypot device cannot solve the problem of the security device being bypassed. The reason is that the security device can only identify known attacks based on existing rules or engines and divert them to the honeypot device, and for unknown attacks, the security device cannot distinguish them and divert them to the honeypot, and sending the IP used for the attack identified by the honeypot device to the security device cannot prevent the attacker from changing the IP address and continuing the attack. As for the linkage between the honeypot device and the security device, in fact, the linkage is not sufficient, resulting in the intelligence captured by the honeypot device cannot be shared with the security device, and the attack traffic identified by the security device cannot be diverted to the honeypot device.

[0029] In response to the above problems, an embodiment of the present application provides a method for preventing illegal attacks, which can effectively prevent illegal attacks with higher threats.

[0030] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0031] See also Figure 1 , is a flow chart of a method for preventing illegal attack behaviors shown in an embodiment of the present application, which mainly includes steps S101 to S104, as described below:

[0032] Step S101: Acquire standardized log data from different sources, wherein the standardized log data from different sources include attack behavior logs from a simulated topology network and standardized, alarm logs from real network security devices and standardized, and business logs from a business system and standardized.

[0033] In the embodiment of the present application, the standardized log data is log data obtained by collecting log data from different devices or networks and performing standardized processing. Specifically, before obtaining standardized log data from different sources, the attack behavior log from the simulated topology network, such as the Honeynet, the alarm log from the real network security device, and the business log from the business system are standardized to obtain standardized log data from different sources, and these standardized log data from different sources are saved, for example, saved to the same database for unified management. In the above embodiment, the standardized processing of attack behavior logs, alarm logs and business logs mainly includes extracting the main information such as the source IP address or attacker device identification of each log in these logs, and then uniformly naming the logs of the same object or the same behavior after extracting the source IP address or attacker device identification to eliminate ambiguity. Finally, the logs that have been uniformly named and eliminated ambiguity are used to establish a mapping relationship between the same object or behavior and the logs. In this way, when such a standardized log is obtained, it can be known which source IP address or attacker device identification the standardized log corresponds to, and the source IP address or attacker device identification also corresponds to a certain attack tool or a device or IP address used by the attacker. Among them, the above attacker device identification can specifically be an attacker device fingerprint, which means that as long as the attacker only uses the same device, the attacker can still be identified even if the IP address is changed. In other embodiments, standardizing the attack behavior log, alarm log, and business log also includes extracting information such as the destination IP, source port, destination port, a timestamp indicating the time when each log was generated, the category of each log, and the behavior corresponding to each log, wherein the behavior information extracted from the attack behavior log or the alarm log corresponds to the description of the attack behavior, and the behavior information extracted from the business log corresponds to the access behavior to the data in the business system.

[0034] Step S102: Analyze the attack behavior logs from the simulated topology network and after standardized processing to determine the attacker set.

[0035] As an embodiment of the present application, analyzing the attack behavior log from the simulated topology network and subjected to standardized processing, and determining the attacker set may be implemented by the following steps S1021 to S1023:

[0036] Step S1021: Determine the automatic attack behavior in the attack behavior intelligence of the third party.

[0037] It should be noted that the technical solution of the present application is mainly to identify attackers, including obvious attackers and / or potential attackers, wherein attackers mainly refer to illegal attackers who operate attack tools, such as network hackers, etc., and do not refer to attack tools, such as some automatic attack tools. Therefore, when determining the attacker set, the present application first needs to determine the automatic attack behaviors in the attack behavior intelligence of a third party, such as malicious crawlers, black and gray production activities, etc. Although the automatic attack behaviors in the attack behavior intelligence from these third parties are illegal, they are often not offensive and generally do not cause fatal damage or excessive security risks to the business system.

[0038] Step S1022: Match the automatic attack behavior with the attack behavior log, and filter the automatic attack behavior in the attack behavior log.

[0039] As mentioned above, when extracting information from the attack behavior log, it also includes a description of the behavior corresponding to each attack behavior log, that is, the attack behavior. Therefore, by matching the automatic attack behavior with the attack behavior log, the automatic attack behavior in the attack behavior log can be filtered.

[0040] Step S1023: Based on the human-computer interaction engine, the attack sources of the automatic attack behaviors are analyzed and filtered to obtain an attacker set consisting of attackers.

[0041] Step S103: Matching an attacker alarm log set and a suspicious access behavior log set corresponding to the attacker set from the alarm log and the service log respectively.

[0042] As mentioned above, since the standardized processing of the attack behavior log, the alarm log and the business log includes extracting the source IP address or the attacker device identification of each log in these logs, the implementation of step S103 can be: extracting the source IP address or the attacker device identification corresponding to each log in the alarm log and the business log respectively; matching the source IP address or the attacker device identification with the source IP address or the attacker device identification corresponding to the attacker in the attacker set; if the match is successful, the alarm log corresponding to the successfully matched source IP address or the attacker device identification is used as an element of the attacker alarm log set to form the attacker alarm log set, and the business log corresponding to the successfully matched source IP address or the attacker device identification is used as an element of the suspicious access behavior log set to form the suspicious access behavior log set. It should be noted that in the above embodiment, when the attacker device identification is matched with the corresponding attacker device identification of the attacker in the attacker set, it can effectively prevent the attacker from changing the IP address to conduct illegal attacks.

[0043] Step S104: Determine the threat level of each suspicious access behavior in the suspicious access behavior log set according to the attack behavior log, the attacker warning log set and the suspicious access behavior log set.

[0044] In the embodiment of the present application, the attack behavior log from the simulated topology network has a certain degree of credibility, that is, it is a real and known attack behavior. Similarly, the alarm log from the real network security device has a certain degree of credibility, that is, it is a real and known attack behavior. The business log from the business system may be a normal or legal access to the business system, or it may be an abnormal or illegal access to the business system. Because these abnormal or illegal access behaviors are concealed, they escape the detection of the simulated topology network or the real network security device. However, it is precisely because these abnormal or illegal access behaviors are highly concealed and have a high degree of threat that the simulated topology network, the real network security device and the business system can be linked, that is, according to the attack behavior log, the attacker's alarm log set and the suspicious access behavior log set, the threat level of each suspicious access behavior in the suspicious access behavior log set is determined.

[0045] Specifically, as an embodiment of the present application, according to the attack behavior log, the attacker warning log set and the suspicious access behavior log set, determining the threat level of each suspicious access behavior in the suspicious access behavior log set can be implemented by steps S1041 and S1042, as described below:

[0046] Step S1041: extract the timestamp of each log in the attacker alarm log set, the suspicious access behavior log set and the attack behavior log from the simulated topology network and standardized, and respectively form the corresponding timestamp set T2, timestamp set T3 and timestamp set T1.

[0047] That is, extract the timestamp of each log in the attacker alarm log set to form a timestamp set T2; extract the timestamp of each log in the suspicious access behavior log set to form a timestamp set T3; extract the timestamp of each log in the attack behavior log from the simulated topology network and standardized to form a timestamp set T1.

[0048] Step S1042: Calculate the suspicious score of each suspicious access behavior in the suspicious access behavior log set according to timestamp set T1, timestamp set T2 and timestamp set T3 and based on the time proximity algorithm, wherein the size of the suspicious score of the suspicious access behavior is proportional to the threat level of the suspicious access behavior.

[0049] As mentioned above, the attack behavior log from the simulated topology network or the alarm log of the real network security device also has a certain degree of credibility. If the timestamp of a suspicious access behavior log in the suspicious access behavior log set is close to the timestamp of the attack behavior log or the alarm log, then the access behavior corresponding to the suspicious access behavior log is highly suspicious and has a certain degree of security threat. It is based on the above facts that in the embodiment of the present application, the suspicious score of each suspicious access behavior in the suspicious access behavior log set is calculated based on the timestamp set T1, timestamp set T2 and timestamp set T3 and based on the time proximity relationship algorithm. The specific method is as follows: Steps S1 to S4:

[0050] Step S1: Obtain the log l corresponding to any suspicious access behavior in the timestamp set T3 i Timestamp t i .

[0051] Step S2: Calculate any of the above suspicious access behavior logs l i Timestamp t i The absolute difference between each timestamp in the timestamp set T1 and the absolute difference set S Δt1 , and calculate any of the above suspicious access behavior logs l i Timestamp t i The absolute difference between each timestamp in the timestamp set T2 and the absolute difference set S Δt2 .

[0052] Step S3: Set the weight w1 corresponding to r1 and the weight w2 corresponding to r2, where r1 is the absolute difference set S Δt1 The reciprocal of the minimum absolute difference in the set S. Δt2 The reciprocal of the minimum absolute difference in .

[0053] In the above embodiment, if any suspicious access behavior log l i Timestamp t i The absolute difference between the timestamp t1 in the timestamp set T1 and the timestamp t2 in the timestamp set T1 is the smallest, then the suspicious access behavior log l i The corresponding access behavior is highly suspicious or has a high threat level. It may be carried out by the attacker corresponding to the attack behavior log with timestamp t1. Therefore, r1 is the absolute difference set S Δt1 The inverse of the minimum absolute difference in can reflect the above fact; similarly, if any suspicious access behavior log l i Timestamp t i The absolute difference between the timestamp t2 in the timestamp set T2 and the timestamp t3 in the timestamp set T2 is the smallest, then the suspicious access behavior log l iThe corresponding access behavior is highly suspicious or has a high threat level. It may be implemented by the attacker corresponding to the attacker alarm log with the timestamp t2. Therefore, r2 is the absolute difference set S Δt2 The inverse of the minimum absolute difference in can reflect the above fact. As for the weight w1 corresponding to r1 and the weight w2 corresponding to r2, which one should be set larger and which one should be set smaller, it is mainly considered that the honeypot device in the honeynet as a simulated topology network usually has a higher accuracy rate in identifying attackers than the real network security device. Therefore, in the embodiment of the present application, the weight w1 corresponding to r1 can be set larger than the weight w2 corresponding to r2.

[0054] Step S4: According to formula S(l i )=r1*w1+r2*w2Calculate the corresponding suspicious access behavior log l i The suspicious score S(l i ).

[0055] From S(l i ) and the above descriptions of r1, r2, w1 and w2 show that if a business log from a business system and standardized is closer in timestamp to a certain attack behavior log from a simulated topology network and standardized, or to a certain alarm log from a real network security device and standardized, especially if the timestamp of the business log is closer in timestamp to a certain attack behavior log from a simulated topology network and standardized, then the access behavior corresponding to the business access log is more likely to be an attack behavior and has a higher threat level.

[0056] It should be noted that in order to improve the efficiency of analysts in analyzing and / or confirming attackers, in the above-mentioned embodiment of the present application, after determining the threat level of each suspicious access behavior in the suspicious access behavior log set, they can also be sorted in order of the threat level, and the threat level sorting results can be output to process the potential attackers corresponding to the threat level ranked first.

[0057] From the above Figure 1From the example of the method for preventing illegal attack behaviors, it can be seen that after determining the attacker set by analyzing the attack behavior logs from the simulated topology network, the attacker alarm log set and the suspicious access behavior log set corresponding to the attacker set are matched, and finally the threat level of each suspicious access behavior in the suspicious access behavior log set is determined based on the attack behavior log, the attacker alarm log set and the suspicious access behavior log set. Since the threat level of each suspicious access behavior in the suspicious access behavior log set is not based on the data of a single device, but is obtained by correlation analysis of data from different sources, the data sharing of various (individual) devices is more sufficient or in-depth, so that potential attackers in normal business access records can be discovered, and illegal attacks with higher threats can be effectively prevented.

[0058] See also Figure 2 , is a schematic diagram of the structure of the device for preventing illegal attack behaviors shown in the embodiment of the present application. For the convenience of explanation, only the parts related to the embodiment of the present application are shown. Figure 2 The exemplary device for preventing illegal attack behaviors mainly includes an acquisition module 201, an analysis module 202, a matching module 203 and a determination module 204, wherein:

[0059] An acquisition module 201 is used to acquire standardized log data from different sources, wherein the standardized log data from different sources include attack behavior logs from a simulated topology network and processed in a standardized manner, alarm logs from real network security devices and processed in a standardized manner, and business logs from a business system and processed in a standardized manner;

[0060] An analysis module 202 is used to analyze the attack behavior logs from the simulated topology network and after standardized processing to determine the attacker set;

[0061] A matching module 203, used to match an attacker alarm log set and a suspicious access behavior log set corresponding to the attacker set from the alarm log and the service log respectively;

[0062] The determination module 204 is used to determine the threat level of each suspicious access behavior in the suspicious access behavior log set based on the standardized attack behavior log, the attacker warning log set and the suspicious access behavior log set from the simulated topology network.

[0063] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.

[0064] From the above Figure 2It can be seen from the example of the device for preventing illegal attack behaviors that after determining the attacker set by analyzing the attack behavior logs from the simulated topology network, the attacker alarm log set and the suspicious access behavior log set corresponding to the attacker set are matched, and finally the threat level of each suspicious access behavior in the suspicious access behavior log set is determined based on the attack behavior log, the attacker alarm log set and the suspicious access behavior log set. Since the threat level of each suspicious access behavior in the suspicious access behavior log set is not based on the data of a single device, but is obtained by correlation analysis of data from different sources, the data sharing of various (individual) devices is more sufficient or in-depth, so that potential attackers in normal business access records can be discovered, effectively preventing illegal attacks with higher threats.

[0065] Optionally, Figure 2 The exemplary analysis module 202 may include a first determination unit, a filtering unit, and a second determination unit, wherein:

[0066] A first determination unit, used to determine the automatic attack behavior in the attack behavior intelligence of the third party;

[0067] A filtering unit, used to match the automatic attack behavior with the attack behavior log, and filter the automatic attack behavior in the attack behavior log;

[0068] The second determining unit is used to analyze and filter the attack sources of the automatic attack behavior based on the human-computer interaction engine to obtain an attacker set composed of attackers.

[0069] Optionally, Figure 2 The exemplary matching module 203 may include a first extraction unit, an identification matching unit, and a third determination unit, wherein:

[0070] The first extraction unit is used to extract the source IP address or attacker device identifier corresponding to each log in the alarm log and the business log respectively;

[0071] An identification matching unit, used to match the source IP address or attacker device identification with the source IP address or attacker device identification corresponding to the attacker in the attacker set;

[0072] The third determination unit is used to, if the above-mentioned match is successful, use the alarm log corresponding to the successfully matched source IP address or the attacker device identifier as an element of the attacker alarm log set to constitute an attacker alarm log set, and use the business log corresponding to the successfully matched source IP address or the attacker device identifier as an element of the suspicious access behavior log set to constitute a suspicious access behavior log set.

[0073] Optionally, Figure 2 The exemplary determination module 204 may include a second extraction unit and a fourth determination unit, wherein:

[0074] The second extraction unit is used to extract the timestamp of each log in the attack behavior log, the attacker warning log set and the suspicious access behavior log set to form a corresponding timestamp set T1, a timestamp set T2 and a timestamp set T3 respectively;

[0075] The fourth determination unit is used to calculate the suspicious score of each suspicious access behavior in the suspicious access behavior log set according to the timestamp set T1, the timestamp set T2 and the timestamp set T3 and based on the time proximity algorithm, wherein the size of the suspicious score is proportional to the threat degree.

[0076] Optionally, the fourth determining unit in the above example may include an acquiring unit, a first calculating unit, a setting unit, and a second calculating unit, wherein:

[0077] The acquisition unit is used to obtain the log l corresponding to any suspicious access behavior in the timestamp set T3. i Timestamp t i ;

[0078] The first calculation unit is used to calculate the timestamp t i The absolute difference between each timestamp in the timestamp set T1 and the absolute difference set S Δt1 and timestamp t i The absolute difference between each timestamp in the timestamp set T2 is the absolute difference set S Δt2 ;

[0079] A setting unit is used to set a weight w1 corresponding to r1 and a weight w2 corresponding to r2, wherein r1 is an absolute difference set S Δt1 The reciprocal of the minimum absolute difference in the set S. Δt2 The reciprocal of the minimum absolute difference in ;

[0080] The second calculation unit is used to calculate the i )=r1*w1+r2*w2Calculate the corresponding suspicious access behavior log l i The suspicious score S(l i ).

[0081] Optionally, Figure 2 The exemplary device may further include a standardization processing module and a storage module, wherein:

[0082] The standardization processing module is used to perform standardization processing on the attack behavior log, the alarm log and the business log before the acquisition module 201 acquires the standardized log data from different sources, so as to obtain the standardized log data from different sources;

[0083] The saving module is used to save standardized log data from different sources.

[0084] Optionally, Figure 2 The example device may also include a sorting module, which is used to determine the threat level of each suspicious access behavior in the suspicious access behavior log set after the determination module 204 determines the threat level of each suspicious access behavior, and then sort them according to the threat level of each suspicious access behavior, and output the ranking result of the threat level to process the potential attacker corresponding to the threat level ranked first.

[0085] Figure 3 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.

[0086] See also Figure 3 , the electronic device 300 includes a memory 310 and a processor 320.

[0087] The processor 320 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0088] The memory 310 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 320 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 310 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 310 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. Computer-readable storage media do not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0089] The memory 310 stores executable codes, and when the executable codes are processed by the processor 320 , the processor 320 can execute part or all of the methods described above.

[0090] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0091] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0092] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for preventing illegal attacks, characterized in that: The method comprises: Acquire standardized log data from different sources, wherein the standardized log data from different sources include attack behavior logs from simulated topology networks and standardized, alarm logs from real network security devices and standardized, and business logs from business systems and standardized; Analyze the attack behavior log to determine the attacker set; Matching an attacker alarm log set and a suspicious access behavior log set corresponding to the attacker set from the alarm log and the business log respectively; Determine the threat level of each suspicious access behavior in the suspicious access behavior log set according to the attack behavior log, the attacker warning log set and the suspicious access behavior log set; The method of determining the threat level of each suspicious access behavior in the suspicious access behavior log set based on the attack behavior log, the attacker alarm log set and the suspicious access behavior log set includes: extracting the timestamp of each log in the attack behavior log, the attacker alarm log set and the suspicious access behavior log set to respectively form a corresponding timestamp set T1, a timestamp set T2 and a timestamp set T3; calculating the suspicion score of each suspicious access behavior in the suspicious access behavior log set based on the timestamp set T1, the timestamp set T2 and the timestamp set T3 and based on a time proximity algorithm, wherein the size of the suspicion score is proportional to the threat level.

2. The method for preventing illegal attack behavior according to claim 1, characterized in that: The analyzing the attack behavior log to determine the attacker set includes: Identify automated attack behaviors from third-party attack behavior intelligence; Matching the automatic attack behavior with the attack behavior log, and filtering the automatic attack behavior in the attack behavior log; Based on the human-computer interaction engine, the attack sources of the automatic attack behaviors are analyzed and filtered to obtain an attacker set composed of attackers.

3. The method for preventing illegal attack behavior according to claim 1, characterized in that: The step of matching the attacker alarm log set and the suspicious access behavior log set corresponding to the attacker set from the alarm log and the business log respectively includes: Extract the source IP address or attacker device identifier corresponding to each log in the alarm log and the business log respectively; Matching the source IP address or attacker device identifier with the source IP address or attacker device identifier corresponding to the attacker in the attacker set; If the above match is successful, the alarm log corresponding to the successfully matched source IP address or attacker device identifier is used as an element of the attacker alarm log set to constitute the attacker alarm log set, and the business log corresponding to the successfully matched source IP address or attacker device identifier is used as an element of the suspicious access behavior log set to constitute the suspicious access behavior log set.

4. The method for preventing illegal attack behavior according to claim 1, characterized in that: The calculating, according to the timestamp set T1, the timestamp set T2 and the timestamp set T3 and based on a time proximity algorithm, a suspicious score of each suspicious access behavior in the suspicious access behavior log set includes: Get any suspicious access behavior log l in the timestamp set T3 i Timestamp t i ; Calculate the timestamp t i The absolute difference between each timestamp in the timestamp set T1 and the absolute difference set S Δt1 And the timestamp t i The absolute difference between each timestamp in the timestamp set T2 is used to obtain the absolute difference value set S Δt2 ; Set a weight w1 corresponding to r1 and a weight w2 corresponding to r2, wherein r1 is the absolute difference set S Δt1 The reciprocal of the minimum absolute difference in the absolute difference set S Δt2 The reciprocal of the minimum absolute difference in ; According to the formula S(l i )=r1*w1+r2*w2Calculate the corresponding suspicious access behavior log l i The suspicious score S(l i ).

5. The method for preventing illegal attack behavior according to any one of claims 1 to 4, characterized in that: Before obtaining standardized log data from different sources, the method further includes: Standardizing the attack behavior log, the alarm log, and the service log to obtain standardized log data from different sources; The standardized log data from different sources are stored.

6. The method for preventing illegal attack behaviors according to any one of claims 1 to 4, characterized in that: After determining the threat level of each suspicious access behavior in the suspicious access behavior log set, the method further includes: The threat levels are sorted in order, and the threat level sorting result is output to process the potential attackers corresponding to the threat levels ranked first.

7. A device for preventing illegal attacks, characterized in that: The device comprises: An acquisition module, used to acquire standardized log data from different sources, wherein the standardized log data from different sources include attack behavior logs from simulated topology networks and standardized, alarm logs from real network security devices and standardized, and business logs from business systems and standardized; An analysis module, used to analyze the attack behavior log and determine the attacker set; A matching module, used to match an attacker alarm log set and a suspicious access behavior log set corresponding to the attacker set from the alarm log and the business log respectively; A determination module, used to determine the threat level of each suspicious access behavior in the suspicious access behavior log set according to the attack behavior log, the attacker warning log set and the suspicious access behavior log set; The determination module includes a second extraction unit and a fourth determination unit, wherein: The second extraction unit is used to extract the timestamp of each log in the attack behavior log, the attacker warning log set and the suspicious access behavior log set to form a corresponding timestamp set T1, a timestamp set T2 and a timestamp set T3 respectively; The fourth determination unit is used to calculate the suspicious score of each suspicious access behavior in the suspicious access behavior log set according to the timestamp set T1, the timestamp set T2 and the timestamp set T3 and based on the time proximity algorithm, wherein the size of the suspicious score is proportional to the threat degree.

8. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 6.