Data security early warning method and device and electronic equipment

By calculating security values ​​based on historical data on network nodes, active early warning solves the problem of the inability of existing technologies to defend against network security risks and achieves active security defense for network nodes.

CN118802289AActive Publication Date: 2024-10-18CHINA MOBILE GROUP ZHEJIANG +3
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410352985.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-10-18
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

Existing technology cannot proactively defend against security risks of network nodes and can only perform passive defense after being attacked.

Method used

By determining the target sampling period based on the historical data of the target node, the target information is obtained, the safety value is calculated, and a safety warning is issued when the safety value is greater than the preset threshold to achieve active defense.

Benefits of technology

Effectively assess and early-warn the security risks of network nodes, avoid waiting for security risks to appear before defending, and improve the proactive defense capabilities of network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802289A_ABST
    Figure CN118802289A_ABST
Patent Text Reader

Abstract

The invention discloses a data security early warning method and device and electronic equipment, and belongs to the field of computers. The method comprises the steps of determining a target sampling period of a target node based on historical data of the target node in a historical time period; acquiring target information obtained by performing data sampling on the target node in the target sampling period; calculating a security value of the target node based on the target information; the security value is used for evaluating the security risk of the target node; and when the safety value is greater than a preset threshold value, performing safety early warning on the target node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computers, and specifically relates to a data security early warning method, device and electronic equipment. Background Art

[0002] With the advent of the big data era, a large amount of data will be gathered at network nodes. However, network nodes are prone to network attacks, which brings security risks to data. In addition, with the development of big data technology, the forms and channels of network attacks have also become diverse. Therefore, the network security of nodes has received widespread attention.

[0003] Related technologies usually use firewalls and other technologies to prevent nodes from network attacks. However, this method can only perform passive defense after being attacked, and there is a problem of being unable to actively defend against security risks. Summary of the invention

[0004] The embodiments of the present application provide a data security early warning method, device and electronic device, which can solve the problem that related technologies cannot actively defend against security risks.

[0005] In a first aspect, an embodiment of the present application provides a data security early warning method, comprising:

[0006] Determining a target sampling period of the target node based on historical data of the target node within a historical time period;

[0007] Acquire target information obtained by sampling data on the target node within the target sampling period;

[0008] Based on the target information, a security value of the target node is calculated; the security value is used to evaluate the security risk of the target node;

[0009] When the safety value is greater than a preset threshold, a safety warning is issued to the target node.

[0010] In a second aspect, an embodiment of the present application provides a data security early warning device, including:

[0011] A determination module, used to determine a data sampling period of the target node based on historical data of the target node within a historical time period;

[0012] An acquisition module, used to acquire target information obtained by sampling data from the target node within the target sampling period;

[0013] A calculation module, configured to calculate a security value of the target node based on the target information; the security value is used to evaluate the security risk of the target node;

[0014] The early warning module is used to issue a safety early warning to the target node when the safety value is greater than a preset threshold.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect are implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in the first aspect.

[0018] At least one of the above technical solutions provided in the embodiments of the present application can achieve the following technical effects:

[0019] In an embodiment of the present application, based on the historical data of the target node within the historical time period, the target sampling period of the target node is determined; the target information obtained by sampling the data of the target node within the target sampling period is obtained; based on the target information, the safety value of the target node is calculated; the safety value is used to evaluate the safety risk of the target node; when the safety value is greater than a preset threshold, a safety warning is issued to the target node. In this way, the target sampling period of the target node can be determined through the historical data of the target node, the safety value of the target node can be calculated based on the information obtained from the target sampling period, and the safety risk of the target node can be evaluated through the safety value. When the safety value is greater than the preset threshold, a safety warning is issued to the target node. This method does not require passive defense until a safety hazard occurs in the target node, and can actively defend by evaluating the safety risk through the safety value, which solves the problem that the related technology cannot actively defend against safety risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0021] Figure 1This is a flow chart of a data security early warning method provided by an embodiment of the present application;

[0022] Figure 2 This is a flow chart of a data security early warning method provided by an embodiment of the present application;

[0023] Figure 3 This is a flow chart of a data security early warning method provided by an embodiment of the present application;

[0024] Figure 4 This is a complete flow chart of a data security early warning method provided by an embodiment of the present application;

[0025] Figure 5 It is a structural block diagram of a data security early warning device provided in an embodiment of the present application;

[0026] Figure 6 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0029] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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.

[0030] The data security warning method provided in the embodiment of the present application is applied to network security detection, and in particular, can be applied to data security warning of network nodes. Specifically, the security value of the target node can be determined in real time, and then a security warning can be issued to the target node when the security value is greater than a preset threshold.

[0031] The data security early warning method provided in the embodiment of the present application can be executed by a target device, wherein the target device can be an electronic device or multiple electronic devices. In other words, the data security early warning method provided in the embodiment of the present application can be executed by an electronic device, wherein the electronic device can be a security device (for example, a security intrusion detection device), or a terminal device such as a desktop computer, a laptop computer, a mobile phone, a tablet, or a server, such as an independent physical server, a server cluster composed of multiple servers, and a cloud server capable of cloud computing. In the case where the data security early warning method provided in the embodiment of the present application is executed by multiple electronic devices, these multiple electronic devices can form a service cluster, which cooperate with each other to complete each step.

