A conversation detection method, device, detection equipment and computer storage medium

By extracting the static features of the network layer and the transport layer, it forms feature vectors, which are used to distinguish between normal and malicious sessions, and solves the problems of insufficient universality and lack of coverage of malicious session detection in the prior art, and achieves efficient and secure network sessions Test.

CN115398860BActive Publication Date: 2024-11-05SHENZHEN HEYTAP TECHNOLOGY CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202080099533.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-04
Publication Date
2024-11-05
Estimated Expiration
2040-06-04

AI Technical Summary

Technical Problem

The prior art has problems of insufficient universality and insufficient coverage when detecting malicious session data in network sessions, making it difficult to effectively distinguish different types of malicious session data. Due to the sensitivity of business data, it is impossible to model sensitive data. This leads to insufficient coverage of detection methods.

Method used

By extracting the static features of the network layer and the transport layer, it forms an eigenvector to distinguish between normal and malicious sessions. It uses the feature vector input to the pre-trained classifier for classification, and determines whether the session to be detected is a malicious session, thereby achieving general business security Detection and protection.

Benefits of technology

It improves the universality and coverage of session detection, can effectively detect different types of malicious conversations, reduces modeling costs, and realizes secure detection of sensitive data without plaintext processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115398860B_ABST
    Figure CN115398860B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a session detection method, including: a detection device obtains a session to be detected transmitted between two network nodes; determines a feature vector of the session to be detected, wherein the feature vector is a vector that characterizes static features of the network layer and / or static features of the transport layer; and determines whether the session to be detected is a malicious session based on the feature vector of the session to be detected. The embodiment of the present application also discloses a session detection device, a detection device, a computer storage medium, a chip, and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to, but are not limited to, the field of network security, and in particular, to a session detection method, apparatus, detection device, and computer storage medium. Background Art

[0002] With the widespread use of mobile Internet applications, network security is an issue that many technicians are concerned about. There are a lot of malicious session data in network sessions, including malicious session data generated by user terminals to the network, and malicious session data generated by illegal service providers (SPs) sending data packets to user terminals. Technicians need to detect and eliminate this malicious session data to protect the safe operation of the network.

[0003] However, there are many different types of malicious session data in the network, which makes it difficult to detect malicious session data. Summary of the invention

[0004] Embodiments of the present application provide a session detection method, apparatus, detection device, and computer storage medium.

[0005] In a first aspect, a session detection method is provided, comprising: a detection device obtains a session to be detected transmitted between two network nodes;

[0006] Determine a feature vector of the session to be detected, where the feature vector is used to characterize static features of a network layer and / or static features of a transport layer;

[0007] Based on the feature vector of the session to be detected, it is determined whether the session to be detected is a malicious session.

[0008] In a second aspect, a session detection device is provided, comprising:

[0009] An obtaining unit, used for obtaining a session to be detected transmitted between two network nodes;

[0010] A determining unit, configured to determine a feature vector of the session to be detected, wherein the feature vector is used to characterize a static feature of a network layer and / or a static feature of a transport layer;

[0011] The detection unit is used to determine whether the session to be detected is a malicious session based on the feature vector of the session to be detected.

[0012] In a third aspect, a detection device is provided, comprising: a memory and a processor,

[0013] The memory stores a computer program executable on the processor.

[0014] When the processor executes the program, the steps in the above method are implemented.

[0015] In a fourth aspect, a computer storage medium is provided, wherein the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the above method.

[0016] In a fifth aspect, a chip is provided, comprising: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the steps in the above method.

[0017] In a sixth aspect, a computer program product is provided, the computer program product comprising a computer storage medium, the computer storage medium storing computer program code, the computer program code comprising instructions executable by at least one processor, and the steps in the above method are implemented when the instructions are executed by the at least one processor.

[0018] In the embodiment of the present application, the detection device obtains a session to be detected transmitted between two network nodes; determines a feature vector of the session to be detected, the feature vector being used to characterize the static features of the network layer and / or the static features of the transport layer; and determines whether the session to be detected is a malicious session based on the feature vector of the session to be detected. In this way, since the static features of the network layer and / or the static features of the transport layer corresponding to the normal session data and the malicious session data in the session data are different, whether the session to be detected is a malicious session is determined by using the feature vector of the session to be detected that is used to characterize the static features of the network layer and / or the static features of the transport layer, thereby easily detecting different types of malicious sessions and improving the versatility of session detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of the system architecture of a session detection method provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of an implementation flow of a session detection method provided in an embodiment of the present application;

[0021] Figure 3 A schematic diagram of an implementation flow of another session detection method provided in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of a process for determining a feature vector of a session to be detected provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of a process for generating a model file provided in an embodiment of the present application;

[0024] Figure 6A schematic diagram of another process for generating a model file provided in an embodiment of the present application;

[0025] Figure 7 A schematic diagram of the composition structure of a session detection device provided in an embodiment of the present application;

[0026] Figure 8 A schematic diagram of a hardware entity of a detection device provided in an embodiment of the present application;

[0027] Fig. 9 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will specifically describe the technical solution of the present application and how the technical solution of the present application solves the above technical problems through embodiments and in conjunction with the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0029] It should be noted that in the examples of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0030] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0031] In order to prevent business systems on the Internet from security threats, such as common security threats such as spam comments, database collisions, account theft, and fake traffic, business security protection is required. This solution is designed to detect and protect these business security issues.

