Network security situation determination method and device, electronic equipment and storage medium

By obtaining and analyzing the vulnerability values, security values ​​and abnormal values ​​of the network in various time periods, the network security situation is calculated, which solves the problem of being unable to accurately determine the network security situation in the existing technology and achieves accurate prediction and analysis of the network security situation. Effective protection.

CN118802202APending Publication Date: 2024-10-18XINYANG BRANCH HENAN CO LTD OF CHINA MOBILE COMM CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311184284.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technology makes it difficult to accurately determine the network security situation and formulate effective security protection measures in advance, causing network security to be affected when facing malicious attacks.

Method used

By obtaining the vulnerability values, security values ​​and abnormal values ​​in the last N time periods, the network security situation of each time period is calculated, and the final network security situation is determined based on these situations, so that protective measures can be formulated in advance.

Benefits of technology

It achieves the accurate determination of the network security situation, improves the prediction accuracy of network security protection and the effectiveness of protective measures, and ensures that the network can respond promptly when facing attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802202A_ABST
    Figure CN118802202A_ABST
Patent Text Reader

Abstract

The invention provides a network security situation determination method and device, electronic equipment and a storage medium. Relates to the technical field of data monitoring. The method comprises the following steps: when the network security situation of a target network needs to be determined, obtaining N time periods closest to the current time, and for each time period, determining the network security situation of the target network in the time period according to a vulnerability value, a security value and an abnormal value of the target network in the time period, and determining a final network security situation of the target network according to the network security situation of the target network in each time period. Therefore, accurate determination of the network security situation of the target network is accurately realized based on the network security situation of the target network in each time period before the current time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for determining a network security situation. Background Art

[0002] Currently, there are usually multiple devices in a network. Once the network is attacked maliciously, the devices in the entire network will be seriously affected.

[0003] In the related technologies, firewalls, anti-virus software and other technologies are mainly used to passively defend against external network intrusions, which cannot accurately determine the future direction of the network. However, network security situation can measure the changing trend of network security situation. Therefore, in the network, how to determine the network security situation of the network is very important for formulating security protection measures in advance based on the network security situation to ensure the security of the network. Summary of the invention

[0004] The present disclosure provides a method, device, electronic device and storage medium for determining a network security situation.

[0005] In a first aspect, the present disclosure provides a method for determining a network security situation, the method comprising: obtaining N time periods closest to a current time, wherein N is an integer of 1; determining, for each of the N time periods, a vulnerability value of a target network within the time period; determining a security value of the target network within the time period; determining an abnormal value of the target network within the time period; determining the network security situation of the target network within the time period based on the vulnerability value, security value and abnormal value of the target network within the time period; and determining a final network security situation of the target network based on the network security situation of the target network within each of the time periods.

[0006] In a second aspect, the present disclosure provides a device for determining a network security situation, the device comprising: an acquisition module, used to acquire N time periods closest to a current time, wherein N is an integer of 1; a first determination module, used to determine, for each of the N time periods, a vulnerability value of a target network within the time period; a second determination module, used to determine a security value of the target network within the time period; a third determination module, used to determine an abnormal value of the target network within the time period; a fourth determination module, used to determine the network security situation of the target network within the time period based on the vulnerability value, security value and abnormal value of the target network within the time period; and a fifth determination module, used to determine the final network security situation of the target network based on the network security situation of the target network in each of the time periods.

[0007] In a third aspect, the present disclosure provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method for determining the network security situation disclosed in an embodiment of the present disclosure.

[0008] In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for determining the network security situation disclosed in an embodiment of the present disclosure.

[0009] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method for determining the network security situation disclosed in an embodiment of the present disclosure.

[0010] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0011] When it is necessary to determine the network security situation of the target network, the N time periods closest to the current time are obtained, and for each time period, the network security situation of the target network in the time period is determined according to the vulnerability value, security value and abnormal value of the target network in the time period, and the final network security situation of the target network is determined according to the network security situation of the target network in each time period. In this way, based on the network security situation of the target network in each time period before the current time, the network security situation of the target network is accurately determined. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0013] Figure 1 A flowchart of a method for determining a network security situation according to an exemplary embodiment is shown;

[0014] Figure 2 is a flow chart of a method for determining a network security situation according to another exemplary embodiment;

[0015] Figure 3 is a flow chart of a method for determining a network security situation according to another exemplary embodiment;

[0016] Figure 4 is a flow chart of a method for determining a network security situation according to another exemplary embodiment;

[0017] Figure 5It is a structural schematic diagram of a device for determining a network security situation according to an exemplary embodiment;

[0018] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.

[0019] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0020] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0021] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0022] First combine Figure 1 , an exemplary description is given of the method for determining the network security situation provided in the embodiment of the present disclosure.

[0023] Figure 1 The present invention is a flowchart of a method for determining a network security situation according to an exemplary embodiment.

[0024] It should be noted that the method for determining the network security situation provided in the embodiments of the present disclosure can be performed by a device for determining the network security situation, wherein the device for determining the network security situation can be implemented by software and / or hardware. The device for determining the network security situation can be an electronic device, or can be configured in an electronic device to determine the network security situation.

[0025] Among them, the electronic device can be any device with computing capabilities, such as a personal computer, a mobile terminal, a server, etc. The mobile terminal can be, for example, a vehicle-mounted device, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and other hardware devices with various operating systems, touch screens and / or display screens.

[0026] like Figure 1As shown, the method for determining the network security situation includes the following steps:

[0027] Step 101, obtaining the N time periods closest to the current time, where N is an integer of 1.

[0028] The time interval between each time period is preset and can be set according to actual needs, and this embodiment does not specifically limit this.

[0029] In this example, when it is necessary to know the network security situation of the target network, the latest N time periods from the current time can be obtained. It should be noted that the N time periods in this example are all time periods before the current time.

[0030] As an example, when a network security situation acquisition request for a target network is received, the time corresponding to when the network security situation acquisition request is received may be used as the current time.