[0032] The data security warning method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0033] See also Figure 1 , Figure 1 A flowchart of a data security early warning method provided in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0034] Step 110: determining a target sampling period of the target node based on historical data of the target node in a historical time period;

[0035] In an embodiment of the present application, the target node may be a single network device or a device network composed of multiple network devices (e.g., a small device network). The historical time period may be a continuous historical time period, which may be set manually, such as 20 minutes in history. The historical data may include the network traffic data of the target node within the historical time period. The fluctuation of the network traffic data may reflect the attack situation of the target node to a certain extent. For example, if there is a time point when the network traffic data suddenly decreases, the sudden decrease in the network traffic data at this time point may be because the target node is attacked near this time point.

[0036] In an embodiment of the present application, the target sampling period may be a time period after the historical time period, for example, a current time period. At the same time, the target sampling period of the target node may be determined according to the fluctuation of the historical data. Specifically, if the frequency of fluctuations in the historical data is high, a smaller target sampling period may be determined; if the frequency of fluctuations in the historical data is low, a larger target sampling period may be determined.

[0037] In one embodiment of the present application, the historical data includes the attacked data of the target node and the network traffic data other than the attacked data. The data sampling period of the target node is determined based on the historical data of the target node in the historical time period, including: determining a first average time difference based on the network traffic data, wherein the first average time difference is the average value of at least one first time difference, and the at least one first time difference is obtained based on the time points at which multiple maximum values ​​of the network traffic data appear; determining a second average time difference based on the attacked data and the network traffic data, wherein the second average time difference is the average value of at least one second time difference, and the at least one second time difference is obtained based on the time points at which multiple maximum values ​​of the network traffic data appear and the attack time points of the attacked data; determining an average attack value based on the attacked data; determining the data sampling period of the target node based on the first average time difference, the second average time difference and the average attack value.

[0038] Step 120: Acquire target information obtained by sampling data on the target node within the target sampling period;

[0039] In the embodiment of the present application, the data of the target node can be sampled in real time through the target sampling period. In addition, since the target sampling period is determined based on the historical data of the target node, the sampled data within the target sampling period can reflect the data characteristics of the target node itself. The target information may include the attacked data of the target node within the target sampling period. Through the attacked data of the target node, further analysis can be performed to determine the security risk of the target node being actually attacked.

[0040] In one embodiment of the present application, the target information may include vulnerability information of the target node and vulnerability information of adjacent nodes of the target node. The stability of the target node can be analyzed through the vulnerability information of the target node and the vulnerability information of adjacent nodes of the target node. The stability of the target node can also reflect the security risk of the target node being actually attacked to a certain extent.

[0041] Step 130: Calculate the security value of the target node based on the target information; the security value is used to evaluate the security risk of the target node;

[0042] In the embodiment of the present application, in order to further quantify the security risk of the target node, the security value of the target node can be calculated based on the data in the target information. At the same time, the security value of the target node can be evaluated once every target sampling period, and the security value of the target node can be determined in real time, and a security warning can be issued in time.

[0043] In an embodiment of the present application, the target sampling period can be dynamically determined based on the data characteristics of the dynamically changing historical time period. Specifically, when the real-time sampled data changes dynamically, the historical time period will also change, and the data in the historical time period will also change accordingly. Based on the data characteristics that change dynamically in the historical time period, the target sampling period can be dynamically determined. Data sampling can be performed in real time based on the latest target sampling period, and the safety value of the current target node can be determined.

[0044] In one embodiment of the present application, the target information includes vulnerability information of the target node, attacked data of the target node, vulnerability information of neighboring nodes of the target node, and attacked data of neighboring nodes of the target node; there is a connection relationship between the target node and the neighboring nodes. The calculation of the security value of the target node based on the target information includes: calculating the stability of the target node based on the vulnerability information of the target node and the vulnerability information of the neighboring nodes of the target node; calculating the target impact value of the target node and the target impact value of the neighboring nodes of the target node based on the attacked data of the target node and the attacked data of the neighboring nodes of the target node; calculating the security value of the target node based on the stability, the target impact value of the target node, and the target impact value of the neighboring nodes of the target node.

[0045] Step 140: When the safety value is greater than a preset threshold, a safety warning is issued to the target node.

[0046] In the embodiment of the present application, after determining the safety value of the target node, since the safety value is used to evaluate the safety risk of the target node. When the safety value is greater than a preset threshold, it can be considered that the safety risk of the target node is relatively large, and a safety warning needs to be issued to the target node. The preset threshold can be a threshold of the safety value of the node with potential safety hazards, which can be set manually based on experience and is not limited here.

[0047] In an embodiment of the present application, the data sampling period of the target node is determined based on the historical data of the target node within the historical time period; the target information obtained by sampling the data of the target node within the target sampling period is obtained; based on the target information, the safety value of the target node is calculated; the safety value is used to evaluate the safety risk of the target node; when the safety value is greater than a preset threshold, a safety warning is issued to the target node. In this way, the target sampling period of the target node can be determined through the historical data of the target node, the safety value of the target node can be calculated based on the information obtained from the target sampling period, and the safety risk of the target node can be evaluated through the safety value. When the safety value is greater than the preset threshold, a safety warning is issued to the target node. This method does not require passive defense until a safety hazard occurs in the target node, and can actively defend by evaluating the safety risk through the safety value, which solves the problem that the related technology cannot actively defend against safety risks.

[0048] See also Figure 2 , Figure 2 A flowchart of a data security early warning method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method comprises the following steps:

