Real-time frequency behavior security baseline generation method and device for security analysis

By obtaining parameters related to the access frequency of access users, learning behavioral data and generating real-time frequency behavioral security baselines, it solves the problem that traditional security analysis methods are difficult to detect unknown network attacks, and achieves efficient anomaly detection and analysis.

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

Patent Information

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

AI Technical Summary

Technical Problem

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

Method used

By obtaining parameters related to access frequency of access users, using calculation expressions to learn behavioral data, generate real-time frequency behavior security baselines, and achieve automated anomaly detection and analysis.

Benefits of technology

It improves the detection efficiency of network attacks, can automatically generate frequency behavior security baselines without operators specifying parameters in advance, and enhances the efficiency of calculation and anomaly detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114640509B
    Figure CN114640509B
Patent Text Reader

Abstract

The present invention provides a method and device for generating a real-time frequency behavior security baseline for security analysis; wherein the method comprises: obtaining first behavior data and frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the frequency of a user visiting a website; and learning the first behavior data according to the frequency-related parameters to generate the frequency behavior security baseline. The present invention can achieve learning of behavior data and generating a corresponding frequency behavior security baseline, thereby improving the efficiency of calculation and anomaly detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a method and device for generating a real-time frequency 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 an urgent problem to be solved. Summary of the invention

[0004] The present invention provides a method and device for generating a real-time frequency behavior safety baseline for safety analysis.

[0005] The present invention provides a method for generating a real-time frequency behavior security baseline for security analysis, the method comprising:

[0006] Acquire the first behavior data and the frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the access frequency of the visiting user to the website;

[0007] The first behavior data is learned according to the frequency-related parameters to generate the frequency behavior safety baseline.

[0008] According to a method for generating a real-time frequency behavior security baseline for security analysis provided by the present invention, the frequency-related parameters include at least one of the following:

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

[0010] The second calculation expression is used to learn the user Internet Protocol IP and access frequency in the first behavior data.

[0011] According to a method for generating a real-time frequency behavior security baseline for security analysis provided by the present invention, the first behavior data is learned according to the frequency-related parameters to generate the frequency behavior security baseline, including:

[0012] Using each calculation expression in the frequency-related parameter in turn, learning a learning value related to each calculation expression from the first behavior data, and generating the frequency-behavior safety baseline based on the learning value;

[0013] The learning value is used to indicate the frequency of a user's visit to the website.

[0014] According to a real-time frequency behavior security baseline generation method for security analysis provided by the present invention, the step of sequentially using each calculation expression in the frequency-related parameter to learn a learning value related to each calculation expression from the first behavior data includes:

[0015] In the case where the current calculation expression is not the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating a learning value associated with the current calculation expression from the first behavior data; querying whether the current tree node contains a subtree node associated with the learning value;

[0016] 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, and setting the next calculation expression of the current calculation expression in the frequency-related parameter as the current calculation expression;

[0017] In the case that the current tree node does not contain a subtree node associated with the learning value, a new subtree node associated with the learning value is created, and the association relationship between the new subtree node and the learning value is saved in the table of the current tree node, the new subtree node is set as the current tree node, and the next calculation expression of the current calculation expression in the frequency-related parameters is set as the current calculation expression.

[0018] According to a real-time frequency behavior security baseline generation method for security analysis provided by the present invention, the step of sequentially using each calculation expression in the frequency-related parameter to learn a learning value related to each calculation expression from the first behavior data includes:

[0019] In the case where the current calculation expression is the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating the learning value related to the current calculation expression from the first behavior data; querying whether the frequency table includes a record item corresponding to the learning value; the content of the record item includes the association relationship between the learning value and the frequency value f1;

[0020] In the case where the record item is included in the frequency table, updating the frequency value in the record item to f1+1;

[0021] In the case that the record item is not included in the frequency table, a new record item associated with the learning value is created, and the frequency value in the new record item is 1; and the new record item is saved in the frequency table.

[0022] According to a method for generating a real-time frequency behavior safety baseline for safety analysis provided by the present invention, after learning the first behavior data according to the frequency-related parameters to generate the frequency behavior safety baseline, the method further includes:

[0023] Get the second behavior data;

[0024] The second behavior data is learned according to the frequency-related parameters to obtain a detection value; the detection value is queried in the frequency behavior safety baseline to obtain a query result; and whether an abnormality is detected in the second behavior data is determined according to the query result.