[0032] The business security detection and protection solutions in related technologies are generally targeted at a specific business. For example, the detection equipment first needs to obtain various detailed information about the business. These detailed information include parameter information received by the interface of the business server (for example, request data or data for accessing the business), returned parameter information, the function of the interface, the association information between the function of the interface and other interfaces, common attack methods for this type of interface, etc., and then the business is modeled based on these detailed information, and finally the data for accessing the business is matched according to the model to detect malicious request data.

[0033] However, since detection equipment requires an in-depth understanding of specific services and attack methods, and business types are usually complex and attack methods are varied, the workload of analyzing and modeling them one by one is very large, and it is inevitable that the analysis of certain services will be missed, resulting in the detection methods in related technologies being unable to be universal; in addition, since some business data is sensitive and plain text data cannot be provided, it is impossible to model these sensitive data, resulting in insufficient coverage of the detection methods in related technologies.

[0034] At least based on the above reasons, the present application provides an idea for general business security detection and protection based on session analysis. Since session data is generated during the interaction between the user's terminal and the server, and normal session data and malicious session data are reflected in different sequences of data packets or data structures of data packets, by analyzing the sequences of these underlying data packets or the data structures of data packets, normal session data and malicious session data can be distinguished, thereby achieving general business security protection.

[0035] Figure 1 A system architecture diagram of a session detection method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the system 10 may include a user-side terminal 11 , a service server 12 , a forwarding device 13 , and a detection device 14 .

[0036] The terminal 11 may be a device used by a user to access the service server 12, for example Figure 1 The terminal may include at least one of a desktop computer, a mobile phone, and a tablet computer shown in the figure, or a server, a laptop computer, a PDA, a personal digital assistant, a portable media player, a smart speaker, a navigation device, a display device, a wearable device such as a smart bracelet, a virtual reality (VR) device, an augmented reality (AR) device, a pedometer, and a digital television. When a user logs into a website through an application in the terminal 11, the service server 12 will be accessed. The application may be a dedicated client of the website or a browser client. The user may access the service server 12 by entering the website URL.

[0037] The business server 12 may be a service device that provides website functions. Figure 1 The business server 12 shown is a server cluster composed of multiple business servers. In some embodiments, the business server 12 may be an independent business server, and the present application does not limit the composition structure of the business server 12.

[0038] The forwarding device 13 can be used to capture the communication data between the terminal 11 and the business server 12. The communication data can be an access request sent by the terminal 11 to the business server 12, and / or an access result corresponding to the access request sent by the business server 12 to the terminal 11. The communication data can be understood as traffic data, and the forwarding device 13 can continuously capture the communication data. For example, the forwarding device can package the captured communication data of a preset time length into a capture file (a file in pcap format), or can package the captured communication data of a preset size into a capture file, and then the forwarding device can send the capture file to the detection device. In one embodiment, the forwarding device can be a switch.

[0039] The forwarding device 13 can capture the communication data by using a packet capture method based on a data plane development kit (DPDK). In one embodiment, the forwarding device 13 can be a device with a mirror port, which can be connected to a detection device, so that the mirror port can mirror the traffic of the communication port, thereby obtaining communication data of a preset duration or a preset size. It should be understood that the captured file may include access requests and / or access results.

[0040] The detection device 14 may be a device for detecting whether the session in the captured file is a malicious session. The detection device 14 is used to analyze the session between the terminal 11 and the service server 12 in real time, so as to find malicious sessions in time and stop losses in time, thereby protecting the safe operation of the network.

[0041] exist Figure 1 In the illustrated embodiment, the forwarding device 13 is arranged between the terminal 11 and the service server 12 to obtain the communication data between the terminal 11 and the service server 12, and the detection device 14 is connected to the forwarding device 13 to detect whether the session in the communication data is a malicious session. In the embodiment of the present application, the connection between the terminal 11 and the forwarding device 13, the connection between the forwarding device 13 and the detection device 14, or the connection between the forwarding device 13 and the service server 12 can be a wired connection or a wireless connection.

[0042] In some embodiments, the forwarding device 13 and the detection device 14 in the embodiments of the present application can be set in any two network nodes where traffic data exists, so that whether the session transmitted in the two network nodes is a malicious session can be detected by the forwarding device 13 and the detection device 14. The embodiment of the present application does not limit the location where the forwarding device 13 is set.

[0043] In some embodiments, the forwarding device 13 and the detection device 14 may be two separate physical entities, or the forwarding device 13 and the detection device 14 may be configured as one physical entity.

[0044] Figure 2 A schematic diagram of the implementation flow of a session detection method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method is applied to a detection device, and the method comprises:

[0045] S201: A detection device obtains a session to be detected transmitted between two network nodes.

[0046] In one implementation, the two network nodes may be a terminal and a service server, respectively. In another implementation, the two network nodes may be two nodes in a network with traffic data transmission.

[0047] The session in the embodiment of the present application may refer to a group of data packets divided by a quintuple, where a quintuple is a communication term and refers to a source Internet Protocol (IP) address, a source port, a destination IP address, a destination port, and a transport layer protocol. For example, a session to be detected may include M data packets, where M is an integer greater than or equal to 1. The IP addresses and / or source ports and / or destination IP addresses and / or destination ports and / or transport layer protocols of the M data packets are the same. A data packet is a data unit in a transmission control protocol (TCP) / IP protocol communication transmission.