[0049] Step 210: determining a first average time difference based on the network traffic data of the target node in the historical time period, wherein the first average time difference is an average value of at least one first time difference, and the at least one first time difference is obtained based on time points at which multiple maximum values ​​of the network traffic data appear;

[0050] In an embodiment of the present application, the time point at which the maximum value of the network traffic data of the target node occurs within the historical time period can be determined. The maximum value refers to an extremely short time period within the historical time period. In this time period, except for the maximum value time point, the network traffic data at other time points are all smaller than the network traffic data at the maximum value time point. The fluctuation of the network traffic data of the target node can be determined through the maximum value point, and at the same time, the first average time difference can be used to estimate the fluctuation period of the network traffic data of the target node.

[0051] Exemplarily, in one embodiment of the present application, the first average time difference is determined based on the network traffic data of the target node within the historical time period in step 410, including: obtaining M maximum values ​​of the network traffic data, where M is an integer greater than 1; obtaining the time point at which each of the M maximum values ​​occurs, to obtain M time points; calculating, in chronological order, the first time difference between two time points corresponding to two adjacent maximum values ​​among the M time points; and determining the first average time difference based on the first time difference between two time points corresponding to the two adjacent maximum values.

[0052] In an embodiment of the present application, the network traffic data of the target node in the historical time period can be obtained, the maximum value in the network traffic data can be determined, and the M maximum values ​​can be sorted from far to near in the time order of the maximum values ​​to obtain a maximum value set including M maximum value time points. For each maximum value time point in the maximum value set, the first time difference between the maximum value time point and the previous maximum value time point can be determined, and M-1 first time differences can be determined. The first average time difference can be determined by calculating the average value of the M-1 first time differences.

[0053] In one embodiment of the present application, a first time difference of the first maximum time point in the maximum value set may be preset. Accordingly, M time differences may be determined, and the average of the M time differences may be determined as the first average time difference.

[0054] Step 220: Determine a second average time difference based on the attacked data and the network traffic data, wherein the second average time difference is an average value of at least one second time difference, and the at least one second time difference is obtained based on time points at which multiple maximum values ​​of the network traffic data appear and attack time points of the attacked data;

[0055] In an embodiment of the present application, the attacked data may be data describing the situation in which the target node is attacked, and may be obtained from the log of security software such as a firewall on the target node. The attacked data and the network traffic data are both data within a historical time period, and the attacked data may include the type of attack, the time of the attack, and the vulnerability involved in the attack. The time difference between the maximum time point in the maximum value set and the attacked time point may be used to determine whether the maximum time point in the maximum value set is related to the attack. At the same time, since the attack data is obtained from security software such as a firewall, there may be a time offset, such as a time lag, that is, the time point at which the attack occurs may be later than the maximum time point of the network traffic data. The time offset phenomenon can be corrected by presetting a critical value, and the critical value can be manually set in advance according to the relationship between the attack and the traffic.

[0056] In an embodiment of the present application, whether the time difference between the maximum time point and the attack time point is less than the critical value can be used to further determine whether the maximum time point is caused by an attack, and the time point whose time difference is less than the critical value can be determined as the focus time point.

[0057] Exemplarily, in one embodiment of the present application, determining the second average time difference based on the attacked data and the network traffic data in step 420 includes: obtaining N attack time points based on the attacked data; performing the following operations for each maximum value obtained based on the network traffic data: determining the target time point at which the maximum value appears; obtaining the attack time point that is closest in time to the target time point from the N attack time points as the designated time point; if the difference between the target time point and the designated time point is less than a critical value, determining the target time point at which the maximum value appears as the focus time point; obtaining K focus time points arranged in chronological order based on the M maximum values, wherein K is less than or equal to M, and K is an integer greater than 2; calculating the second time difference between each two adjacent focus time points among the K focus time points in chronological order; determining the second average time difference based on the second time difference between each two adjacent focus time points among the K focus time points.

[0058] In an embodiment of the present application, after obtaining K focus time points, the second time difference between each of the K focus time points and the previous focus time point can be calculated in chronological order, and K-1 second time differences can be determined. The average value of the K-1 time differences can be determined as the second average time difference.

[0059] Step 230: Determine an average attack value based on the attacked data;

[0060] In an embodiment of the present application, the attacked data includes at least one of the attack types corresponding to the N attacks, the vulnerabilities involved in the attacks, and the actual impact values ​​caused by the attacks, where N is a positive integer. Specifically, the attacked data may include the attack types of the N attacks, and the standard impact value corresponding to the attack type may be determined according to the attack type, and the standard impact value is the impact value obtained by analyzing the attack behavior of the attack type. Network security personnel may pre-estimate the impact of this type of attack behavior if it occurs based on the attack behaviors of different attack types and the configuration of the network equipment corresponding to the target node. At the same time, the matching rules of the standard impact value may be stored during the configuration of the target node, and may be obtained by matching the attack type. The average attack value may be determined by the standard impact value corresponding to the N attacks.

[0061] In the embodiment of the present application, the attacked data may include the actual impact value caused by each of the N attacks, and the actual impact value is the actual impact value of the attack determined by the network security personnel after the attack occurs. The average attack value can be determined by the actual impact values ​​corresponding to the N attacks.

