Method and device for generating numerical behavior safety baseline for safety analysis

Through the numerical behavioral security baseline generation method, the learner and tree structure are used to generate the network behavioral security baseline. Combined with the anomaly detection module, it solves the problem that traditional security analysis methods are difficult to detect emerging attacks, and improves the efficiency and effect of network security detection.

CN114760109BActive Publication Date: 2024-08-30QI AN XIN TECHNOLOGY GROUP INC +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210293195.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-23
Publication Date
2024-08-30
Estimated Expiration
2042-03-23

AI Technical Summary

Technical Problem

Traditional security analysis methods are difficult to effectively detect unknown and emerging network attack methods, and cannot adapt to the current severe network security situation.

Method used

Provides a numerical behavioral security baseline generation method for security analysis. By obtaining behavioral data and related parameters, the maximum, minimum and average learners are used to generate a numerical behavioral security baseline, which is represented by a tree structure and combined with anomaly detection. module performs real-time detection.

Benefits of technology

It realizes the automatic generation of behavioral security baselines without the need for operators to specify parameters in advance, improving the detection efficiency of network attacks and the detection capabilities of network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114760109B
    Figure CN114760109B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for generating a numerical behavior security baseline for security analysis, wherein the method includes: obtaining first behavior data; obtaining method parameters and numerical-related parameters of the numerical behavior security baseline; wherein the method parameters are used to indicate a learner corresponding to the first behavior data; the numerical-related parameters are used to indicate numerical behavior information executed by a user; and the first behavior data is learned based on the method parameters and the numerical-related parameters to generate a numerical behavior security baseline. The method and device for generating a numerical behavior security baseline for security analysis provided by the present invention learn the first behavior data based on the method parameters and the numerical-related parameters to generate a numerical behavior security baseline, so as to realize automatic learning of the behavior data and generation of the numerical behavior security baseline without the operator specifying parameters in advance, and further security analysis and anomaly detection can be performed based on the numerical behavior security baseline.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video technology, and in particular to a method for generating a numerical behavior security baseline for security analysis. Background Art

[0002] With the development of technology and the spread of knowledge, the methods and number of network attacks have also increased significantly, and various new attack methods have emerged one after another, bringing great challenges and pressure to security analysts and products. Traditional security analysis and detection methods are based on prior knowledge and use features to perform security detection on network data and logs. This method can deal with known attack methods, but the detection efficiency of unknown and new attack methods is low and cannot adapt to the current severe network security situation. In recent years, with the development of machine learning and the rise of real-time computing frameworks, behavior-based security analysis methods have begun to be increasingly used in various security products.

[0003] In related technologies, the behavior-based security analysis method uses machine learning methods to learn network data and logs, statistics and summarize the behavioral characteristics of users and entities. The learned behavioral security baseline can be well used for abnormal behavior analysis and detection, achieving many effects that feature-based methods cannot achieve. However, how to generate a behavioral security baseline based on network data and logs is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method for generating a numerical behavior security baseline for security analysis.

[0005] Specifically, the embodiment of the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a method for generating a numerical behavior security baseline for security analysis, comprising:

[0007] Get the first line of data;

[0008] Obtaining method parameters and value-related parameters of a numerical behavior security baseline; wherein the method parameters are used to indicate a learner corresponding to the first behavior data; and the value-related parameters are used to indicate numerical behavior information executed by a user;

[0009] The first behavior data is learned based on the method parameters and the value-related parameters to generate the numerical behavior security baseline.

[0010] Further, the method parameters include one of the following: a parameter corresponding to a maximum learner, a parameter corresponding to a minimum learner, and a parameter corresponding to an average learner;

[0011] The value-related parameters include at least one of the following:

[0012] A first calculation expression, used to learn the user information in the first behavior data;

[0013] The second calculation expression is used to learn the numerical behavior information in the first behavior data.

[0014] Further, the learning of the first behavior data based on the method parameters and the value-related parameters to generate the value behavior security baseline includes:

[0015] Using each calculation expression in the numerical value-related parameter in turn, calculate the learning value corresponding to each calculation expression from the first behavior data; wherein the learning value is a value corresponding to the numerical behavior information executed by the user;

[0016] The numerical behavior safety baseline is generated based on the method parameters and the learning values ​​corresponding to each calculation expression.

[0017] Furthermore, the numerical behavior security baseline is represented by a tree structure, and the tree structure includes a plurality of tree nodes;

[0018] The step of sequentially using each calculation expression in the value-related parameter to calculate a learning value corresponding to each calculation expression from the first behavior data includes:

[0019] Determine whether the current calculation expression is the last calculation expression in the value-related parameters;

[0020] In a case where the current calculation expression is not the last calculation expression in the value-related parameters, based on the current calculation expression, calculating a learning value corresponding to the current calculation expression from the first behavior data;

[0021] Query whether the current tree node contains a subtree node associated with the learning value;