[0031] Step 102: For each time period in the N time periods, determine a vulnerability value of the target network in the time period.

[0032] It should be noted that the target network in this example can be any network whose network security situation needs to be determined, for example, the target network can be a distributed storage network, wherein the distributed storage network can include multiple devices for storage. It should be noted that this embodiment does not specifically limit the target network.

[0033] The vulnerability value is used to indicate the sensitivity of the target network to network attacks during the time period. The higher the sensitivity, the smaller the vulnerability value, and the smaller the sensitivity, the larger the vulnerability value.

[0034] Among them, network attack refers to attacking the target network by exploiting the vulnerabilities and security flaws in the target network.

[0035] Step 103: Determine the security value of the target network within the time period.

[0036] The security value is used to indicate the network security of the target network during the time period. The higher the network security, the higher the corresponding security value, and the lower the network security, the lower the corresponding security value.

[0037] Step 104: determine the abnormal value of the target network within the time period.

[0038] The outlier value is used to represent the degree of network anomaly of the target network within the time period. The higher the degree of network anomaly, the higher the outlier value, and the lower the degree of network anomaly, the lower the outlier value.

[0039] Step 105, determining the network security situation of the target network within the time period according to the vulnerability value, security value and abnormal value of the target network within the time period.

[0040] In this example, the vulnerability value, security value, and abnormal value of the target network during the time period may be input into a preset calculation formula to obtain the network security situation of the target network during the time period through the calculation formula.

[0041] For example, to calculate the network security situation S of the target network in time period a a The calculation formula is

[0042]

[0043] Among them, C in the formula a represents the vulnerability value of the target network in time period a; D a A represents the outlier value of the target network in time period a; a Indicates the security value of the target network in time period a.

[0044] Step 106: Determine a final network security situation of the target network according to the network security situation of the target network in each of the time periods.

[0045] In the disclosed embodiment, the network security situation of the target network is predicted in combination with the network security situation of the target network in each time period, and the final network security situation of the target network is accurately determined, thereby achieving an accurate prediction of the network security trend.

[0046] It can be understood that in different application scenarios, different implementation methods may be used to determine the final network security situation of the target network according to the network security situation of the target network in each time period. An exemplary description is as follows:

[0047] As an example, the network security situation of the target network in each time period may be input into a network security situation prediction model to obtain a final network security situation of the target network through the network security situation prediction model.

[0048] As another example, the network security situation of the target network in each time period can be sorted in order from the front to the back of the time period to obtain a network security situation sequence; for the ith network security situation in the network security situation sequence, the difference between the ith network security situation and the i-1th network security situation is compared with the sum of the i-1th network security situation and a preset minimum value to obtain the situation change degree corresponding to the ith network security situation, where i is an integer greater than or equal to 1 and less than or equal to N; for the 1st network security situation in the network security situation sequence, the 1st network security situation is compared with the preset minimum value to obtain the situation change degree corresponding to the 1st network security situation; according to the situation change degree corresponding to each network security situation, multiple target network security situations with a situation change degree less than zero are selected from the network security situation sequence; according to the multiple target network security situations and their corresponding situation change degrees, the final network security situation of the target network is determined. Thus, by combining multiple target network security situations whose situation change degree is less than zero among multiple network security situations and their corresponding situation change degrees, the final network security situation of the target network is accurately determined, and the final network security situation of the target network is accurately determined. It can be understood that if the situation change degree corresponding to the i-th network security situation is less than zero, then the i-th network security situation is less than the i-1-th network security situation, and at this time, the network security of the target network is in a decaying state.

[0049] It should be noted that the preset minimum value can be pre-set or changed according to actual needs, and this embodiment does not specifically limit the value of the preset minimum value.

[0050] In this example, it is assumed that the network security situation sequence is represented as {S i}, where 1≤i≤N, where N represents the total number of network security situations in the network security situation sequence, where S i represents the ith network security situation in the network security situation sequence, where the ith network security situation S i The corresponding degree of situation change

[0051] Among them, ε in the formula represents the preset minimum value, where S i-1 Represents the i-1th network security situation.

[0052] Among them, when i is equal to 1, S i-1 =0.

[0053] In this example, after determining the degree of situation change corresponding to each network security situation in the network security situation sequence, multiple target security situations with a situation change degree less than zero can be selected from the network security situation sequence. Then, based on the multiple target security situations and their corresponding degree of situation change, the final network security situation of the target network can be determined.

[0054] In the disclosed embodiment, a possible implementation method for determining the final network security situation of the target network according to the multiple target network security situations and the corresponding situation change degrees is: summing the multiple target network security situations to obtain a first summation result; summing the absolute values ​​of the situation change degrees corresponding to the multiple target network security situations to obtain a second summation result; and performing a ratio calculation between the first summation result and the second summation result to obtain the final network security situation of the target network. That is, in this example, the summation result of the multiple target network security situations can be ratio-calculated with the summation result of the absolute values ​​of the situation change degrees corresponding to the multiple target network security situations to obtain the final network security situation of the target network. Thus, by processing the multiple target network security situations and the corresponding situation change degrees, the final network situation of the target network is accurately obtained, thereby improving the accuracy of determining the final network situation of the target network.

[0055] In the embodiment of the present disclosure, the formula for calculating the final network security situation x of the target network is:

[0056]

[0057] Among them, s′ in the formula i represents the i-th target network security situation, and m represents the total number of target network security situations.

[0058] In this example, after determining the final network security situation of the target network, the final network security situation can be compared with the preset network security situation threshold, and if the comparison result shows that the final network security situation is greater than the preset network security situation threshold, the target network is determined to be at risk, and an early warning message is output. Thus, the management personnel can promptly learn of the risk of the target network based on the early warning message, and take corresponding measures based on the risk in a timely manner to avoid security problems in the target network.

[0059] It can be understood that when the comparison result is that the final network security situation is less than or equal to the preset network security situation threshold, it is determined that the target network is safe.