[0025] According to a real-time frequency behavior security baseline generation method for security analysis provided by the present invention, the second behavior data is learned according to the frequency-related parameters to obtain a detection value; the detection value is queried in the frequency behavior security baseline to obtain a query result; and whether an abnormality is detected in the second behavior data according to the query result includes:

[0026] In the case where the current calculation expression is not the last calculation expression in the frequency-related parameters, use the current calculation expression to calculate the detection value associated with the current calculation expression from the second behavior data; query whether the current tree node contains the subtree node associated with the detection value; in the case where the current tree node contains the subtree node associated with the detection value, set the subtree node associated with the detection value as the current tree node, and set the next calculation expression of the current calculation expression in the frequency-related parameters as the current calculation expression; or, in the case where the current tree node does not contain the subtree node associated with the detection value, determine that an abnormality is detected in the second behavior data, and output abnormality detection alarm data;

[0027] In the case where the current calculation expression is the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating the detection value related to the current calculation expression from the second behavior data; querying whether the frequency table of the current tree node includes a record item corresponding to the detection value; the content of the record item includes the association relationship between the detection value and the frequency value f2;

[0028] In a case where the record item is not included in the frequency table, determining that an abnormality is detected in the second behavior data, and outputting abnormality detection alarm data;

[0029] When the record item is included in the frequency table and the frequency value f2 exceeds a preset interval, it is determined that an abnormality is detected in the second behavior data, and abnormality detection alarm data is output.

[0030] The present invention also provides a real-time frequency behavior security baseline generation device for security analysis, the device comprising:

[0031] A first acquisition module is used to acquire the first behavior data and the frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the access frequency of the visiting user to the website;

[0032] A generation module is used to learn the first behavior data according to the frequency-related parameters to generate the frequency behavior safety baseline.

[0033] The present invention also 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, a real-time frequency behavior security baseline generation method for security analysis as described in any one of the above-mentioned methods is implemented.

[0034] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for generating a real-time frequency behavior security baseline for security analysis.

[0035] The present invention also provides a computer program product, comprising a computer program, which, when executed by a processor, implements any of the above-described methods for generating a real-time frequency behavior security baseline for security analysis.

[0036] The present invention provides a real-time frequency behavior security baseline generation method for security analysis, which obtains first behavior data and frequency-related parameters of the frequency behavior security baseline, and the frequency-related parameters are used to indicate the frequency of visits of visiting users to a website, and learns the first behavior data according to the frequency-related parameters to generate the frequency behavior security baseline. This allows the behavior data to be automatically learned and the frequency behavior security baseline to be generated without the operator having to specify parameters in advance, and further, security analysis and anomaly detection can be performed based on the frequency behavior security baseline, thereby improving the efficiency of calculation and anomaly detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the present invention or 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.

[0038] Figure 1 It is one of the flow charts of the method for generating a real-time frequency behavior security baseline for security analysis provided by the present invention;

[0039] Figure 2 This is the second flow chart of the method for generating a real-time frequency behavior security baseline for security analysis provided by the present invention;

[0040] Figure 3 It is a schematic diagram of the process of constructing a behavioral safety baseline provided by the present invention;

[0041] Figure 4 This is one of the frequency behavior safety baseline calculation flow diagrams provided by the present invention;

[0042] Figure 5 This is the second schematic diagram of the frequency behavior safety baseline calculation process provided by the present invention;

[0043] Figure 6 A schematic diagram of the structure of a real-time frequency behavior security baseline generating device for security analysis provided by the present invention;

[0044] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0046] The real-time frequency 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.

[0047] The present invention provides a real-time frequency behavior security baseline generation method for security analysis. The real-time frequency behavior security baseline generation method for security analysis can be applied to the scenario of security analysis and detection of network attacks, by obtaining first behavior data and frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the frequency of visits of visiting users to a website; the first behavior data is learned according to the frequency-related parameters to generate the frequency behavior security baseline, so that the behavior data can be automatically learned and the frequency behavior security baseline can be generated without the operator specifying parameters in advance, and then security analysis and anomaly detection can be performed based on the frequency behavior security baseline, thereby improving the efficiency of calculation and anomaly detection.

[0048] Figure 1 This is one of the flow charts of the method for generating a real-time frequency behavior security baseline for security analysis provided by the present invention, such as Figure 1 As shown, the method includes steps 101-102, wherein:

[0049] Step 101, obtaining first behavior data and frequency-related parameters of a frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the frequency of a visiting user visiting a website.

[0050] Step 102: learning the first behavior data according to the frequency-related parameters to generate the frequency behavior safety baseline.

[0051] It should be noted that the real-time frequency behavior security baseline generation method for security analysis provided by the present invention can be applicable to the scenario of security analysis and detection of network attacks. The execution subject of the method can be a real-time frequency behavior security baseline generation device for security analysis, such as an electronic device, or a control module for executing the real-time frequency behavior security baseline generation method for security analysis in the real-time frequency behavior security baseline generation device for security analysis. For example, the electronic device includes a mobile phone, a tablet computer or a desktop computer.

[0052] In practice, the learning content of the frequency behavior security baseline includes: the frequency of users visiting the website, such as the frequency of users visiting the current website using their IP addresses.

[0053] The frequency-related parameter in the present invention is used to indicate the access frequency of the visiting user to the website. Optionally, the frequency-related parameter includes at least one of the following:

[0054] a) a first calculation expression, used to learn access user information in the first behavior data;

[0055] b) A second calculation expression is used to learn the user Internet Protocol (IP) and access frequency in the first behavior data.

[0056] The frequency-related parameters (targets parameters) can be defined as: targets = ["calculation expression 1", "calculation expression 2", ..., "calculation expression N"].

[0057] For example, targets = [fields["visiting user"], fields["user IP"], this target means learning the access frequency of each visiting user's access IP.

[0058] The configuration example of the frequency behavior security baseline is:

[0059] frequencyModel(targets=[fields["visiting user"], fields["user IP"]), indicates that the frequency behavior security baseline learning content is the access frequency of the current website access user's access IP.

[0060] In practice, the behavior data of a device may include network data and / or logs, etc.

[0061] The present invention provides a real-time frequency behavior security baseline generation method for security analysis, which obtains first behavior data and frequency-related parameters of the frequency behavior security baseline, and the frequency-related parameters are used to indicate the frequency of visits of visiting users to a website, and learns the first behavior data according to the frequency-related parameters to generate the frequency behavior security baseline. This allows the behavior data to be automatically learned and the frequency behavior security baseline to be generated without the operator having to specify parameters in advance, and further, security analysis and anomaly detection can be performed based on the frequency behavior security baseline, thereby improving the efficiency of calculation and anomaly detection.

[0062] Optionally, after learning the first behavior data according to the frequency-related parameters to generate the frequency behavior security baseline, security analysis and anomaly detection may be performed based on the frequency behavior security baseline. The specific frequency behavior security baseline calculation process may include steps 1) to 3), specifically:

[0063] Step 1) Obtain the second behavior data.

[0064] Step 2) learning the second behavior data according to the frequency-related parameters to obtain a detection value.

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

[0066] Step 3) querying the detection value in the frequency behavior security baseline to obtain a query result; determining whether an abnormality is detected in the second behavior data according to the query result. If an abnormality is detected in the second behavior data, outputting abnormality detection alarm data.

[0067] For example, when the current calculation expression is not the last calculation expression in the frequency-related parameters, use the current calculation expression to calculate the detection value associated with the current calculation expression from the second behavior data; query whether the current tree node contains the subtree node associated with the detection value; when the current tree node contains the subtree node associated with the detection value, set the subtree node associated with the detection value as the current tree node, and set the next calculation expression of the current calculation expression in the frequency-related parameters as the current calculation expression; or, when the current tree node does not contain the subtree node associated with the detection value, determine that an abnormality is detected in the second behavior data, and output abnormality detection alarm data;

[0068] For another example, when the current calculation expression is the last calculation expression in the frequency-related parameters, the current calculation expression is used to calculate the detection value related to the current calculation expression from the second behavior data; the frequency table of the current tree node is queried whether the record item corresponding to the detection value is included; the content of the record item includes the association between the detection value and the frequency value f2; when the record item is not included in the frequency table, it is determined that an abnormality is detected in the second behavior data, and abnormality detection alarm data is output; when the record item is included in the frequency table and the frequency value f2 exceeds the preset interval, it is determined that an abnormality is detected in the second behavior data, and abnormality detection alarm data is output.