[0022] In the case where the current tree node includes a subtree node associated with the learning value, setting the subtree node associated with the learning value as the current tree node, setting the next calculation expression of the current calculation expression in the value-related parameters as the current calculation expression, and returning to the step of determining whether the current calculation expression is the last calculation expression in the value-related parameters;

[0023] In the case that the current tree node does not contain a subtree node associated with the learned value, a new subtree node associated with the learned value is created, and the association relationship between the subtree node and the learned value is saved in the table of the current tree node, the subtree node is set as the current tree node, the next calculation expression of the current calculation expression in the numerical-related parameters is set as the current calculation expression, and the process returns to the step of determining whether the current calculation expression is the last calculation expression in the numerical-related parameters.

[0024] Furthermore, it also includes:

[0025] In a case where the current calculation expression is the last calculation expression in the numerical value-related parameters, the current calculation expression is used to calculate a learning value corresponding to the current calculation expression from the first behavior data.

[0026] Furthermore, the generating of the numerical behavior safety baseline based on the method parameters and the learning values ​​corresponding to each calculation expression includes:

[0027] Selecting a corresponding current learner based on the method parameters;

[0028] In the case where the current learner is a maximum learner, determining the numerical behavior safety baseline based on a maximum learning value among the learning values ​​corresponding to each calculation expression;

[0029] In the case where the current learner is a minimum learner, determining the numerical behavior safety baseline based on a minimum learning value among the learning values ​​corresponding to each calculation expression;

[0030] In the case where the current learner is an average learner, the numerical behavior safety baseline is determined based on an average learning value among the learning values ​​corresponding to the calculation expressions.

[0031] Furthermore, after learning the first behavior data according to the value-related parameters to generate the value behavior security baseline, the method further includes:

[0032] Obtain the second behavior data and the numerical anomaly detection module;

[0033] Detect the second behavior data according to the value-related parameter to obtain a first detection value corresponding to each calculation expression;

[0034] When the calculation expression corresponding to the first detection value is not the last calculation expression and the first detection value is not found in the numerical behavior security baseline, outputting abnormal detection alarm data;

[0035] When the calculation expression corresponding to the first detection value is the last calculation expression, each of the first detection values ​​is calculated based on the learner corresponding to the method parameters to obtain the second detection value, and when the second detection value is determined to be abnormal based on the numerical anomaly detection module, the anomaly detection alarm data is output.

[0036] In a second aspect, an embodiment of the present invention further provides a device for generating a numerical behavior security baseline for security analysis, comprising:

[0037] A first acquisition unit, used to acquire first behavior data;

[0038] A second acquisition unit, used to acquire method parameters and value-related parameters of the numerical behavior security baseline; wherein the method parameters are used to indicate the learner corresponding to the first behavior data; and the value-related parameters are used to indicate the numerical behavior information executed by the user;

[0039] A generating unit is used to learn the first behavior data based on the method parameters and the value-related parameters to generate the numerical behavior security baseline.

[0040] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a numerical behavioral security baseline for security analysis as described in the first aspect is implemented.

[0041] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for generating a numerical behavioral security baseline for security analysis as described in the first aspect.

[0042] In a fifth aspect, an embodiment of the present invention further provides a computer program product having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method for generating a numerical behavioral security baseline for security analysis described in the first aspect.

[0043] The numerical behavior security baseline generation method and device for security analysis provided in the embodiments of the present invention obtain numerical related parameters of the numerical behavior security baseline, the numerical related parameters are used to indicate the numerical behavior information executed by the user, and then learn the first behavior data based on the method parameters and the numerical related parameters to generate the numerical behavior security baseline, so as to realize automatic learning of the behavior data and generation of the numerical behavior security baseline without the operator having to specify parameters in advance, and then security analysis and anomaly detection can be performed based on the numerical behavior security baseline. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 It is one of the flow diagrams of the method for generating a numerical behavior security baseline for security analysis provided by the present invention;

[0046] Figure 2 This is the second flow chart of the method for generating a numerical behavior security baseline for security analysis provided by the present invention;

[0047] Figure 3 It is a schematic diagram of the update process of the extreme value learner provided by the present invention;

[0048] Figure 4 It is a schematic diagram of the update process of the average value learner provided by the present invention;

[0049] Figure 5 It is a schematic diagram of the process of constructing a numerical behavior security baseline for security analysis provided by the present invention;

[0050] Figure 6 This is one of the numerical behavior safety baseline calculation process diagrams provided by the present invention;

[0051] Figure 7 This is the second schematic diagram of the numerical behavior security baseline calculation process provided by the present invention;

[0052] Figure 8 It is a structural schematic diagram of a numerical behavior security baseline generating device for security analysis provided by the present invention;

[0053] Fig. 9 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] The numerical behavior security baseline generation method for security analysis provided by the present invention is described in detail below through some embodiments and application scenarios in conjunction with the accompanying drawings.