[0048] In the case of traffic transmission between two network nodes, in one embodiment, the forwarding device can obtain the traffic data transmitted between the two nodes, and form a capture file, and send the capture file to the detection device, so that the detection device obtains the capture file and obtains the session to be detected from the capture file. The session to be detected may include: an access request sent by the terminal to the service server, and / or an access result sent by the service server to the terminal. In another embodiment, the forwarding device can directly send the session to be detected to the detection device, so that the detection device obtains the session to be detected.

[0049] S203: The detection device determines a feature vector of the session to be detected, where the feature vector is a vector representing static features of the network layer and / or static features of the transport layer.

[0050] In one embodiment, the feature vector can be determined based on the static attribute information of the network layer and / or the static attribute information of the transport layer of the session to be detected. For example, the detection device can perform statistical analysis on the static attribute information of the network layer and / or the static attribute information of the transport layer, and then use the vector converted from the result of the statistical analysis as the feature vector. For another example, the detection device can use the vector converted from the static attribute information of the network layer and / or the static attribute information of the transport layer as the feature vector. For another example, the detection device can perform other operations on the static attribute information of the network layer and / or the static attribute information of the transport layer to obtain the feature vector. In an embodiment of the present application, any method that can convert the static attribute information of the network layer and / or the static attribute information of the transport layer into a feature vector should be within the scope of protection of the present application. In an embodiment of the present application, the static attribute information of the network layer is used to characterize the static characteristics of the network layer, and the static attribute information of the transport layer is used to characterize the static characteristics of the transport layer.

[0051] In an embodiment of the present application, the detection device can obtain the static attribute information of the network layer and / or the static attribute information of the transport layer of the session to be detected by extracting feature information from each of the M data packets in the session to be detected. The static attribute information of the network layer and / or the static attribute information of the transport layer in the embodiment of the present application may refer to the static attribute information of the network layer and / or the static attribute information of the transport layer of each of the M data packets in the session to be detected.

[0052] In one implementation, the static attribute information of the network layer of the data packet may be a class, method, variable, or code block modified by a static modifier in the network layer (IP layer). The static attribute information of the transport layer of the data packet may be a class, method, variable, or code block modified by a static modifier in the transport layer (TCP layer).

[0053] In one embodiment, the static attribute information may include not only the static attribute information of the packet header part, but also the static attribute information of the data part, that is, the static attribute information of the transport layer may include the static attribute information of the data part. For example, the static attribute information may be the characters in the data part used to represent "confirmation" or "correctness". For example, in an application scenario, when a user logs in, after entering the account number and password, a login request is sent to the service server. When the service server determines that the account number and password match, the data part of the returned data packet includes the characters used to represent that the password is "correct". When the service server determines that the account number and password do not match, the data part of the returned data packet includes the characters used to represent that the password is "wrong". The characters used to represent "correctness" and the characters used to represent "wrongness" can both be static attribute information in the data packet.

[0054] In another implementation, the static attribute information may include only the header portion of the data packet, or only the data portion of the data packet.

[0055] S205: The detection device determines whether the session to be detected is a malicious session based on the feature vector of the session to be detected.

[0056] In one implementation, the detection device may input the feature vector of the session to be detected into a pre-trained specific classifier, thereby determining whether the session to be detected is a malicious session based on the classification result of the specific classifier.

[0057] In another embodiment, the detection device may determine whether the static attribute information in the feature vector of the session to be detected satisfies the set attribute information condition. When it is determined to be yes, the session to be detected is determined to be a malicious session, otherwise, it is determined to be a normal session or a non-malicious session. In some embodiments, the detection device may determine whether the static attribute information of the network layer of the session to be detected satisfies the set first sub-attribute information, and / or determine whether the static attribute information of the transport layer of the session to be detected satisfies the set second sub-attribute information. Among them, whether the static attribute information satisfies the set attribute information condition may include: whether a parameter of the static attribute information is within a set range, if so, it is determined to be satisfied, otherwise it is determined to be not satisfied, or whether at least two parameters in the static attribute information are respectively within at least two set ranges, if both are, it is determined to be satisfied, otherwise it is determined to be not satisfied.

[0058] In an embodiment of the present application, since the static characteristics of the network layer and / or the static characteristics of the transport layer corresponding to the normal session data and the malicious session data in the session data are different, it is determined whether the session to be detected is a malicious session through the feature vector used to characterize the static characteristics of the network layer and / or the static characteristics of the transport layer of the session to be detected, thereby facilitating the detection of different types of malicious sessions and improving the versatility of session detection.

[0059] Figure 3 A schematic diagram of the implementation flow of another session detection method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method includes:

[0060] S301: The forwarding device captures communication data and generates a capture file based on the captured communication data.

[0061] The communication data may be data flowing into the forwarding device within a preset time period. The communication data may include: an access request sent by the terminal to the service server, and / or an access result sent by the service server to the terminal.

[0062] S303: The forwarding device sends the captured file to the detection device, and the detection device receives the captured file sent by the forwarding device.

[0063] In one embodiment, the size of the captured file sent by the forwarding device to the detection device each time may be the same, or the size of the captured file is within a set range. In another embodiment, the forwarding device sends a captured file to the detection device at a specific time interval.