[0069] Figure 2 This is the second flow chart of the method for generating a real-time frequency behavior security baseline for security analysis provided by the present invention, such as Figure 2 As shown, the method includes steps 201 to 203, wherein:

[0070] Step 201, obtaining first behavior data and frequency-related parameters of a frequency behavior safety baseline.

[0071] Step 202, using each calculation expression in the frequency-related parameters in turn, learns a learning value related to each calculation expression from the first behavior data; wherein the learning value is used to indicate the frequency of visits of the visiting user to the website.

[0072] Step 203: Generate the frequency behavior safety baseline based on the learning value.

[0073] Optionally, a tree structure is used to represent the frequency behavior security baseline as a frequency learning tree.

[0074] In the above step 202, the implementation method of sequentially using each calculation expression in the frequency-related parameter to learn the learning value related to each calculation expression from the first behavior data may include:

[0075] Mode 1: when the current calculation expression is not the last calculation expression in the frequency-related parameters, use the current calculation expression to calculate the learning value related 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;

[0076] 1) when the current tree node includes a subtree node associated with the learning value, the subtree node associated with the learning value is set as the current tree node, and the next calculation expression of the current calculation expression in the frequency-related parameter is set as the current calculation expression; or,

[0077] 2) When the current tree node does not contain a subtree node associated with the learning value, a new subtree node associated with the learning value is created, and the association relationship between the new subtree node and the learning value is saved in the table of the current tree node, the new subtree node is set as the current tree node, and the next calculation expression of the current calculation expression in the frequency-related parameters is set as the current calculation expression.

[0078] Method 2: When the current calculation expression is the last calculation expression in the frequency-related parameters, use the current calculation expression to calculate the learning value related to the current calculation expression from the first behavior data; query whether the frequency table of the current tree node includes a record item corresponding to the learning value; the content of the record item includes the association relationship between the learning value and the frequency value f1; when the record item is included in the frequency table, update the frequency value in the record item to f1+1; or, when the record item is not included in the frequency table, create a new record item associated with the learning value, and the frequency value in the new record item is 1; save the new record item in the frequency table.

[0079] Figure 3 is a flow chart of the behavioral safety baseline construction process provided by the present invention, such as Figure 3 As shown, the method includes steps 301 to 310, wherein:

[0080] Step 301, set the frequency learning tree root node as the current tree node, and set the first calculation expression in the targets parameter as the current target value calculator.

[0081] Optionally, a tree structure is used to represent the frequency behavior safety baseline as a frequency learning tree. The frequency-related parameters of the frequency behavior safety baseline are recorded as targets parameters, where targets parameters = ["calculation expression 1", "calculation expression 2", ..., "calculation expression N"].

[0082] Step 302, determine whether the current target value calculator is the last one of the targets parameters, if not, execute step 303; if yes, it means that the current node is a leaf node, execute step 307.

[0083] Step 303, the calculator calculates the corresponding learning value from the input data according to the current target value.

[0084] Step 304, 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, execute step 306; if the subtree node is not found, execute step 305.

[0085] Step 305: create a new frequency learning tree node, associate the current learning value with the new frequency learning tree node, and save the association in the table of the current tree node, where the association item is <learning value, subtree node>.

[0086] Step 306 , 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 execute step 302 .

[0087] Step 307, the calculator calculates the corresponding learning value from the input data according to the current target value.

[0088] Step 308, query whether the record item <learning value, frequency value> corresponding to the learning value can be found in the frequency table. If it is found, execute step 309; if not, execute step 310.

[0089] Step 309, update the record item to <learning value, frequency value+1>.

[0090] Step 310: create a new <learning value, 1> record item and save the record item in the frequency table.

[0091] Figure 4 This is one of the frequency behavior safety baseline calculation flow diagrams provided by the present invention, such as Figure 4 As shown, the method includes steps 401 to 406, wherein:

[0092] Step 401, input <detection data, frequency anomaly calculator>.

[0093] Step 402, calculating the detection value from the input detection data according to the calculation expression configured in the targets parameter.

[0094] Step 403: query the frequency learning tree according to the calculated <detection value, frequency anomaly calculator>.

[0095] Step 404, based on the detection value calculated by the targets parameter, determine whether the frequency learning tree and the frequency anomaly calculator > report a detected anomaly: if an anomaly is reported, execute step 405; otherwise, execute step 406.