[0056] Figure 1 This is one of the flow charts of the method for generating a numerical behavior security baseline for security analysis provided by the present invention, such as Figure 1 As shown, the method includes steps 101 to 103, wherein:

[0057] Step 101: Get the first behavior data.

[0058] For example, the first behavior data may include network data and / or logs, etc., and may be specifically read from a storage device, or may be first behavior data received from other devices.

[0059] Step 102: Obtain method parameters and value-related parameters of the numerical behavior security baseline.

[0060] Among them, the method parameter is used to indicate the learner corresponding to the first behavior data; the value-related parameter is used to indicate the numerical behavior information executed by the user.

[0061] For example, method parameters and value-related parameters are pre-configured parameters. For example, method parameters can be configured as a maximum learner, a minimum learner, or an average learner. Value-related parameters can be configured as the size of attachments for each user and each user's emails sent, the size of traffic downloaded by each user, the length of working hours for each user and each user, etc., as long as they are numerical data.

[0062] Step 103: learning the first behavior data based on the method parameters and the value-related parameters to generate the numerical behavior security baseline.

[0063] For example, when the learner corresponding to the method parameters is a maximum value learner, and the numerical related parameters are each user and the size of the attachments of emails sent by each user, the learning content of the numerical behavioral security baseline is to learn the maximum value of the size of the email attachments sent by each user based on the first behavior data; when the learner corresponding to the method parameters is a maximum value learner, and the numerical related parameters are each user and the size of the traffic downloaded by each user, the learning content of the numerical behavioral security baseline is to learn the maximum value of the size of the traffic downloaded by each user based on the first behavior data; when the learner corresponding to the method parameters is a maximum value learner, and the numerical related parameters are each user and the working hours of each user, the learning content of the numerical behavioral security baseline is to learn the maximum value of the working hours of each user based on the first behavior data.

[0064] It should be noted that the method for generating a numerical behavior security baseline for security analysis provided by the present invention can be applicable to scenarios of security analysis and detection of network attacks. The execution subject of the method can be a device for generating a numerical behavior security baseline for security analysis, such as an electronic device, a server, or a control module in the device for executing the method for generating a numerical behavior security baseline for security analysis. The electronic device can include a mobile phone, a tablet computer, or a desktop computer.

[0065] Optionally, the method parameter includes one of the following: a parameter corresponding to a maximum learner, a parameter corresponding to a minimum learner, and a parameter corresponding to an average learner.

[0066] The value-related parameters include at least one of the following:

[0067] A first calculation expression, used to learn the user information in the first behavior data;

[0068] The second calculation expression is used to learn the numerical behavior information in the first behavior data.

[0069] Among them, the method parameter (method parameter) is defined as: method = "max", which means the maximum value learner; method = "min", which means the minimum value learner; method = "avg", which means the average value learner; the numerical related parameter (targets parameter) is defined as: targets = ["calculation expression 1", "calculation expression 2", ..., "calculation expression N"].

[0070] For example, targets = [fields["email sender"], fields["email attachment size"], this target means learning the size of email attachments sent by each email sender.

[0071] The following is an example of configuring a numerical behavior security baseline:

[0072] numericModel(method = "avg", targets = [fields["email sender"], fields["email attachment size"]), indicates that the learning content of the numerical behavior security baseline is the average size of email attachments sent by each email sender.

[0073] The method for generating a numerical behavior security baseline for security analysis provided in an embodiment of the present invention obtains numerical related parameters of the numerical behavior security baseline, where the numerical related parameters are used to indicate the numerical behavior information executed by the user, and then learns the first behavior data based on the method parameters and the numerical related parameters to generate a numerical behavior security baseline, so as to realize automatic learning of the behavior data and generation of the numerical behavior security baseline without the operator having to specify parameters in advance, and then security analysis and anomaly detection can be performed based on the numerical behavior security baseline.

[0074] Optionally, after learning the first behavior data according to the numerical value-related parameters and generating the numerical value behavior security baseline, security analysis and anomaly detection may be performed based on the numerical value behavior security baseline. The specific detection process includes:

[0075] 1) Obtain the second behavior data and numerical anomaly detection module.

[0076] For example, the second behavior data can be obtained in real time, and the second behavior data sent by other devices can also be received; the numerical anomaly detection module is an anomaly judgment logic, that is, a numerical anomaly calculator, which is used to calculate the learned results (maximum value, minimum value or average value) and the anomaly judgment logic, and determine whether it is abnormal based on the calculation results.

[0077] 2) Detect the second behavior data according to the numerical related parameters to obtain a first detection value corresponding to each calculation expression.

[0078] For example, each calculation expression in the value-related parameter is used in turn to calculate the first detection value corresponding to each calculation expression from the second behavior data.

[0079] 3) When the calculation expression corresponding to the first detection value is not the last calculation expression and the first detection value is not found in the numerical behavior security baseline, output abnormal detection alarm data.