[0060] The method for determining the network security situation provided by the embodiment of the present disclosure, when it is necessary to determine the network security situation of the target network, obtains the N time periods closest to the current time, and, for each time period, determines the network security situation of the target network in the time period according to the vulnerability value, security value and abnormal value of the target network in the time period, and determines the final network security situation of the target network according to the network security situation of the target network in each time period. Thus, based on the network security situation of the target network in each time period before the current time, the final network security situation of the target network is accurately determined, and the accuracy of determining the final network security situation of the target network is improved.

[0061] In order to clearly understand how the present disclosure determines the vulnerability value of the target network within the time period, the following is combined with Figure 2 An exemplary description is given of the process of determining the vulnerability value of the target network within the time period. Figure 2 The present invention is a flowchart of a method for determining a network security situation according to another exemplary embodiment.

[0062] like Figure 2 As shown, the method may include:

[0063] Step 201, obtaining the N time periods closest to the current time, where N is an integer of 1.

[0064] It should be noted that, for the specific implementation of step 201, reference may be made to the relevant description of the embodiment of the present disclosure, which will not be repeated here.

[0065] Step 202: for each time period in the N time periods, determine the vulnerability value of each device in the target network in the time period.

[0066] In the disclosed embodiment, a possible implementation method for determining the vulnerability value of each device in the target network within the time period is: for each device in the target network, determine the vulnerability information of the device within the time period; determine the first target vulnerability value of the device within the time period based on the vulnerability information of the device within the time period; determine the vulnerability value of the device within the time period based on the first target vulnerability value and the second target vulnerability value of each target device directly connected to the device in the target network. That is to say, in this example, the vulnerability value of the target network within the time period can be determined based on the vulnerability information of each device in the target network within the time period. Therefore, by processing the vulnerability information of each device in the target network within the corresponding time period, the vulnerability value of the target network within the corresponding time period is accurately determined, thereby improving the accuracy of determining the vulnerability value.

[0067] In this example, vulnerability information of each device in the target network can be obtained through a network crawler, wherein the vulnerability information may include vulnerability conditions in the operating system and corresponding software of the corresponding device.

[0068] In the embodiment of the present disclosure, after determining the vulnerability information of the device in the time period, the vulnerability information of the device in the time period can be scored by the Common Vulnerability Scoring System (CVSS) to obtain a first target vulnerability value of the device in the time period.

[0069] The vulnerability information in this example may include relevant information corresponding to at least one vulnerability.

[0070] It can be understood that, when the vulnerability information includes multiple vulnerabilities, the general vulnerability scoring system in the embodiment of the present disclosure can determine the candidate vulnerability values ​​corresponding to each vulnerability in the device within the time period based on the relevant information corresponding to each vulnerability, and select the maximum vulnerability value from the multiple candidate vulnerability values ​​as the first target vulnerability value of the device within the time period.

[0071] It can be understood that, when the vulnerability information only includes relevant information corresponding to one vulnerability, the vulnerability value determined by the general vulnerability scoring system based on the relevant information corresponding to the vulnerability can be directly used as the first target vulnerability value of the device in the time period.

[0072] It can be understood that different vulnerability values ​​correspond to different severity levels, wherein the larger the vulnerability value, the higher the severity level, and vice versa.

[0073] In this example, a possible implementation method for determining the vulnerability value of the device within the time period according to the first target vulnerability value and the second target vulnerability value of each target device directly connected to the device in the target network is: grouping each target device directly connected to the device according to the first target vulnerability value and the second target vulnerability value to obtain a first group and a second group, wherein the second target vulnerability value of each first target device in the first group is greater than or equal to the first target vulnerability value, and the second target vulnerability value of each second target device in the second group is less than the first target vulnerability value; for each first target device in the first group, calculating the ratio of the product of the second target vulnerability value of the first target device and the first target vulnerability value to the sum of the second target vulnerability value of the first target device and the first target vulnerability value to obtain a vulnerability impact value corresponding to the first target device; summing the vulnerability impact values ​​corresponding to each of the first target devices in the first group to obtain a summation result; averaging the second vulnerability values ​​of each second target device in the second group to obtain an average vulnerability value; and determining the vulnerability value of the device within the time period according to the summation result and the average vulnerability value. Therefore, by processing the first target vulnerability value and the second target vulnerability value of each target device directly connected to the device in the target network, the vulnerability value of the device in the time period is accurately determined, the accuracy of determining the vulnerability value of the device in the corresponding time period is improved, and it is convenient to accurately determine the vulnerability value of the target network in the corresponding time period based on the determined vulnerability value.

[0074] In this example, the vulnerability value of the device within the time period may be obtained by adding the sum result and the vulnerability average value.

[0075] In this example, for any device b in the target network, the first target vulnerability value of device b in the time period a is determined based on the vulnerability information of device b in the time period a. Correspondingly, obtain the vulnerability values ​​of each target device directly connected to device b Where u is a target device directly connected to device b. Divide the devices directly connected to device b into two groups. In the second group For all elements in the first group (e.g. element v), calculate the vulnerability impact value For the second group, calculate the mean of all elements Then, determine the vulnerability value of device b

[0076] Step 203: summing up the vulnerability values ​​of the various devices in the target network within the time period to obtain the vulnerability value of the target network within the time period.

[0077] For example, after determining the vulnerability value of each device in the target network within the time period a, the vulnerability value of each device in the target network within the time period a can be summed to obtain the vulnerability value of the target network within the time period a. Among them, the formula Indicates the vulnerability value of any device b in the target network within the time period a. It means summing up the vulnerability values ​​of each device in the target network in time period a.

[0078] Step 204: determine the security value of the target network within the time period.

[0079] Step 205: determine the abnormal value of the target network within the time period.

[0080] Step 206, determining the network security situation of the target network within the time period according to the vulnerability value, security value and abnormal value of the target network within the time period.