[0062] In an embodiment of the present application, the attacked data may include vulnerability information involved in each of the N attacks, and the N attacks may be scored by the Common Vulnerability Scoring System (CVSS) to obtain a common vulnerability score corresponding to the N attacks. The common vulnerability score can be used to reflect the severity of the vulnerability and help determine the urgency and importance of the required response. The CVSS score is based on a series of measurement results on dimensions, which are also called metrics. Through the CVSS, it can help establish a standard for measuring the severity of vulnerabilities, and the priority of handling vulnerabilities can be determined through the CVSS score. Specifically, the maximum common vulnerability score can be 10 and the minimum can be 0. Vulnerabilities with a common vulnerability score of 7 to 10 points are relatively serious vulnerabilities, vulnerabilities with a common vulnerability score of 4 to 6.9 are medium-level vulnerabilities, and vulnerabilities with a common vulnerability score of 0 to 3.9 are low-level vulnerabilities. The average attack value can be determined by the common vulnerability score corresponding to the N attacks.

[0063] In one embodiment of the present application, the attacked data includes attack types corresponding to N attacks, vulnerabilities involved in the attacks, and actual impact values ​​caused by the attacks; based on the attack type of the j-th attack in the N attacks, the standard impact value of the j-th attack is determined; based on the standard impact value, actual impact value, and universal vulnerability score of the j-th attack, the target impact value of the j-th attack can be determined by the following formula:

[0064]

[0065] Among them, A j is the target impact value of the jth attack, X j is the actual impact value of the j-th attack, Y j is the standard impact value of the j-th attack, CVSS j Score the common vulnerability of the jth attack.

[0066] In the embodiment of the present application, the general vulnerability score is obtained by scoring the vulnerabilities involved in the attack, and the target impact value corresponding to each of the N attacks can be determined by the above formula. Next, for the N attacks, the time difference between each of the N attacks and the previous attack is determined according to the time sequence of the attacks, and the time difference is pre-set for the first attack of the N attacks, so that N time differences can be determined.

[0067] In the embodiment of the present application, after determining the N time differences, the average attack value of the attacked data may be calculated based on the target impact values ​​of the N attacks by the following formula:

[0068]

[0069] Where L is the average attack value, Δt j is the time difference between the jth attack and the previous attack, A j is the target impact value of the j-th attack.

[0070] In the embodiment of the present application, based on the attack type of the jth attack in the N attacks, the standard impact value of the jth attack is determined; based on the standard impact value, actual impact value and universal vulnerability score of the jth attack, the target impact value of the jth attack is determined by a formula; the universal vulnerability score is obtained by scoring the vulnerabilities involved in the attack; based on the target impact value of the M attacks, the average attack value of the attacked data is calculated. In this way, the target impact value in the attacked data of the target node can be comprehensively evaluated through multiple indicators, and then the average attack value of the attacked data can be determined, and the average attack value can be determined more objectively.

[0071] Step 240: Determine a target sampling period of the target node based on the first average time difference, the second average time difference and the average attack value;

[0072] In an embodiment of the present application, when the first average time difference is less than the second average time difference, it can be determined whether the average attack value is less than a preset attack threshold. When the average attack value is not less than the preset attack threshold, the first average time difference can be determined as the target sampling period of the target node. When the average attack value is less than the preset attack threshold, the product of the first average time difference and the second average time difference can be determined as the target sampling period of the target node.

[0073] In the embodiment of the present application, according to the determination of the time point of interest, it can be known that the second average time difference must be not less than the first average time difference. It is possible to first verify whether the second average time difference is not less than the first average time difference, and after the verification is passed, perform subsequent operations. If the verification fails, the first average time difference and the second average time difference can be re-determined.

[0074] In the embodiment of the present application, when the second average time difference is not less than the first average time difference, it is further determined whether the average attack value is less than the preset attack threshold. Specifically, when the average attack value is not less than the preset attack threshold, it can be considered that the target node has been attacked more severely in the historical time period, and a shorter time period can be used as the target sampling period. At this time, the first average time difference can be directly determined as the target sampling period, that is, the target sampling period is determined by the following formula:

[0075] Δ T =Δt1;

[0076] When the average attack value is less than the preset attack threshold, it can be considered that the target node is less attacked in the historical time period, and a longer time period can be used as the target sampling period. At this time, the product of the first average time difference and the second average time difference can be determined as the target sampling period, that is, the target sampling period is determined by the following formula:

[0077] Δ T =Δt2×Δt1;

[0078] Among them, Δ T is the target sampling period, Δt1 is the first average time difference, and Δt2 is the second average time difference.

[0079] Step 250: Acquire target information obtained by sampling data on the target node within the target sampling period;

[0080] Step 260: Calculate the security value of the target node based on the target information; the security value is used to evaluate the security risk of the target node;

[0081] Step 270: When the safety value is greater than a preset threshold, a safety warning is issued to the target node.

[0082] In the embodiment of the present application, the network traffic data of the target node in the historical time period is used to determine the maximum time point in the network traffic data, and the maximum time point is associated with the attacked data to analyze whether the appearance of the maximum point is related to the attacked data. At the same time, the average attack value in the historical time period is also determined, and the data sampling period of the target node is further determined. In this process, the data characteristics of the target node in the historical time period can be fully analyzed, and the data sampling period of the target node can be determined based on this data characteristic.

[0083] See also Figure 3 , Figure 3 A flowchart of a data security early warning method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method comprises the following steps:

[0084] Step 310: Determine a target sampling period of the target node based on historical data of the target node in a historical time period;