[0080] 4) When the calculation expression corresponding to the first detection value is the last calculation expression, each of the first detection values ​​is calculated based on the learner corresponding to the method parameters to obtain the second detection value, and when the second detection value is determined to be abnormal based on the numerical anomaly detection module, the anomaly detection alarm data is output.

[0081] For example, when the learner corresponding to the method parameters is a maximum value learner, the maximum value of each first detection value is taken as the second detection value, and then the numerical anomaly detection module calculates the second detection value and the abnormality judgment logic. For example, the abnormality judgment logic is to judge an abnormality when the maximum value > 1000. If the numerical anomaly detection module determines that the second detection value is greater than 1000, it is judged as abnormal.

[0082] The method for generating a numerical behavior security baseline for security analysis provided by the present invention can perform real-time detection of the user's second behavior data based on the numerical behavior security baseline, and issue an alarm when an abnormality is detected, thereby improving the security of the network.

[0083] Figure 2 This is a second flow chart of the method for generating a numerical behavior security baseline for security analysis provided by the present invention, such as Figure 2 As shown, the method comprises the following steps:

[0084] Step 201: Input the first line as data.

[0085] Step 202: Use each calculation expression in the numerical value-related parameter in turn to learn a learning value related to each calculation expression from the first behavior data.

[0086] Among them, the numerical related parameters are pre-configured parameters, and the numerical related parameters may include a first calculation expression for learning user information in the first behavior data, and a second calculation expression for learning numerical behavior information in the first behavior data; the learned value is the value corresponding to the numerical behavior information executed by the user.

[0087] For example, when the first behavior data is obtained, information related to the user's numerical behavior is extracted from the first behavior data, and then each calculation expression in the numerical behavior security baseline is used in turn to learn the learning value of the information related to the user's numerical behavior; for example, the information related to the user's numerical behavior is the email attachment information of email sender A, and each calculation expression in the numerical behavior security baseline is used in turn to learn the size of the email attachment of email sender A.

[0088] Optionally, the numerical behavior security baseline is represented by a tree structure, the tree structure includes a plurality of tree nodes; the tree structure is used to represent the numerical behavior security baseline as a numerical learning tree. In step 202, each calculation expression in the numerical related parameters is used in turn to learn the learning value related to each calculation expression from the first behavior data, and the implementation method of generating the numerical behavior security baseline based on each learning value and method parameter may include:

[0089] Determine whether the current calculation expression is the last calculation expression in the value-related parameters.

[0090] Case 1: When the current calculation expression is not the last calculation expression in the value-related parameters, based on the current calculation expression, the learning value corresponding to the current calculation expression is calculated from the first behavior data; and whether the current tree node contains a subtree node associated with the learning value is queried:

[0091] a) in the case where the current tree node includes a subtree node associated with the learning value, setting the subtree node associated with the learning value as the current tree node, setting the next calculation expression of the current calculation expression in the value-related parameters as the current calculation expression, and returning to the step of determining whether the current calculation expression is the last calculation expression in the value-related parameters;

[0092] b) When the current tree node does not contain a subtree node associated with the learned value, a new subtree node associated with the learned value is created, and the association relationship between the subtree node and the learned value is saved in the table of the current tree node, the subtree node is set as the current tree node, the next calculation expression of the current calculation expression in the numerical-related parameters is set as the current calculation expression, and the process returns to the step of determining whether the current calculation expression is the last calculation expression in the numerical-related parameters.

[0093] Case 2: when the current calculation expression is the last calculation expression in the numerical value-related parameters, the current calculation expression is used to calculate the learning value corresponding to the current calculation expression from the first behavior data.

[0094] Step 203: Generate the numerical behavior security baseline based on the method parameters and the learning values ​​corresponding to each calculation expression.

[0095] Optionally, selecting a corresponding current learner based on the method parameters;

[0096] In the case where the current learner is a maximum learner, determining the numerical behavior safety baseline based on a maximum learning value among the learning values ​​corresponding to each calculation expression;

[0097] In the case where the current learner is a minimum learner, determining the numerical behavior safety baseline based on a minimum learning value among the learning values ​​corresponding to each calculation expression;

[0098] In the case where the current learner is an average learner, the numerical behavior safety baseline is determined based on an average learning value among the learning values ​​corresponding to the calculation expressions.

[0099] The method for generating a numerical behavior security baseline for security analysis provided by the present invention needs to determine whether the current calculation expression is the last calculation expression in the process of calculating the learning value corresponding to each calculation expression from the first behavior data. When it is determined that the current calculation expression is not the last calculation expression, the learning value corresponding to the current calculation expression is calculated from the first behavior data, and it is queried whether the current tree node contains a subtree node associated with the learning value. When the subtree node associated with the learning value is contained, the subtree node is directly set as the current tree node; when the subtree node associated with the learning value is not contained, a new subtree node is created, and the new subtree node is determined as the current tree node; and the next calculation expression is set as the current calculation expression, and the learning value corresponding to the current calculation expression is calculated from the first behavior data in a loop until the current calculation expression is the last calculation expression, and the learning value corresponding to the last calculation expression is calculated from the first behavior data; at this time, the learning value corresponding to each calculation expression is calculated from the first behavior data, and finally the learning value corresponding to each calculation expression is calculated based on the current learner, and the numerical behavior security baseline is generated based on the calculation result, thereby realizing that the learning of the behavior data and the generation of the numerical behavior security baseline can be automatically realized without the operator specifying parameters in advance.