[0081] Step 207: Determine the final network security situation of the target network according to the network security situation of the target network in each of the time periods.

[0082] It should be noted that, for the specific implementation of steps 204 to 207, reference may be made to the relevant description in the embodiments of the present disclosure, which will not be repeated here.

[0083] In this example, the security value of the target network during the time period is accurately determined by combining the security values ​​of each device in the target network during the time period, so as to facilitate the subsequent accurate determination of the final network security situation of the target network based on the determined security value.

[0084] In order to clearly understand how the present disclosure determines the security value of the target network within the time period, the following is combined with Figure 3 An exemplary description is given of the process of determining the vulnerability value of the target network within the time period. Figure 3 The present invention is a flowchart of a method for determining a network security situation according to another exemplary embodiment.

[0085] like Figure 3 As shown, the method may include:

[0086] Step 301, obtaining the N time periods closest to the current time, where N is an integer of 1.

[0087] Step 302: For each time period in the N time periods, determine a vulnerability value of the target network in the time period.

[0088] It should be noted that, for the specific implementation of step 301 to step 302, reference may be made to the relevant description of the embodiment of the present disclosure, which will not be repeated here.

[0089] Step 303: determine the security value of each device in the target network within the time period.

[0090] In the embodiment of the present disclosure, for each device in the target network, the security value of the device in the time period is determined according to the security score value of the security monitoring component in the device in the time period.

[0091] The security score value of the security monitoring component during the time period is obtained by scoring the security monitoring component according to the security situation of the device during the time period.

[0092] Among them, the security monitoring component may include a firewall.

[0093] In this example, the security score value of the device in the time period can be determined according to the security score value of the security monitoring component in the device in the time period, and the mean security score value, the median security score value, and the standard deviation of the security score can be determined according to the security score value of each device in the target network in the time period; the security score value of the device in the time period is processed according to the mean security score value, the median security score value, and the standard deviation of the security score to obtain the security value of the device in the time period. Therefore, by processing the security score value of the security monitoring component in the device in the time period, the accurate determination of the security value of the device in the time period is achieved, and the accuracy of determining the security value of the device is improved.

[0094] The number of security monitoring components in the device may be one or more. In some examples, when the device includes one security monitoring component, the security score value of the security monitoring component in the device during a time period may be directly used as the security score value of the device during the time period. In other examples, when the device includes multiple security monitoring components, the security score value of each security monitoring component in the device during the time period may be determined, and all the determined security score values ​​may be averaged to obtain a security score mean, and the security score mean may be used as the security score value of the device during the time period.

[0095] In the disclosed embodiment, the security score value of the device in the time period is processed according to the security score mean, the median value of the security score, and the standard deviation of the security score to obtain a possible implementation method of the security value of the device in the time period: the security score standard deviation is calculated as a ratio of the security score mean to obtain a discrete ratio; the quotient obtained by dividing the security score value of the device in the time period by the median value of the security score is obtained; and the quotient and the discrete ratio are multiplied to obtain the security value of the device in the time period. In this example, the security score value of the device in the time period is processed in combination with the security score mean, the median value of the security score, and the standard deviation of the security score, and the security value of the device in the time period is accurately determined, thereby improving the accuracy of determining the security value of the device in the time period.

[0096] For example, after determining the security score value of each device in the target network during the time period, the security score value of each device in the target network during the time period can be averaged to obtain the security score mean μ; the security score value of each device in the target network during the time period can be medianized to obtain the security score median M. In addition, the security score value of each device in the target network during the time period is processed by standard deviation to obtain the security score standard deviation σ. The discrete ratio is calculated based on the security score mean u and the security score standard deviation σ, where the discrete ratio = σ / μ. For device b in the target network, the security score of device b is The calculation formula is

[0097] Step 304: summing up the security values ​​of the various devices in the target network during the time period to obtain the security value of the target network during the time period.

[0098] For example, after determining the security value of each device in the target network within the time period a, the security value of each device in the target network within the time period a can be summed to obtain the security value of the target network within the time period a. Among them, the formula Indicates the security value of any device b in the target network during the time period a. It indicates that the security value of each device in the target network in time period a is summed up.

[0099] Step 305: determine the abnormal value of the target network within the time period.

[0100] Step 306: Determine the network security situation of the target network within the time period according to the vulnerability value, security value, and abnormal value of the target network within the time period.

[0101] Step 307: Determine the final network security situation of the target network according to the network security situation of the target network in each of the time periods.

[0102] It should be noted that, for the specific implementation of steps 305 to 307, reference may be made to the relevant description of the embodiments of the present disclosure, which will not be repeated here.

[0103] In this example, the security value of the target network during the time period is accurately determined by combining the security values ​​of each device in the target network during the time period, so as to facilitate the subsequent accurate determination of the final network security situation of the target network based on the determined security value.

[0104] In order to clearly understand how the present disclosure determines the security value of the target network within the time period, the following is combined with Figure 4 An exemplary description is given of the process of determining the vulnerability value of the target network within the time period. Figure 4 The present invention is a flowchart of a method for determining a network security situation according to another exemplary embodiment.

[0105] like Figure 4 As shown, the method may include:

[0106] Step 401, obtaining the N time periods closest to the current time, where N is an integer of 1.

[0107] Step 402: For each time period in the N time periods, determine a vulnerability value of the target network in the time period.

[0108] Step 403: Determine the security value of the target network within the time period.

[0109] It should be noted that, for the specific implementation of steps 401 to 403, reference may be made to the relevant description of the embodiments of the present disclosure, which will not be repeated here.

[0110] Step 404: determine the abnormal value of each device in the target network within the time period.

[0111] In this embodiment, for each device in the target network, the abnormal value of the device in the time period can be determined according to the network bandwidth and data transmission conditions of the device in the time period.