[0064] In an embodiment of the present application, the forwarding device can forward all communication data between two network nodes to the detection device, that is, the detection device can detect all communication data transmitted between the two network nodes, so as to determine whether all sessions forwarded by the forwarding device are malicious sessions. In another embodiment, the forwarding device can collect the communication data between the two network nodes by sampling, so as to reduce the load of the forwarding device and the detection device.

[0065] S305: The detection device parses and captures the file to obtain a set of data packets.

[0066] The captured file may be a pcap file, the overall structure of which is in the form of file header-data packet header 1-data packet 1-data packet header 2-data packet 2, etc. The purpose of parsing pcap is to obtain data packet 1, data packet 2, etc. in the pcap file, wherein data packet 1 and data packet 2, etc. are data packets transmitted between the terminal and the service server, thereby obtaining a data packet set. It should be understood that there may be N data packets in the data packet set, where N is an integer greater than or equal to 1.

[0067] S307: The detection device determines at least one session from the data packet set, and uses at least a portion of the at least one session as a session to be detected.

[0068] The characteristic information of the data packets included in any session of the at least one session is the same, and the characteristic information includes at least one of the five-tuples.

[0069] In an embodiment of the present application, the characteristic information includes all of the five-tuple, that is, the characteristic information includes the source IP address, the source port, the destination IP address, the destination port, and the transport layer protocol. In other embodiments, the characteristic information may include part of the five-tuple, for example, the characteristic information may include the source IP address, the source port, and the transport layer protocol.

[0070] During implementation, determining at least one session from a data packet set can be achieved in the following manner: the detection device first extracts characteristic information of each data packet in the data packet set, and then performs session aggregation analysis on the data packet set based on the characteristic information to determine at least one session.

[0071] For example, in one embodiment, the detection device may extract the five-tuple information of each data packet in the N data packets included in the data packet set, and then perform session aggregation analysis on the N data packets based on the five-tuple information to obtain at least one session (P sessions), where P is an integer greater than or equal to 1, and P is less than or equal to N. In this way, the detection device may classify the N data packets by the five-tuple information, and mark the data packets with the same five-tuple as the same session, thereby obtaining P sessions, and the five-tuples of the data packets included in each of the P sessions are the same.

[0072] When the detection device obtains P sessions, it may use all or part of the P sessions as the sessions to be detected. For example, in one embodiment, the detection device may use all of the P sessions as the sessions to be detected. In another embodiment, the detection device may use part of the P sessions (e.g., one session) as the sessions to be detected.

[0073] S309: The detection device extracts at least one piece of static attribute information corresponding to at least one data packet from at least one data packet included in the session to be detected.

[0074] The static attribute information may include: static attribute information of the network layer and / or static attribute information of the transport layer. The static attribute information of the network layer (IP layer) may include certain field information of the IP packet header, and the static attribute information of the transport layer (TCP layer) may include certain field information of the TCP packet header and / or static attribute information of the data portion of the data packet.

[0075] In one embodiment, the static attribute information of the network layer may include: at least one of the header length ip.hl, the data length ip.len, and the lifetime ip.ttl; the static attribute information of the transport layer may include: at least one of the destination port tcp.dport, the static data tcp.data, and the buffer remaining space tcp.win. It should be understood that the embodiment of the present application only provides a schematic enumeration of the static attribute information of the network layer and the static attribute information of the transport layer. The static attribute information of the network layer and the static attribute information of the transport layer may also include other static attribute information or be replaced by other static attribute information. Other static attribute information may be, for example, the source address of the IP packet header, the destination address of the IP packet header, or the source port of the TCP packet header.

[0076] S311. The detection device determines a feature vector of the session to be detected based on at least one static attribute information.

[0077] In one embodiment, the detection device may perform statistical analysis on at least one static attribute information to obtain statistical information, and then use the vector converted by the statistical information as the feature vector of the session to be detected. The statistical analysis may include at least one of count, minimum value, maximum value, cumulative value, average value, mean square error and standard deviation.

[0078] In an embodiment of the present application, the content included in the static attribute information can be selected according to actual conditions, and the static attribute information corresponding to the data packets in different scenarios may be different. For example, taking the static attribute information including ip.hl, ip.len, ip.ttl, tcp.dport, tcp.data and tcp.win as an example, the detection device can perform statistical analysis on these static attribute information, and the statistical analysis includes but is not limited to at least one of count count, minimum value min, maximum value max, sum sum and average avg. It should be understood that the statistical analysis can be to calculate the statistical value of each attribute information included in the static attribute information separately. For example, when statistically analyzing the count values ​​of ip.hl and ip.len, the count values ​​of M ip.hl corresponding to M data packets can be calculated respectively, and the count values ​​of M ip.len corresponding to M data packets can be calculated respectively.

[0079] The detection device can then concatenate the obtained statistical values ​​to obtain a feature vector of the session to be detected. Taking the static attribute information including ip.ttl and tcp.win, and the statistical analysis including count count, minimum value min, maximum value max, sum sum and average avg as an example, the feature vector of the session to be detected can be: (count(ip.ttl), min(ip.ttl), max(ip.ttl), sum(ip.ttl), avg(ip.ttl), count(tcp.win), min(tcp.win), max(tcp.win), sum(tcp.win), avg(tcp.win)).