[0100] Specifically, the learner includes an extreme value learner and an average value learner, wherein the extreme value learner includes a maximum value learner and a minimum value learner.

[0101] For example, the parameter name of the extreme value learner is value. When it is a maximum learner, value saves the maximum value of all the values ​​currently encountered, and the initial value of value is Long.MIN; when it is a minimum learner, value saves the minimum value of all the values ​​currently encountered, and the initial value of value is Long.MAX; Figure 3 It is a schematic diagram of the update process of the extreme value learner provided by the present invention, such as Figure 3 As shown, the method comprises the following steps:

[0102] Step 301, input the calculated value and the current numerical learning tree node;

[0103] Step 302, determine whether the current learner is a maximum learner, if the current learner is a maximum learner, execute step 303; if the current learner is a minimum learner, execute step 304.

[0104] Step 303: If the calculated value is greater than value, update value = calculated value;

[0105] Step 304: If the calculated value is less than value, update value = calculated value.

[0106] For example, the parameter names of the average learner are value, count and sum. The parameter description of value is to save the mean of all learning values ​​currently being learned, and the initial value is 0; the parameter description of count is to save the number of all current learning values, and the initial value is 0; the parameter description of sum is to save the sum of all current learning values, and the initial value is 0; Figure 4 is a schematic diagram of the update process of the average value learner provided by the present invention, such as Figure 4 As shown, the method comprises the following steps:

[0107] Step 401, inputting the calculated value and the current numerical learning tree node;

[0108] Step 402: Update the count value to count+1, update the sum value to sum+learning value, and update the value value to sum / count.

[0109] Figure 5 : is a schematic diagram of the process of constructing a numerical behavior security baseline for security analysis provided by the present invention, such as Figure 5 As shown, the method comprises the following steps:

[0110] Step 501: Set the root node of the numerical learning tree as the current tree node, and set the first calculation expression in the targets parameter as the current target value calculator.

[0111] Optionally, the numerical behavior safety baseline is represented as a numerical learning tree using a tree structure. The numerical parameters related to the numerical behavior safety baseline are recorded as targets parameters, where targets parameters = ["calculation expression 1", "calculation expression 2", ..., "calculation expression N"].

[0112] Step 502, determine whether the current target value calculator is the last calculation expression in the targets parameter; if the current target value calculator is not the last calculation expression in the targets parameter, execute step 503; if the current target value calculator is the last calculation expression in the targets parameter, it means that the current tree node is a leaf node, and execute step 507.

[0113] Step 503: Calculate the corresponding learning value from the first behavior data according to the current target value calculator.

[0114] Step 504, query whether the current tree node contains the calculated learning value, that is, use the learning value to query the subtree node corresponding to the learning value in the current tree node; if the subtree node is found in the current tree node, execute step 506, otherwise execute step 505.

[0115] Step 505: create a new numerical learning tree node, associate the current learning value with the new numerical learning tree node, and save the association in the table of the current tree node (or called space table), and the association item is <learning value, subtree node>.

[0116] Step 506 , set the next level tree node corresponding to the queried learning value as the current tree node, set the next calculation expression of the current calculation expression in the targets parameter as the current target value calculator, and then go to step 502 for execution.

[0117] Step 507, calculating the corresponding learning value from the first behavior data according to the current target value calculator;

[0118] Step 508 , determine whether method is avg. If method = “avg”, execute step 509 ; if method is not avg, execute step 510 .

[0119] Step 509: Use the average learner to update the current value.

[0120] Step 510: Use the extreme value learner to update the current value.

[0121] Figure 6 This is one of the numerical behavior safety baseline calculation flow diagrams provided by the present invention, such as Figure 6 As shown, the method comprises the following steps:

[0122] Step 601: input the second behavior data and the numerical anomaly detection module.

[0123] Step 602: Calculate the detection value from the input second behavior data according to the calculation expression configured in the targets parameter.

[0124] Step 603: query the numerical learning tree according to the calculated detection value.

[0125] Step 604, determine whether the numerical learning tree can query the detection value; if the corresponding detection value cannot be queried in the numerical learning tree, or the numerical anomaly detection module reports that an anomaly is detected, execute step 605; if the corresponding detection value can be queried in the numerical learning tree, or the numerical anomaly detection module does not report a detection anomaly, execute step 606.

[0126] Step 605: output anomaly detection alarm data.

[0127] Step 606: No abnormality is detected, and the calculation of the numerical behavior security baseline ends.