[0112] Specifically, for each device in the target network, the network bandwidth and data transmission conditions of the device in the time period are obtained; based on the network bandwidth and data transmission conditions, the abnormal value of the device in the time period is determined. Thus, for each device in the target network, combined with the network bandwidth and data transmission conditions of the device in the time period, the abnormal value of the device in the time period is accurately determined, thereby improving the accuracy of determining the abnormal value of the corresponding device in the corresponding time period.

[0113] In the embodiment of the present disclosure, the network bandwidth situation includes: maximum bandwidth, minimum bandwidth and bandwidth utilization, the data transmission situation includes: source IP address of each uplink data, destination IP address of each downlink data, and a possible implementation method of determining the abnormal value of the device in the time period according to the network bandwidth situation and the data transmission situation is: according to the source IP address of each uplink data, determine the first occurrence number of the source IP address with the largest number of occurrences; according to the destination IP address of each downlink data, determine the second occurrence number of the destination IP address with the largest number of occurrences; obtain the bandwidth difference between the maximum bandwidth and the minimum bandwidth; according to the bandwidth difference, the first occurrence number and the second occurrence number, determine the abnormal value of the device in the time period. Thus, combining the occurrence number of the source IP address with the largest number of occurrences in the uplink transmission of the device, the occurrence number of the destination IP address with the largest number of occurrences in the downlink transmission, and the bandwidth difference between the maximum bandwidth of the device and the minimum bandwidth, the abnormal value of the device in the time period is accurately determined, and the accuracy of determining the abnormal value of the device in the time period is improved.

[0114] For example, if the time period is time period a, for device b in the target network, the network bandwidth of device b in time period a includes: maximum bandwidth BW max , minimum bandwidth BW min , bandwidth utilization U, and the data transmission situation of device b in the time period a is: the source IP address of each downlink data, and the destination IP data of each uplink data. According to the data transmission situation, the number of occurrences F of the source IP address with the most occurrences of device b in the time period a and the number of occurrences H of the destination IP address with the most occurrences of device b are determined. Among them, the abnormal value of device b in the time period a is

[0115]

[0116] Step 405: summing up the abnormal values ​​of each device in the target network within the time period to obtain the abnormal value of the target network within the time period.

[0117] For example, after determining the abnormal value of each device in the target network within the time period a, the abnormal value of each device in the target network within the time period a can be summed to obtain the abnormal value of the target network within the time period a. Among them, the formula Indicates the abnormal value of any device b in the target network within the time period a. It indicates that the abnormal values ​​of each device in the target network in time period a are summed up.

[0118] Step 406, determining the network security situation of the target network within the time period according to the vulnerability value, security value and abnormal value of the target network within the time period.

[0119] Step 407: Determine the final network security situation of the target network according to the network security situation of the target network in each of the time periods.

[0120] It should be noted that, for the specific implementation of steps 406 to 407, please refer to the relevant description of the embodiment of the present disclosure, which will not be repeated here.

[0121] In the disclosed embodiment, the abnormal values ​​of each device in the target network within the time period are combined to accurately determine the abnormal values ​​of the target network within the time period, so as to facilitate the subsequent accurate determination of the final network security situation of the target network based on the determined abnormal values.

[0122] Figure 5 The present invention is a schematic diagram showing the structure of a device for determining a network security situation according to an exemplary embodiment.

[0123] like Figure 5 As shown, the network security situation determination device 500 includes an acquisition module 501, a first determination module 502, a second determination module 503, a third determination module 504, a fourth determination module 505 and a fifth determination module 506, wherein:

[0124] The acquisition module 501 is used to acquire the N time periods closest to the current time, where N is an integer of 1.

[0125] The first determining module 502 is configured to determine, for each time period in the N time periods, a vulnerability value of the target network in the time period.

[0126] The second determining module 503 is used to determine the security value of the target network within the time period.

[0127] The third determination module 504 is configured to determine an abnormal value of the target network within the time period.

[0128] The fourth determination module 505 is used to determine the network security situation of the target network within the time period according to the vulnerability value, security value and abnormal value of the target network within the time period.

[0129] The fifth determining module 506 is configured to determine a final network security situation of the target network according to the network security situation of the target network in each of the time periods.

[0130] In one embodiment of the present disclosure, the first determining module 502 includes:

[0131] A first determining unit, configured to determine a vulnerability value of each device in the target network within the time period;

[0132] The first processing unit is used to sum the vulnerability values ​​of each device in the target network within the time period to obtain the vulnerability value of the target network within the time period.

[0133] In one embodiment of the present disclosure, the first determining unit includes:

[0134] A first determination subunit is used to determine vulnerability information of each device in the target network within the time period;

[0135] A second determining subunit, configured to determine a first target vulnerability value of the device within the time period according to the vulnerability information of the device within the time period;

[0136] The third determination subunit is used to determine the vulnerability value of the device within the time period according to the first target vulnerability value and the second target vulnerability value of each target device directly connected to the device in the target network.

[0137] In one embodiment of the present disclosure, the third determining subunit is specifically configured to:

[0138] According to the first target vulnerability value and the second target vulnerability value, the target devices directly connected to the device are grouped to obtain a first group and a second group, wherein the second target vulnerability value of each first target device in the first group is greater than or equal to the first target vulnerability value, and the second target vulnerability value of each second target device in the second group is less than the first target vulnerability value; for each first target device in the first group, the product of the second target vulnerability value of the first target device and the first target vulnerability value is ratio-calculated with the sum of the second target vulnerability value of the first target device and the first target vulnerability value to obtain a vulnerability impact value corresponding to the first target device; the vulnerability impact values ​​corresponding to each first target device in the first group are summed to obtain a summed result; the second vulnerability values ​​of each second target device in the second group are averaged to obtain a vulnerability average value; and the vulnerability value of the device within the time period is determined according to the summed result and the vulnerability average value.

[0139] In one embodiment of the present disclosure, the second determining module 503 includes:

[0140] A second determining unit, used to determine the security value of each device in the target network within the time period;