[0085] Step 320: Acquire target information obtained by sampling data on the target node within the target sampling period; the target information includes vulnerability information of the target node, attacked data of the target node, vulnerability information of adjacent nodes of the target node, and attacked data of adjacent nodes of the target node;

[0086] In an embodiment of the present application, the target node may be a single network device or a device network composed of multiple network devices (e.g., a small device network). If the target node is a single network device, the vulnerability information of the network device may be determined as the vulnerability information of the target node; if the target node is a device network composed of multiple network devices, the vulnerability information of each network device in the target node may be determined first, and the vulnerability information of the target node may be determined through the vulnerability information of each network device. The vulnerability information of the device may be obtained by crawling with a crawler.

[0087] In an embodiment of the present application, in order to more comprehensively evaluate the stability of the target node, vulnerability information of adjacent nodes connected to the target node may be additionally obtained, and the stability of the target node may be comprehensively evaluated through the vulnerability information of the target node and the vulnerability information of the adjacent nodes of the target node.

[0088] In an embodiment of the present application, the vulnerability information of the target node, the attacked data of the target node, the vulnerability information of the neighboring nodes of the target node, and the attacked data of the neighboring nodes of the target node are all information obtained within the target sampling period.

[0089] Step 330: Calculate the stability of the target node based on the vulnerability information of the target node and the vulnerability information of the neighboring nodes of the target node;

[0090] In the embodiment of the present application, the stability is used to reflect the vulnerability of the target node and the adjacent nodes, and the stability of the target node can be further determined by the vulnerability information of the target node and the vulnerability information of the adjacent nodes of the target node. The vulnerability can be evaluated by the CVSS standard.

[0091] Exemplarily, in one embodiment of the present application, the adjacent nodes include Q nodes, where Q is a positive integer. In step 530, the stability of the target node is calculated based on the vulnerability information of the target node and the vulnerability information of the adjacent nodes of the target node, including: based on the vulnerability information of the target node and the vulnerability information of the adjacent nodes of the target node, obtaining the vulnerability parameter of the target node and the Q vulnerability parameters corresponding to the Q nodes.

[0092] In the embodiment of the present application, if the target node is a single network device, the CVSS value of the network device can be determined through the vulnerability information of the network device, and the CVSS value of the network device can be determined as the vulnerability parameter of the target node. If the target node is a small device network, the CVSS value of each network device in the target node can be determined through the vulnerability information of each network device, and the maximum value of the CVSS values ​​of each network device can be determined as the vulnerability parameter of the target node; or the average value of the CVSS values ​​of each network device can be determined as the vulnerability parameter of the target node.

[0093] In the embodiment of the present application, the Q vulnerability parameters of the Q adjacent nodes of the target node can be determined by the above method. After obtaining the vulnerability parameters of the target node and the Q vulnerability parameters of the Q adjacent nodes of the target node, the stability can be further determined by the following method.

[0094] If the Q vulnerability parameters are all smaller than the vulnerability parameter of the target node, the stability of the target node is calculated by the following formula:

[0095]

[0096] If there are R vulnerability parameters among the Q vulnerability parameters that are greater than the vulnerability parameter of the target node, where R is a positive integer, the stability of the target node can be calculated using the following formula:

[0097]

[0098] Among them, S is the stability of the target node, B v is the vulnerability parameter of the vth neighboring node, Q is the number of neighboring nodes of the target node, and R is the number of neighboring nodes whose vulnerability parameter is greater than the vulnerability parameter of the target node.

[0099] In the embodiment of the present application, the stability of the target node is determined not only by the vulnerability information of the target node, but also the vulnerability information of the adjacent nodes adjacent to the target node is introduced, and a specific method for determining the stability is proposed, which can make the determination of the stability more objective and more credible.

[0100] Step 340: Calculate the target influence value of the target node and the target influence values ​​of the neighboring nodes of the target node based on the attacked data of the target node and the attacked data of the neighboring nodes of the target node;

[0101] In the embodiment of the present application, the target impact value of the target node and the target impact value of the target node's neighboring nodes can be calculated by acquiring the attacked data of the target node and the attacked data of the target node's neighboring nodes within the target sampling period. If the target impact value of the target node and the target impact value of the target node's neighboring nodes are both large, it can be considered that the security risk of the target node is large.

[0102] In the embodiment of the present application, since the attacks in the attacked data are not necessarily attacks that will cause security risks, for example, if the target node has more devices at a certain moment, it will also be considered an attack. Therefore, in order to more comprehensively evaluate the security risk of the target node, not only the attacked data of the target node is introduced here, but also the attacked data of the adjacent nodes of the target node is introduced. If the target impact values ​​of the target node and the adjacent nodes of the target node are both relatively large, it can be considered that the security risk of the target node is relatively large.

[0103] In the embodiment of the present application, the calculation of the target influence value of the target node and the target influence values ​​of the adjacent nodes of the target node may refer to the calculation method of the target influence value in the above step 230, which will not be repeated here.

[0104] Step 350: Calculate the safety value of the target node based on the stability, the target influence value of the target node and the target influence values ​​of the neighboring nodes of the target node;

[0105] In the embodiment of the present application, in order to more comprehensively evaluate the security risk of the target node, the target impact value of the target node, the target impact value of the adjacent nodes of the target node, and the stability of the target node can be used to calculate the security value of the target node. If the target impact value of the target node is large, the target impact value of the adjacent nodes is also large, and the stability of the target node is low, it can be considered that the security value of the target node is large, that is, the security risk of the target node is large.