[0128] Figure 7This is the second schematic diagram of the numerical behavior security baseline calculation process provided by the present invention, such as Figure 7 As shown, the method comprises the following steps:

[0129] Step 701: input the second behavior data and the numerical anomaly detection module.

[0130] Step 702: Set the root node of the numerical learning tree as the current tree node, and set the first calculation expression of the targets parameter as the current target value calculator.

[0131] Step 703, determine whether the current target value calculator is the last calculation expression of the targets parameter; if not, execute step 704; if it is, it means that the current node is a leaf node, execute step 707.

[0132] Step 704: Calculate the corresponding first detection value from the input second behavior data according to the current target value calculator.

[0133] Step 705 , query whether the current tree node contains the calculated first detection value; if it contains the calculated first detection value, execute step 706 ; if it does not contain the calculated first detection value, execute step 710 .

[0134] Step 706: Set the next level tree node corresponding to the first detection value found out as the current tree node, set the next calculation expression of the current calculation expression in the targets parameter as the current target value calculator, and then execute step 703.

[0135] Step 707: The current target value calculator calculates the corresponding first detection value from the input detection data, the current learner determines the second detection value based on each first detection value, and inputs the second detection value to the numerical anomaly detection module.

[0136] Step 708 : The numerical anomaly detection module determines whether an anomaly is detected based on the second detection value and the anomaly determination logic. If an anomaly is detected, step 709 is executed; if no anomaly is detected, step 710 is executed.

[0137] Step 709: Report that no abnormality is detected.

[0138] Step 710: Report the detected abnormality.

[0139] The numerical behavior security baseline generating device for security analysis provided by the present invention is described below. The numerical behavior security baseline generating device for security analysis described below and the numerical behavior security baseline generating method for security analysis described above can be referenced to each other.

[0140] Figure 8 is a schematic diagram of the structure of a numerical behavior security baseline generating device for security analysis provided by the present invention, such as Figure 8 As shown, the numerical behavior security baseline generation device for security analysis includes a first acquisition unit 801, a second acquisition unit 802 and a generation unit 803; wherein:

[0141] A first acquisition unit 801 is used to acquire first behavior data;

[0142] A second acquisition unit 802 is used to acquire method parameters and value-related parameters of the numerical behavior security baseline; wherein the method parameters are used to indicate the learner corresponding to the first behavior data; and the value-related parameters are used to indicate the numerical behavior information executed by the user;

[0143] The generating unit 803 is used to learn the first behavior data based on the method parameters and the value-related parameters to generate the numerical behavior security baseline.

[0144] The numerical behavior security baseline generation device for security analysis provided by an embodiment of the present invention obtains numerical related parameters of the numerical behavior security baseline, where the numerical related parameters are used to indicate the numerical behavior information executed by the user, and then learns the first behavior data based on the method parameters and the numerical related parameters to generate the numerical behavior security baseline, so as to realize automatic learning of the behavior data and generation of the numerical behavior security baseline without the operator having to specify parameters in advance, and then security analysis and anomaly detection can be performed based on the numerical behavior security baseline.

[0145] Based on any of the above embodiments, the method parameters include one of the following: a parameter corresponding to a maximum learner, a parameter corresponding to a minimum learner, and a parameter corresponding to an average learner;

[0146] The value-related parameters include at least one of the following:

[0147] A first calculation expression, used to learn the user information in the first behavior data;

[0148] The second calculation expression is used to learn the numerical behavior information in the first behavior data.

[0149] Based on any of the above embodiments, the generating unit 803 is specifically used for:

[0150] Using each calculation expression in the numerical value-related parameter in turn, calculate the learning value corresponding to each calculation expression from the first behavior data; wherein the learning value is a value corresponding to the numerical behavior information executed by the user;

[0151] The numerical behavior safety baseline is generated based on the method parameters and the learning values ​​corresponding to each calculation expression.

[0152] Based on any of the above embodiments, the numerical behavior security baseline is represented by a tree structure, and the tree structure includes a plurality of tree nodes; the generating unit 803 is further specifically used for:

[0153] Determine whether the current calculation expression is the last calculation expression in the value-related parameters;

[0154] In a case where the current calculation expression is not the last calculation expression in the value-related parameters, based on the current calculation expression, calculating a learning value corresponding to the current calculation expression from the first behavior data;

[0155] Query whether the current tree node contains a subtree node associated with the learning value;

[0156] In the case where the current tree node includes a subtree node associated with the learning value, setting the subtree node associated with the learning value as the current tree node, setting the next calculation expression of the current calculation expression in the value-related parameters as the current calculation expression, and returning to the step of determining whether the current calculation expression is the last calculation expression in the value-related parameters;

[0157] In the case that the current tree node does not contain a subtree node associated with the learned value, a new subtree node associated with the learned value is created, and the association relationship between the subtree node and the learned value is saved in the table of the current tree node, the subtree node is set as the current tree node, the next calculation expression of the current calculation expression in the numerical-related parameters is set as the current calculation expression, and the process returns to the step of determining whether the current calculation expression is the last calculation expression in the numerical-related parameters.