[0096] Step 405: output anomaly detection alarm data.

[0097] Step 406: Report that no abnormality is detected, and end the frequency behavior safety baseline calculation.

[0098] Figure 5 This is the second schematic diagram of the frequency behavior safety baseline calculation process provided by the present invention, such as Figure 5 As shown, the method includes steps 501 to 512, wherein:

[0099] Step 501, input <detection data, frequency anomaly calculator>.

[0100] Step 502, set the frequency learning tree root node as the current tree node, and set the first calculation expression of the targets parameter as the current target value calculator.

[0101] Step 503, determine whether the current target value calculator is the last one of the targets parameters, if not, execute step 504; if yes, it means that the current node is a leaf node, execute step 507.

[0102] Step 504, the current target value calculator calculates the corresponding detection value from the input detection data.

[0103] Step 505, use the detection value to query the subtree node corresponding to the detection value in the current tree node, and query whether the current tree node contains the calculated detection value: if the subtree node is found, execute step 506; if not, execute step 512.

[0104] Step 506 , set the next level tree node corresponding to the queried detection 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 execute step 503 .

[0105] Step 507, calculating the corresponding detection value from the input detection data according to the current target value calculator.

[0106] Step 508, query whether the frequency table of the current tree node contains the record item <detection value, frequency value> corresponding to the calculated detection value: if it does, execute step 509; if not, execute step 512.

[0107] Step 509: input <detection value, frequency value> into the frequency anomaly calculator.

[0108] Step 510, determining whether the result value calculated by the frequency anomaly calculator is a detected anomaly, if the result value is a detected anomaly, executing step 512; otherwise, executing step 511.

[0109] Step 511, report that no abnormality is detected.

[0110] Step 512, report that an abnormality has been detected.

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

[0112] Figure 6 A schematic diagram of the structure of a real-time frequency behavior safety baseline generation device for safety analysis provided by the present invention, such as Figure 6 As shown, the real-time frequency behavior safety baseline generation device 600 for safety analysis includes: a first acquisition module 601 and a generation module 602; wherein,

[0113] The first acquisition module 601 is used to acquire the first behavior data and the frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the access frequency of the visiting user to the website;

[0114] The generating module 602 is used to learn the first behavior data according to the frequency-related parameters to generate the frequency behavior safety baseline.

[0115] The real-time frequency behavior security baseline generation device for security analysis provided by the present invention obtains first behavior data and frequency-related parameters of the frequency behavior security baseline, and the frequency-related parameters are used to indicate the frequency of visits of visiting users to a website, and learns the first behavior data according to the frequency-related parameters to generate the frequency behavior security baseline. This realizes automatic learning of the behavior data and generation of the frequency behavior security baseline without the operator having to specify parameters in advance, and furthermore, security analysis and anomaly detection can be performed based on the frequency behavior security baseline, thereby improving the efficiency of calculation and anomaly detection.

[0116] Optionally, the frequency-related parameters include at least one of the following:

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

[0118] The second calculation expression is used to learn the user Internet Protocol IP and access frequency in the first behavior data.

[0119] Optionally, the generating module 602 is specifically configured to sequentially use each calculation expression in the frequency-related parameter to learn a learning value related to each calculation expression from the first behavior data, and generate the frequency-behavior safety baseline based on the learning value;

[0120] The learning value is used to indicate the frequency of a user's visit to the website.

[0121] Optionally, the generating module 602 is specifically configured to:

[0122] In the case where the current calculation expression is not the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating a learning value associated with the current calculation expression from the first behavior data; querying whether the current tree node contains a subtree node associated with the learning value;

[0123] 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, and setting the next calculation expression of the current calculation expression in the frequency-related parameter as the current calculation expression;

[0124] In the case that the current tree node does not contain a subtree node associated with the learning value, a new subtree node associated with the learning value is created, and the association relationship between the new subtree node and the learning value is saved in the table of the current tree node, the new subtree node is set as the current tree node, and the next calculation expression of the current calculation expression in the frequency-related parameters is set as the current calculation expression.

[0125] Optionally, the generating module 602 is specifically configured to:

[0126] In the case where the current calculation expression is the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating the learning value related to the current calculation expression from the first behavior data; querying whether the frequency table includes a record item corresponding to the learning value; the content of the record item includes the association relationship between the learning value and the frequency value f1;