[0106] Exemplarily, in one embodiment of the present application, the security value of the target node may be calculated by the following formula:

[0107]

[0108] Wherein, B is the security value of the target node, A v is the target influence value of the vth adjacent node, A is the target influence value of the target node, and S is the stability of the target node.

[0109] In an embodiment of the present application, the determination of the security value is quantified through a specific formula, and the security risk of the target node can be objectively evaluated through the scoring of the security value, and further a security warning can be given to the target node, so that the accuracy of the assessment of the security risk of the target node is higher.

[0110] Step 360: When the safety value is greater than a preset threshold, a safety warning is issued to the target node.

[0111] In an embodiment of the present application, the safety value of the target node is determined by the stability of the target node, the target impact value of the target node, and the target impact values ​​of the adjacent nodes of the target node. The safety risk of the target node can be evaluated from multiple dimensions, which is more accurate and has higher credibility than a single-dimensional evaluation.

[0112] See also Figure 4 , Figure 4 A complete flow chart of a data security early warning method provided in an embodiment of the present application. Figure 4 As shown, a data security early warning method provided in an embodiment of the present application includes the following steps:

[0113] Step 410: determining a first average time difference based on the network traffic data of the target node in the historical time period, wherein the first average time difference is an average value of at least one first time difference, and the at least one first time difference is obtained based on time points at which multiple maximum values ​​of the network traffic data appear;

[0114] In an embodiment of the present application, M maximum values ​​of the network traffic data may be obtained, where M is an integer greater than 1, and the time point at which each of the M maximum values ​​occurs may be obtained to obtain M time points. Then, the first time difference between two time points corresponding to two adjacent maximum values ​​in the M time points may be calculated in chronological order, and the first average time difference may be determined based on the first time difference between two time points corresponding to the two adjacent maximum values.

[0115] Step 420: Determine a second average time difference based on the attacked data and the network traffic data, wherein the second average time difference is an average value of at least one second time difference, and the at least one second time difference is obtained based on time points at which multiple maximum values ​​of the network traffic data appear and attack time points of the attacked data;

[0116] In an embodiment of the present application, M maximum values ​​of the network traffic data are obtained, where M is an integer greater than 1, and N attack time points are obtained based on the attacked data. For each of the M maximum values, the following operations are performed: determine the target time point at which the maximum value appears, obtain the attack time point that is closest in time to the target time point from the N attack time points, and use it as the designated time point. If the difference between the target time point and the designated time point is less than a critical value, determine the target time point at which the maximum value appears as the focus time point. Based on the M maximum values, obtain K focus time points arranged in chronological order, where K is less than or equal to M, and K is an integer greater than 2. Calculate the second time difference between each two adjacent focus time points in the K focus time points in chronological order. Determine the second average time difference based on the second time difference between each two adjacent focus time points in the K focus time points.

[0117] Step 430: Determine an average attack value based on the attacked data;

[0118] In the embodiment of the present application, the attacked data includes the attack type corresponding to N attacks, the vulnerability involved in the attack, and the actual impact value caused by the attack. Based on the attack type of the jth attack in the N attacks, the standard impact value of the jth attack is determined; based on the standard impact value, actual impact value, and general vulnerability score of the jth attack, the formula Determine the target impact value of the jth attack; the general vulnerability score is obtained by scoring the vulnerabilities involved in the attack; based on the target impact values ​​of M attacks, calculate the average attack value of the attacked data; wherein A j is the target impact value of the jth attack, X j is the actual impact value of the j-th attack, Y j is the standard impact value of the j-th attack, CVSS j Score the common vulnerability of the jth attack.

[0119] Step 440: Determine a data sampling period of the target node based on the first average time difference, the second average time difference and the average attack value;

[0120] Step 450: Acquire target information obtained by sampling data on the target node within the target sampling period; the target information includes vulnerability information of the target node, attacked data of the target node, vulnerability information of adjacent nodes of the target node, and attacked data of adjacent nodes of the target node.

[0121] Step 460: Calculate the stability of the target node based on the vulnerability information of the target node and the vulnerability information of the neighboring nodes of the target node;

[0122] In the embodiment of the present application, the adjacent nodes include Q nodes, where Q is a positive integer. Based on the vulnerability information of the target node and the vulnerability information of the adjacent nodes of the target node, the vulnerability parameter of the target node and the Q vulnerability parameters corresponding to the Q nodes can be obtained; if the Q vulnerability parameters are all smaller than the vulnerability parameter of the target node, the stability of the target node can be calculated by the following formula:

[0123]

[0124] If there are R vulnerability parameters among the Q vulnerability parameters that are greater than the vulnerability parameter of the target node, where R is a positive integer, the stability of the target node can be calculated using the following formula:

[0125]

[0126] Among them, S is the stability of the target node, B v is the vulnerability parameter of the vth adjacent node.

[0127] Step 470: Calculate the target influence value of the target node and the target influence values ​​of the neighboring nodes of the target node based on the attacked data of the target node and the attacked data of the neighboring nodes of the target node;

[0128] Step 480: Calculate the safety value of the target node based on the stability, the target influence value of the target node, and the target influence values ​​of the neighboring nodes of the target node;

[0129] In the embodiment of the present application, the security value of the target node can be calculated by the following formula:

[0130]