[0080] S313: The detection device determines whether the session to be detected is a malicious session based on the feature vector of the session to be detected.

[0081] In one implementation, the detection device may determine a specific classifier, input a feature vector of the session to be detected into the specific classifier, obtain a classification result of the session to be detected, and then determine whether the session to be detected is a malicious session based on the classification result.

[0082] In one embodiment, a specific classifier may include a weight matrix, each column of the weight matrix is ​​a weight parameter between a feature vector and each category, and the detection device may determine the classification result of the session to be detected based on the feature vector and the weight matrix, and then determine whether the session to be detected is a malicious session based on the classification result.

[0083] The classifier may be a classification model, and a specific classifier may be obtained by inputting a trained model file into a prediction program, wherein the model file may include parameters such as a weight matrix.

[0084] In one embodiment, the specific classifier may be a binary classifier, and the specific classifier is used to output a first classification result indicating that the session to be detected is a normal session, or to output a second classification result indicating that the session to be detected is a malicious session. In another embodiment, the specific classifier may be a multi-classification classifier, and the specific classifier is used to output classification results of different malicious degrees, so that when the detection device obtains the classification result of the session to be detected from the multi-classification classifier, it determines whether the session to be detected is a malicious session according to the malicious degree of the classification result.

[0085] Taking the counting analysis of at least one static attribute information as an example, it can be understood that if a session to be detected includes too many data packets, it indicates that there are frequent access situations, so the session to be detected can be determined as a malicious session, so the purpose of the specific classifier can be to treat the session to be detected corresponding to the count greater than a specific threshold as a malicious session. In the embodiment of the present application, since a classifier is set, the determination of a malicious session is not only based on the dimension of counting, but also on at least one dimension of the minimum value, maximum value, cumulative value, average value, mean square error and standard deviation, so that the predicted classification result can be determined based on multiple parameters, thereby improving the accuracy of the prediction result.

[0086] The specific classifier in the embodiment of the present application may include: a decision tree classifier, a random forest classifier, a gradient boosting iterative decision tree (Gradient Boosting Decision Tree, GBDT) classifier, a support vector machine (Support Vector Machine, SVM) classifier, and a neural network classifier.

[0087] The method for obtaining a specific classifier can be obtained in the following manner: the detection device first obtains at least one training session, and each training session in the at least one training session corresponds to a real category; then determines the feature vector of each training session; then obtains an initial classifier, and based on the real category corresponding to each training session and the feature vector of each training session, trains the initial classifier to obtain a specific classifier.

[0088] The initial classifier may include an initial matrix, which is a matrix randomly generated by the detection device. The purpose of training the classifier is to train the initial matrix to obtain a weight matrix.

[0089] The training method used when training the initial classifier in the embodiment of the present application can be one of a decision tree training method, a random forest training method, a GBDT training method, an SVM training method, and a neural network training method. It should be understood that the selection of a specific classifier should correspond to the training method. For example, if the specific classifier is an SVM classifier, the training method should be an SVM training method.

[0090] In one embodiment, the detection device can determine the feature vector of each training session in the following manner: the detection device extracts at least one static attribute information corresponding to at least one data packet from at least one data packet included in each training session; the static attribute information includes: static attribute information of the network layer and / or static attribute information of the transport layer; based on the at least one static attribute information, determine the feature vector of each training session.

[0091] In one embodiment, the detection device determines the feature vector of each training session based on at least one static attribute information, which may include: the detection device performs statistical analysis on at least one static attribute information corresponding to at least one data packet included in each training session to obtain statistical information; and uses the vector converted by the statistical information as the feature vector of each training session.

[0092] Among them, the way in which the detection device determines the feature vector of the training session can be the same as the way in which the feature vector of the session to be detected is determined. For the content not described in the method for determining the feature vector of the training session, reference can be made to the description in the method for determining the feature vector of the session to be detected.

[0093] S315: The detection device sends a prompt message to the forwarding device.

[0094] The prompt information is used to indicate whether there is a malicious session in the session to be detected, and is used to indicate that if there is a malicious session in the session to be detected, the malicious session should be intercepted and / or attacked.

[0095] It should be understood that when the detected session is one session, the prompt information may include information on whether the one session is a malicious session; when the detected session is at least two sessions, the prompt information may include information on whether each of the at least two sessions is a malicious session.

[0096] In one embodiment, the prompt information may also include: an interception strategy and / or a strike strategy corresponding to the classification result of the session to be detected. For example, the detection device may determine the interception strategy and / or the strike strategy according to the maliciousness level corresponding to the classification result. The higher the maliciousness level corresponding to the classification result, the stronger the determined interception strategy and / or the strike strategy.

[0097] It should be understood that the more malicious the session is, the stronger the determined interception strategy and / or crackdown strategy will be. Conversely, the less malicious the session is, the weaker the determined interception strategy and / or crackdown strategy will be. For example, when a session is determined to be a normal session, the session will not be intercepted or cracked down.

[0098] In the embodiment of the present application, the interception strategy and / or the attack strategy may be a strategy to be implemented for each session of one or at least two sessions included in the session to be detected. For example, when some of the sessions to be detected are normal sessions, the implemented strategy is not to intercept or not to attack; when some of the sessions to be detected are malicious sessions with a relatively low degree of malice, the implemented strategy is to intercept but not to attack; when some of the sessions to be detected are malicious sessions with a relatively high degree of malice, the implemented strategy is to intercept and attack.

