Network security protection method and system
By performing violation detection and topology map updating on network operations of dynamic networks, the problem of insufficient efficiency and accuracy of security identification of dynamic networks is solved, dual detection and safe processing of network operations are realized, identification and processing efficiency is improved, and ensuring Cybersecurity.
Patent Information
- Application Number
- CN202410977489.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology has low identification efficiency and poor accuracy in the security identification of dynamic networks, and cannot effectively handle network operations, resulting in the inability to ensure the security of dynamic networks.
By detecting violations in network operations of the target network, identifying the operation type, and constructing and updating network topology diagrams, including device status and traffic relationships, and executing corresponding operations if there are no faults, dual detection and safe processing of network operations are achieved.
It improves the identification efficiency and processing accuracy of whether network operations cause faults and ensures the security of dynamic networks.
Smart Images

Figure CN118555207A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a network security protection method and system. Background Art
[0002] With the rapid development of the Internet, the security issues of dynamic networks (hereinafter referred to as dynamic networks) have become increasingly important.
[0003] However, currently, when performing security identification on network operations of dynamic networks, there are problems of low identification efficiency and poor identification accuracy, which makes it impossible to accurately and effectively process network operations, and thus it is impossible to ensure the security of dynamic networks. Summary of the invention
[0004] In view of the technical problem in the prior art that network operations cannot be accurately and effectively processed, the present invention provides a network security protection method and system.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: In a first aspect of an embodiment of the present invention, a network security protection method is provided, the method comprising: In response to at least one network operation on the target network, performing violation detection on each of the operation instructions to obtain a detection result; If the detection result indicates that there is no illegal network operation in the at least one network operation, identifying the operation type of each network operation to obtain a first network operation and a second network operation, wherein the first network operation is used to operate traffic between network devices in the target network, and the second network operation is used to operate device states of network devices in the target network; Constructing a first network topology map and a second network topology map of the target network, and updating the first network topology map based on the first network operation to obtain an updated first network topology map, and updating the second network topology map based on the second network operation to obtain an updated second network topology map; the first network topology map includes a first network node representing a network device in the target network, and a first connection line representing a state association between the first network nodes; the first network topology map includes a second network node representing at least one network device in the target network, and a second connection line representing a traffic relationship between the second network nodes; If it is determined according to the updated first network topology map that the target network has no fault, then executing the first network operation; If it is determined according to the updated second network topology map that the target network has no fault, the second network operation is performed.
[0006] Optionally, constructing the first network topology graph of the target network includes: Acquire device status information of each network device in the target network and status association relationships between the network devices; Based on the device status information and the status association relationship, a first network topology diagram is generated, wherein the first network topology diagram includes a first network node representing each network device, a node color representing the device status of the first network node, and a first connection line representing the existence of a status association between the first network nodes.
[0007] Optionally, if it is determined according to the updated first network topology map that the target network has no fault, then performing the first network operation includes: Determining in the updated first network topology map whether the node color of the first network node corresponding to the first network operation meets a first preset condition; If the node color of the first network node corresponding to the first network operation meets the first preset condition, detecting whether there is a first network node with a status association with the first network node corresponding to the first network operation; If there is no first network node associated with the status, it is determined that there is no fault in the target network, and the first network operation is performed.
[0008] Optionally, the method further comprises: If there is a state-associated first network node, determining whether the node color of the state-associated first network node satisfies a second preset condition; If the node color of the first network node associated with the state meets the second preset condition, it is determined that there is no fault in the target network, and the first network operation is performed.
[0009] Optionally, constructing the second network topology graph of the target network includes: Acquire device information of network devices in the target network and traffic information between network devices, and perform feature extraction on the device information to obtain target features, wherein the target features include at least one of device attribute features, device environment features, and device status features; Based on the target feature, clustering the network devices in the target network to obtain clusters, and determining cluster traffic relationships between the clusters based on the traffic information, wherein the cluster includes at least one of the network devices; A second network topology diagram of the target network is constructed based on the clusters and the cluster traffic relationships, wherein the second network topology diagram includes network nodes corresponding to the clusters and lines representing traffic relationships between the clusters.
[0010] Optionally, if it is determined according to the updated second network topology map that the target network does not have a fault, performing the second network operation includes: Determining in the updated second network topology map whether a second connection between the second network node corresponding to the second network operation and other network nodes in the second network topology map satisfies a third preset condition; If the connection between the second network node corresponding to the second network operation and other network nodes in the second network topology diagram meets the third preset condition, it is determined that there is no fault in the target network, and the second network operation is performed.
[0011] Optionally, the line width of the second line represents the flow size, the direction of the second line represents the direction of the flow, and the third preset condition includes that the line width of the second line meets the preset line width requirement and / or the direction of the second line meets the preset direction requirement.
[0012] According to a second aspect of an embodiment of the present invention, a network operation processing system is provided, the system comprising: A detection module, configured to, in response to at least one network operation on a target network, perform a violation detection on each operation instruction to obtain a detection result; an identification module, configured to identify the operation type of each network operation if the detection result indicates that there is no illegal network operation in the at least one network operation, and obtain a first network operation and a second network operation, wherein the first network operation is used to operate the traffic between network devices in the target network, and the second network operation is used to operate the device status of the network devices in the target network; A construction and update module, used to construct a first network topology map and a second network topology map of the target network, and update the first network topology map based on the first network operation to obtain an updated first network topology map, and update the second network topology map based on the second network operation to obtain an updated second network topology map; the first network topology map includes a first network node representing a network device in the target network, and a first connection line representing a state association between the first network nodes; the first network topology map includes a second network node representing at least one network device in the target network, and a second connection line representing a traffic relationship between the second network nodes; A first execution module, configured to execute the first network operation if it is determined that the target network does not have a fault according to the updated first network topology map; The second execution module is used to execute the second network operation if it is determined that the target network has no fault according to the updated second network topology map.
[0013] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in the network security protection method described in the first aspect.
[0014] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for loading by a processor to execute the steps in the security protection method described in the first aspect.
[0015] The present invention provides a network security protection method and system. Compared with the prior art, it has the following beneficial effects: The solution provided in this embodiment performs violation detection on each operation instruction in response to at least one network operation for the target network to obtain a detection result; if the detection result indicates that there is no illegal network operation in at least one network operation, the operation type of each network operation is identified to obtain a first network operation and a second network operation, the first network operation is used to operate the traffic between network devices in the target network, and the second network operation is used to operate the device status of the network devices in the target network; a first network topology map and a second network topology map of the target network are constructed, and the first network topology map is updated based on the first network operation to obtain an updated first network topology map, and the second network topology map is updated based on the second network operation to obtain an updated second network topology map; the first network topology map includes a first network node representing a network device in the target network, and a first connection line representing a state association between the first network nodes; the first network topology map includes a second network node representing at least one network device in the target network, and a second connection line representing a traffic relationship between the second network nodes; if it is determined that there is no fault in the target network according to the updated first network topology map, the first network operation is executed; if it is determined that there is no fault in the target network according to the updated second network topology map, the second network operation is executed. Therefore, it is possible to conduct dual detection of network operations in terms of violations and failures, which can effectively ensure the security of the target network. In addition, in the process of judging whether a network operation will cause a failure, by constructing different network topology diagrams for different types of network operations, and then using the corresponding network topology diagrams, it is possible to accurately judge whether the target network will fail from the overall perspective of the target network, and then decide whether to execute the network operation, which greatly improves the efficiency of identifying whether a network operation will cause a failure, and also improves the efficiency and accuracy of processing network operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a schematic diagram of an application scenario of a network security protection method according to an exemplary embodiment; Figure 2is a flow chart of a network security protection method according to an exemplary embodiment; Figure 3 is a first network topology diagram shown according to an exemplary embodiment; Figure 4 is a second network topology diagram shown according to an exemplary embodiment; Figure 5 It is a principle block diagram of a network operation processing system according to an exemplary embodiment. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] It is understandable that in the specific implementation of this application, data related to access requests, addresses, etc. is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0019] Figure 1 is a schematic diagram of an application environment of a network security protection method according to an exemplary embodiment. Figure 1 As shown, the application environment may be a target network, which is a dynamic network (such as a mobile network), and the target network may include multiple network devices. Optionally, the network device may include but is not limited to: a tablet computer, a smart phone, a laptop computer, a vehicle terminal, a server, etc. Optionally, the network device may be a separate server or a server cluster, which is not limited here.
[0020] It can be understood that the target network may also include a base station device, and multiple network devices in the target network may perform network communication through the base station identification.
[0021] Figure 2 is a flow chart of a network security protection method according to an exemplary embodiment. Figure 2 As shown, the above method comprises the following steps: 101. In response to at least one network operation on a target network, perform violation detection on each operation instruction to obtain a detection result.
[0022] The network operation may be an operation on one or more network devices in the target network. Optionally, the network operation may be used to adjust the device status of the network device. For example, the network operation may be an operation to shut down, start up, or switch a network device to sleep mode. Optionally, the network operation may also be an operation to adjust the traffic between network devices. For example, the network operation may be an operation to increase, decrease, or block the traffic between two network devices.
[0023] In some implementations, specific implementations of performing violation detection on operation instructions may include: By analyzing network operation behaviors (operation content, operation equipment, operation instructions, communication data, traffic data, etc.), a network operation identification model is constructed. Then, the network operation identification model is used to intelligently identify illegal behaviors and automatically block or issue timely alarms, thereby improving the security and compliance of network operations and ensuring the stability and reliability of various services.
[0024] Exemplarily, the construction of the network operation identification model may include: network operation data collection and cleaning, network operation identification model construction, using the network operation identification model to output a list of illegal network operations based on the received network operations, automatically blocking and alarming illegal network operations, and iteratively updating the model using illegal network operations. Illegal network operations may be network operations that violate laws or industry regulations, such as unauthorized access to network resources, changing the device status of network devices, hacking by exploiting vulnerabilities, stealing information or destroying systems, wasting network resources, such as performing a large amount of unnecessary data transmission, etc.
[0025] 102. If the detection result indicates that there is no illegal network operation in at least one network operation, identify the operation type of each network operation to obtain a first network operation and a second network operation, wherein the first network operation is used to operate the traffic between network devices in the target network, and the second network operation is used to operate the device status of the network devices in the target network.
[0026] For example, if each network operation in at least one network operation is not an illegal network operation, the operation type of each network operation in at least one network operation can be identified. For another example, if there is an illegal network operation in at least one network operation, the illegal network operation can be filtered from at least one network operation to obtain filtered network operations, and then the operation type of each network operation in the filtered network operations can be identified.
[0027] In some implementations, the operation type of each network operation can be determined by a pre-trained operation type recognition model. The operation type recognition model can be trained based on network operation samples with labeled operation types. Specifically, operation features (such as operation content, operation equipment, operation instructions, communication data, flow data, etc.) can be extracted from the network operation samples, and then model training is performed based on the operation features to obtain a trained operation type recognition model. The trained operation type recognition model can output the corresponding operation type based on the input network operation features.
[0028] 103. Construct a first network topology map and a second network topology map of the target network, and update the first network topology map based on the first network operation to obtain an updated first network topology map, and update the second network topology map based on the second network operation to obtain an updated second network topology map; the first network topology map includes a first network node representing a network device in the target network, and a first connection line representing a state association between the first network nodes; the first network topology map includes a second network node representing at least one network device in the target network, and a second connection line representing a traffic relationship between the second network nodes.
[0029] In some implementations, in step 103, a specific implementation of constructing a first network topology graph of the target network may include: Obtain the device status information of each network device in the target network and the status association relationship between network devices.
[0030] Based on the device status information and the status association relationship, a first network topology diagram is generated, which includes a first network node representing each network device, a node color representing the device status of the first network node, and a first connection line representing the status association between the first network nodes.
[0031] Exemplarily, the first network topology diagram of the constructed target network can be as follows: Figure 3 As shown, the first network topology diagram may include the first network node 1, the first network node 2, the first network node 3, the first network node 4, and the first network node 5 corresponding to the network device 1, the network device 2, the network device 3, the network device 4, and the network device 5, respectively. Then, the color of the first network node in the first network topology diagram may be determined according to the current device state of the network device corresponding to the first network node, for example, red represents that the network device corresponding to the first network node is currently in the power-on state, blue represents that the network device corresponding to the first network node is currently in the power-off state, and white represents that the network device corresponding to the first network node is currently in the sleep state or standby state. It can be understood that the device state includes other device states in addition to the above three types, such as running at a certain power, etc., which are not limited here.
[0032] Then, the first connection of each first network node in the first network topology diagram can be determined based on the state association relationship between the first network nodes. Among them, if there is a state association between two first network nodes, it means that the states of the network devices corresponding to the two first network nodes will affect each other. Exemplarily, for example, in actual applications, network device 1 needs to run together with network device 2, so a first connection needs to be established between the first network node 1 corresponding to network device 1 and the first network node 2 corresponding to network device 2. For another example, in actual applications, when network device 3 is turned on, network device 4 needs to be turned off, so a first connection needs to be established between the first network node 3 corresponding to network device 3 and the first network node 4 corresponding to network device 4. Among them, the state association relationship between the first network nodes can be obtained in advance, or customized by the user according to actual needs, which is not limited here.
[0033] Optionally, in the first network topology diagram, different forms of the first connection may correspond to different state association relationships, for example, Figure 3 In the figure, the state association relationship represented by the dotted line is a state consistent relationship, that is, the two first network nodes must be the same color at the same time. The state association relationship represented by the solid line is a state mutually exclusive relationship, that is, the two first network nodes cannot be the same color at the same time.
[0034] It can be seen that in this embodiment, by constructing the first network topology diagram, the status of each network device in the target network and the status association relationship between the network devices can be clearly and intuitively displayed, so as to facilitate the subsequent use of the first network topology diagram to perform fault analysis on network operations.
[0035] In some implementations, in step 105, the specific implementation of constructing the second network topology graph of the target network may include: The device information of the network devices in the target network and the traffic information between the network devices are obtained, and the feature extraction of the device information is performed to obtain the target feature, which includes at least one of the device attribute feature, the device environment feature and the device status feature.
[0036] Based on the target feature, the network devices in the target network are clustered to obtain clusters, and the cluster traffic relationship between the clusters is determined based on the traffic information, and the cluster includes at least one network device.
[0037] A second network topology diagram of the target network is constructed based on the clusters and the cluster traffic relationship. The second network topology diagram includes network nodes corresponding to the clusters and second lines representing the traffic relationship between the clusters.
[0038] The device information may include the region where the device is located, the temperature, humidity, magnetic field and other environmental factors that may affect the operation of the device, the device status (such as on, off, etc.), and the device attributes (such as device type, device parameters, etc.). The flow information may include the flow size and flow direction.
[0039] In some implementations, a k-means clustering algorithm may be used when clustering network devices in a target network based on target features.
[0040] Exemplarily, the second network topology diagram of the target network can be constructed as follows: Figure 4 As shown, during construction, one or more network devices belonging to the same cluster may be represented by a second network node in the second network topology diagram, such as Figure 4 The second network node a and the second network node b include two network devices.
[0041] Then, the cluster traffic relationship between clusters is determined based on the traffic information of the network devices in each cluster, and then a second connection between the second network nodes is constructed in the second network topology diagram based on the cluster traffic relationship between the clusters, wherein the traffic relationship between the two clusters can be obtained by superimposing the traffic between the network devices in the two clusters.
[0042] 104. If it is determined according to the updated first network topology map that the target network has no fault, then a first network operation is performed.
[0043] In some implementations, in step 104, the specific implementation of “if it is determined that the target network does not have a fault according to the updated first network topology map, then performing the first network operation” includes: In the updated first network topology map, it is determined whether the node color of the first network node corresponding to the first network operation meets the first preset condition.
[0044] If the node color of the first network node corresponding to the first network operation meets the first preset condition, it is detected whether there is a first network node with a status association with the first network node corresponding to the first network operation.
[0045] If there is no first network node associated with the status, it is determined that there is no fault in the target network, and the first network operation is performed.
[0046] For example, please refer to Figure 3 For example, when network device 1 receives a first network operation (such as switching the device from an on state to an off state), the device state of network device 1 in the target network can be updated according to the first network operation, and then an updated first network topology map is generated based on the updated target network.
[0047] If the first network node corresponding to the network device 1 in the updated first network topology diagram changes from red to blue, it is determined that the node color of the first network node corresponding to the first network operation meets the first preset condition. If the first network node corresponding to the network device 1 in the updated first network topology diagram changes from red to white or other colors, it is determined that the node color of the first network node corresponding to the first network operation does not meet the first preset condition.
[0048] Continuing with the above example, if it is determined that the node color of the first network node corresponding to the first network operation meets the first preset condition, continue to detect whether there is a first network node with a status association with the first network node 1 corresponding to the first network operation. If not, determine that there is no fault in the target network and execute the first network operation.
[0049] In some implementations, in step 104, the method may further include: If there is a state-associated first network node, it is determined whether the node color of the state-associated first network node satisfies a second preset condition.
[0050] If the node color of the first network node associated with the state meets the second preset condition, it is determined that there is no fault in the target network, and the first network operation is performed.
[0051] Using the above example, Figure 3 As shown, if it is detected that the first network node 1 corresponding to the first network operation has a first network node 2 associated with its state, it can continue to detect whether the node color of the first network node 2 associated with its state is the same as the node color of the first network node, which is blue. If not, it is determined that the node color of the first network node 2 associated with its state does not meet the second preset condition. If so, it is determined that the node color of the first network node 2 associated with its state meets the second preset condition, and it is determined that there is no fault in the target network, and the first network operation is performed.
[0052] 105. If it is determined according to the updated second network topology map that the target network has no fault, then a second network operation is performed.
[0053] In some implementations, in step 105, the specific implementation of “if it is determined that the target network does not have a fault according to the updated second network topology map, then performing the second network operation” may include: In the updated second network topology map, it is determined whether a second connection between a second network node corresponding to the second network operation and other network nodes in the second network topology map satisfies a third preset condition.
[0054] If the connection between the second network node corresponding to the second network operation and other network nodes in the second network topology diagram meets the third preset condition, it is determined that there is no fault in the target network, and the second network operation is performed.
[0055] In some embodiments, the line width of the second line represents the flow size, the direction of the second line represents the direction of the flow, and the third preset condition includes that the line width of the second line meets the preset line width requirement and / or the direction of the second line meets the preset direction requirement.
[0056] Using the above example, please refer to Figure 4 , wherein the second network device a corresponds to cluster a, and cluster a includes network device 6 and network device 7 (such as Figure 4 The second network device a corresponds to cluster b, and cluster b includes network device 8 and network device 9 (such as Figure 4 As an example, when network device a receives a second network operation (such as reducing or shutting down the traffic between network device 6 and network device 8), the status of network device 6 and network device 8 can be updated according to the second network operation, and then an updated second network topology map is generated based on the updated target network.
[0057] If the line width of the second connection between the second network device a and the second network device b in the updated second network topology diagram becomes thinner, it is determined whether the second connection between the second network node corresponding to the second network operation and other network nodes in the second network topology diagram meets the third preset condition.
[0058] For another example, see Figure 4 , wherein the second network device c corresponds to cluster c, and cluster c includes network devices 10 (such as Figure 4 The second network device d corresponds to cluster d, and cluster d includes network device 11 (such as Figure 4 As an example, when network device c receives a second network operation (such as changing the traffic direction between network device 10 and network device 11), the traffic direction between network device 10 and network device 11 can be updated according to the second network operation, and then an updated second network topology map is generated based on the updated target network.
[0059] If the direction of the second connection between the second network device c and the second network device d in the updated second network topology diagram changes, it is determined whether the second connection between the second network node corresponding to the second network operation and other network nodes in the second network topology diagram meets the third preset condition.
[0060] It can be seen that in this embodiment, by constructing the second network topology diagram, the traffic relationship between each network device in the target network can be clearly and intuitively displayed, so as to facilitate the subsequent use of the second network topology diagram to perform traffic fault analysis on network operations. In addition, since the second network node in the second network topology diagram is constructed by clustering network devices, the number of network nodes in the second network topology diagram is greatly reduced, the second network topology diagram is simplified, and the error-prone situation of analyzing traffic in numerous network nodes is avoided, thereby using the second network topology diagram to improve the processing efficiency of network operations.
[0061] It can be seen that in this embodiment, by responding to at least one network operation for the target network, each operation instruction is detected for violation to obtain a detection result; if the detection result indicates that there is no illegal network operation in at least one network operation, the operation type of each network operation is identified to obtain a first network operation and a second network operation, the first network operation is used to operate the traffic between network devices in the target network, and the second network operation is used to operate the device status of the network devices in the target network; a first network topology map and a second network topology map of the target network are constructed, and the first network topology map is updated based on the first network operation to obtain an updated first network topology map, and the second network topology map is updated based on the second network operation to obtain an updated second network topology map; the first network topology map includes a first network node representing a network device in the target network, and a first connection line representing a state association between the first network nodes; the first network topology map includes a second network node representing at least one network device in the target network, and a second connection line representing a traffic relationship between the second network nodes; if it is determined that the target network does not have a fault according to the updated first network topology map, the first network operation is executed; if it is determined that the target network does not have a fault according to the updated second network topology map, the second network operation is executed. Therefore, it is possible to conduct dual detection of network operations in terms of violations and failures, which can effectively ensure the security of the target network. In addition, in the process of judging whether a network operation will cause a failure, by constructing different network topology diagrams for different types of network operations, and then using the corresponding network topology diagrams, it is possible to accurately judge whether the target network will fail from the overall perspective of the target network, and then decide whether to execute the network operation, which greatly improves the efficiency of identifying whether a network operation will cause a failure, and also improves the efficiency and accuracy of processing network operations.
[0062] In this embodiment, if Figure 5 As shown, a network operation processing system is also provided, and the network operation processing system 300 includes: The detection module 310 is used to perform violation detection on each of the above operation instructions in response to at least one network operation on the target network to obtain a detection result; an identification module 320, configured to identify the operation type of each network operation if the detection result indicates that there is no illegal network operation in the at least one network operation, and obtain a first network operation and a second network operation, wherein the first network operation is used to operate the traffic between network devices in the target network, and the second network operation is used to operate the device status of the network devices in the target network; A construction and update module 330 is used to construct a first network topology map and a second network topology map of the target network, and update the first network topology map based on the first network operation to obtain an updated first network topology map, and update the second network topology map based on the second network operation to obtain an updated second network topology map; the first network topology map includes a first network node representing a network device in the target network, and a first connection line representing a state association between the first network nodes; the first network topology map includes a second network node representing at least one network device in the target network, and a second connection line representing a traffic relationship between the second network nodes; A first execution module 340, configured to execute the first network operation if it is determined that the target network does not have a fault according to the updated first network topology map; The second execution module 350 is configured to execute the second network operation if it is determined that the target network has no fault according to the updated second network topology diagram.
[0063] In some implementations, the build and update module 330 is specifically configured to: Obtaining device status information of each network device in the target network and the status association relationship between the network devices; Based on the above device status information and the above status association relationship, a first network topology diagram is generated, wherein the above first network topology diagram includes a first network node representing each network device, a node color representing the device status of the above first network node, and a first connection line representing the status association between the first network nodes.
[0064] In some implementations, the first execution module 340 is specifically configured to: Determining in the updated first network topology map whether the node color of the first network node corresponding to the first network operation satisfies a first preset condition; If the node color of the first network node corresponding to the first network operation satisfies the first preset condition, detecting whether there is a first network node with a state association with the first network node corresponding to the first network operation; If there is no first network node associated with the status, it is determined that there is no fault in the target network, and the first network operation is performed.
[0065] In some implementations, the first execution module is further configured to: If there is a first network node associated with the state, determining whether the node color of the first network node associated with the state satisfies a second preset condition; If the node color of the first network node associated with the above state meets the second preset condition, it is determined that there is no fault in the above target network, and the above first network operation is performed.
[0066] In some implementations, the build and update module 330 is specifically configured to: Acquire device information of network devices in the target network and traffic information between network devices, and extract features from the device information to obtain target features, where the target features include at least one of device attribute features, device environment features, and device status features; Based on the target feature, the network devices in the target network are clustered to obtain clusters, and based on the traffic information, a cluster traffic relationship between the clusters is determined, wherein the cluster includes at least one of the network devices; A second network topology diagram of the target network is constructed based on the clusters and the traffic relationships among the clusters. The second network topology diagram includes network nodes corresponding to the clusters and lines representing traffic relationships among the clusters.
[0067] In some implementations, the second execution module 350 is further configured to: Determining in the updated second network topology map whether a second connection between the second network node corresponding to the second network operation and other network nodes in the second network topology map satisfies a third preset condition; If the connection between the second network node corresponding to the second network operation and other network nodes in the second network topology diagram meets the third preset condition, it is determined that there is no fault in the target network, and the second network operation is performed.
[0068] In some embodiments, the line width of the second line represents the flow size, the direction of the second line represents the direction of the flow, and the third preset condition includes that the line width of the second line meets the preset line width requirement and / or the direction of the second line meets the preset direction requirement.
[0069] Based on the same aspect, the present disclosure also provides an electronic device, including: a memory having a computer program stored thereon; The processor is used to execute the above-mentioned computer program in the above-mentioned memory to implement the steps of any one of the above-mentioned network security protection methods in the above-mentioned embodiments.
[0070] Based on the same aspect, the embodiment of the present disclosure further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps of any one of the above-mentioned network security protection methods in the above-mentioned embodiments.
[0071] Based on the above ideal embodiments of this application, the relevant staff can make various changes and modifications without departing from the technical concept of this application through the above description. The technical scope of this application is not limited to the content in the specification, and its technical scope must be determined according to the scope of the claims.
[0072] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A network security protection method, characterized in that: include: In response to at least one network operation on the target network, performing violation detection on each of the operation instructions to obtain a detection result; If the detection result indicates that there is no illegal network operation in the at least one network operation, identifying the operation type of each network operation to obtain a first network operation and a second network operation, wherein the first network operation is used to operate traffic between network devices in the target network, and the second network operation is used to operate device states of network devices in the target network; Constructing a first network topology map and a second network topology map of the target network, and updating the first network topology map based on the first network operation to obtain an updated first network topology map, and updating the second network topology map based on the second network operation to obtain an updated second network topology map; The first network topology diagram includes a first network node representing a network device in the target network, and a first connection line representing a state association between the first network nodes; the first network topology diagram includes a second network node representing at least one network device in the target network, and a second connection line representing a traffic relationship between the second network nodes; If it is determined according to the updated first network topology map that the target network has no fault, then executing the first network operation; If it is determined according to the updated second network topology map that the target network has no fault, the second network operation is performed.
2. The network security protection method according to claim 1, characterized in that: The constructing the first network topology diagram of the target network includes: Acquire device status information of each network device in the target network and status association relationships between the network devices; Based on the device status information and the status association relationship, a first network topology diagram is generated, wherein the first network topology diagram includes a first network node representing each network device, a node color representing the device status of the first network node, and a first connection line representing the existence of a status association between the first network nodes.
3. The network security protection method according to claim 2, characterized in that: If it is determined according to the updated first network topology map that the target network does not have a fault, then performing the first network operation includes: Determining in the updated first network topology map whether the node color of the first network node corresponding to the first network operation meets a first preset condition; If the node color of the first network node corresponding to the first network operation meets the first preset condition, detecting whether there is a first network node with a status association with the first network node corresponding to the first network operation; If there is no first network node associated with the status, it is determined that there is no fault in the target network, and the first network operation is performed.
4. The network security protection method according to claim 3, characterized in that: The method further comprises: If there is a state-associated first network node, determining whether the node color of the state-associated first network node satisfies a second preset condition; If the node color of the first network node associated with the state meets the second preset condition, it is determined that there is no fault in the target network, and the first network operation is performed.
5. The network security protection method according to claim 1, characterized in that: The constructing the second network topology diagram of the target network includes: Acquire device information of network devices in the target network and traffic information between network devices, and perform feature extraction on the device information to obtain target features, wherein the target features include at least one of device attribute features, device environment features, and device status features; Based on the target feature, clustering the network devices in the target network to obtain clusters, and determining cluster traffic relationships between the clusters based on the traffic information, wherein the cluster includes at least one of the network devices; A second network topology diagram of the target network is constructed based on the clusters and the cluster traffic relationships, wherein the second network topology diagram includes network nodes corresponding to the clusters and second lines representing the traffic relationships between the clusters.
6. The network security protection method according to claim 1, characterized in that: If it is determined according to the updated second network topology map that the target network does not have a fault, then executing the second network operation includes: Determining in the updated second network topology map whether a second connection between the second network node corresponding to the second network operation and other network nodes in the second network topology map satisfies a third preset condition; If the connection between the second network node corresponding to the second network operation and other network nodes in the second network topology diagram meets the third preset condition, it is determined that there is no fault in the target network, and the second network operation is performed.
7. The security protection method according to claim 6, characterized in that: The line width of the second line represents the flow size, the direction of the second line represents the direction of the flow, and the third preset condition includes that the line width of the second line meets the preset line width requirement and / or the direction of the second line meets the preset direction requirement.
8. A network security protection system, characterized in that: include: A detection module, configured to, in response to at least one network operation on a target network, perform a violation detection on each operation instruction to obtain a detection result; an identification module, configured to identify the operation type of each network operation if the detection result indicates that there is no illegal network operation in the at least one network operation, and obtain a first network operation and a second network operation, wherein the first network operation is used to operate the traffic between network devices in the target network, and the second network operation is used to operate the device status of the network devices in the target network; A construction and update module, configured to construct a first network topology map and a second network topology map of the target network, and update the first network topology map based on the first network operation to obtain an updated first network topology map, and update the second network topology map based on the second network operation to obtain an updated second network topology map; The first network topology diagram includes a first network node representing a network device in the target network, and a first connection line representing a state association between the first network nodes; the first network topology diagram includes a second network node representing at least one network device in the target network, and a second connection line representing a traffic relationship between the second network nodes; A first execution module, configured to execute the first network operation if it is determined that the target network does not have a fault according to the updated first network topology map; The second execution module is configured to execute the second network operation if it is determined that the target network has no fault according to the updated second network topology map.
9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in the network security protection method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the network security protection method according to any one of claims 1 to 7.