[0127] In the case where the record item is included in the frequency table, updating the frequency value in the record item to f1+1;

[0128] In the case that the record item is not included in the frequency table, a new record item associated with the learning value is created, and the frequency value in the new record item is 1; and the new record item is saved in the frequency table.

[0129] Optionally, the device further comprises:

[0130] A second acquisition module, used to acquire second behavior data;

[0131] A detection module is used to learn the second behavior data according to the frequency-related parameters to obtain a detection value; query the detection value in the frequency behavior safety baseline to obtain a query result; and determine whether an abnormality is detected in the second behavior data according to the query result.

[0132] Optionally, the detection module is specifically used to:

[0133] In the case where the current calculation expression is not the last calculation expression in the frequency-related parameters, use the current calculation expression to calculate the detection value associated with the current calculation expression from the second behavior data; query whether the current tree node contains the subtree node associated with the detection value; in the case where the current tree node contains the subtree node associated with the detection value, set the subtree node associated with the detection value as the current tree node, and set the next calculation expression of the current calculation expression in the frequency-related parameters as the current calculation expression; or, in the case where the current tree node does not contain the subtree node associated with the detection value, determine that an abnormality is detected in the second behavior data, and output abnormality detection alarm data;

[0134] In the case where the current calculation expression is the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating the detection value related to the current calculation expression from the second behavior data; querying whether the frequency table of the current tree node includes a record item corresponding to the detection value; the content of the record item includes the association relationship between the detection value and the frequency value f2;

[0135] In a case where the record item is not included in the frequency table, determining that an abnormality is detected in the second behavior data, and outputting abnormality detection alarm data;

[0136] When the record item is included in the frequency table and the frequency value f2 exceeds a preset interval, it is determined that an abnormality is detected in the second behavior data, and abnormality detection alarm data is output.

[0137] Figure 7is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 7 As shown, the electronic device 700 includes: a processor 710, a communication interface 720, a memory 730 and a communication bus 740; wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call the logic instructions in the memory 730 to execute a real-time frequency behavior security baseline generation method for security analysis, the method comprising: obtaining first behavior data and frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the access frequency of the visiting user to the website; and learning the first behavior data according to the frequency-related parameters to generate the frequency behavior security baseline.

[0138] In addition, the logic instructions in the above-mentioned memory 730 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, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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 each embodiment 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 and other media that can store program codes.

[0139] 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 real-time frequency behavior security baseline generation method for security analysis provided by the above methods, and the method includes: obtaining first behavior data and frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the frequency of visits of visiting users to a website; and learning the first behavior data according to the frequency-related parameters to generate the frequency behavior security baseline.

[0140] 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 real-time frequency behavior security baseline generation method for security analysis provided by the above-mentioned methods, the method comprising: obtaining first behavior data and frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the frequency of visits of visiting users to a website; and learning the first behavior data according to the frequency-related parameters to generate the frequency behavior security baseline.

[0141] 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.

[0142] 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.

[0143] 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 real-time frequency behavior security baseline for security analysis, characterized in that: The method comprises: Acquire the first behavior data and the frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the access frequency of the visiting user to the website; Learning the first behavior data according to the frequency-related parameters to generate the frequency behavior safety baseline; The learning the first behavior data according to the frequency-related parameters to generate the frequency behavior safety baseline includes: Using each calculation expression in the frequency-related parameter in turn, learning a learning value related to each calculation expression from the first behavior data, and generating the frequency behavior security baseline based on the learning value; wherein the learning value is used to indicate the access frequency of the visiting user to the website; The step of sequentially using each calculation expression in the frequency-related parameter to learn a learning value related to each calculation expression from the first behavior data includes: The frequency behavior safety baseline is represented as a frequency learning tree using a tree structure; In the case where the current calculation expression is not the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating a learning value associated with the current calculation expression from the first behavior data; querying whether the current tree node of the frequency learning tree 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, and setting the next calculation expression of the current calculation expression in the frequency-related parameter as the current calculation expression; In the case that the current tree node does not contain a subtree node associated with the learning value, a new subtree node associated with the learning value is created, and the association relationship between the new subtree node and the learning value is saved in the table of the current tree node, the new subtree node is set as the current tree node, and the next calculation expression of the current calculation expression in the frequency-related parameters is set as the current calculation expression.