[0099] In the embodiment of the present application, statistical information is obtained by performing statistical analysis on at least one static attribute information, and a vector converted by the statistical information is used as a feature vector of the session to be detected, so that the feature vector obtained can reflect the features under multiple dimensions, thereby improving the accuracy of the classification of the session to be detected. In addition, since the session to be detected is classified by a specific classifier and the feature vector of the session to be detected, the specific classifier can comprehensively determine whether the session to be detected is a malicious session by combining different attribute information included in the static attribute information and the type of statistical analysis, thereby further improving the accuracy of the classification of the session to be detected.

[0100] Figure 4 A schematic diagram of a process for determining a feature vector of a session to be detected provided in an embodiment of the present application, such as Figure 4 As shown, in the implementation process of the present application, the process of the detection device performing feature extraction to obtain the feature vector of the to-be-detected session can be implemented through the following steps S401 to S407:

[0101] S401, the detection device obtains a pcap file, parses data packets in the pcap file, and obtains a data packet set.

[0102] S403, the detection device performs session aggregation on the data packets in the pcap file according to the 5-tuple (source IP, destination IP, source port, destination port and protocol number), and marks the data packets with the same 5-tuple as the same session (a business interaction process).

[0103] S405. The detection device extracts statistical features based on sessions: first, the IP layer static attributes and TCP layer static attributes of each data packet in the session are extracted, such as ip.hl, ip.len, ip.ttl, tcp.dport, tcp.data, tcp.win, etc.; then, the statistical values ​​of these static attributes are calculated based on the session, and the statistical values ​​include but are not limited to at least one of count, minimum value, maximum value, sum and average, etc.

[0104] S407. The detection device concatenates the obtained statistical values ​​to obtain a sequence, which is the feature vector of this session. For example, the feature vector may be (count(ip.ttl), min(ip.ttl), max(ip.ttl), sum(ip.ttl), avg(ip.ttl), count(tcp.win), min(tcp.win), max(tcp.win), sum(tcp.win), avg(tcp.win)...).

[0105] Figure 5 A schematic diagram of a process for generating a model file provided in an embodiment of the present application, such as Figure 5 As shown, in the implementation process of this application, the method of generating the model file can be implemented by the following steps S501 to S507:

[0106] S501. The detection device selects a batch of training samples (one session is one sample) with labels (indicating that the sample is malicious or normal). For example, the training samples may include session 1, label 1 corresponding to session 1, ..., session K, label K corresponding to session K, where K is an integer greater than or equal to 1.

[0107] S503. The detection device extracts feature vectors of samples one by one until feature vectors of all training set samples are obtained. The feature vectors may be (count(tcp.win), min(tcp.win), max(tcp.win), sum(tcp.win), avg(tcp.win)...).

[0108] S505. The detection device inputs the feature vector and the label of the corresponding sample into the machine learning training program for training. The machine learning model used here can be a decision tree, random forest, GBDT, SVM, neural network, etc. The detection device can try all these common models (such as decision tree, random forest, GBDT, SVM and neural network) and decide to select the optimal model based on the test results.

[0109] S507: After the training is completed, the detection device obtains the model file.

[0110] In the embodiment of the present application, the detection method of the detection device is the core part of the present solution. The detection device may include two parts: a training unit and a detection unit. Figure 6 A schematic diagram of another process for generating a model file provided in an embodiment of the present application, such as Figure 6 As shown, in the embodiment of the present application, the training unit of the detection device can train the training sample to obtain the model file, and the detection unit of the detection device can use the model file to obtain the detection result of the sample to be detected. The method for generating the model file in this embodiment can be implemented by the following steps S601 to S619:

[0111] S601, the detection device selects training samples.

[0112] S603: The detection device extracts features from each sample in the training samples.

[0113] S605: The detection device obtains feature vectors of all training set samples.

[0114] S607: The detection device uses the feature vectors of all training set samples to perform model training.

[0115] S609: The detection device obtains the model file.

[0116] S611. The detection device determines a sample to be detected. The sample to be detected may be a session to be detected in an embodiment of the present application.

[0117] S613: The detection device extracts features from the sample to be detected.

[0118] S615: The detection device obtains a feature vector of the sample to be detected.

[0119] S617: The detection device uses the feature vector of the sample to be detected and the model file to perform model prediction.

[0120] S619: The testing device obtains the test result of the sample to be tested.

[0121] In an embodiment of the present application, the detection device analyzes and models the network layer and transport layer data of the network data packets generated by the interaction between users and services to distinguish between normal business interaction data and malicious business interaction data. Detection and protection can be achieved without obtaining business layer data and business logic, which solves the problems of insufficient versatility, insufficient coverage and large workload of existing solutions, improves the versatility and coverage of the model, and reduces modeling costs.

[0122] Based on the above-mentioned embodiments, the embodiments of the present application provide a session detection device, which includes the units included and the modules included in the units, which can be implemented by a processor in the detection device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0123] Figure 7 A schematic diagram of the composition structure of a session detection device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the session detection device 70 includes:

[0124] An obtaining unit 71, configured to obtain a session to be detected transmitted between two network nodes;