[0131] Wherein, B is the security value of the target node, A v is the target influence value of the vth adjacent node, A is the target influence value of the target node, and S is the stability of the target node.

[0132] Step 490: When the safety value is greater than a preset threshold, a safety warning is issued to the target node.

[0133] In an embodiment of the present application, the data sampling period of the target node is determined based on the historical data of the target node within the historical time period; the target information obtained by sampling the data of the target node within the target sampling period is obtained; based on the target information, the safety value of the target node is calculated; the safety value is used to evaluate the safety risk of the target node; when the safety value is greater than a preset threshold, a safety warning is issued to the target node. In this way, the target sampling period of the target node can be determined through the historical data of the target node, the safety value of the target node can be calculated based on the information obtained from the target sampling period, and the safety risk of the target node can be evaluated through the safety value. When the safety value is greater than the preset threshold, a safety warning is issued to the target node. This method does not require passive defense until a safety hazard occurs in the target node, and can actively defend by evaluating the safety risk through the safety value, which solves the problem that the related technology cannot actively defend against safety risks.

[0134] It is important to understand that Figures 1 to 4 The explanations of the same or corresponding steps in the above may refer to each other. For example, Figure 1 The explanation of step 130 and step 140 in Figure 2 Steps 260 and 270 in .

[0135] At the same time, it should be understood that a data security early warning method provided by the embodiment of the present application can have the following beneficial effects: First, the embodiment of the present application provides a security detection method for a target node based on dynamic sampling, which can dynamically determine the target sampling period of the node through the data characteristics of the node, and perform security detection on the target node based on the data obtained during the target sampling period. Second, since the target sampling period is determined based on the characteristics of the target node, it can ensure that the sampled data can reflect the data situation of the target node itself, thereby ensuring the accuracy of the security detection, thereby understanding the security risks of the target node in advance, and realizing active defense of network security.

[0136] Figure 5 is a structural block diagram of a data security early warning device provided in an embodiment of the present application. Figure 5 The data security early warning device 500 provided in the embodiment of the present application includes:

[0137] A determination module 510, configured to determine a data sampling period of the target node based on historical data of the target node within a historical time period;

[0138] An acquisition module 520 is used to acquire target information obtained by sampling data on the target node within the target sampling period;

[0139] A calculation module 530, configured to calculate a security value of the target node based on the target information; the security value is used to evaluate a security risk of the target node;

[0140] The warning module 540 is used to issue a safety warning to the target node when the safety value is greater than a preset threshold.

[0141] In an embodiment of the present application, the data sampling period of the target node is determined based on the historical data of the target node within the historical time period; the target information obtained by sampling the data of the target node within the target sampling period is obtained; based on the target information, the safety value of the target node is calculated; the safety value is used to evaluate the safety risk of the target node; when the safety value is greater than a preset threshold, a safety warning is issued to the target node. In this way, the target sampling period of the target node can be determined through the historical data of the target node, the safety value of the target node can be calculated based on the information obtained from the target sampling period, and the safety risk of the target node can be evaluated through the safety value. When the safety value is greater than the preset threshold, a safety warning is issued to the target node. This method does not require passive defense until a safety hazard occurs in the target node, and can actively defend by evaluating the safety risk through the safety value, which solves the problem that the related technology cannot actively defend against safety risks.

[0142] The data security early warning device provided in the embodiment of the present application can achieve Figure 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0143] like Figure 6As shown, an embodiment of the present application also provides an electronic device 600, which can be an adapter or various types of computers, etc. The electronic device 600 includes: a processor 610 and a memory 620, and the memory 620 stores programs or instructions, and the program or instructions implement the steps of any of the methods described above when executed by the processor 610. For example, when the program is executed by the processor 610, the following process is implemented: based on the historical data of the target node in the historical time period, determine the data sampling period of the target node; obtain the target information obtained by sampling the data of the target node within the target sampling period; based on the target information, calculate the safety value of the target node; the safety value is used to evaluate the safety risk of the target node; when the safety value is greater than a preset threshold, issue a safety warning to the target node. In this way, the target sampling period of the target node can be determined through the historical data of the target node, and the safety value of the target node can be calculated based on the information obtained from the target sampling period. The safety risk of the target node can be evaluated through the safety value. When the safety value is greater than a preset threshold, a safety warning is issued for the target node. This method does not require passive defense until a safety hazard occurs in the target node, but can actively defend by evaluating the safety risk through the safety value, thereby solving the problem that related technologies cannot actively defend against security risks.

[0144] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of each embodiment of the data security warning method are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0145] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0146] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0147] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0148] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0150] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data security early warning method, characterized in that: include: Determining a target sampling period of the target node based on historical data of the target node within a historical time period; Acquire target information obtained by sampling data on the target node within the target sampling period; Based on the target information, calculating the security value of the target node; The security value is used to evaluate the security risk of the target node; When the safety value is greater than a preset threshold, a safety warning is issued to the target node.

2. The method according to claim 1, characterized in that The historical data includes the attacked data of the target node and the network traffic data other than the attacked data; The determining a target sampling period of the target node based on historical data of the target node in a historical time period includes: Determine a first average time difference based on the network traffic data, wherein the first average time difference is an average value of at least one first time difference, and the at least one first time difference is obtained based on time points at which multiple maximum values ​​of the network traffic data appear; Determine a second average time difference based on the attacked data and the network traffic data, wherein the second average time difference is an average value of at least one second time difference, and the at least one second time difference is obtained based on time points at which multiple maximum values ​​of the network traffic data appear and attack time points of the attacked data; Based on the attacked data, determining an average attack value; A target sampling period of the target node is determined based on the first average time difference, the second average time difference, and the average attack value.