[0158] Based on any of the above embodiments, the generating unit 803 is further specifically configured to:

[0159] In a case where the current calculation expression is the last calculation expression in the numerical value-related parameters, the current calculation expression is used to calculate a learning value corresponding to the current calculation expression from the first behavior data.

[0160] Based on any of the above embodiments, the generating unit 803 is further specifically configured to:

[0161] Selecting a corresponding current learner based on the method parameters;

[0162] In the case where the current learner is a maximum learner, determining the numerical behavior safety baseline based on a maximum learning value among the learning values ​​corresponding to each calculation expression;

[0163] In the case where the current learner is a minimum learner, determining the numerical behavior safety baseline based on a minimum learning value among the learning values ​​corresponding to each calculation expression;

[0164] In the case where the current learner is an average learner, the numerical behavior safety baseline is determined based on an average learning value among the learning values ​​corresponding to the calculation expressions.

[0165] Based on any of the above embodiments, the device further includes a third acquisition unit, a detection unit, a first output unit and a second output unit;

[0166] The third acquisition unit is used to acquire the second behavior data and the numerical anomaly detection module;

[0167] The detection unit is used to detect the second behavior data according to the value-related parameter to obtain a first detection value corresponding to each calculation expression;

[0168] The first output unit is used to output abnormal detection alarm data when the calculation expression corresponding to the first detection value is not the last calculation expression and the first detection value is not found in the numerical behavior security baseline;

[0169] The second output unit is used to calculate each of the first detection values ​​based on the learner corresponding to the method parameters to obtain the second detection value when the calculation expression corresponding to the first detection value is the last calculation expression, and output abnormal detection alarm data when the second detection value is determined to be abnormal based on the numerical abnormality detection module.

[0170] Fig. 9 is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as Fig. 9 As shown, the electronic device 900 may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute a method for generating a numerical behavior security baseline for security analysis, the method comprising: obtaining first behavior data; obtaining method parameters and numerical-related parameters of a numerical behavior security baseline; wherein the method parameters are used to indicate a learner corresponding to the first behavior data; the numerical-related parameters are used to indicate numerical behavior information executed by a user; and the first behavior data is learned based on the method parameters and the numerical-related parameters to generate the numerical behavior security baseline.

[0171] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0172] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the numerical behavior security baseline generation method for security analysis provided by the above-mentioned methods, and the method includes: obtaining first behavior data; obtaining method parameters and numerical related parameters of the numerical behavior security baseline; wherein the method parameters are used to indicate a learner corresponding to the first behavior data; the numerical related parameters are used to indicate the numerical behavior information executed by the user; based on the method parameters and the numerical related parameters, the first behavior data is learned to generate the numerical behavior security baseline.

[0173] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for generating a numerical behavior security baseline for security analysis provided by the above-mentioned methods, the method comprising: obtaining first behavior data; obtaining method parameters and numerical-related parameters of the numerical behavior security baseline; wherein the method parameters are used to indicate a learner corresponding to the first behavior data; the numerical-related parameters are used to indicate the numerical behavior information executed by the user; and the first behavior data is learned based on the method parameters and the numerical-related parameters to generate the numerical behavior security baseline.

[0174] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a numerical behavior security baseline for security analysis, characterized in that: include: Get the first line of data; Obtaining method parameters and value-related parameters of a numerical behavior security baseline; wherein the method parameters are used to indicate a learner corresponding to the first behavior data; and the value-related parameters are used to indicate numerical behavior information executed by a user; Learning the first behavior data based on the method parameters and the value-related parameters to generate the value behavior security baseline; The value-related parameters include at least one of the following: A first calculation expression, used to learn the user information in the first behavior data; A second calculation expression, used to learn the numerical behavior information in the first behavior data; The learning the first behavior data based on the method parameter and the value-related parameter to generate the value behavior security baseline includes: Using each calculation expression in the numerical value-related parameter in turn, calculate the learning value corresponding to each calculation expression from the first behavior data; wherein the learning value is a value corresponding to the numerical behavior information executed by the user; Generate the numerical behavior safety baseline based on the method parameters and the learning values ​​corresponding to each calculation expression; The numerical behavior security baseline is represented by a tree structure, and the tree structure includes a plurality of tree nodes; the sequential use of each calculation expression in the numerical related parameter to calculate the learning value corresponding to each calculation expression from the first behavior data includes: Determine whether the current calculation expression is the last calculation expression in the value-related parameters; In a case where the current calculation expression is not the last calculation expression in the value-related parameters, based on the current calculation expression, calculating a learning value corresponding to the current calculation expression from the first behavior data; Query whether the current tree node contains a subtree node associated with the learning value; In the case where the current tree node includes a subtree node associated with the learning value, setting the subtree node associated with the learning value as the current tree node, setting the next calculation expression of the current calculation expression in the value-related parameters as the current calculation expression, and returning to the step of determining whether the current calculation expression is the last calculation expression in the value-related parameters; In the case that the current tree node does not contain a subtree node associated with the learned value, a new subtree node associated with the learned value is created, and the association relationship between the subtree node and the learned value is saved in the table of the current tree node, the subtree node is set as the current tree node, the next calculation expression of the current calculation expression in the numerical-related parameters is set as the current calculation expression, and the process returns to the step of determining whether the current calculation expression is the last calculation expression in the numerical-related parameters.