[0125] A determining unit 72, configured to determine a feature vector of a session to be detected, the feature vector being used to characterize static features of a network layer and / or static features of a transport layer;

[0126] The detection unit 73 is used to determine whether the session to be detected is a malicious session based on the feature vector of the session to be detected.

[0127] In some embodiments, the acquisition unit 71 is also used to parse the capture file sent by the forwarding device to obtain a data packet set; from the data packet set, at least one session is determined, and at least part of the at least one session is used as a session to be detected; wherein the characteristic information of the data packets included in any session is the same, and the characteristic information includes at least one of the five-tuples.

[0128] In some embodiments, the obtaining unit 71 is further used to extract characteristic information of each data packet in the data packet set; perform session aggregation analysis on the data packet set based on the characteristic information to determine at least one session.

[0129] In some embodiments, the determination unit 72 is also used to extract at least one static attribute information corresponding one-to-one to at least one data packet included in the session to be detected; the static attribute information includes: static attribute information of the network layer and / or static attribute information of the transport layer; based on at least one static attribute information, determine the feature vector of the session to be detected.

[0130] In some embodiments, the static attribute information of the network layer includes: at least one of header length, data length and lifetime; the static attribute information of the transport layer includes: at least one of target port, static data and buffer remaining space.

[0131] In some embodiments, the determination unit 72 is further configured to perform statistical analysis on at least one static attribute information to obtain statistical information; and use a vector converted from the statistical information as a feature vector of the session to be detected.

[0132] In some embodiments, the statistical analysis includes at least one of count, minimum, maximum, cumulative value, mean, mean square error, and standard deviation.

[0133] In some embodiments, the detection unit 73 is further configured to determine a specific classifier, input the feature vector of the session to be detected into the specific classifier, obtain a classification result of the session to be detected, and determine whether the session to be detected is a malicious session based on the classification result.

[0134] In some embodiments, the session detection device 70 further includes:

[0135] The training unit 74 is used to obtain at least one training session, each of the at least one training session corresponds to a real category; determine the feature vector of each training session; obtain an initial classifier, and train the initial classifier based on the real category corresponding to each training session and the feature vector of each training session to obtain a specific classifier.

[0136] In some embodiments, the session detection device 70 further includes:

[0137] The sending unit 75 is used to send prompt information to the forwarding device, where the prompt information is used to indicate whether there is a malicious session in the session to be detected, and is used to indicate that if there is a malicious session in the session to be detected, the existing malicious session should be intercepted and / or attacked.

[0138] In some embodiments, the prompt information further includes: an interception strategy and / or a strike strategy corresponding to the classification result of the session to be detected.

[0139] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0140] It should be noted that in the embodiments of the present application, if the above-mentioned session detection method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product, which is stored in a storage medium and includes several instructions for a detection device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0141] It should be noted that Figure 8 A hardware entity diagram of a detection device provided in an embodiment of the present application, such as Figure 8 As shown, the hardware entity of the detection device 80 includes: a processor 81 and a memory 82, wherein the memory 82 stores a computer program that can be run on the processor 81, and when the processor 81 executes the program, the steps in the session detection method of any of the above embodiments are implemented.

[0142] The memory 82 stores computer programs that can be run on the processor. The memory 82 is configured to store instructions and applications executable by the processor 81. It can also cache data to be processed or processed by the processor 81 and the various modules of the detection device 80 (for example, image data, audio data, voice communication data, and video communication data). It can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0143] When the processor 81 executes the program, the steps of any of the above session detection methods are implemented. The processor 81 generally controls the overall operation of the detection device 80.

[0144] An embodiment of the present application provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the session detection method in any of the above embodiments.

[0145] Fig. 9 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. Fig. 9 The chip 90 shown includes a processor 91, which can call and run a computer program from a memory to implement the steps of the method executed by the detection device in the embodiment of the present application.

[0146] Alternatively, if Fig. 9As shown, the chip 90 may further include a memory 92. The processor 91 may call and run a computer program from the memory 92 to implement the steps of the method executed by the detection device in the embodiment of the present application.

[0147] The memory 92 may be a separate device independent of the processor 91 , or may be integrated into the processor 91 .

[0148] Optionally, the chip 90 may further include an input interface 93. The processor 91 may control the input interface 93 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0149] Optionally, the chip 90 may further include an output interface 94. The processor 91 may control the output interface 94 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0150] Optionally, the chip can be applied to the network device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the network device in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0151] Optionally, the chip can be applied to the detection device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the detection device in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0152] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0153] An embodiment of the present application provides a computer program product, which includes a computer storage medium, the computer storage medium stores computer program code, and the computer program code includes instructions that can be executed by at least one processor. When the instructions are executed by at least one processor, the steps of the method executed by the detection device in the above method are implemented.

[0154] It should be noted here that the description of the above detection device, computer storage medium, chip and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the detection device, computer storage medium, chip and computer program product embodiments of this application, please refer to the description of the method embodiment of this application for understanding.

[0155] It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0156] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0157] It should be understood that the above-mentioned memory is exemplary but not restrictive. For example, the memory in the embodiments of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is to say, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.

