Network security early warning method and device, electronic equipment and storage medium
Through the method of network topology map and node security situation scoring, the shortcomings of passive defense in the existing technology are solved, real-time and forward-looking perception of network security situation is realized, and the initiative and early warning ability of defense are improved.
Patent Information
- Application Number
- CN202311107103.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2024-10-18
AI Technical Summary
Existing network security early warning solutions passively defend against external network intrusions through technologies such as firewalls and anti-virus software. They are unable to accurately predict future trends and lack advance understanding of network security risks, resulting in a highly passive defense approach that lacks initiative.
By obtaining the network topology map, determine the type and security posture of each node, and calculate the security posture of each node and the entire network based on the node's attack parameters and security score. If the situation is abnormal in a single cycle or the trend is abnormal in multiple cycles, , then an early warning is carried out to improve real-time and forward-looking capabilities and transform into active defense.
It achieves real-time and forward-looking perception of the network security situation, improves the initiative of network security defense, enhances the early warning capability of potential risks, and avoids the limitations of passive defense.
Smart Images

Figure CN118802196A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a network security early warning method, device, electronic device and storage medium. Background Art
[0002] As the Internet quickly integrates into all aspects of people's lives and work, people are becoming more and more dependent on the Internet. However, cyber attacks emerge in an endless stream, seriously threatening network security. In this regard, network security early warning can detect malicious network behavior as early as possible and is an effective support means for defending against network attacks.
[0003] At present, the network security early warning plan is to passively defend against external network intrusions through technologies such as firewalls and antivirus software, and it is impossible to accurately predict future trends. Therefore, it is an urgent problem to understand the upcoming network security risks in advance and realize the transformation of network security from passive defense to active defense. Summary of the invention
[0004] The embodiments of the present application provide a network security early warning method, device, electronic device and storage medium to address the defects of the network security early warning scheme in the prior art that it passively defends against external network intrusions through technologies such as firewalls and anti-virus software, but cannot accurately predict future trends.
[0005] In a first aspect, an embodiment of the present application provides a network security early warning method, comprising:
[0006] Obtain a network topology map, and determine the type of each node in the network topology map;
[0007] Determine the security situation of each of the nodes within a preset period based on the attack parameters and security situation scores of the nodes of the same type;
[0008] Determining the network security status of the network topology within a preset period according to the security status of all the nodes within a preset period;
[0009] If the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal, an early warning is issued.
[0010] In one embodiment, determining the security situation of each node within a preset period according to the attack parameters and security situation scores of the nodes of the same type includes:
[0011] Determining a security value of each of the nodes within a preset period according to attack parameters of the nodes of the same type;
[0012] Determine the stability value of each of the nodes within a preset period according to the security scores of the nodes of the same type;
[0013] The security status of each of the nodes within a preset period is determined according to the security value and the stability value.
[0014] In one embodiment, determining the security value of each of the nodes within a preset period according to the attack parameters of the nodes of the same type includes:
[0015] Determining the security level of the node according to the type of the node;
[0016] Determine the number of attacks on the node and the impact value of each attack within a preset period according to the attack parameters of the node;
[0017] According to the attack parameters of other nodes of the same type, determine the average number of attacks on other nodes of the same type;
[0018] The security value of each of the nodes within a preset period is determined according to the security level, the number of attacks, the impact value and the average number of attacks.
[0019] In one embodiment, determining the stability value of each node within a preset period according to the security status scores of the nodes of the same type includes:
[0020] Obtaining a safety score for each of the nodes;
[0021] According to the security scores of other nodes of the same type, determine the mean security score and the standard deviation of the security score of other nodes of the same type;
[0022] The stability value of each of the nodes within a preset period is determined based on the security score of each of the nodes, the mean security score of other nodes of the same type, and the standard deviation of the scores.
[0023] In one embodiment, determining the network security status of the network topology graph within a preset period according to the security status of all the nodes within a preset period includes:
[0024] Obtain the number of edges connected to each of the nodes, the flow between each of the nodes and the connected nodes, and the total flow of each of the nodes within a preset period;
[0025] The network security status of the network topology diagram within the preset period is determined based on the number of edges connected to each of the nodes, the traffic between each of the nodes and the connected nodes, the total traffic of each of the nodes within the preset period, and the security status of each of the nodes within the preset period.
[0026] In one embodiment, determining the trend of the network security situation for a plurality of preset periods includes:
[0027] Obtaining the network security situation of a plurality of preset periods;
[0028] Based on the preset minimum value, the trend value of the network security situation in two adjacent preset periods is determined.
[0029] In one embodiment, determining whether the trend of the network security situation in the plurality of preset periods is abnormal includes:
[0030] The ratio between the sum of the trend values less than zero and the sum of the trend values greater than zero is determined, and if the ratio is greater than a preset trend alarm threshold, it is determined that the trend of the network security situation of the multiple preset periods is abnormal.
[0031] In a second aspect, the embodiment of the present application further provides a network security early warning device, including:
[0032] An acquisition module, used to acquire a network topology map and determine the type of each node in the network topology map;
[0033] A first determination module is used to determine the security situation of each of the nodes within a preset period according to the attack parameters and security situation scores of the nodes of the same type;
[0034] A second determination module is used to determine the network security situation of the network topology diagram within a preset period according to the security situation of all the nodes within the preset period;
[0035] The early warning module is used to issue an early warning if the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal.
[0036] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any of the network security warning methods described above.
[0037] In a fourth aspect, an embodiment of the present application further provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the network security early warning method as described in any one of the above is implemented.
[0038] The network security early warning method, device, electronic device and storage medium provided in the embodiments of the present application perceive the security situation of a node based on the network topology diagram and the situation of other nodes of the same type as a certain node, and then perceive the security situation of the entire network based on the security situation of each node. If the situation within a single perception cycle is abnormal, an alarm is issued. If the situation within a single perception cycle is normal, but the situation trend of multiple cycles is abnormal, an alarm is also issued, which not only improves the real-time perception, but also increases the foresight of the alarm, so that passive defense is transformed into active defense. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 It is a flowchart of a network security early warning method provided by an embodiment of the present application;
[0041] Figure 2 It is a schematic diagram of the structure of the network topology diagram provided in the embodiment of the present application;
[0042] Figure 3 The embodiment of this application provides Figure 1 Schematic diagram of the process of step S120;
[0043] Figure 4 The embodiment of this application provides Figure 3 Schematic diagram of the process of step S310;
[0044] Figure 5 The embodiment of this application provides Figure 3 Schematic diagram of the process of step S320;
[0045] Figure 6 The embodiment of this application provides Figure 1 Schematic diagram of the process of step S130;
[0046] Figure 7 is a principle block diagram of a network security early warning device provided in an embodiment of the present application;
[0047] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] Figure 1 is a flow chart of a network security early warning method provided by an embodiment of the present application, such as Figure 1 As shown, the embodiment of the present application provides a network security early warning method, including:
[0050] S110, obtaining a network topology map, and determining the type of each node in the network topology map;
[0051] S120, determining the security situation of each of the nodes within a preset period according to the attack parameters and security situation scores of the nodes of the same type;
[0052] S130, determining the network security status of the network topology graph within a preset period according to the security status of all the nodes within a preset period;
[0053] S140: If the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal, an early warning is issued.
[0054] Figure 2 is a schematic diagram of the structure of the network topology diagram provided in the embodiment of the present application, such as Figure 2 As shown, the network topology diagram can reflect the relationship between nodes in the network. This relationship includes business relationships (such as one device sending data to another device) and connection relationships (such as one device establishing a communication connection with another device). Two devices that have a business relationship must have a connection relationship, but two devices that have a connection relationship do not necessarily have a business relationship (such as when two devices establish a communication connection, no data is exchanged). In the network topology diagram, a point corresponds one-to-one to a node in the network. If there is a relationship between two nodes, there is a line (hereinafter referred to as an edge) between the corresponding points in the network topology diagram.
[0055] The type of node i in the network topology diagram is predetermined and is configured by the corresponding network personnel when the node is initially deployed or when the node type is changed. For example, the types include host devices, network devices, security devices, storage devices, etc.
[0056] In step S120, the attack parameters of the node may be determined based on the attack log of the node, and the security score of the node may be determined based on the security monitoring component in the node.
[0057] In step S140, if the network security situation Sec of this period is less than the period alarm threshold, or if the network security situation Sec of this period is not less than the period alarm threshold but the trend of the network security situation Sec of this period is abnormal, an alarm is issued.
[0058] The periodic alarm threshold is an empirical value, and the present application embodiment does not limit its acquisition method. If the network security situation Sec of this period is not less than the alarm threshold, an alarm may be issued when the periodic situation is not good.
[0059] If the network security situation Sec of this cycle is not less than the cycle alarm threshold, but the network situation is abnormal in multiple cycles, it will also be a critical hit. At this time, the network security situation Sec of this cycle is not less than the cycle alarm threshold, but the trend of the network security situation Sec of this cycle is abnormal.
[0060] It is understandable that the embodiment of the present application perceives the security situation of a node based on the network topology diagram and other nodes of the same type as a certain node, and then perceives the security situation of the entire network based on the security situation of each node. If the situation within a single perception cycle is abnormal, an alarm is issued. If the situation within a single perception cycle is normal, but the situation trend of multiple cycles is abnormal, an alarm is also issued. This not only improves the real-time nature of perception, but also increases the foresight of the alarm, turning passive defense into active defense. It can be widely used in network security-related businesses and has broad application prospects.
[0061] Figure 3 The embodiment of this application provides Figure 1 The flowchart of step S120 is as follows: Figure 3 As shown, in one embodiment, determining the security situation of each node within a preset period according to the attack parameters and security situation scores of the nodes of the same type includes:
[0062] S310, determining a security value of each of the nodes within a preset period according to attack parameters of the nodes of the same type;
[0063] S320, determining a stability value of each of the nodes within a preset period according to the security status scores of the nodes of the same type;
[0064] S330: Determine the security status of each of the nodes within a preset period according to the security value and the stability value.
[0065] Figure 4 The embodiment of this application provides Figure 3The flowchart of step S310 is as follows: Figure 4 As shown, in one embodiment, determining the security value of each node within a preset period according to the attack parameters of the nodes of the same type includes:
[0066] S410, determining the security level of the node according to the type of the node;
[0067] S420, determining the number of attacks on the node and the impact value of each attack within a preset period according to the attack parameter of the node;
[0068] S430, determining an average number of times other nodes of the same type are attacked according to attack parameters of other nodes of the same type;
[0069] S440, determining a security value of each of the nodes within a preset period according to the security level, the number of attacks, the impact value and the average number of attacks.
[0070] In step S410, the device type is also determined and maintained by network personnel, and the security level corresponding to each type is also maintained. The security level is determined based on the impact caused when different types of devices are attacked. For example, a storage device stores a large amount of sensitive data. Once attacked, the loss is large, so the security level of the storage device will be high.
[0071] The embodiment of the present application does not limit the type and the corresponding security level determination scheme, as long as the greater the loss, the greater the security level value.
[0072] After the configuration is completed, all the types and security levels will be stored in a type-security level table. In this step, the type of node i is obtained, and the security level SD corresponding to the type is determined through the stored type-security level table. i .
[0073] In step S420, the attack log of node i is obtained, and the number of attacks received in this cycle is determined according to the attack log. i And the impact value of each attack CVSS j
[0074] The impact value of any attack j is the CVSS (Common Vulnerability Scoring System) value of the vulnerability involved in the attack.
[0075] CVSS is an industry open standard designed to measure the severity of vulnerabilities and help determine the urgency and importance of the response required. Its main purpose is to help people establish a standard for measuring the severity of vulnerabilities so that people can compare the severity of vulnerabilities and determine the priority of dealing with them. CVSS scores are based on measurements on a series of dimensions, which are called metrics. The final score of a vulnerability can be as high as 10 and as low as 0.
[0076] Vulnerabilities with scores of 7 to 10 are generally considered to be severe, those with scores between 4 and 6.9 are medium-level vulnerabilities, and those with scores between 0 and 3.9 are low-level vulnerabilities.
[0077] In step S430, determine the average number of attacks on other nodes of the same type as node i in the network topology graph.
[0078] In step S440, the safety value S of node i is determined. i The calculation formula is as follows:
[0079]
[0080] Among them, max j {CVSS j} refers to the maximum value of the impact value of each attack, min j {SVSS j} refers to the minimum impact value of each attack.
[0081] It can be understood that the embodiment of the present application provides a technical solution for determining the security value of each node within a preset period through attack parameters of nodes of the same type, thereby improving the accuracy of the security value of the node.
[0082] Figure 5 The embodiment of this application provides Figure 3 The flowchart of step S320 is as follows: Figure 5 As shown, in one embodiment, determining the stability value of each node within a preset period according to the security situation scores of the nodes of the same type includes:
[0083] S510, obtaining a security score of each of the nodes;
[0084] S520, determining the mean and standard deviation of the security scores of other nodes of the same type according to the security scores of other nodes of the same type;
[0085] S530, determining a stability value of each of the nodes within a preset period according to the security score of each of the nodes, the mean security score of other nodes of the same type, and the standard deviation of the score.
[0086] In step S510, each node will have a security monitoring component such as a firewall, and each security monitoring component will also score the current security status of the node. This step is to obtain the score.
[0087] If there are multiple security monitoring components in a node, and each security monitoring component is given a score, then the average score of all security components can be used as the score value of the node.
[0088] In step S520, the average score of other nodes of the same type as node i in the network topology is calculated. Rating standard deviation σ i0 ,
[0089] In step S530, the calculation formula of the stability value of each node within a preset period is as follows:
[0090]
[0091] Among them, STA i It is the stable value of each of the nodes within a preset period.
[0092] It can be understood that the embodiment of the present application determines the stability value of each node within a preset period by scoring the security status of the nodes of the same type, thereby improving the accuracy of the stability value of the node.
[0093] Based on the above embodiment, the calculation formula of the security situation of each node within a preset period is as follows:
[0094]
[0095] Among them, Sec i The security status of each of the nodes within a preset period.
[0096] Figure 6 The embodiment of this application provides Figure 1 The flowchart of step S130 is as follows: Figure 6 As shown, in one embodiment, determining the network security situation of the network topology diagram within a preset period according to the security situation of all the nodes within a preset period includes:
[0097] S610, obtaining the number of edges connected to each of the nodes, the flow between each of the nodes and the connected nodes, and the total flow of each of the nodes within a preset period;
[0098] S620, determining the network security status of the network topology diagram within a preset period based on the number of edges connected to each of the nodes, the traffic between each of the nodes and the connected nodes, the total traffic of each of the nodes within a preset period, and the security status of each of the nodes within a preset period.
[0099] Specifically, the calculation formula of the network security situation of the network topology diagram within a preset period is as follows:
[0100]
[0101] Among them, Sec is the network security situation of the network topology within the preset period, D i is the number of edges connected to node i, u is the identifier of other nodes that have edges with node i, and f iu is the traffic between node i and node u in this cycle, f i is the total flow of node i in this cycle.
[0102] It is understandable that the embodiment of the present application perceives the security situation of a node based on the network topology diagram and other nodes of the same type as a certain node, and then perceives the security situation of the entire network based on the security situation of each node. If the situation within a single perception cycle is abnormal, an alarm is issued. If the situation within a single perception cycle is normal, but the situation trend of multiple cycles is abnormal, an alarm is also issued. This not only improves the real-time nature of perception, but also increases the foresight of the alarm, turning passive defense into active defense. It can be widely used in network security-related businesses and has broad application prospects.
[0103] In one embodiment, determining the trend of the network security situation for a plurality of preset periods includes:
[0104] Obtaining the network security situation of a plurality of preset periods;
[0105] Based on the preset minimum value, the trend value of the network security situation in two adjacent preset periods is determined.
[0106] Specifically, the complete situation of n consecutive cycles with this cycle as the last cycle is obtained, and they are arranged from far to near in chronological order to form a network situation set {Sec t}, 1≤t≤n.
[0107] The trend value is calculated as follows:
[0108]
[0109] Among them, k t is the trend value. If t=1, then Sec t-1=0, ε is the preset minimum value.
[0110] In one embodiment, determining whether the trend of the network security situation in the plurality of preset periods is abnormal includes:
[0111] The ratio between the sum of the trend values less than zero and the sum of the trend values greater than zero is determined, and if the ratio is greater than a preset trend alarm threshold, it is determined that the trend of the network security situation of the multiple preset periods is abnormal.
[0112] Specifically, k less than 0 t Recorded as Then if If it is greater than the trend alarm threshold, it is determined that the network security trend is risky and an early warning is issued.
[0113] It can be understood that the embodiment of the present application also issues an alarm when the situation trend in multiple cycles is abnormal, which not only improves the real-time perception, but also increases the foresight of the alarm, thereby transforming passive defense into active defense.
[0114] The network security early warning device provided in the present application is described below. The network security early warning device described below and the network security early warning method described above can be referenced to each other.
[0115] Figure 7 This is a principle block diagram of the network security early warning device provided by this application, such as Figure 7 As shown, the embodiment of the present application also provides a network security early warning device, including:
[0116] An acquisition module 710 is used to acquire a network topology map and determine the type of each node in the network topology map;
[0117] A first determination module 720, configured to determine the security situation of each of the nodes within a preset period according to the attack parameters and security situation scores of the nodes of the same type;
[0118] A second determination module 730 is used to determine the network security situation of the network topology graph within a preset period according to the security situation of all the nodes within a preset period;
[0119] The early warning module 740 is used to issue an early warning if the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal.
[0120] In one embodiment, the first determining module 720 is further configured to:
[0121] Determining a security value of each of the nodes within a preset period according to attack parameters of the nodes of the same type;
[0122] Determine the stability value of each of the nodes within a preset period according to the security scores of the nodes of the same type;
[0123] The security status of each of the nodes within a preset period is determined according to the security value and the stability value.
[0124] In one embodiment, the first determining module 720 is further configured to:
[0125] Determining the security level of the node according to the type of the node;
[0126] Determine the number of attacks on the node and the impact value of each attack within a preset period according to the attack parameters of the node;
[0127] According to the attack parameters of other nodes of the same type, determine the average number of attacks on other nodes of the same type;
[0128] The security value of each of the nodes within a preset period is determined according to the security level, the number of attacks, the impact value and the average number of attacks.
[0129] In one embodiment, the first determining module 720 is further configured to:
[0130] Obtaining a safety score for each of the nodes;
[0131] According to the security scores of other nodes of the same type, determine the mean security score and the standard deviation of the security score of other nodes of the same type;
[0132] The stability value of each of the nodes within a preset period is determined based on the security score of each of the nodes, the mean security score of other nodes of the same type, and the standard deviation of the scores.
[0133] In one embodiment, the second determining module 730 is further configured to:
[0134] Obtain the number of edges connected to each of the nodes, the flow between each of the nodes and the connected nodes, and the total flow of each of the nodes within a preset period;
[0135] The network security status of the network topology diagram within the preset period is determined based on the number of edges connected to each of the nodes, the traffic between each of the nodes and the connected nodes, the total traffic of each of the nodes within the preset period, and the security status of each of the nodes within the preset period.
[0136] In one embodiment, the early warning module 740 is further configured to:
[0137] The network security situation of multiple preset periods is obtained; based on a preset minimum value, a trend value of the network security situation of two adjacent preset periods is determined.
[0138] In one embodiment, the early warning module 740 is further configured to:
[0139] The ratio between the sum of the trend values less than zero and the sum of the trend values greater than zero is determined, and if the ratio is greater than a preset trend alarm threshold, it is determined that the trend of the network security situation of the multiple preset periods is abnormal.
[0140] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the network security early warning method, which includes:
[0141] Obtain a network topology map, and determine the type of each node in the network topology map;
[0142] Determine the security situation of each of the nodes within a preset period based on the attack parameters and security situation scores of the nodes of the same type;
[0143] Determining the network security status of the network topology within a preset period according to the security status of all the nodes within a preset period;
[0144] If the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal, an early warning is issued.
[0145] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0146] On the other hand, the present application also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the network security early warning method provided by the above methods, the method includes:
[0147] Obtain a network topology map, and determine the type of each node in the network topology map;
[0148] Determine the security situation of each of the nodes within a preset period based on the attack parameters and security situation scores of the nodes of the same type;
[0149] Determining the network security status of the network topology within a preset period according to the security status of all the nodes within a preset period;
[0150] If the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal, an early warning is issued.
[0151] In another aspect, the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the network security early warning method provided by the above methods is implemented, and the method includes:
[0152] Obtain a network topology map, and determine the type of each node in the network topology map;
[0153] Determine the security situation of each of the nodes within a preset period based on the attack parameters and security situation scores of the nodes of the same type;
[0154] Determining the network security status of the network topology within a preset period according to the security status of all the nodes within a preset period;
[0155] If the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal, an early warning is issued.
[0156] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0157] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A network security early warning method, characterized in that: include: Obtain a network topology map, and determine the type of each node in the network topology map; Determine the security situation of each of the nodes within a preset period based on the attack parameters and security situation scores of the nodes of the same type; Determining the network security status of the network topology within a preset period according to the security status of all the nodes within a preset period; If the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal, an early warning is issued.
2. The network security early warning method according to claim 1 is characterized in that: Determining the security situation of each node within a preset period according to the attack parameters and security situation scores of the nodes of the same type includes: Determining a security value of each of the nodes within a preset period according to attack parameters of the nodes of the same type; Determine the stability value of each of the nodes within a preset period according to the security scores of the nodes of the same type; The security status of each of the nodes within a preset period is determined according to the security value and the stability value.
3. The network security early warning method according to claim 2 is characterized in that: The step of determining the security value of each of the nodes within a preset period according to the attack parameters of the nodes of the same type includes: Determining the security level of the node according to the type of the node; Determine the number of attacks on the node and the impact value of each attack within a preset period according to the attack parameters of the node; According to the attack parameters of other nodes of the same type, determine the average number of attacks on other nodes of the same type; The security value of each of the nodes within a preset period is determined according to the security level, the number of attacks, the impact value and the average number of attacks.
4. The network security early warning method according to claim 2 is characterized in that: The step of determining the stability value of each node within a preset period according to the security situation scores of the nodes of the same type includes: Obtaining a safety score for each of the nodes; According to the security scores of other nodes of the same type, determine the mean security score and the standard deviation of the security score of other nodes of the same type; The stability value of each of the nodes within a preset period is determined based on the security score of each of the nodes, the mean security score of other nodes of the same type, and the standard deviation of the scores.
5. The network security early warning method according to claim 1 is characterized in that: Determining the network security status of the network topology diagram within a preset period according to the security status of all the nodes within a preset period includes: Obtain the number of edges connected to each of the nodes, the flow between each of the nodes and the connected nodes, and the total flow of each of the nodes within a preset period; The network security status of the network topology diagram within the preset period is determined based on the number of edges connected to each of the nodes, the traffic between each of the nodes and the connected nodes, the total traffic of each of the nodes within the preset period, and the security status of each of the nodes within the preset period.
6. The network security early warning method according to claim 1 is characterized in that: Determining trends of the network security situation for a plurality of preset periods, including: Obtaining the network security situation of a plurality of preset periods; Based on the preset minimum value, the trend value of the network security situation in two adjacent preset periods is determined.
7. The network security early warning method according to claim 6 is characterized in that: Determining whether the trend of the network security situation in the plurality of preset periods is abnormal includes: The ratio between the sum of the trend values less than zero and the sum of the trend values greater than zero is determined, and if the ratio is greater than a preset trend alarm threshold, it is determined that the trend of the network security situation of the multiple preset periods is abnormal.
8. A network security early warning device, characterized in that: include: An acquisition module, used to acquire a network topology map and determine the type of each node in the network topology map; A first determination module is used to determine the security situation of each of the nodes within a preset period according to the attack parameters and security situation scores of the nodes of the same type; A second determination module is used to determine the network security situation of the network topology diagram within a preset period according to the security situation of all the nodes within the preset period; The early warning module is used to issue an early warning if the network security situation is less than a preset period alarm threshold or the trend of the network security situation in multiple preset periods is abnormal.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the network security early warning method as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the network security early warning method as described in any one of claims 1 to 7 is implemented.
