Attack identification method, device and related equipment
By determining the IP information of the target device based on the device operation information and constructing a detection packet, actively detecting attack behavior, the problem of being unable to actively identify attack organizations in the prior art is solved, and the security of network equipment is improved.
Patent Information
- Application Number
- CN202111679333.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-12-31
AI Technical Summary
The existing technology is difficult to actively detect and identify attacking organizations, and cannot effectively improve the security of network equipment. It mainly relies on passive external intelligence capabilities.
By determining the IP information of the target device based on the device operation information, constructing a detection packet and sending it to the target device, receiving a response packet, determining whether there is an attack behavior based on the content of the response packet, and actively detecting and identifying the attacking organization.
Active detection and identification of attacking organizations is realized, the security of network equipment is improved, and technical personnel can be promptly reminded and the risk of attack is avoided.
Smart Images

Figure CN114363059B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to an attack identification method, and also to an attack identification device, system and computer-readable storage medium. Background Art
[0002] In penetration activities, external C2 servers (Command & Control Servers) have always been a detection direction that the industry pays more attention to. Among them, Cobalt Strike (a threat simulation software) is the most commonly used C2 server. Attackers using Cobalt Strike generally deliver payloads (payloads, that is, the part of the virus code that performs harmful or malicious actions) in stages to evade network security detection. First, a small Trojan is delivered, and then a fully functional Beacon (Cobalt Strike's Payload running on the target host) is downloaded from the server.
[0003] In related technologies, intelligence capabilities are generally used to obtain Coablt Strike, that is, domain names or IPs (Internet Protocol Addresses) that pose threat risks are included in the intelligence database. However, this implementation method often relies on external capabilities and is a passive behavior that cannot actively obtain and detect clues of attack organizations.
[0004] Therefore, how to actively detect and identify attack organizations and further ensure the security of network devices is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0005] The purpose of this application is to provide an attack identification method, which can actively detect and identify attack organizations to further ensure the security of network equipment; another purpose of this application is to provide an attack identification device, system and computer-readable storage medium, all of which have the above-mentioned beneficial effects.
[0006] In a first aspect, the present application provides an attack identification method, comprising:
[0007] Determine the IP information of the target device based on the device operation information;
[0008] Constructing a detection packet for the target device, and sending the detection packet to the target device according to the IP information;
[0009] A response packet sent by the target device in response to the detection packet is received, and whether the target device has an attack behavior is determined according to the content of the response packet.
[0010] Preferably, constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information includes:
[0011] Constructing a login password, and sending a detection packet including the login password to the target device according to the IP information;
[0012] Accordingly, determining whether the target device has an attack behavior according to the content of the response packet includes:
[0013] When the content of the response packet includes the password recognition result, it is determined that there is an attack behavior on the target device.
[0014] Preferably, the step of constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information further comprises:
[0015] Obtain the network port corresponding to the IP information;
[0016] Detecting and obtaining fingerprint features from the network port;
[0017] When the fingerprint feature hits the fingerprint library, it is determined that the target device has an attack behavior;
[0018] When the fingerprint feature does not hit the fingerprint database, the steps of constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information and all subsequent steps are performed.
[0019] Preferably, when the fingerprint feature does not hit the fingerprint library, after determining that the target device has an attack behavior, the method further includes:
[0020] When the data protocol adopted by the network port is the TLS protocol, the fingerprint feature is added to the fingerprint library.
[0021] Preferably, constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information includes:
[0022] Constructing download request information of file data of a preset type, and sending a detection packet including the download request information to the target device according to the IP information;
[0023] Accordingly, determining whether the target device has an attack behavior according to the content of the response packet includes:
[0024] When the content of the response packet includes downloaded file data of a preset type, it is determined that an attack behavior exists on the target device.
[0025] Preferably, the attack identification method further includes:
[0026] When the content of the response packet does not include the downloaded file data of the preset type, accessing each URL corresponding to the file data of the preset type;
[0027] When the response information of the URL includes preset reply information and / garbled characters, it is determined that the target device has an attack behavior.
[0028] Preferably, determining the IP information of the target device according to the device operation information includes:
[0029] Extracting features from the device operation information to obtain target features; wherein the target features include terminal behavior features and / or communication traffic features;
[0030] When the target feature hits the abnormal feature library, the IP information of the target device is parsed from the device operation information corresponding to the target feature.
[0031] In a second aspect, the present application further discloses an attack identification device, comprising:
[0032] An IP information acquisition module is used to determine the IP information of the target device based on the device operation information;
[0033] A detection packet sending module, used for constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information;
[0034] The attack behavior identification module is used to receive a response packet sent by the target device to the detection packet, and determine whether the target device has an attack behavior according to the content of the response packet.
[0035] In a third aspect, the present application also discloses an attack identification system, including:
[0036] Memory for storing computer programs;
[0037] A processor is used to implement the steps of any one of the attack identification methods described above when executing the computer program.
[0038] In a fourth aspect, the present application further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the attack identification methods described above are implemented.
[0039] An attack identification method provided by the present application includes: determining the IP information of a target device according to device operation information; constructing a detection packet for the target device, and sending the detection packet to the target device according to the IP information; receiving a response packet sent by the target device to the detection packet, and determining whether the target device has an attack behavior according to the content of the response packet.
[0040] It can be seen that the attack identification method provided by the present application, during the operation of the device, when the IP information of the target device is captured based on the device operation information, can construct a detection packet for the target device to detect the target device, and then determine whether the target device has an attack behavior based on the content in the response packet fed back by the target device, thereby realizing attack behavior detection, thereby realizing active detection and identification of attack organizations, and further improving the security of network equipment.
[0041] The attack identification device, system and computer-readable storage medium provided in this application all have the above-mentioned beneficial effects, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings required for use in the description of the prior art and the embodiments of the present application are briefly introduced below. Of course, the drawings described below in relation to the embodiments of the present application are only part of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work, and the obtained other drawings also belong to the protection scope of the present application.
[0043] Figure 1 A flowchart of an attack identification method provided by this application;
[0044] Figure 2 A schematic diagram of the structure of an attack identification device provided by this application;
[0045] Figure 3 A schematic diagram of the structure of an attack identification system provided in this application. DETAILED DESCRIPTION
[0046] The core of this application is to provide an attack identification method, which can actively detect and identify attack organizations to further ensure the security of network equipment; another core of this application is to provide an attack identification device, system and computer-readable storage medium, which also have the above-mentioned beneficial effects.
[0047] In order to describe the technical solutions in the embodiments of the present application more clearly and completely, the technical solutions in the embodiments of the present application will be introduced below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0048] An embodiment of the present application provides an attack identification method.
[0049] Please refer to Figure 1 , Figure 1 A flowchart of an attack identification method provided by the present application is provided, and the attack identification method may include:
[0050] S101: Determine the IP information of the target device according to the device operation information;
[0051] This step aims to determine the IP information of the target device based on the device operation information of the current network device. The target device is a network device that has data interaction with the current network device, so as to determine whether the current network device has a network attack from the target device based on the IP information, that is, to identify whether the target device is an attack device (such as a CobaltStrike server), that is, to identify whether the target device has an attack behavior against the current network device.
[0052] Among them, whether it is the current network device or the target device, it can be any type of network device such as a server, a user host, etc., and its specific type does not affect the implementation of this technical solution. For any current network device, its operation information can be collected during its operation to obtain the device operation information to implement IP information detection, that is, to determine whether there is IP information in the device operation information.
[0053] The specific content of the device operation information is not unique and can be set according to actual needs. For example, it can include the flow data and terminal behavior data generated and received by the current network device during operation, etc. This application does not limit this. It is understandable that the richer the content of the device operation information, the more accurate the corresponding attack identification result.
[0054] S102: construct a detection packet for the target device, and send the detection packet to the target device according to the IP information;
[0055] This step aims to detect the target device by sending a detection packet to the target device, so as to realize attack identification based on the detection information. Specifically, a detection packet can be constructed for the target device first, and then the detection packet can be sent to the target device according to the obtained IP information, so as to realize the detection of the target device. It should be noted that the specific content contained in the detection packet does not affect the implementation of the technical solution, and the target device detection can be realized, and this application does not limit this.
[0056] S103: Receive a response packet sent by the target device in response to the detection packet, and determine whether the target device has any attack behavior according to the content of the response packet.
[0057] This step aims to detect attack behaviors, that is, to identify whether the target device has attack behaviors. Specifically, after receiving the detection packet sent by the attack identification device, the target device will inevitably feedback a corresponding response packet to the attack identification device. The response packet must also contain relevant information about the target device. Therefore, the attack identification device can determine whether the target device has attack behaviors based on the content in the response packet, thereby realizing active detection and identification of the attack organization.
[0058] Furthermore, when it is determined that the target device has an attack behavior, an alarm prompt can be further output to remind the technician that the current network device is suffering from a network attack from the target device, so that the technician can perform security maintenance in a timely manner. Among them, the alarm prompt can be a light prompt, a buzzer prompt, etc. The specific implementation method can be set by the technician in combination with the actual situation, and this application does not limit this.
[0059] In addition, when outputting alarm prompts, the IP information of the target device can also be output at the same time, that is, the IP information of the target device can be output to the visual interface for display, so as to promptly remind technicians that there are attack devices with attack risks. Furthermore, the data packets sent by the attack device can also be intercepted to effectively avoid the risk of attack.
[0060] It can be seen that the attack identification method provided by the present application, during the operation of the device, when the IP information of the target device is captured based on the device operation information, can construct a detection packet for the target device to detect the target device, and then determine whether the target device has an attack behavior based on the content in the response packet fed back by the target device, thereby realizing attack behavior detection, thereby realizing active detection and identification of attack organizations, and further improving the security of network equipment.
[0061] In one embodiment of the present application, the above-mentioned construction of a detection packet for the target device and sending the detection packet to the target device according to the IP information may include: constructing a login password and sending the detection packet including the login password to the target device according to the IP information;
[0062] Accordingly, the above-mentioned determining whether the target device has an attack behavior according to the content of the response packet may include: determining that the target device has an attack behavior when the content of the response packet includes a password recognition result.
[0063] The embodiment of the present application provides a specific type of detection packet, that is, a detection packet containing a login password, which is used to request to log in to a target device. Specifically, a login password can be constructed for the target device first, and the login password can be added to the detection packet, and then the detection packet containing the login password can be sent to the target device according to the IP information of the target device. Among them, the login password can be constructed in combination with the password setting requirements of common attack devices. For example, the login password can be designed according to the password setting length requirements, password setting character requirements, etc. of common attack devices, and then the login data including 256 bits of data is constructed based on the login password to form a detection packet. The form of the detection packet can be specifically "\x00\x00\xbe\xef+login password length+login password+padding character", thereby, the detection packet can be sent to the target device according to the IP information of the target device.
[0064] Furthermore, when the target device receives a detection packet containing a login password sent to it by other network devices, it will inevitably parse and judge the password of the detection packet, and then feedback the response data of whether to allow its login to the detection packet initiator according to the judgment result, that is, the above-mentioned response packet. Therefore, after sending the detection packet containing the login password to the target device, you can wait to receive the response packet fed back by the target device based on the detection packet, so as to identify the target device according to the response packet.
[0065] It is conceivable that there may be multiple possibilities for the content of the response packet. One possibility is that the login password parsed by the target device from the detection packet is correct. In this case, the content of the response packet is a prompt message that allows login or successful login; another possibility is that the login password parsed by the target device from the detection packet is wrong. In this case, the content of the response packet is a password error prompt, and the user is not allowed to log in; another possibility is other types of data information that are unrelated to the password recognition result, indicating that the target device cannot recognize the received detection packet, that is, the constructed login password does not meet the login requirements of the target device. It is understandable that since the present application is intended to achieve attack recognition, when constructing the login password, it must be constructed according to the password setting requirements of common attack devices. On this basis, if the content of the response packet fed back by the target device is other types of data information that are unrelated to the password recognition result, it can be determined that the target device is not an attack device; if the response packet contains a password recognition result, it can be determined that the target device is an attack device.
[0066] In one embodiment of the present application, the sending of the detection packet to the target device according to the IP information may include: sending the detection packet to the target device through port 50050 of the target device according to the IP information.
[0067] The embodiment of the present application provides an implementation method for sending a detection packet to a target device. Specifically, when sending a detection packet to a target device, the detection packet can be sent to the target device through port 50050 of the target device. It can be understood that for general network devices, especially attack servers, such as Cobalt Strike servers, the default open port is generally port 50050. Therefore, the detection packet can be forwarded through this port to ensure that the target device can receive the detection packet initiated by the attack identification device.
[0068] In one embodiment of the present application, the above-mentioned construction of a detection packet for the target device and sending the detection packet to the target device according to the IP information may also include: obtaining the network port corresponding to the IP information; obtaining fingerprint features from the network port by detection; when the fingerprint features hit the fingerprint library, determining that the target device has attack behavior; when the fingerprint features do not hit the fingerprint library, executing the steps of constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information and all subsequent steps.
[0069] In order to effectively improve the attack identification efficiency, a fingerprint library matching mechanism can also be added. Specifically, after obtaining the IP information of the target device based on the device operation information, before constructing the detection packet for the target device, the network port corresponding to the IP information can be obtained first; further, the fingerprint feature of the network port is collected, and then the fingerprint feature is matched with the fingerprint library, wherein the fingerprint library stores various fingerprint features of various common attack devices, so when the fingerprint feature of the network port hits the fingerprint library, it can be determined that the target device to which the network port belongs is an attack device; when the fingerprint feature of the network port does not hit the fingerprint library, it is impossible to determine whether the target device to which the network port belongs is an attack device, because there may be a situation where the fingerprint library does not include such fingerprint features. At this time, S102 can be continued to be executed to further determine whether the target device is an attack device.
[0070] Among them, the specific type of fingerprint feature is not unique, for example, it can be JARM fingerprint, JA3 fingerprint, JA3S fingerprint, etc., and this application does not limit this. In addition, the fingerprint feature collection process can adopt any implementation method in the existing technology, and this application does not limit this either. Taking JARM fingerprint as an example, JARM fingerprint can be implemented using the JARM tool (a tool for actively identifying TLS server fingerprints). The working method of the JARM tool is to actively send 10 carefully constructed TLS client Hello packets to the target TLS (Transport Layer Security) server, and capture the specific attributes of the TLS server Hello response, and then hash the aggregated TLS server response in a specific way to generate a JARM fingerprint.
[0071] Therefore, the network port corresponding to the fingerprint feature that hits the fingerprint library is directly identified through the fingerprint library matching mechanism, thereby realizing the identification of the attacking device, effectively reducing the workload of subsequent functional modules and further improving the overall efficiency.
[0072] In one embodiment of the present application, when the fingerprint feature does not hit the fingerprint library, after determining that the target device has an attack behavior, the method may also include: when the data protocol used by the network port is the TLS protocol, adding the fingerprint feature to the fingerprint library.
[0073] In the actual working process, the fingerprint library can also be updated regularly or in real time to effectively ensure the comprehensiveness of the fingerprint features in the fingerprint library and further improve the efficiency of attack identification. Specifically, if the fingerprint feature does not hit the fingerprint library, if it is determined through subsequent attack identification that the target device does have an attack behavior, the data protocol used by the network port can be further identified. If it is a TLS protocol, the fingerprint features of the network port collected above can be added to the fingerprint library to update the fingerprint library; if it is not a TLS protocol, there is no need to process the fingerprint feature and it can be ignored.
[0074] In one embodiment of the present application, constructing a detection packet for a target device and sending the detection packet to the target device according to the IP information may include: constructing download request information of a preset type of file data, and sending the detection packet including the download request information to the target device according to the IP information;
[0075] Accordingly, the above-mentioned determining whether the target device has an attack behavior according to the content of the response packet may include: when the content of the response packet includes downloaded file data of a preset type, determining that the target device has an attack behavior.
[0076] The embodiment of the present application provides another specific type of detection packet, i.e., a detection packet containing download request information of a preset type of file data, and the download request information is used to request to download the preset type of file data from the target device. It is understandable that, since the present application is intended to identify whether there is an attack behavior on the target device, the file data of the preset type is generally file data existing in common attack devices, such as Beacon information. Among them, Beacon is the Payload of the attack server (such as Cobalt Strike server) running on the target host (current network device), and Payload is the part of the virus code that implements harmful or malicious actions. Therefore, if Beacon related information can be downloaded from the target device, it can be determined that the target device is an attack device.
[0077] First, a download request information of a preset type of file data can be constructed for the target device, and the download request information can be added to the detection packet, and then the detection packet containing the download request information can be sent to the target device according to the IP information of the target device. Among them, the download request information can be constructed in combination with the file information type of the common attack device, such as the above-mentioned Beacon information. Further, for the target device, when it receives a detection packet containing download request information sent to it by other network devices, it will inevitably parse the detection packet and respond to the download request information therein, generate a corresponding response packet and feed it back to the detection packet initiator, that is, the attack identification device in this application, so that the attack identification device can identify the target device according to the response packet. It can be imagined that since the file data of the preset type is generally the file data existing in the common attack device, if the response packet includes the file data of the preset type, it can be determined that the target device is an attack device, otherwise, it means that the target device is not an attack device.
[0078] Among them, the response package fed back by the target device based on the download request information generally exists in the form of an encrypted file. In this case, the encrypted file can be first decrypted using various decryption algorithms in the pre-built decryption algorithm library, and then after the decrypted file is successfully obtained, it is determined through file parsing whether it includes file data of a preset type.
[0079] In addition, when attack identification is implemented based on the above method, after determining that the target device is an attack device, various types of device information of the attack device can be obtained by parsing the above preset types of file data, so as to perform network security protection for the attack device.
[0080] In one embodiment of the present application, the attack identification method may further include: when the content of the response packet does not include the downloaded file data of a preset type, accessing each URL (Uniform Resource Locator) corresponding to the file data of the preset type; when the response information of the URL includes preset reply information and / or garbled characters, determining that an attack behavior exists on the target device.
[0081] It is understandable that if the attack device is in the default configuration state, it can feedback a response packet containing a preset type of file data based on the received detection packet containing download request information. However, if the attack device changes the default configuration, such as the port of the attack device is set with metasploit (active attack), then even if the attack device receives a detection packet containing download request information, it will not feedback a response packet containing a preset type of file data to the initiator of the detection packet. This will cause the problem of inaccurate attack identification results. Based on the implementation method of the previous embodiment, the attack identification device will not be able to identify the attack device that has changed the default configuration.
[0082] To solve the above technical problems, a redirection access technology can be added. Specifically, when the response packet fed back by the target device does not include the file data of the preset type, the attack identification device can further access each URL corresponding to the file data of the preset type. If the response information of each URL includes preset reply information (such as a reply status code of 200) and / or garbled code, it can also be determined that the target device has an attack behavior.
[0083] In one embodiment of the present application, the above-mentioned determination of the IP information of the target device based on the device operation information may include: extracting features from the device operation information to obtain target features; wherein the target features include terminal behavior features and / or communication traffic features; when the target features hit the abnormal feature library, the IP information of the target device is parsed from the device operation information corresponding to the target features.
[0084] The embodiment of the present application provides a method for determining the IP information of the target device based on the device operation information. The IP information with abnormalities can be determined from the device operation information by the feature matching method, so as to effectively avoid identifying the target devices corresponding to all IP information, and further improve the attack identification efficiency. First, after collecting and obtaining the device operation information of the current network device, feature extraction can be performed to obtain the target feature, which can include terminal behavior features (such as access to rare IPs, periodic communication, high-frequency external access, etc.) and / or communication traffic features (such as certificate information, fingerprint information, etc.); further, the target feature is matched with the abnormal feature library. If the abnormal feature library is hit, it can be determined that the device operation information corresponding to the target feature is abnormal, and then the corresponding IP information can be parsed from the device operation information, and the IP information is the IP information with abnormalities; on the contrary, if the target feature does not hit the abnormal feature library, it means that the device operation information corresponding to the target feature is not abnormal, and the next target feature can be matched until all target features are matched, and all abnormal IP information existing in the current network device is obtained.
[0085] The abnormal feature library is used to store abnormal features corresponding to common attack devices. A large number of abnormal features corresponding to attack devices can be collected in advance and stored in the abnormal feature library for matching after obtaining target features based on device operation information. The abnormal features include but are not limited to hosting server information, running application information, JARM fingerprint information, default certificate information, specific construction request response information, etc., which are not limited in this application.
[0086] For example, taking the default certificate of the Cobalt Strike server as an example, the default certificate of the Cobalt Strike server is: O=cobaltstrike, OU=AdvancedPenTesting, CN=Major Cobalt Strike, which contains a very obvious feature: the keyword "cobaltstrike". Therefore, this feature can be stored as an abnormal feature in the abnormal feature library. Therefore, in the feature matching process, the default certificate information can be extracted from the device operation information, and its keywords can be extracted to match with the abnormal feature library. When the keyword hits the abnormal feature library, it can be determined that there is an abnormality in the device operation information to which the default certificate information belongs, and the corresponding abnormal IP information can be parsed therefrom.
[0087] This application also provides an attack identification device, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of an attack identification device provided by the present application. The attack identification device may include:
[0088] IP information acquisition module 1, used to determine the IP information of the target device according to the device operation information;
[0089] The detection packet sending module 2 is used to construct a detection packet for the target device and send the detection packet to the target device according to the IP information;
[0090] The attack behavior identification module 3 is used to receive a response packet sent by the target device to the detection packet, and determine whether the target device has an attack behavior according to the content of the response packet.
[0091] It can be seen that the attack identification device provided in the embodiment of the present application, during the operation of the device, when the IP information of the target device is captured based on the device operation information, can construct a detection packet for the target device to detect the target device, and then determine whether the target device has an attack behavior based on the content in the response packet fed back by the target device, thereby realizing attack behavior detection, thereby realizing active detection and identification of attack organizations, and further improving the security of network equipment.
[0092] In one embodiment of the present application, the detection packet sending module 2 can be specifically used to construct a login password and send a detection packet including the login password to the target device according to the IP information;
[0093] Accordingly, the above-mentioned attack behavior identification module 3 can be specifically used to determine that the target device has an attack behavior when the content of the response packet includes the password identification result.
[0094] In one embodiment of the present application, the attack identification device may also include a fingerprint library matching module, which is used to obtain the network port corresponding to the IP information before constructing the detection packet for the target device and sending the detection packet to the target device according to the IP information; obtain the fingerprint feature from the network port; when the fingerprint feature hits the fingerprint library, determine that the target device has an attack behavior; when the fingerprint feature does not hit the fingerprint library, execute the steps of constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information and all subsequent steps.
[0095] In one embodiment of the present application, the attack identification device may also include a fingerprint library update module, which is used to add the fingerprint feature to the fingerprint library when the fingerprint feature does not hit the fingerprint library and it is determined that there is an attack behavior on the target device, and when the data protocol used by the network port is the TLS protocol.
[0096] In one embodiment of the present application, the detection packet sending module 2 may be specifically used to construct download request information of a preset type of file data, and send a detection packet including the download request information to the target device according to the IP information;
[0097] Accordingly, the attack behavior identification module 3 can be specifically used to determine that the target device has an attack behavior when the content of the response packet includes downloaded file data of a preset type.
[0098] In one embodiment of the present application, the above-mentioned attack behavior identification module 3 can also be used to access each URL corresponding to the file data of the preset type when the content of the response package does not include the downloaded file data of the preset type; when the response information of the URL includes preset reply information and / or garbled characters, it is determined that the target device has an attack behavior.
[0099] In one embodiment of the present application, the above-mentioned IP information acquisition module 1 can be specifically used to extract features from device operation information to obtain target features; wherein the target features include terminal behavior features and / or communication traffic features; when the target features hit the abnormal feature library, the IP information of the target device is parsed from the device operation information corresponding to the target features.
[0100] For an introduction to the device provided in this application, please refer to the above method embodiment, and this application will not go into details here.
[0101] This application also provides an attack identification system, please refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of an attack identification system provided by the present application. The attack identification system may include:
[0102] Memory for storing computer programs;
[0103] A processor, which is used to implement the steps of any of the above-mentioned attack identification system methods when executing a computer program.
[0104] like Figure 3 , which is a schematic diagram of the composition structure of the attack identification system, the attack identification system may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11, and the communication interface 12 all communicate with each other through the communication bus 13.
[0105] In the embodiment of the present application, the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, etc.
[0106] The processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in the embodiment of the attack identification method.
[0107] The memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present application, the memory 11 at least stores programs for implementing the following functions:
[0108] Determine the IP information of the target device based on the device operation information;
[0109] Construct a detection packet for the target device and send the detection packet to the target device according to the IP information;
[0110] Receive the response packet sent by the target device to the detection packet, and determine whether the target device has any attack behavior based on the content of the response packet.
[0111] In a possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.
[0112] In addition, the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.
[0113] The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.
[0114] Of course, it should be noted that Figure 3 The structure shown does not constitute a limitation on the attack identification system in the embodiment of the present application. In actual applications, the attack identification system may include Figure 3 More or fewer components than shown, or combinations of certain components.
[0115] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned attack identification methods can be implemented.
[0116] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0117] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.
[0118] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0119] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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.
[0120] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0121] The technical solution provided by the present application is described in detail above. The principle and implementation method of the present application are described in detail using specific examples herein, and the description of the above embodiments is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.
Claims
1. An attack identification method, characterized in that: include: Determine the IP information of the target device based on the device operation information of the current network device; The target device is a network device that has data interaction with the current network device; Constructing a detection packet for the target device, and sending the detection packet to the target device according to the IP information; Receiving a response packet sent by the target device in response to the detection packet, and determining whether the target device has an attack behavior against the current network device according to the content of the response packet; Wherein, constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information includes: constructing a login password and sending the detection packet including the login password to the target device according to the IP information; correspondingly, determining whether the target device has an attack behavior according to the content of the response packet includes: determining that the target device has an attack behavior when the content of the response packet includes a password recognition result; Alternatively, constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information includes: constructing download request information for file data of a preset type, and sending the detection packet including the download request information to the target device according to the IP information; correspondingly, determining whether there is an attack on the target device based on the content of the response packet includes: determining that there is an attack on the target device when the content of the response packet includes file data of a preset type obtained by downloading.
2. The attack identification method according to claim 1, characterized in that: Before constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information, the method further includes: Obtain the network port corresponding to the IP information; Detecting and obtaining fingerprint features from the network port; When the fingerprint feature hits the fingerprint library, it is determined that the target device has an attack behavior; When the fingerprint feature does not hit the fingerprint database, the steps of constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information and all subsequent steps are performed.
3. The attack identification method according to claim 2, characterized in that: When the fingerprint feature does not hit the fingerprint library, after determining that the target device has an attack behavior, the method further includes: When the data protocol adopted by the network port is the TLS protocol, the fingerprint feature is added to the fingerprint library.
4. The attack identification method according to claim 1, characterized in that: Also includes: When the content of the response packet does not include the downloaded file data of the preset type, accessing each URL corresponding to the file data of the preset type; When the response information of the URL includes preset reply information and / or garbled characters, it is determined that the target device has an attack behavior.
5. The attack identification method according to claim 1, characterized in that: Determining the IP information of the target device according to the device operation information of the current network device includes: Extracting features from the device operation information to obtain target features; wherein the target features include terminal behavior features and / or communication traffic features; When the target feature hits the abnormal feature library, the IP information of the target device is parsed from the device operation information corresponding to the target feature.
6. An attack identification device, characterized in that: include: An IP information acquisition module is used to determine the IP information of the target device according to the device operation information of the current network device; The target device is a network device that has data interaction with the current network device; A detection packet sending module, used for constructing a detection packet for the target device and sending the detection packet to the target device according to the IP information; An attack behavior identification module, used to receive a response packet sent by the target device to the detection packet, and determine whether the target device has an attack behavior against the current network device according to the content of the response packet; The detection packet sending module is specifically used to construct a login password, and send a detection packet including the login password to the target device according to the IP information; correspondingly, the attack behavior identification module is specifically used to determine that the target device has an attack behavior when the content of the response packet includes a password identification result; Alternatively, the detection packet sending module is specifically used to construct download request information of a preset type of file data, and send a detection packet including the download request information to the target device according to the IP information; accordingly, the attack behavior identification module is specifically used to determine that an attack behavior exists on the target device when the content of the response packet includes the downloaded preset type of file data.
7. An attack identification system, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the attack identification method according to any one of claims 1 to 5 when executing the computer program.
8. 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 steps of the attack identification method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Detection method, system and apparatus of zombie network
CN101360019A
IP processing method and device, medium and electronic equipment
CN110708292A
Webpage browsing method and device
CN111786966A
