A botnet risk assessment method and device

By combining multi-scenario multi-dimensional models and traditional machine learning models on the big data security platform to detect botnets, it solves the problems of single point failure, high false alarm rate and insufficient automated decision support in detecting botnets in the existing technology. Provides more accurate and efficient botnet risk assessment and early warning.

CN114422193BActive Publication Date: 2024-08-30CHINA PACIFIC INSURANCE (GRP) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies have problems such as single point failure risk, high construction cost, high communication delay, high false alarm rate, and lack of automated platform for decision support, threat warning, and intervention when detecting botnets.

Method used

It adopts a multi-scenario and multi-dimensional model based on the enterprise's internal basic security data and public data samples, and combines it with the big data security platform to conduct real-time assessment of security risks. Through the C&C model, deep learning DGA model and relationship graph fast flux model, combined with the traditional machine learning model, Conduct comprehensive threat scoring and threat warnings.

Benefits of technology

It improves the accuracy and efficiency of botnet detection, reduces the false alarm rate, provides closed-loop system decision support and threat warning capabilities, and helps small and medium-sized enterprises reduce losses caused by network attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114422193B
    Figure CN114422193B
Patent Text Reader

Abstract

The present invention provides a botnet risk assessment method, comprising the following steps: a. After cleaning customer data, substitute it into a C&C model, a deep learning DGA model and a relationship map fastflux model respectively, and obtain output results of associated domain name risk suspicion Pc, domain name threat probability Pd, and threat probability Pf; b. At least the associated domain name risk suspicion Pc, the domain name threat probability Pd, the threat probability Pf and the marked sample y value are input into a traditional machine learning model LR to determine a comprehensive threat score, the marked sample y is at least determined by a public data sample and a black sample of the basic security data within the enterprise, and before substituting the customer data into the C&C model, at least the customer data is subjected to feature engineering processing to determine multiple derived variables, and the feature engineering processing at least includes beaconing score, and calculation of horizontal and vertical UA popularity. The present invention has a simple process, is easy to use, and has extremely high commercial value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of network security, and in particular, relates to a botnet risk assessment method and device. Background Art

[0002] A botnet is composed of a series of hosts infected with malware and remotely controlled by a botmaster. Botnets can be used to perform a range of malicious activities, such as distributed denial of service attacks, sending spam, stealing personal information, and performing distributed computing tasks. There are two main communication methods for botnets: centralized, P2P, and hybrid. In the centralized method, bots communicate through legitimate communication channels, generally using IRC (Internet Relay Chat). When a host is infected, it will establish a connection with the IRC server. The botmaster will establish an IRC command and control (C&C) channel to control the bots, and implement instructions such as issuing intrusion commands and updating the behavior of the bots. This centralized method has the risk of single point failure. Once the IRC server is detected, the entire botnet will lose control. At the same time, monitoring the traffic content from the host to the server makes it easy to detect the bots. Therefore, there are new botnets that communicate based on the P2P method. This method can avoid the defects of single point failure, so the botnet is relatively robust.

[0003] However, this type of botnet is expensive to build and has high communication latency. Some botnets also use HTTP protocol for C&C signal transmission, which allows these traffic to bypass traditional firewalls. When these traffic are encrypted, they can also penetrate devices with DPI functions. Therefore, it is necessary to detect them based on their communication behavior. The life cycle of a botnet includes four stages: formation, C&C, attack, and post-attack. In the formation stage, the attacker invades a vulnerable host and executes malicious programs on it to make it a zombie host. Once it becomes a zombie host, the botmaster will communicate with it in various ways. After that, it will execute attack behaviors according to the instructions of the botmaster. The post-attack stage refers to the botmaster upgrading and updating the botnet. Traditional methods for detecting botnets generally use the behavioral characteristics of the zombie host in the formation and attack stages, such as the data content of the communication. Some methods based on network traffic behavior analysis can detect botnets, mainly from the perspective of communication traffic characteristics, such as the communication cycle of traffic. This method can detect some encrypted zombie host traffic and also detect new types of botnets.

[0004] Among the existing methods for dealing with botnet risks, there are mainly two types of C&C identification and detection technologies in this field: one is feature matching detection based on rule engines, such as detecting HTTP traffic header information, attack features, etc., but rule-based matching is prone to high false alarm rates and is difficult to detect new types of attacks; and the other is manual abnormal traffic analysis and detection based on network packet capture. This method is not efficient, especially for the processing of encrypted traffic, which is very difficult and also has a high false alarm rate.