[0141] The second processing unit is used to sum the security values ​​of each device in the target network within the time period to obtain the security value of the target network within the time period.

[0142] In one embodiment of the present disclosure, the second determining unit includes:

[0143] A fourth determination subunit is used to determine, for each device in the target network, a security score value of the device in the time period according to a security score value of a security monitoring component in the device in the time period;

[0144] A fifth determining subunit, configured to determine a security score mean, a security score median, and a security score standard deviation according to the security score values ​​of each device in the target network during the time period;

[0145] The processing subunit is used to process the safety score value of the device in the time period according to the safety score mean, the safety score median and the safety score standard deviation to obtain the safety value of the device in the time period.

[0146] In one embodiment of the present disclosure, the processing subunit is specifically used to: calculate the ratio of the security score standard deviation to the security score mean to obtain a discrete ratio; obtain the quotient value obtained by dividing the security score value of the device in the time period by the median value of the security score; and multiply the quotient value and the discrete ratio to obtain the security value of the device in the time period.

[0147] In one embodiment of the present disclosure, the third determination module 504 includes:

[0148] A third determining unit, configured to determine an abnormal value of each device in the target network within the time period;

[0149] The third processing unit is used to sum up the abnormal values ​​of each device in the target network within the time period to obtain the abnormal value of the target network within the time period.

[0150] In one embodiment of the present disclosure, the third determining unit includes:

[0151] The acquisition subunit is used to acquire the network bandwidth and data transmission status of each device in the target network within the time period;

[0152] The sixth determining subunit is used to determine the abnormal value of the device within the time period according to the network bandwidth situation and the data transmission situation.

[0153] In one embodiment of the present disclosure, the network bandwidth situation includes: maximum bandwidth, minimum bandwidth and bandwidth utilization, and the data transmission situation includes: source IP address of each upstream data and destination IP address of each downstream data. The sixth determination subunit is specifically used to: determine the first occurrence number of the source IP address with the largest number of occurrences according to the source IP address of each upstream data; determine the second occurrence number of the destination IP address with the largest number of occurrences according to the destination IP address of each downstream data; obtain the bandwidth difference between the maximum bandwidth and the minimum bandwidth; and determine the abnormal value of the device within the time period according to the bandwidth difference, the first occurrence number and the second occurrence number.

[0154] In one embodiment of the present disclosure, the fifth determining module 506 may include:

[0155] A sorting unit, used to sort the network security situation of the target network in each time period in order from the front to the back of the time period, so as to obtain a network security situation sequence;

[0156] A first ratio processing unit is used to compare, for an i-th network security situation in the network security situation sequence, a difference between the i-th network security situation and the i-1-th network security situation with a sum of the i-1-th network security situation and a preset minimum value, so as to obtain a situation change degree corresponding to the i-th network security situation, wherein i is an integer greater than or equal to 1 and less than or equal to N;

[0157] A second ratio processing unit is used to compare the first network security situation in the network security situation sequence with the preset minimum value to obtain a situation change degree corresponding to the first network security situation;

[0158] A selection unit is used to select a plurality of target network security situations whose situation change degrees are less than zero from the network security situation sequence according to the situation change degrees corresponding to the respective network security situations;

[0159] The seventh determining unit is used to determine the final network security situation of the target network according to the multiple target network security situations and their corresponding situation change degrees.

[0160] In one embodiment of the present disclosure, the seventh determining unit includes:

[0161] A first processing subunit is used to perform sum processing on the multiple target network security situations to obtain a first summation result;

[0162] A second processing subunit is used to sum the absolute values ​​of the situation change degrees corresponding to the multiple target network security situations to obtain a second summation result;

[0163] The ratio processing subunit is used to perform ratio calculation on the first summation result and the second summation result to obtain a final network security situation of the target network.

[0164] It should be noted that the aforementioned description of the embodiment of the method for determining the network security situation is also applicable to the device for determining the network security situation of this embodiment, and will not be repeated here.

[0165] The device for determining the network security situation provided by the embodiment of the present disclosure obtains the N time periods closest to the current time when it is necessary to determine the network security situation of the target network, and for each time period, determines the network security situation of the target network in the time period according to the vulnerability value, security value and abnormal value of the target network in the time period, and determines the final network security situation of the target network according to the network security situation of the target network in each time period. Thus, based on the network security situation of the target network in each time period before the current time, the network security situation of the target network is accurately determined.

[0166] According to an embodiment of the present disclosure, there is also provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to: implement the method for determining the network security situation disclosed in the embodiment of the present disclosure.

[0167] In order to implement the above embodiment, the embodiment of the present disclosure also proposes a storage medium.

[0168] When the instructions in the storage medium are executed by the processor, the processor is enabled to execute the method for determining the network security situation disclosed in the embodiment of the present disclosure.

[0169] In order to implement the above embodiments, the embodiments of the present disclosure also provide a computer program product.

[0170] When the computer program product is executed by a processor of an electronic device, the electronic device is enabled to execute the method for determining the network security situation disclosed in the embodiment of the present disclosure.

[0171] Figure 6 The figure is a structural block diagram of an electronic device according to an exemplary embodiment. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0172] like Figure 6 As shown, the electronic device 1000 includes a processor 111, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 112 or a program loaded from a memory 116 to a random access memory (RAM) 113. In the RAM 113, various programs and data required for the operation of the electronic device 1000 are also stored. The processor 111, the ROM 112, and the RAM 113 are connected to each other via a bus 114. An input / output (I / O) interface 115 is also connected to the bus 114.

[0173] The following components are connected to the I / O interface 115: a memory 116 including a hard disk, etc.; and a communication part 117 including a network interface card such as a local area network (LAN) card, a modem, etc., and the communication part 117 performs communication processing via a network such as the Internet; a drive 118 is also connected to the I / O interface 115 as needed.

[0174] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 117. When the computer program is executed by the processor 111, the above-mentioned functions defined in the method of the present disclosure are executed.