3. The method according to claim 2, characterized in that Determining a first average time difference based on the network traffic data includes: Obtaining M maximum values ​​of the network traffic data, where M is an integer greater than 1; Obtain the time point at which each of the M maximum values ​​occurs, to obtain M time points; Calculate, in chronological order, a first time difference between two time points corresponding to two adjacent maximum values ​​among the M time points; Determine a first average time difference based on a first time difference between two time points corresponding to the two adjacent maximum values; Accordingly, determining a second average time difference based on the attacked data and the network traffic data includes: Based on the attacked data, obtaining N attack time points; For each maximum value obtained based on the network traffic data, the following operations are performed: determining a target time point at which the maximum value appears; obtaining an attack time point that is closest in time to the target time point from the N attack time points as a designated time point; if the difference between the target time point and the designated time point is less than a critical value, determining the target time point at which the maximum value appears as a focus time point; Based on the M maximum values, obtain K time points of interest arranged in chronological order, where K is less than or equal to M and is an integer greater than 2; Calculate, in chronological order, a second time difference between every two adjacent focus time points among the K focus time points; A second average time difference is determined based on the second time difference between every two adjacent focus time points among the K focus time points.

4. The method according to claim 2, characterized in that: The attacked data includes the attack types corresponding to N attacks, the vulnerabilities involved in the attacks, and the actual impact values ​​caused by the attacks, where N is a positive integer; The determining the average attack value based on the attacked data includes: Determining a standard impact value of the j-th attack based on an attack type of the j-th attack among the N attacks; Based on the standard impact value, actual impact value and general vulnerability score of the jth attack, the formula Determining a target impact value for the jth attack; the general vulnerability score is obtained based on scoring the vulnerabilities involved in the attack; Calculate the average attack value of the attacked data based on the target impact values ​​of N attacks; Among them, A j is the target impact value of the jth attack, X j is the actual impact value of the j-th attack, Y j is the standard impact value of the j-th attack, CVSS j Score the common vulnerability of the jth attack.

5. The method according to claim 2, characterized in that: The determining, based on the first average time difference, the second average time difference and the average attack value, a target sampling period of the target node includes: When the first average time difference is less than the second average time difference, determining whether the average attack value is less than a preset attack threshold; When the average attack value is not less than the preset attack threshold, determining the first average time difference as the target sampling period of the target node; When the average attack value is less than the preset attack threshold, the product of the first average time difference and the second average time difference is determined as the target sampling period of the target node.

6. The method according to claim 1, characterized in that The target information includes vulnerability information of the target node, attacked data of the target node, vulnerability information of neighboring nodes of the target node, and attacked data of neighboring nodes of the target node; There is a connection relationship between the target node and the adjacent nodes; The calculating the security value of the target node based on the target information includes: Calculating the stability of the target node based on the vulnerability information of the target node and the vulnerability information of the neighboring nodes of the target node; Calculating a target impact value of the target node and target impact values ​​of the neighboring nodes of the target node based on the attacked data of the target node and the attacked data of the neighboring nodes of the target node; A safety value of the target node is calculated based on the stability, the target influence value of the target node, and the target influence values ​​of the neighboring nodes of the target node.

7. The method according to claim 6, characterized in that The adjacent nodes include Q nodes, where Q is a positive integer; and the stability of the target node is calculated based on the vulnerability information of the target node and the vulnerability information of the adjacent nodes of the target node, including: Based on the vulnerability information of the target node and the vulnerability information of the neighboring nodes of the target node, obtaining the vulnerability parameter of the target node and Q vulnerability parameters corresponding to the Q nodes; If the Q vulnerability parameters are all smaller than the vulnerability parameter of the target node, then Calculating the stability of the target node; If there are R vulnerability parameters among the Q vulnerability parameters that are greater than the vulnerability parameter of the target node, R is a positive integer, and the formula Calculating the stability of the target node; Among them, S is the stability of the target node, B v is the vulnerability parameter of the vth adjacent node.

8. The method according to claim 6, characterized in that Calculating a safety value of the target node based on the stability, the target influence value of the target node, and the target influence values ​​of the neighboring nodes of the target node includes: By formula Calculating the safety value of the target node; Wherein, B is the security value of the target node, A v is the target influence value of the vth adjacent node, A is the target influence value of the target node, and S is the stability of the target node.

9. A data security early warning device, characterized in that: include: A determination module, used to determine a data sampling period of the target node based on historical data of the target node within a historical time period; An acquisition module, used to acquire target information obtained by sampling data from the target node within the target sampling period; A calculation module, used for calculating the security value of the target node based on the target information; The security value is used to evaluate the security risk of the target node; The early warning module is used to issue a safety early warning to the target node when the safety value is greater than a preset threshold.

10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium, characterized in that: The medium stores a program or an instruction, and when the program or the instruction is executed, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.

Citation Information

Patent Citations

  • Network node, data transmission method, device and system thereof

    CN107172615A

  • Network traffic detection method, device, system and computer readable storage medium

    CN109560978A

  • Method, server and system for predicting network attack surface

    CN110365674A

  • Risk assessment method and device

    CN113407950A

  • Abnormality detection method and device

    CN114722972A