[0005] At the same time, the existing technology has many defects, such as simple detection scenarios, single means, low efficiency, high false alarm rate and insufficient ability to predict new detections in advance. There is also a lack of an automated platform to implement this detection technology and provide a closed-loop system for decision-making support, threat warning and intervention.

[0006] However, currently, there is no technical solution that can solve the above technical problems, and specifically, there is no botnet risk assessment method and device. Summary of the invention

[0007] In view of the technical defects of the prior art, an object of the present invention is to provide a botnet risk assessment method and device. According to one aspect of the present invention, a botnet risk assessment method is provided. A fusion multi-scenario multi-dimensional model is established based on the basic security data within the enterprise and public data samples, and a real-time and effective security risk assessment is performed in combination with a big data security platform, including the following steps:

[0008] a. After cleaning the customer data, substitute it into the C&C model, deep learning DGA model and relationship graph fastflux model respectively, and obtain the output results of the associated domain name risk suspicion Pc, domain name threat probability Pd, and threat degree probability Pf;

[0009] b. Input at least the associated domain name risk suspicion Pc, the domain name threat probability Pd, the threat probability Pf and the labeled sample y value into the traditional machine learning model LR to determine the comprehensive threat score, wherein the labeled sample y is determined at least by the public data sample and the black sample of the enterprise's internal basic security data, wherein,

[0010] Before substituting the customer data into the C&C model, at least the customer data is subjected to feature engineering to determine a plurality of derived variables, wherein the feature engineering at least includes calculation of beaconing score, horizontal and vertical UA popularity.

[0011] Preferably, in step a, the establishment of the C&C model comprises the following steps:

[0012] i: Identify black and white HTTP proxy data samples within the enterprise and external intelligence data;

[0013] ii: extracting the communication interaction data between the host and the domain name as the original data based on the regular expression, and deriving multiple complex variables after feature engineering of the original data;

[0014] iii: Use random forest to select variables from the black and white samples of the enterprise's internal basic security data, the public data samples, and the multiple complex variables, extract 18 variables with the highest correlation scores, bring the 18 variables with the highest correlation scores and the labeled sample y into the catboost model for training, and use 8-fold cross validation to perform model tuning before determining the C&C model.

[0015] Preferably, in the deep learning DGA model of step a, the domain name threat probability Pd is determined in the following manner: extract the FQDN of each DNS access data based on the internal DNS data of the enterprise, perform text preprocessing on each FQDN, perform vector mapping based on the dictionary, generate a 1*78 matrix, input the pre-trained semantic model bert-base-uncased, perform 10 epochs of training and tuning based on the NLLLoss loss function and AdamW_HF optimizer, select the optimal model parameters through earlystopping, and output the domain name threat probability Pd through the optimized model. .

[0016] Preferably, in the relationship graph fast flux model of step a, a directed graph of IP and domain name is established by extracting each network traffic IP and domain name pair and constructing a dynamic knowledge graph. High-ranking domain names are screened out by calculating the connected subgraphs and sorting the first-degree associations, and then the threat probability Pf is determined by the logit function.

[0017] Preferably, after step b, the method further includes: verifying and feeding back the comprehensive threat score through the result of querying the domain name by VirtusTotal.

[0018] Preferably, the beaconing score is determined by the following formula:

[0019] B SCORE =100*(1-(1-math.exp(-diff*diff / 2sigma))*(1-math.exp(-diff*diff / 2sigma))),

[0020] Among them, the B SCOREis the beaconing score, math.exp(-diff*diff / 2sigma) is the abnormal offset, sigma is the normal offset, diff is the interval- The interval is the Time Delta for continuous communication between the Source and Destination pair.

[0021] Preferably, the UA popularity is determined by the following formula:

[0022] UA popularity=TFuij*IDFuij;

[0023] Among them, the TFuij is the frequency of UA appearing in a specific HOST, and the IDFuij is the reverse UA frequency. The larger the IDFuij value is, the rarer the UA appears in all HOSTs.

[0024] According to another aspect of the present invention, there is provided a botnet risk assessment device, comprising:

[0025] The first processing device: after cleaning the customer data, substitute it into the C&C model, the deep learning DGA model and the fast flux model of the relationship map, and obtain the output results of the associated domain name risk suspicion Pc, the domain name threat probability Pd, and the threat degree probability Pf;

[0026] The second processing device: at least inputs the associated domain name risk suspicion Pc, the domain name threat probability Pd, the threat degree probability Pf and the marked sample y value into the traditional machine learning model LR to determine the comprehensive threat score.

[0027] Preferably, it also includes:

[0028] The first determination device: determines the black and white HTTP proxy data samples within the enterprise and the external intelligence data;

[0029] The third processing device: extracts the communication interaction data between the host and the domain name as the original data based on the regular expression, and derives a plurality of complex variables after performing feature engineering on the original data;

[0030] The fourth processing device: performs variable selection on the black and white samples of the enterprise's internal basic security data, the public data samples and the multiple complex variables through random forest, extracts 18 variables with the highest correlation scores, brings the 18 variables with the highest correlation scores and the labeled sample y into the catboost model for training, and determines the C&C model after model tuning using 8-fold cross validation.

[0031] The present invention combines the advantages of deep learning in identifying hidden patterns, the unique value of relationship graphs in correlation analysis and identification of associations, and the characteristics of mathematical models in terms of accuracy, and improves the comprehensive benefits of existing botnet detection solutions through an integrated learning solution. At the same time, a closed-loop system is implemented on the big data analysis platform to provide decision support, threat warning and intervention. This risk assessment model that integrates internal and external security data of the enterprise, combined with the correlation analysis of multiple scenarios and models, can more comprehensively and accurately assess the risks of internal botnets in the enterprise, and then more comprehensively and objectively conduct a comprehensive assessment and portrait of the enterprise's network security, thereby helping small and medium-sized enterprises, in particular, to reduce losses caused by network attacks. The present invention has a simple process, is easy to use, and has extremely high commercial value. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0033] Figure 1 A schematic diagram showing a specific process of a botnet risk assessment method according to a specific embodiment of the present invention;

[0034] Figure 2 A schematic diagram showing a specific process of establishing the C&C model according to the first embodiment of the present invention is shown;

[0035] Figure 3 A schematic diagram showing module connections of a botnet risk assessment device according to another specific embodiment of the present invention; and

[0036] Figure 4 A schematic diagram of a system framework of a botnet risk assessment device according to a second embodiment of the present invention is shown. DETAILED DESCRIPTION

[0037] In order to better illustrate the technical solution of the present invention, the present invention is further described below in conjunction with the accompanying drawings.

[0038] Figure 1 A specific flow chart of a botnet risk assessment method showing a specific implementation mode of the present invention is provided. The present invention discloses a botnet risk assessment method. A fusion multi-scenario and multi-dimensional model is established based on the basic security data within the enterprise and public data samples, and real-time and effective security risk assessment is performed in combination with a big data security platform. The present invention is a C&C botnet risk assessment method and system based on a big data AI platform. Its characteristics are: based on the basic security data within the enterprise and public data samples, a fusion multi-scenario and multi-dimensional model is established, and real-time and effective security risk assessment, visual feedback and post-response are performed in combination with a big data security platform.

[0039] The existing detection of botnets is based on single-scenario modeling and detection of DGA, C&C or fast flux. The advantage and uniqueness of this system lies in the construction of a multi-scenario integrated model based on a multi-source heterogeneous security big data platform to enhance the detection capability of the existing single-scenario model, and the proposal of a multi-level fusion model architecture to improve the detection accuracy. At the same time, based on the data collection capability of the big data platform, multiple high-quality variables are derived to improve the modeling efficiency and accuracy.

[0040] In terms of variable collection, in addition to extracting multi-dimensional feature indicators such as internal and external enterprises, combined with network transmission, static indicators (UA, URL, Referer), WHOIS, ANS, threat intelligence, etc., multiple directional complex feature indicators are generated through variable engineering, such as beaconing scores, UA popularity, etc.