[0158] It should be understood that "one embodiment" or "an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0159] In the absence of special instructions, the detection device performs any step in the embodiment of the present application, and the processor of the detection device may perform the step. Unless otherwise specified, the embodiment of the present application does not limit the order in which the detection device performs the following steps. In addition, the method used for processing data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiment of the present application can be independently executed by the detection device, that is, when the detection device executes any step in the above embodiment, it can be independent of the execution of other steps.

[0160] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0161] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0162] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0163] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0164] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0165] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0166] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium (computer storage medium). When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0167] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods used in various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0168] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0169] Industrial Applicability

[0170] The embodiments of the present application provide a session detection method, apparatus, detection device, computer storage medium, chip and computer program product. The session detection scheme in the present application is adopted. The detection device determines whether the session to be detected is a malicious session through a feature vector of the session to be detected that is used to characterize the static features of the network layer and / or the static features of the transport layer, thereby easily detecting different types of malicious sessions and improving the versatility of session detection.

Claims

1. A session detection method, comprising: The detection device obtains a session to be detected transmitted between two network nodes; Extracting at least one static attribute information corresponding to the at least one data packet from at least one data packet included in the session to be detected; the static attribute information includes: static attribute information of the network layer and / or static attribute information of the transport layer; the static attribute information of the network layer is a class, method, variable or code block modified by a static modifier in the network layer; the static attribute information of the transport layer is a class, method, variable or code block modified by a static modifier in the transport layer; Based on the at least one static attribute information, determine a feature vector of the session to be detected, where the feature vector is a vector representing a static feature of a network layer and / or a static feature of a transport layer; Determine a specific classifier, input the feature vector of the session to be detected into the specific classifier, and obtain a classification result of the session to be detected; the specific classifier includes: one of a decision tree classifier, a random forest classifier, a gradient boosting iterative decision tree classifier, a support vector machine classifier, and a neural network classifier; Determine whether the session to be detected is a malicious session based on the classification result.

2. The method according to claim 1, wherein: The detection device obtains a session to be detected transmitted between two network nodes, including: The detection device parses the captured file sent by the forwarding device to obtain a data packet set; Determine at least one session from the data packet set, and use at least a portion of the at least one session as the session to be detected; The characteristic information of the data packets included in any of the sessions is the same, and the characteristic information includes at least one of the five-tuples.

3. The method according to claim 2, wherein: Determining at least one session from the data packet set includes: Extracting characteristic information of each data packet in the data packet set; Perform session aggregation analysis on the data packet set based on the characteristic information to determine the at least one session.

4. The method according to claim 1, wherein: The static attribute information of the network layer includes: at least one of header length, data length and lifetime; the static attribute information of the transport layer includes: at least one of target port, static data and buffer remaining space.

5. The method according to claim 4, wherein: The determining, based on the at least one static attribute information, a feature vector of the session to be detected includes: Performing statistical analysis on the at least one static attribute information to obtain statistical information; A vector converted by the statistical information is used as a feature vector of the session to be detected.

6. The method according to claim 5, wherein: The statistical analysis includes at least one of count, minimum value, maximum value, cumulative value, average value, mean square error and standard deviation.

7. The method according to claim 1, wherein: The method further comprises: Obtain at least one training session, each training session in the at least one training session corresponds to a real category; determining a feature vector for each training session; An initial classifier is obtained, and based on the true category corresponding to each training session and the feature vector of each training session, the initial classifier is trained to obtain the specific classifier.

8. The method according to any one of claims 1 to 7, wherein: The method further comprises: Prompt information is sent to the forwarding device, where the prompt information is used to indicate whether there is any malicious session in the session to be detected, and is used to indicate that if there is any malicious session in the session to be detected, the existing malicious session is intercepted and / or attacked.

9. The method according to claim 8, wherein: The prompt information also includes: an interception strategy and / or a strike strategy corresponding to the classification result of the session to be detected.

10. A conversation detection device, comprising: An obtaining unit, used for obtaining a session to be detected transmitted between two network nodes; A determining unit, configured to extract, from at least one data packet included in the session to be detected, at least one static attribute information corresponding to the at least one data packet in a one-to-one manner; The static attribute information includes: static attribute information of the network layer and / or static attribute information of the transport layer; the static attribute information of the network layer is a class, method, variable or code block modified by a static modifier in the network layer; the static attribute information of the transport layer is a class, method, variable or code block modified by a static modifier in the transport layer; based on the at least one static attribute information, determining a feature vector of the session to be detected, the feature vector being used to characterize a static feature of the network layer and / or a static feature of the transport layer; The detection unit is used to determine a specific classifier, input the feature vector of the session to be detected into the specific classifier, and obtain a classification result of the session to be detected; the specific classifier includes: a decision tree classifier, a random forest classifier, a gradient boosting iterative decision tree classifier, a support vector machine classifier, and a neural network classifier; based on the classification result, determine whether the session to be detected is a malicious session.

11. A detection device comprising: Memory and processor, The memory stores a computer program executable on the processor. When the processor executes the program, the steps in the method according to any one of claims 1 to 9 are implemented.

12. A computer storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the steps in the method according to any one of claims 1 to 9.

13. A chip, comprising: A processor, used to call and run a computer program from a memory, so that a device equipped with the chip executes the steps in the method as claimed in any one of claims 1 to 9.

Citation Information

Cited By

  • A network threat detection system based on dynamic correlation analysis of multi-protocol sessions

    KR103000238B1