[0175] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by the processor 111 of the electronic device 1000 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0176] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0177] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0178] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for determining a network security situation, characterized in that: The method comprises: Get the N time periods closest to the current time, where N is an integer of 1; For each time period in the N time periods, determining a vulnerability value of the target network in the time period; Determining a security value of the target network during the time period; Determining outliers of the target network during the time period; Determine the network security situation of the target network within the time period according to the vulnerability value, security value and abnormal value of the target network within the time period; A final network security situation of the target network is determined according to the network security situation of the target network in each of the time periods.

2. The method according to claim 1, characterized in that The determining the vulnerability value of the target network within the time period includes: Determining a vulnerability value of each device in the target network within the time period; The vulnerability values ​​of the various devices in the target network within the time period are summed up to obtain the vulnerability value of the target network within the time period.

3. The method according to claim 2, characterized in that Determining the vulnerability value of each device in the target network within the time period includes: For each device in the target network, determining vulnerability information of the device within the time period; Determining a first target vulnerability value of the device within the time period according to the vulnerability information of the device within the time period; The vulnerability value of the device within the time period is determined according to the first target vulnerability value and the second target vulnerability value of each target device in the target network directly connected to the device.

4. The method according to claim 3, characterized in that The determining, according to the first target vulnerability value and the second target vulnerability value of each target device directly connected to the device in the target network, a vulnerability value of the device within the time period includes: According to the first target vulnerability value and the second target vulnerability value, grouping the target devices directly connected to the device to obtain a first group and a second group, wherein the second target vulnerability value of each first target device in the first group is greater than or equal to the first target vulnerability value, and the second target vulnerability value of each second target device in the second group is less than the first target vulnerability value; For each first target device in the first group, calculate the ratio of the product of the second target vulnerability value of the first target device and the first target vulnerability value to the sum of the second target vulnerability value of the first target device and the first target vulnerability value to obtain a vulnerability impact value corresponding to the first target device; Summing the vulnerability impact values ​​corresponding to each of the first target devices in the first group to obtain a summation result; Averaging the second vulnerability values ​​of the second target devices in the second group to obtain an average vulnerability value; The vulnerability value of the device within the time period is determined according to the summation result and the vulnerability average value.

5. The method according to claim 1, characterized in that The determining the security value of the target network within the time period includes: Determining a security value of each device in the target network during the time period; The security value of each device in the target network within the time period is summed up to obtain the security value of the target network within the time period.

6. The method according to claim 5, characterized in that The determining of the security value of each device in the target network within the time period includes: For each device in the target network, determine a security score value of the device in the time period according to a security score value of a security monitoring component in the device in the time period; Determine a security score mean, a security score median, and a security score standard deviation according to the security score values ​​of each device in the target network during the time period; The safety score value of the device in the time period is processed according to the safety score mean, the safety score median and the safety score standard deviation to obtain the safety value of the device in the time period.

7. The method according to claim 6, characterized in that The processing of the safety score value of the device in the time period according to the safety score mean, the safety score median, and the safety score standard deviation to obtain the safety value of the device in the time period includes: Calculating the ratio of the safety score standard deviation to the safety score mean to obtain a discrete ratio; Obtaining a quotient value obtained by dividing the security score value of the device in the time period by the median value of the security score; The quotient value and the discrete ratio value are multiplied to obtain a safety value of the device within the time period.

8. The method according to claim 1, characterized in that The determining of the abnormal value of the target network within the time period includes: Determine abnormal values ​​of each device in the target network within the time period; The abnormal values ​​of each device in the target network within the time period are summed up to obtain the abnormal value of the target network within the time period.

9. The method according to claim 8, characterized in that The determining of abnormal values ​​of each device in the target network within the time period includes: For each device in the target network, obtaining the network bandwidth and data transmission status of the device in the time period; An abnormal value of the device within the time period is determined according to the network bandwidth condition and the data transmission condition.

10. The method according to claim 9, characterized in that The network bandwidth condition includes: maximum bandwidth, minimum bandwidth and bandwidth utilization; the data transmission condition includes: source IP address of each uplink data and destination IP address of each downlink data; and determining the abnormal value of the device within the time period according to the network bandwidth condition and the data transmission condition includes: According to the source IP address of each uplink data, determine the first occurrence number of the source IP address with the largest number of occurrences; Determine the second occurrence number of the destination IP address with the largest number of occurrences according to the destination IP address of each downstream data; Obtaining a bandwidth difference between the maximum bandwidth and the minimum bandwidth; An abnormal value of the device within the time period is determined according to the bandwidth difference, the first occurrence number, and the second occurrence number.

11. The method according to any one of claims 1 to 10, characterized in that Determining a final network security situation of the target network according to the network security situation of the target network in each of the time periods includes: Sorting the network security status of the target network in each of the time periods in order from the front to the back of the time period to obtain a network security status sequence; For the ith network security situation in the network security situation sequence, a difference between the ith network security situation and the i-1th network security situation is compared with a sum of the i-1th network security situation and a preset minimum value to obtain a situation change degree corresponding to the ith network security situation, wherein i is an integer greater than or equal to 1 and less than or equal to N; For the first network security situation in the network security situation sequence, compare the first network security situation with the preset minimum value to obtain a situation change degree corresponding to the first network security situation; According to the situation change degree corresponding to each network security situation, selecting a plurality of target network security situations whose situation change degree is less than zero from the network security situation sequence; A final network security situation of the target network is determined according to the multiple target network security situations and their respective corresponding situation change degrees.

12. The method according to claim 11, characterized in that Determining the final network security situation of the target network according to the multiple target network security situations and their respective corresponding situation change degrees includes: Performing a summation process on the multiple target network security situations to obtain a first summation result; Summing the absolute values ​​of the situation change degrees corresponding to the multiple target network security situations to obtain a second summation result; A ratio calculation is performed on the first summation result and the second summation result to obtain a final network security situation of the target network.