[0041] In terms of modeling, we fully explore the optimization characteristics of different models in specific scenarios, including using the characteristics of neural network adaptive learning to mine DGA domain risk scores, using knowledge graphs to mine fast flux risk detection indicators, combining tree models to score C&C risks, and finally using traditional statistical models for multi-level summarization to generate threat score cards to improve the detection rate of existing single-scenario botnet prediction models and reduce false alarm rates. At the same time, this system provides a closed-loop landing system based on a security big data platform for decision support, threat warning and intervention, making up for the defect that existing detection models only alarm but do not intervene.

[0042] Specifically, the present invention comprises the following steps:

[0043] First, enter step S101, clean the customer data and substitute it into the C&C model, deep learning DGA model and fast flux model respectively, and obtain the output results of the associated domain name risk suspicion Pc, domain name threat probability Pd, threat degree probability Pf, combined with Figure 4 The system framework diagram of a botnet risk assessment device according to the second embodiment of the present invention is shown. After the customer data is accessed, before being substituted into the C&C model, data cleaning and feature engineering are preferably performed. Before being substituted into the deep learning DGA model, data processing is preferably performed. Before being substituted into the relationship graph fast flux model, data processing is preferably performed. Further, as Figure 4As shown, first, the customer data access module is used, and the system automatically cleans the data. The system automatically performs feature engineering on the cleaned data, including variable screening, calculation, processing, querying third-party services to obtain relevant information, etc. The data is entered into the model, analyzed, and basic learning is carried out by combining different types of models in multiple scenarios. The output results are imported into the risk analysis module for scoring, and finally the user interface is output.

[0044] The core of the present invention is to associate and combine these three models to complete the assessment of botnet risks. Therefore, it is necessary to substitute the C&C model, the deep learning DGA model and the relationship graph fast flux model, and preferably establish the C&C model, the deep learning DGA model and the relationship graph fast flux model. These will be further described in the specific implementation methods described later and will not be repeated here.

[0045] Then, enter step S102, at least input the associated domain name risk suspicion Pc, the domain name threat probability Pd, the threat probability Pf and the marked sample y value into the traditional machine learning model LR, according to the LR probability formula Training is performed to determine the comprehensive threat score, wherein the labeled sample y is determined at least by the public data sample and the black sample of the enterprise's internal basic security data. The traditional machine learning model LR can be regarded as a single-layer single-node "DNN", which is a wide but not deep structure, and all features directly act on the final output result. The advantages of the model are simplicity and good controllability, but the effect depends directly on the degree of feature engineering, requiring very fine continuous, discrete, time-based and other feature processing and feature combination. Overfitting is usually controlled by regularization and other methods.

[0046] As another core technical point of the present invention, before substituting the customer data into the C&C model, at least the customer data is subjected to feature engineering to determine multiple derived variables, and the feature engineering processing at least includes beaconingscore, and calculation of horizontal and vertical UA popularity. In terms of variable collection of the tree model, in addition to using the multi-dimensional data collection mentioned above, data engineering mining is also used to derive multiple related variables, such as beaconing score, and calculation of horizontal and vertical UA popularity, and 18 variables for modeling are finally determined through variable correlation screening.

[0047] Furthermore, the beaconing score is determined by the following formula:

[0048] B SCORE=100*(1-(1-math.exp(-diff*diff / 2sigma))*(1-math.exp(-diff*diff / 2sigma))),

[0049] Among them, the B SCORE is the beaconing score, math.exp(-diff*diff / 2sigma) is the abnormal offset, sigma is the normal offset, diff is the interval- The interval is the Time Delta of continuous communication between the Source and Destination pair. The UA popularity is determined by the following formula:

[0050] UA popularity=TFuij*IDFuij;

[0051] Wherein, the TFuij is the frequency of UA appearing in a specific HOST, and the IDFuij

[0052] It is the inverse UA frequency. The larger the IDFuij value is, the rarer the UA appears in all HOSTs.

[0053] Considering the particularity of botnet UA in the interaction between hosts and domain names, we compared it to a weighted technology TF-IDF in information text search. By calculating the TF-IDF value of UA, we generated the derived variable UA popularity, that is, TFuij=Nuij / ∑ uk Nukj , where Nuij represents the number of times UA appears in a specific host, and TFuij represents the frequency of UA appearing in a specific host. IDFuij=logH / 1+ua i ∈h, where H represents the number of all HOSTs, uai represents the number of HOSTs containing a specific UA, and finally calculates UA popularity score = TFuij*IDFuij. Similarly, the refererscore and content type scores are calculated. For the beaconing score, we assume that the time delta (interval) of continuous communication between the Source and Destination pairs follows a normal distribution, set the interval of the two sigmas as a normal interval, and obtain the value of the beaconing score through the formula. The higher the value, the higher the threat level:

[0054] B SCORE=100*(1-(1-math.exp(-diff*diff / 2sigma))*math.exp(-diff*diff / 2sigma)))

[0055] Where diff represents

[0056] Furthermore, in the deep learning DGA model of step S101, the domain name threat probability Pd is determined in the following manner: the FQDN of each DNS access data is extracted based on the internal DNS data of the enterprise, each FQDN is preprocessed by text, vector mapping is performed based on the dictionary, a 1*78 matrix is ​​generated, the pre-trained semantic model bert-base-uncased is input, and training and tuning for 10 epochs are performed based on the NLLLoss loss function and the AdamW_HF optimizer, the optimal model parameters are selected through earlystopping, and the domain name threat probability Pd is output through the optimization model.

[0057] Furthermore, in the relationship graph fast flux model of step S101, by extracting each network traffic IP and domain name pair, a dynamic knowledge graph method is used to establish a directed graph of IP and domain name, and by calculating the connected subgraphs and sorting the first-degree associations, high-ranking domain names are screened out, and then the threat probability Pf is determined by the logit function. In the fast-flux detection scenario, V represents IP and domain name, and E represents the relationship between an IP and a domain name.

[0058] Furthermore, after step S102, it also includes: verifying and feeding back the comprehensive threat score through the result of querying the domain name through VirtusTotal. In such an embodiment, based on the three threat values ​​Pc, Pd, and Pf outputted by the first level, as input, combined with the labeled sample y value, a second-level traditional machine learning model LR model is constructed, and according to the risk probability given by the traditional machine learning model LR, 0.5 is used as a threshold to determine the final comprehensive threat value. At the same time, in combination with VirtusTotal to query the domain name, we use the query result > 3 as a standard, and verify and feed back the output result of our model through the feedback result of VirtusTotal.

[0059] Furthermore, the deep learning model is combined to score the suspicion of the DGA network and the tree model is used to score the suspicion of the C&C network through multiple dimensions. Finally, the outer traditional statistical model is nested again in combination with the integrated learning method for comprehensive scoring. By integrating the outputs of the three polymorphic models and passing them as variables into the outer traditional statistical model for retraining, the comprehensive accuracy can be effectively improved. By integrating relevant botnet scenarios, combining statistics + machine learning + deep learning models, maximizing the advantages of each model, and finally improving the overall benefits by applying a multi-layer integrated learning solution, this application forms a closed-loop Incident & Respond platform by combining a big data security platform for automatic deployment, real-time and effective assessment of security risks, monitoring and visual feedback, and post-response.

[0060] The key points to be protected by the present invention are the modeled data, the modeling method and the established multi-level comprehensive model, the variables used in the model and the entire process of the big data security platform system. By combining the advantages of deep learning in identifying hidden patterns, the unique value of relationship graphs in correlation analysis and identifying associations, and the characteristics of tree models in terms of accuracy, a horizontal and vertical multi-scenario, multi-model, and multi-layer integrated system is constructed to improve the overall benefits.

[0061] Figure 2 The specific flow chart of establishing the C&C model according to the first embodiment of the present invention is shown. In step S101, establishing the C&C model includes the following steps:

[0062] First, enter step S201 to determine the black and white HTTP proxy data samples and external intelligence data within the enterprise. The present invention is an enterprise C&C botnet risk assessment method and system based on the enterprise's internal security data and external public data. The system first establishes a C&C botnet detection model based on the existing black and white samples within the enterprise combined with external public threat intelligence information, and then enters the enterprise data to be evaluated into the system and the established model. The threat score 0 to 1 output by the model is obtained based on the threshold (default 0.5) to obtain the C&C domain name risk score within the enterprise. The present invention is a C&C botnet risk assessment method and system based on the security big data AI platform architecture. Based on the unique basic security data within the enterprise, the sample data collected by deploying a special closed environment is combined with external public intelligence samples to form a unique data sample library, thereby realizing multi-related scenarios, multi-dimensional, and multi-level fusion modeling methods. In terms of modeling, it mainly adopts a multi-scenario and multi-level innovative modeling method. First, in the construction of the first-level model, we used three different models in parallel for three different scenarios of botnets DGA, C&C and FAST FLUX performs separate modeling: In the C&C scenario, data cleaning is performed based on the black and white HTTP proxy data samples within the enterprise and external intelligence data.