2. The method for generating a real-time frequency behavior security baseline for security analysis according to claim 1, characterized in that: The frequency-related parameters include at least one of the following: A first calculation expression, used to learn the access user information in the first behavior data; The second calculation expression is used to learn the user Internet Protocol IP and access frequency in the first behavior data.

3. The method for generating a real-time frequency behavior security baseline for security analysis according to claim 1, characterized in that: The step of sequentially using each calculation expression in the frequency-related parameter to learn a learning value related to each calculation expression from the first behavior data includes: In the case where the current calculation expression is the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating the learning value related to the current calculation expression from the first behavior data; querying whether the frequency table includes a record item corresponding to the learning value; the content of the record item includes the association relationship between the learning value and the frequency value f1; In the case where the record item is included in the frequency table, updating the frequency value in the record item to f1+1; In the case that the record item is not included in the frequency table, a new record item associated with the learning value is created, and the frequency value in the new record item is 1; and the new record item is saved in the frequency table.

4. The method for generating a real-time frequency behavior security baseline for security analysis according to claim 1, characterized in that: After learning the first behavior data according to the frequency-related parameters to generate the frequency behavior safety baseline, the method further includes: Get the second behavior data; The second behavior data is learned according to the frequency-related parameters to obtain a detection value; the detection value is queried in the frequency behavior safety baseline to obtain a query result; and whether an abnormality is detected in the second behavior data is determined according to the query result.

5. The method for generating a real-time frequency behavior security baseline for security analysis according to claim 4, characterized in that: said learning the second behavior data according to the frequency-related parameter to obtain a detection value; Querying the detection value in the frequency behavior safety baseline to obtain a query result; Determining whether an anomaly is detected in the second behavior data according to the query result includes: In the case where the current calculation expression is not the last calculation expression in the frequency-related parameters, use the current calculation expression to calculate the detection value associated with the current calculation expression from the second behavior data; query whether the current tree node contains the subtree node associated with the detection value; in the case where the current tree node contains the subtree node associated with the detection value, set the subtree node associated with the detection value as the current tree node, and set the next calculation expression of the current calculation expression in the frequency-related parameters as the current calculation expression; or, in the case where the current tree node does not contain the subtree node associated with the detection value, determine that an abnormality is detected in the second behavior data, and output abnormality detection alarm data; In the case where the current calculation expression is the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating the detection value related to the current calculation expression from the second behavior data; querying whether the frequency table of the current tree node includes a record item corresponding to the detection value; the content of the record item includes the association relationship between the detection value and the frequency value f2; In a case where the record item is not included in the frequency table, determining that an abnormality is detected in the second behavior data, and outputting abnormality detection alarm data; When the record item is included in the frequency table and the frequency value f2 exceeds a preset interval, it is determined that an abnormality is detected in the second behavior data, and abnormality detection alarm data is output.

6. A real-time frequency behavior security baseline generation device for security analysis, characterized in that: The device comprises: A first acquisition module is used to acquire the first behavior data and the frequency-related parameters of the frequency behavior security baseline; wherein the frequency-related parameters are used to indicate the access frequency of the visiting user to the website; A generating module, configured to learn the first behavior data according to the frequency-related parameters to generate the frequency behavior safety baseline; The generation module is specifically used to sequentially use each calculation expression in the frequency-related parameter to learn a learning value related to each calculation expression from the first behavior data, and generate the frequency behavior security baseline based on the learning value; wherein the learning value is used to indicate the access frequency of the visiting user to the website; The generating module is also specifically used for: The frequency behavior safety baseline is represented as a frequency learning tree using a tree structure; In the case where the current calculation expression is not the last calculation expression in the frequency-related parameters, using the current calculation expression, calculating a learning value associated with the current calculation expression from the first behavior data; querying whether the current tree node of the frequency learning tree 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, and setting the next calculation expression of the current calculation expression in the frequency-related parameter as the current calculation expression; In the case that the current tree node does not contain a subtree node associated with the learning value, a new subtree node associated with the learning value is created, and the association relationship between the new subtree node and the learning value is saved in the table of the current tree node, the new subtree node is set as the current tree node, and the next calculation expression of the current calculation expression in the frequency-related parameters is set as the current calculation expression.

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 real-time frequency behavior security baseline generation method 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 real-time frequency behavior security baseline generation method for security analysis as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Database security detection method, device and equipment, and storage medium

    CN111159706A