13. A device for determining network security situation, characterized in that: The device comprises: An acquisition module is used to acquire the N time periods closest to the current time, where N is an integer of 1; A first determination module is used to determine, for each time period in the N time periods, a vulnerability value of the target network in the time period; A second determination module, configured to determine a security value of the target network within the time period; A third determination module, configured to determine an abnormal value of the target network within the time period; A fourth determination module, configured to determine the network security situation of the target network within the time period according to the vulnerability value, the security value and the abnormal value of the target network within the time period; The fifth determining module is used to determine the final network security situation of the target network according to the network security situation of the target network in each of the time periods.

14. The device according to claim 13, characterized in that The first determining module includes: A first determining unit, configured to determine a vulnerability value of each device in the target network within the time period; The first processing unit is used to sum the vulnerability values ​​of each device in the target network within the time period to obtain the vulnerability value of the target network within the time period.

15. The device according to claim 14, characterized in that The first determining unit includes: A first determining subunit is used to determine vulnerability information of each device in the target network within the time period; A second determining subunit, configured to determine a first target vulnerability value of the device within the time period according to the vulnerability information of the device within the time period; The third determining subunit is used to determine the vulnerability value of the device within the time period according to the first target vulnerability value and the second target vulnerability value of each target device directly connected to the device in the target network.

16. The device according to claim 15, characterized in that The third determining subunit is specifically configured to: According to the first target vulnerability value and the second target vulnerability value, grouping the target devices directly connected to the device to obtain a first group and a second group, wherein the second target vulnerability value of each first target device in the first group is greater than or equal to the first target vulnerability value, and the second target vulnerability value of each second target device in the second group is less than the first target vulnerability value; For each first target device in the first group, calculate the ratio of the product of the second target vulnerability value of the first target device and the first target vulnerability value to the sum of the second target vulnerability value of the first target device and the first target vulnerability value to obtain a vulnerability impact value corresponding to the first target device; Summing the vulnerability impact values ​​corresponding to each of the first target devices in the first group to obtain a summation result; Averaging the second vulnerability values ​​of the second target devices in the second group to obtain an average vulnerability value; The vulnerability value of the device within the time period is determined according to the summation result and the vulnerability average value.

17. The device according to claim 13, characterized in that The second determining module includes: A second determining unit, configured to determine a security value of each device in the target network within the time period; The second processing unit is used to sum the security values ​​of each device in the target network within the time period to obtain the security value of the target network within the time period.

18. The device according to claim 17, characterized in that The second determining unit includes: A fourth determining subunit is used to determine, for each device in the target network, a security score value of the device in the time period according to a security score value of a security monitoring component in the device in the time period; A fifth determining subunit, configured to determine a security score mean, a security score median, and a security score standard deviation according to security score values ​​of each device in the target network within the time period; The processing subunit is used to process the safety score value of the device in the time period according to the safety score mean, the safety score median and the safety score standard deviation to obtain the safety value of the device in the time period.

19. The device according to claim 18, characterized in that The processing subunit is specifically used for: Calculating the ratio of the safety score standard deviation to the safety score mean to obtain a discrete ratio; Obtaining a quotient value obtained by dividing the security score value of the device in the time period by the median value of the security score; The quotient value and the discrete ratio value are multiplied to obtain a safety value of the device within the time period.

20. The device according to claim 13, characterized in that The third determining module comprises: A third determining unit, configured to determine an abnormal value of each device in the target network within the time period; The third processing unit is used to sum the abnormal values ​​of each device in the target network within the time period to obtain the abnormal value of the target network within the time period.

21. The device according to claim 20, characterized in that The third determining unit includes: An acquisition subunit, configured to acquire, for each device in the target network, network bandwidth conditions and data transmission conditions of the device within the time period; The sixth determining subunit is used to determine the abnormal value of the device within the time period according to the network bandwidth condition and the data transmission condition.

22. The device according to claim 21, characterized in that The network bandwidth situation includes: maximum bandwidth, minimum bandwidth and bandwidth utilization; the data transmission situation includes: source IP address of each uplink data and destination IP address of each downlink data; the sixth determination subunit is specifically used for: According to the source IP address of each uplink data, determine the first occurrence number of the source IP address with the largest number of occurrences; Determine the second occurrence number of the destination IP address with the largest number of occurrences according to the destination IP address of each downstream data; Obtaining a bandwidth difference between the maximum bandwidth and the minimum bandwidth; An abnormal value of the device within the time period is determined according to the bandwidth difference, the first occurrence number, and the second occurrence number.

23. The device according to any one of claims 13 to 22, characterized in that The fifth determining module comprises: A sorting unit, used to sort the network security situation of the target network in each time period in order from the front to the back of the time period, so as to obtain a network security situation sequence; a first ratio processing unit, for an i-th network security situation in the network security situation sequence, comparing a difference between the i-th network security situation and the i-1-th network security situation with a sum of the i-1-th network security situation and a preset minimum value, so as to obtain a situation change degree corresponding to the i-th network security situation, wherein i is an integer greater than or equal to 1 and less than or equal to N; A second ratio processing unit is used to compare the first network security situation in the network security situation sequence with the preset minimum value to obtain a situation change degree corresponding to the first network security situation; A selection unit, configured to select, from the network security situation sequence, a plurality of target network security situations whose situation change degrees are less than zero, according to the situation change degrees corresponding to the respective network security situations; The seventh determining unit is used to determine the final network security situation of the target network according to the multiple target network security situations and their corresponding situation change degrees.

24. The device according to claim 23, characterized in that The seventh determining unit includes: A first processing subunit is used to sum the multiple target network security situations to obtain a first summation result; A second processing subunit is used to sum the absolute values ​​of the situation change degrees corresponding to the multiple target network security situations to obtain a second summation result; The ratio processing subunit is used to calculate the ratio of the first summation result and the second summation result to obtain the final network security situation of the target network.

25. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 12 when executing the computer program.

26. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.