[0063] Then, enter step S202, extract the communication interaction data between the host and the domain name as the original data based on the regular expression, and derive multiple complex variables after feature engineering of the original data. Further, extract the communication interaction data between the host and the domain name as the original data based on the regular expression, use feature engineering to clean, normalize and reduce the dimension of the data, and derive multiple complex variables (beaconingscore, UA popularity score, referer score, etc.) based on the method described above.

[0064] Finally, enter step S203, based on the initial variables described in steps S201 to S202, select variables for the black and white samples of the enterprise's internal basic security data, the public data samples, and the multiple complex variables through randomforest, extract 18 variables with the highest correlation scores, bring the 18 variables with the highest correlation scores and the labeled sample y into the catboost model for training, and use 8-fold cross validation to tune the model and determine the C&C model. Variable selection is performed through random forest, and finally 18 variables with the highest correlation scores are extracted. The y variable is generated based on the known black sample data, and finally brought into the catboost model for training. The model is tuned using 8-fold cross validation to prevent overfitting, select the optimal parameters, and finally determine the risk suspicion of each accessed associated domain name through the risk probability output by the model, recorded as Pc.

[0065] Figure 3 Another specific embodiment of the present invention is shown, a module connection diagram of a botnet risk assessment device. The present invention provides a botnet risk assessment device, which adopts the risk assessment method, including a first processing device 1: after cleaning the customer data, substitute it into the C&C model, the deep learning DGA model and the relationship graph fast flux model respectively, and obtain the output result associated domain name risk suspicion Pc, domain name threat probability Pd, threat degree probability Pf. The working principle of the first processing device 1 can refer to the aforementioned step S101 and will not be repeated here.

[0066] Furthermore, the present application also includes a second processing device 2: at least the associated domain name risk suspicion Pc, the domain name threat probability Pd, the threat degree probability Pf and the marked sample y value are input into the traditional machine learning model LR to determine the comprehensive threat score. The working principle of the second processing device 2 can refer to the aforementioned step S102 and will not be repeated here.

[0067] Furthermore, it also includes a first determination device 3: determining black and white HTTP proxy data samples within the enterprise and external intelligence data. The working principle of the first determination device 3 can refer to the aforementioned step S201 and will not be repeated here.

[0068] Furthermore, it also includes a third processing device 4: based on regular expressions, communication interaction data between the host and the domain name are extracted as original data, and multiple complex variables are derived after feature engineering of the original data. The working principle of the third processing device 4 can refer to the aforementioned step S202 and will not be repeated here.

[0069] Furthermore, it also includes a fourth processing device 5: random forest is used to select variables for the black and white samples of the internal basic security data of the enterprise, the public data samples and the multiple complex variables, 18 variables with the highest correlation scores are extracted, the 18 variables with the highest correlation scores and the labeled sample y are brought into the catboost model for training, and the C&C model is determined after the model is tuned using 8-fold cross validation. The working principle of the fourth processing device 5 can refer to the aforementioned step S203 and will not be repeated here.

[0070] It should be noted that the specific implementation of each of the above-mentioned device embodiments is the same as the specific implementation of the above-mentioned corresponding method embodiments, and will not be repeated here.

[0071] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. Various general-purpose devices can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of device. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific language is for the purpose of disclosing the best mode of the present invention.

[0072] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some embodiments, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0073] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0074] In addition, those skilled in the art understand that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the embodiments claimed for protection can be used in any combination.

[0075] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It is understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the device according to an embodiment of the present invention. The present invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0076] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present invention can be implemented by means of hardware including several different elements and by means of appropriately programmed computers. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

[0077] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.

Claims