2. The method for generating a numerical behavior security baseline for security analysis according to claim 1, characterized in that: The method parameters include one of the following: a parameter corresponding to a maximum value learner, a parameter corresponding to a minimum value learner, and a parameter corresponding to an average value learner.

3. The method for generating a numerical behavior security baseline for security analysis according to claim 1, characterized in that: Also includes: In a case where the current calculation expression is the last calculation expression in the numerical value-related parameters, the current calculation expression is used to calculate a learning value corresponding to the current calculation expression from the first behavior data.

4. The method for generating a numerical behavior security baseline for security analysis according to claim 1, characterized in that: The generating the numerical behavior safety baseline based on the method parameters and the learning values ​​corresponding to each calculation expression includes: Selecting a corresponding current learner based on the method parameters; In the case where the current learner is a maximum learner, determining the numerical behavior safety baseline based on a maximum learning value among the learning values ​​corresponding to each calculation expression; In the case where the current learner is a minimum learner, determining the numerical behavior safety baseline based on a minimum learning value among the learning values ​​corresponding to each calculation expression; In the case where the current learner is an average learner, the numerical behavior safety baseline is determined based on an average learning value among the learning values ​​corresponding to the calculation expressions.

5. The method for generating a numerical behavior security baseline for security analysis according to any one of claims 1 to 4, characterized in that: After learning the first behavior data according to the value-related parameters to generate the value behavior security baseline, the method further includes: Obtain the second behavior data and the numerical anomaly detection module; Detect the second behavior data according to the value-related parameter to obtain a first detection value corresponding to each calculation expression; When the calculation expression corresponding to the first detection value is not the last calculation expression and the first detection value is not found in the numerical behavior security baseline, outputting abnormal detection alarm data; When the calculation expression corresponding to the first detection value is the last calculation expression, each of the first detection values ​​is calculated based on the learner corresponding to the method parameters to obtain the second detection value, and when the second detection value is determined to be abnormal based on the numerical anomaly detection module, the anomaly detection alarm data is output.

6. A numerical behavior security baseline generation device for security analysis, characterized in that: include: A first acquisition unit, used to acquire first behavior data; A second acquisition unit, used to acquire method parameters and value-related parameters of the numerical behavior security baseline; wherein the method parameters are used to indicate the learner corresponding to the first behavior data; and the value-related parameters are used to indicate the numerical behavior information executed by the user; A generating unit, configured to learn the first behavior data based on the method parameters and the value-related parameters to generate the value behavior security baseline; The value-related parameters include at least one of the following: A first calculation expression, used to learn user information in the first behavior data; A second calculation expression, used to learn the numerical behavior information in the first behavior data; The generating unit is specifically used for: Using each calculation expression in the numerical value-related parameter in turn, calculate the learning value corresponding to each calculation expression from the first behavior data; wherein the learning value is a value corresponding to the numerical behavior information executed by the user; Generate the numerical behavior safety baseline based on the method parameters and the learning values ​​corresponding to each calculation expression; The numerical behavior security baseline is represented by a tree structure, and the tree structure includes a plurality of tree nodes; the generating unit is further specifically used for: Determine whether the current calculation expression is the last calculation expression in the value-related parameters; In a case where the current calculation expression is not the last calculation expression in the value-related parameters, based on the current calculation expression, calculating a learning value corresponding to the current calculation expression from the first behavior data; Query whether the current tree node contains a subtree node associated with the learning value; In the case where the current tree node includes a subtree node associated with the learning value, setting the subtree node associated with the learning value as the current tree node, setting the next calculation expression of the current calculation expression in the value-related parameters as the current calculation expression, and returning to the step of determining whether the current calculation expression is the last calculation expression in the value-related parameters; In the case that the current tree node does not contain a subtree node associated with the learned value, a new subtree node associated with the learned value is created, and the association relationship between the subtree node and the learned value is saved in the table of the current tree node, the subtree node is set as the current tree node, the next calculation expression of the current calculation expression in the numerical-related parameters is set as the current calculation expression, and the process returns to the step of determining whether the current calculation expression is the last calculation expression in the numerical-related parameters.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for generating a numerical behavior security baseline for security analysis as described in any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a numerical behavior security baseline for security analysis as claimed in any one of claims 1 to 5 is implemented.

9. A computer program product having executable instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor implements the method for generating a numerical behavior security baseline for security analysis as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Abnormal network security behavior detection method and device, electronic equipment and storage medium

    CN113765881A