1. A botnet risk assessment method, which establishes a fusion multi-scenario and multi-dimensional model based on the enterprise's internal basic security data and public data samples, and combines the big data security platform to conduct real-time and effective security risk assessment, characterized in that: The steps include: a. After cleaning the customer data, substitute it into the C&C model, deep learning DGA model and relationship graph fastflux model respectively, and obtain the output results of the associated domain name risk suspicion Pc, domain name threat probability Pd, and threat degree probability Pf; b. Input at least the associated domain name risk suspicion Pc, the domain name threat probability Pd, the threat probability Pf and the labeled sample y value into the traditional machine learning model LR to determine the comprehensive threat score; The labeled sample y is determined at least by a public data sample and a black sample of the enterprise's internal basic security data, wherein: Before substituting the customer data into the C&C model, at least the customer data is subjected to feature engineering to determine a plurality of derived variables, wherein the feature engineering includes at least calculation of beaconing score, horizontal and vertical UA popularity; In step a, the establishment of the C&C model includes the following steps: i: Identify black and white HTTP proxy data samples within the enterprise and external intelligence data; ii: extracting the communication interaction data between the host and the domain name as the original data based on the regular expression, and deriving multiple complex variables after feature engineering of the original data; iii: Using random forest to select variables from the black and white samples of the enterprise's internal basic security data, the public data samples, and the multiple complex variables, 18 variables with the highest correlation scores are extracted, the 18 variables with the highest correlation scores and the labeled sample y are brought into the catboost model for training, and the C&C model is determined after model tuning using 8-fold cross validation; In the deep learning DGA model of step a, the domain name threat probability Pd is determined in the following manner: extract the FQDN of each DNS access data based on the enterprise's internal DNS data, perform text preprocessing on each FQDN, perform vector mapping based on the dictionary, generate a 1*78 matrix, input the pre-trained semantic model bert-base-uncased, perform training and tuning for 10 epochs based on the NLLLoss loss function and AdamW_HF optimizer, select the optimal model parameters through early stopping, and output the domain name threat probability Pd through the optimized model; In the fast flux model of the relationship graph in step a, a directed graph of IP and domain name is established by extracting each network traffic IP and domain name pair and constructing a dynamic knowledge graph. High-ranking domain names are screened out by calculating the connected subgraphs and the ranking of the first-degree associations, and then the threat probability Pf is determined by the logit function. The beaconing score is determined by the following formula: B SCORE =100*(1-(1-math.exp(-diff*diff / 2sigma))*(1-math.exp(-diff*diff / 2sigma))), Among them, the B SCORE is the beaconing score, the math.exp(-diff*diff / 2sigma) is the abnormal offset, sigma is the normal offset, and diff is the interval- The interval is the Time Delta of continuous communication between the Source and Destination pairs; The UA popularity is determined by the following formula: UA popularity=TFuij*IDFuij; Among them, the TFuij is the frequency of UA appearing in a specific HOST, and the IDFuij is the reverse UA frequency. The larger the IDFuij value is, the rarer the UA appears in all HOSTs.

2. The risk assessment method according to claim 1, characterized in that: After step b, the method further includes: verifying and feeding back the comprehensive threat score through a result of querying the domain name using VirtusTotal.

3. A botnet risk assessment device, which adopts the risk assessment method as described in any one of claims 1 or 2, characterized in that: include: The first processing device (1) cleans the customer data and substitutes them into the C&C model, the deep learning DGA model and the relationship graph fast flux model respectively, and obtains the output results of the associated domain name risk suspicion Pc, the domain name threat probability Pd, and the threat degree probability Pf; The second processing device (2) inputs at least the associated domain name risk suspicion Pc, the domain name threat probability Pd, the threat probability Pf and the marked sample y value into the traditional machine learning model LR to determine the comprehensive threat score.

4. The risk assessment device according to claim 3, characterized in that: Also includes: The first determining means (3): determines the black and white HTTP proxy data samples within the enterprise and the external intelligence data; The third processing device (4) extracts the communication interaction data between the host and the domain name as the original data based on the regular expression, and derives a plurality of complex variables after performing feature engineering on the original data; The fourth processing device (5) is to select variables from the black and white samples of the enterprise's internal basic security data, the public data samples and the multiple complex variables through random forest, extract 18 variables with the highest correlation scores, bring the 18 variables with the highest correlation scores and the labeled sample y into the catboost model for training, and determine the C&C model after model tuning using 8-fold cross validation.

Citation Information

Patent Citations

  • Automobile industry user viewpoint sentiment classification method based on big data

    CN110059183A

  • Botnet detection method and system based on threat intelligence

    CN110730175A