Network environment test method and device, and storage medium
By building a network digital model and using the threat knowledge graph to predict threat behavior, the problem of low accuracy in network environment testing in the existing technology is solved, and more efficient and accurate risk identification and correction are achieved.
Patent Information
- Application Number
- CN202410617945.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-10-01
AI Technical Summary
The accuracy of existing network environment testing methods is low, mainly due to the fixity and limitations of test results, which makes it impossible to comprehensively verify problems in the network environment.
By building a network digital model, using the threat knowledge graph to predict the behavioral results of threat data, and identifying risk points in the network digital model, the accuracy and coverage of the test are improved.
It significantly improves the accuracy and coverage of network environment testing, can more effectively identify and correct risk points in the network environment, and improves the multi-dimensionality and accuracy of testing.
Smart Images

Figure CN118740419A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrical communication technology, and in particular to a testing method, device and storage medium for a network environment. Background Art
[0002] The network environment refers to a diversified, dynamic, interactive and complex system composed of hardware equipment, software systems, communication protocols, information resources and user activities within a certain space or scope. This environment includes not only physical facilities, such as network equipment and communication facilities, but also software facilities, such as operating systems, applications and databases.
[0003] At present, the testing method for network environment is generally to first build a network topology diagram, depict the connection relationship and network structure of each network device in the network topology diagram, and then test the operation status of a single network device in the network topology diagram by entering test parameters in the script to complete the test of the network environment in which the network device is located.
[0004] However, in actual application, the network environment is tested through scripts, and the test cases already contain test parameters and corresponding test results. Therefore, the way to verify the test results is to compare the results output by the network equipment with the test results in the test cases to confirm whether there are problems with the network environment. Due to the fixed nature of the test results, the test scope of this test method is also limited, which leads to low accuracy of network environment testing in related schemes.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The present application provides a network environment testing method, device and storage medium, aiming to solve the problem of low accuracy in network environment testing.
[0007] To achieve the above object, the present application provides a method for testing a network environment, and the method for testing a network environment comprises the following steps:
[0008] Determine a mapped physical network environment, and construct a network digital model based on the physical network environment;
[0009] Determine, according to the threat knowledge graph, a predicted behavior of the threat data, and determine, in the network digital model, a behavior result of the threat data according to the predicted behavior;
[0010] Outputting a test result of the threat data according to the behavior result and the predicted behavior;
[0011] Based on the test results, risk points are determined in the network digital model.
[0012] Optionally, the step of determining the mapped physical network environment and constructing a network digital model according to the physical network environment includes:
[0013] Determine the corresponding physical network environment according to the device knowledge graph, wherein the physical network environment includes a network topology, device configuration parameters, and connection relationships;
[0014] Determining a mapping rule according to the network topology, the device configuration parameters and the connection relationship;
[0015] The physical network environment is mapped into a digital model according to the mapping rule, and the network digital model is generated.
[0016] Optionally, before the step of determining the predicted behavior of the threat data according to the threat knowledge graph, the step further includes:
[0017] Acquire attribute data in the threat knowledge graph, wherein the attribute data includes threat type and threat parameters;
[0018] The threat type and the threat parameter are associated with each other and determined as the threat data.
[0019] Optionally, before the step of acquiring the attribute data in the threat knowledge graph, the step further includes:
[0020] Determine a preset learning model and each attribute node in the threat knowledge graph;
[0021] Obtaining target data from a data source, and generating a target attribute node according to the target data and each of the attribute nodes and based on the preset learning model;
[0022] Fill the target attribute node into the threat knowledge graph.
[0023] Optionally, the step of determining risk points in the network digital model according to the test results includes:
[0024] Determining abnormal values in the test results and determining corresponding abnormal modules in the network digital model;
[0025] The abnormal module and the abnormal value are determined as the risk point.
[0026] Optionally, after the step of determining risk points in the network digital model according to the test results, the method further includes:
[0027] According to the risk points, corresponding optimization parameters are determined based on a preset optimization model;
[0028] According to the optimization parameters, the abnormal parameters corresponding to the abnormal modules are modified, and the network digital model is updated.
[0029] Optionally, after the step of updating the network digital model according to the optimization parameters, the method further comprises:
[0030] Obtaining historical risk points in a database, and generating a risk assessment report based on the historical risk points;
[0031] According to the risk assessment report and based on the risk prediction model, a predicted risk event is generated;
[0032] According to the predicted risk events, corresponding target risk points are determined in the network digital model, and based on the risk assessment report, the target risk points are modified.
[0033] Optionally, after the step of determining the mapped physical network environment and constructing a network digital model according to the physical network environment, the step further includes:
[0034] Obtaining a preset monitoring script, and monitoring the physical network environment according to the monitoring script;
[0035] Determining network data collected by the monitoring script;
[0036] Determining matching model parameters in the physical network environment according to the network data, and updating the model parameters;
[0037] Alternatively, after receiving the change instruction, determining the target physical network environment in the physical network environment cluster;
[0038] The target physical network environment replaces the physical network environment in the network digital model, and generates a target network digital model.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a testing device for a network environment, wherein the testing device for the network environment comprises: a memory, a processor, and a testing program for the network environment stored on the memory and executable on the processor, wherein the testing program for the network environment is configured to implement the steps of the testing method for the network environment as described above.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, on which a test program for a network environment is stored, and when the test program for the network environment is executed by a processor, the steps of the test method for the network environment as described above are implemented.
[0041] The present application provides a testing method, device and storage medium for a network environment. The method determines a mapped physical network environment, builds a network digital model based on the physical network environment, and then determines the predicted behavior of threat data based on a threat knowledge graph. Based on the predicted behavior, the behavior result of the threat data is determined in the network digital model, thereby outputting the test result of the threat data based on the behavior result and the predicted behavior. Finally, based on the test result, the risk point is determined in the network digital model to improve the accuracy of the network environment test. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flowchart of the first embodiment of the network environment testing method of the present application;
[0043] Figure 2 A flowchart of a second embodiment of a method for testing a network environment of the present application;
[0044] Figure 3 A flowchart of a third embodiment of the network environment testing method of the present application;
[0045] Figure 4 This is a schematic diagram of the architecture of the hardware operating environment of the test equipment in the network environment involved in the embodiments of the present application.
[0046] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] The present application determines a mapped physical network environment, constructs a network digital model based on the physical network environment, then determines the predicted behavior of the threat data based on the threat knowledge graph, and determines the behavioral results of the threat data in the network digital model based on the predicted behavior, thereby outputting the test results of the threat data based on the behavioral results and the predicted behavior, and finally determines the risk points in the network digital model based on the test results, thereby solving the technical problem of low accuracy of network environment testing, and further improving the accuracy of network environment testing by constructing a network digital model.
[0049] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0050] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0051] Embodiment 1
[0052] Please refer to Figure 1 In a first embodiment, the network environment testing method comprises the following steps:
[0053] Step S10: Determine the mapped physical network environment, and construct a network digital model according to the physical network environment.
[0054] In this embodiment, the physical network environment is a collection of physical devices, facilities, communications and tools, etc., which are used to realize network communication and data transmission. The physical network environment is pre-stored in a database, and the parameters, network configuration, and connection status of each device in the network are obtained by the test system or server, and the above data are saved in the database. When the test environment needs to be configured, the configuration parameters of the corresponding physical network environment are automatically called in the database. Then a digital model is established, and according to the acquired physical network environment, the physical network environment is mapped into the digital model according to preset rules, thereby generating a network digital model.
[0055] In addition, the physical network environment here includes not only various physical devices, such as computers, network devices, servers, terminal devices, etc., and various communication facilities and tools, such as optical fibers, cables, switches, routers, hubs, modems, etc., but also the physical media required for network connection and transmission and the network transmission protocol.
[0056] As an optional implementation method, the method of constructing a network digital model according to the physical network environment can be to first determine the goals and constraints of the physical network environment, that is, the devices or servers or corresponding network services in the physical network environment, the constraints are the connection relationship between the devices or servers or network services, and the network transmission protocol, and the means of connection verification, etc., and determine the scope and parameters of the digital model through the above parameters. Then, the data in the device knowledge graph is obtained, including the performance parameters of the network equipment, the network topology, the user behavior data, the server data, and the functions of the network service, etc., and the equation relationship or other mathematical structure between the various goals is constructed according to the causal relationship between the above goals and constraints. Through mathematical models and algorithms, and based on the data in the above knowledge graph, the network digital model is established. The network digital model is established through various data and parameters, which can improve the accuracy of the network digital model and thus improve the test accuracy of the network environment.
[0057] Optionally, in this embodiment, step S10 includes:
[0058] Determine the corresponding physical network environment according to the device knowledge graph, wherein the physical network environment includes a network topology structure, device configuration parameters, and connection relationships; determine a mapping rule according to the network topology structure, the device configuration parameters, and the connection relationships; map the physical network environment into a digital model according to the mapping rule, and generate the network digital model.
[0059] Specifically, the physical network environment that needs to be mapped is determined based on the pre-established device knowledge graph, and then a digital model is established based on the physical network environment. The digital model includes abstract representations of network devices, device connection relationships, etc., and then mapping rules are formulated based on the digital model and the physical network environment, including mapping relationships between devices, mapping methods of data flows, etc. Finally, based on the mapping rules, the mapping of the physical network environment to the digital model is achieved through programming and other technical means. It should be understood that data conversion and protocol conversion must also be considered, as well as determining the protocols directly used by each device in the physical network environment and the port number of the device.
[0060] In addition, after the network digital model is established, the established network digital model needs to be tested. The established network digital model can be tested by obtaining target data and output results in the actual network environment, and using the target data as test data and the output results as expected results. The specific test method is to input the test data into the network digital model, then obtain the output results of the network digital model, compare them with the expected results, analyze the comparison results, and determine the test results of the network digital model according to the comparison results, so as to complete the test process of the network digital model.
[0061] Furthermore, in this embodiment, after step S10, the following steps are further included:
[0062] Obtain a preset monitoring script, and monitor the physical network environment according to the monitoring script; determine the network data collected by the monitoring script; determine matching model parameters in the physical network environment according to the network data, and update the model parameters; or, after receiving a change instruction, determine a target physical network environment in a physical network environment cluster; replace the physical network environment in the network digital model with the target physical network environment, and generate a target network digital model.
[0063] Specifically, the monitoring script establishes a connection with the server or the test system, or can be a monitoring script loaded in the server or the test system, and monitors the network data in the physical network environment in real time. When the network data changes compared with the pre-stored network data, the changed device, server or network service is first determined, and then the changed network data of the device, server or network service is determined. According to the changed network data, the corresponding model parameters are determined in the network digital model, and the parameters corresponding to the network data are replaced with the model parameters, thereby completing the update of the network model. Another situation is that when the test server needs to change the test network environment, the test server will issue a change instruction to change the physical network environment. After receiving the change instruction, the replacement module of the test server first obtains the change identifier in the change instruction, and the change identifier is used to determine the target physical network environment to be changed. Then, according to the change identifier, the database is queried for the target physical network environment that matches the change identifier, and the target physical network environment is replaced with the physical network environment in the network digital model to construct the target network digital model.
[0064] Step S20: Determine the predicted behavior of the threat data according to the threat knowledge graph, and determine the behavior result of the threat data in the network digital model according to the predicted behavior.
[0065] In this embodiment, each attribute node in the threat knowledge graph stores threat data types and threat data features, and the corresponding entity node is determined in the threat knowledge graph according to the threat data type of the threat data, and then the action route of the threat data is determined according to the attribute node associated with the entity node, wherein the action route is the data transmission route of the threat data when attacking the network environment and the order of each attack point. The predicted behavior of the threat data is determined according to the action route, and then the behavior result of the threat data is determined in the network digital model according to the action route in the predicted behavior.
[0066] In addition, the threat data may be attribute information corresponding to a sub-knowledge graph in the threat knowledge graph, that is, the sub-knowledge graph corresponds to a threat type in the threat knowledge graph, and the threat data is a type of data of the threat type.
[0067] As an optional implementation, the method of determining the behavioral result of the threat data according to the predicted behavior can be to first determine the possible results in the threat knowledge graph through the threat data type and threat data characteristics, wherein the result is at least one. When there are multiple possible results, the prediction model in the threat knowledge graph will automatically calculate the probability of occurrence of each result based on the historical behavior of the threat data, and determine the behavioral result of the threat data with the result with the highest probability based on the probability. In addition, when the probability is higher than a preset threshold, the result corresponding to the probability higher than the preset threshold is automatically used as the target result. The action route corresponding to the target result is then applied to the network digital model, and the possible behavioral results are predicted based on the configuration parameters of each module in the network digital model and the target result.
[0068] Exemplarily, assuming that the threat data is a Trojan program targeting a server, based on the Trojan program and its features targeting the server, the previous attack routes of the Trojan program are queried in the threat knowledge graph, and the attack routes are used as the predicted behavior corresponding to the threat data. Then, based on the possible results of each attack route, the results corresponding to the routes with high probability are automatically determined as the target results.
[0069] Step S30: outputting the test result of the threat data according to the behavior result and the predicted behavior.
[0070] In this embodiment, the behavior result is the predicted behavior based on the threat data, combined with the behavior result predicted by the network digital model. There may be multiple behavior results. The probability of occurrence of each behavior result is calculated by a preset algorithm, and the behavior result with the highest probability is output as the test result.
[0071] As an optional implementation, the way to output the test results according to the behavior results and the predicted behavior can be to conduct in-depth analysis of the behavior results and the predicted behavior, identify and extract data related to known threat patterns or abnormal behaviors through machine learning algorithms and pattern recognition technology. Then, based on the analyzed behavior results, use a prediction model or algorithm to predict possible threat behaviors, use time series analysis, regression analysis or machine learning algorithms to predict future threat behaviors, and determine the test results of the threat data in combination with the network digital model.
[0072] Step S40: Determine risk points in the network digital model according to the test results.
[0073] In this embodiment, the test results include predictions of compromised devices, servers or network services, and the means by which the firewalls of the above devices, servers or network services are destroyed, and then based on the above data, corresponding modules and parameters are determined in the network digital model.
[0074] Optionally, in this embodiment, step S40 includes:
[0075] An abnormal value is determined in the test result, and a corresponding abnormal module in the network digital model is determined; and the abnormal module and the abnormal value are determined as the risk point.
[0076] Exemplarily, the abnormal value corresponds to the parameter of the port corresponding to the device, server or network service that the threat data is predicted to damage, or the message structure in the corresponding network protocol. The abnormal module corresponds to an application or a driver of the attacked device, server or network service.
[0077] Furthermore, after the step of determining risk points in the network digital model according to the test results, the method further includes:
[0078] According to the risk points, corresponding optimization parameters are determined based on a preset optimization model; according to the optimization parameters, the abnormal parameters corresponding to the abnormal module are modified, and the network digital model is updated.
[0079] Exemplarily, the risk points also include security vulnerabilities, data inconsistencies and other issues. Based on the risk points, a suitable preset optimization model is selected. The optimization model may be a predefined algorithm or empirical formula, and then the corresponding optimization parameters are determined according to the selected optimization model, wherein the optimization parameters include network configuration parameters, algorithm parameters, system resource allocation parameters, etc. The abnormal module is located by analyzing the operating status, log files, monitoring data, etc. of the network digital model, and in combination with the risk points, the abnormal module is located, and the corresponding abnormal parameters are modified for the located abnormal module. The abnormal parameters may be the configuration parameters, threshold settings, algorithm parameters, etc. inside the abnormal module. After completing the modification of the abnormal parameters, it is also necessary to redeploy the model, refresh the configuration, and load the new algorithm, etc., to improve the function of the network digital model.
[0080] In the technical solution provided in this embodiment, a network digital model is constructed through a physical network environment, and the predicted behavior of threat data is determined according to the threat knowledge graph, and the behavior result of the threat data is determined, so that the test result of the threat data is output in the network digital model through the behavior result and the predicted behavior, and the risk point of the network digital model is determined to improve the accuracy of the network environment test. The physical network environment determined by a collection of physical equipment, facilities, communications and tools, and the network digital model is constructed according to the connection relationship of each device or server, the network transmission protocol and the verification method of the connection to achieve the model building effect of the multi-dimensional network environment. Through the threat knowledge graph, the predicted behavior is determined, and then the route of the threat data attacking the network environment is restored in the constructed network digital model, and the corresponding behavior result is determined, so as to restore the network attack and defense scenario with a high degree of abstraction, and then complete the test of the network environment.
[0081] Embodiment 2
[0082] Please refer to Figure 2 In the second embodiment, before step S20, the following steps are also included:
[0083] Step S50: Acquire attribute data in the threat knowledge graph, wherein the attribute data includes threat type and threat parameters.
[0084] Step S60: Associating the threat type with the threat parameter and determining them as the threat data.
[0085] In this embodiment, the threat knowledge graph also includes various sub-knowledge graphs, each of which corresponds to a threat type of each threat data. The attribute nodes of the sub-knowledge graph correspond to threat parameters, and the corresponding threat data are the threat types and threat parameters in the sub-knowledge graph.
[0086] Specifically, the threat knowledge graph also includes the name, type, hazard level, impact range, protection measures, and known attack cases of network security threats. By using the above data as threat data, the attack scenario of the network digital model can be simulated, thereby completing the test of the physical network environment.
[0087] Furthermore, in this embodiment, before step S50, the following steps are further included:
[0088] Determine a preset learning model and each attribute node in the threat knowledge graph; obtain target data from a data source, generate a target attribute node according to the target data and each attribute node and based on the preset learning model; fill the target attribute node into the threat knowledge graph.
[0089] Specifically, after simulating all threat data in the threat knowledge graph, new threat data can be generated through a preset learning model based on the data of each attribute node of the threat knowledge graph and the target data in the data source, and determined as the target attribute node to be added to the threat knowledge graph.
[0090] As an optional implementation method for updating threat data, the threat data can also be continuously updated by self-encoding, that is, the threat data is updated by an unsupervised neural network model, wherein the self-encoder consists of an encoder and a decoder, and the input data is encoded by the encoder to obtain a low-dimensional representation, and then the decoder is used to restore the original data from this low-dimensional representation. During the training process, the self-encoder can learn the low-dimensional representation of the data by minimizing the difference between the input threat data and the reconstructed data, and then use a loss function such as mean square error to calculate the difference between the reconstructed data and the original data. According to the gradient of the loss function, the parameters of the encoder and decoder are updated using a back propagation algorithm, and the above steps are repeated until the preset number of training rounds is reached or the loss drops to a satisfactory level. In each round of training, the model continues to learn, reduce the loss value of the reconstructed data and the original data, and determine the reconstructed data with a loss value less than a preset threshold as the target threat data to achieve the purpose of predicting threat data, thereby improving the test data for network environment testing.
[0091] In the technical solution provided in this embodiment, by predicting target threat data in a self-encoding manner and supplementing it to the threat knowledge graph, the testing scope of the network environment can be expanded, thereby preventing potential risks.
[0092] Embodiment 3
[0093] Please refer to Figure 3 In the third embodiment, after the step of updating the network digital model according to the optimization parameters, the following steps are also included:
[0094] Step S70: Obtain historical risk points from a database, and generate a risk assessment report based on the historical risk points.
[0095] In this embodiment, the historical risk points are historical risk points output by testing the network digital model based on historical threat data. By counting the historical risk points and saving them, it can be understood that the historical risk points can be counted and saved in a database in the form of a table or in a storage space in the form of a document, which is not limited here. When it is necessary to obtain historical risk points, the historical risk points are automatically obtained in the database or storage space, and a risk assessment report is generated based on the historical risk points.
[0096] As an optional implementation, the risk assessment report may be generated by first identifying the features corresponding to each risk point and determining the assessment index through the features. Then, each risk point is assessed through the assessment index and based on the preset assessment rules, that is, the assessment score of the assessment index corresponding to each risk point is determined, and then the total score of the assessment index corresponding to each risk point is calculated. Finally, the total score, the sub-score corresponding to the assessment index, and each historical risk point are integrated to generate a risk assessment report.
[0097] Specifically, the above-mentioned evaluation rules may be based on the importance of the damaged module of the historical risk point, the damage time, and the range of parameters that need to be modified. The evaluation scores evaluated by the above-mentioned evaluation rules are that the historical risk points with high scores have higher risks.
[0098] Step S80: Generate a predicted risk event according to the risk assessment report and based on the risk prediction model.
[0099] Step S90: According to the predicted risk event, a corresponding target risk point is determined in the network digital model, and based on the risk assessment report, the target risk point is modified.
[0100] In this embodiment, according to the risk assessment report generated as above, the assessment score corresponding to each historical risk point is determined, so that the historical risk points are sorted according to the assessment score. Then, the historical risk points that are at the top of the sorting, or the historical risk points that are ranked higher than the preset value, are input into the risk prediction model to generate a predicted risk event. After the predicted risk event is generated, the predicted risk event includes a predicted risk module and a corresponding predicted risk value. According to the predicted risk module, the corresponding target risk module is determined in the network digital model, and according to the predicted risk value, the corresponding target risk value is determined. The target risk module and the target risk value here are associated to become the target risk point, and then according to the risk assessment report, the configuration parameters that match it are queried through the predicted risk event, and the target risk value in the target risk module is modified according to the configuration parameters.
[0101] In the technical solution provided in this embodiment, a risk assessment report is generated through historical risk points, and predicted risk events are generated based on the risk prediction model. The network digital model is then corrected according to the predicted risk events. The testing efficiency of the network digital model can be improved through continuous prediction and adjustment.
[0102] Since the system introduced in the embodiment of the present application is a system used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the embodiment of the present application belong to the scope of protection of this application.
[0103] As an implementation scheme, Figure 4 This is a schematic diagram of the architecture of the hardware operating environment of the test equipment in the network environment involved in the embodiment of the present application.
[0104] like Figure 4 As shown, the test equipment of the network environment may include: a processor 1001, such as a core processor (Central Processing Unit, CPU), a communication bus 1002, a network interface 1003, and a memory 1004. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1004 may be a high-speed random access memory (Random Access Memory, RAM) memory, or it may be a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1004 may optionally also be a storage device independent of the aforementioned processor 1001.
[0105] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the test equipment for the network environment, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0106] like Figure 4 As shown, the memory 1004 as a storage medium may include an operating system, a data storage module, a network communication module, and a test program for a network environment. The operating system is a program for managing and controlling the hardware and software resources of the test equipment for the network environment, the test program for the network environment, and the operation of other software or programs.
[0107] exist Figure 4 In the test device for the network environment shown, the network interface 1003 is mainly used to connect to a terminal and perform data communication with the terminal; the processor 1001 can be used to call a test program for the network environment stored in the memory 1004 .
[0108] In this embodiment, the network environment test device includes: a memory 1004, a processor 1001, and a network environment test program stored in the memory and executable on the processor, wherein:
[0109] When the processor 1001 calls the test program of the network environment stored in the memory 1004, the following operations are performed:
[0110] Determine a mapped physical network environment, and construct a network digital model based on the physical network environment;
[0111] Determine, according to the threat knowledge graph, a predicted behavior of the threat data, and determine, in the network digital model, a behavior result of the threat data according to the predicted behavior;
[0112] Outputting a test result of the threat data according to the behavior result and the predicted behavior;
[0113] Based on the test results, risk points are determined in the network digital model.
[0114] In one embodiment, when the processor 1001 calls the test program of the network environment stored in the memory 1004, the following operations are performed:
[0115] Determine the corresponding physical network environment according to the device knowledge graph, wherein the physical network environment includes a network topology, device configuration parameters, and connection relationships;
[0116] Determining a mapping rule according to the network topology, the device configuration parameters and the connection relationship;
[0117] The physical network environment is mapped into a digital model according to the mapping rule, and the network digital model is generated.
[0118] In one embodiment, when the processor 1001 calls the test program of the network environment stored in the memory 1004, the following operations are performed:
[0119] Acquire attribute data in the threat knowledge graph, wherein the attribute data includes threat type and threat parameters;
[0120] The threat type and the threat parameter are associated with each other and determined as the threat data.
[0121] In one embodiment, when the processor 1001 calls the test program of the network environment stored in the memory 1004, the following operations are performed:
[0122] Determine a preset learning model and each attribute node in the threat knowledge graph;
[0123] Obtaining target data from a data source, and generating a target attribute node according to the target data and each of the attribute nodes and based on the preset learning model;
[0124] Fill the target attribute node into the threat knowledge graph.
[0125] In one embodiment, when the processor 1001 calls the test program of the network environment stored in the memory 1004, the following operations are performed:
[0126] Determining abnormal values in the test results and determining corresponding abnormal modules in the network digital model;
[0127] The abnormal module and the abnormal value are determined as the risk point.
[0128] In one embodiment, when the processor 1001 calls the test program of the network environment stored in the memory 1004, the following operations are performed:
[0129] According to the risk points, corresponding optimization parameters are determined based on a preset optimization model;
[0130] According to the optimization parameters, the abnormal parameters corresponding to the abnormal modules are modified, and the network digital model is updated.
[0131] In one embodiment, when the processor 1001 calls the test program of the network environment stored in the memory 1004, the following operations are performed:
[0132] Obtaining historical risk points in a database, and generating a risk assessment report based on the historical risk points;
[0133] According to the risk assessment report and based on the risk prediction model, a predicted risk event is generated;
[0134] According to the predicted risk events, corresponding target risk points are determined in the network digital model, and based on the risk assessment report, the target risk points are modified.
[0135] In one embodiment, when the processor 1001 calls the test program of the network environment stored in the memory 1004, the following operations are performed:
[0136] Obtaining a preset monitoring script, and monitoring the physical network environment according to the monitoring script;
[0137] Determining network data collected by the monitoring script;
[0138] Determining matching model parameters in the physical network environment according to the network data, and updating the model parameters;
[0139] Alternatively, after receiving the change instruction, determining the target physical network environment in the physical network environment cluster;
[0140] The target physical network environment replaces the physical network environment in the network digital model, and generates a target network digital model.
[0141] In addition, it can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the test device of the network environment to implement the process steps of the embodiment of the above method.
[0142] Therefore, the present application also provides a storage medium, which stores a test program for a network environment. When the test program for the network environment is executed by a processor, the various steps of the test method for the network environment described in the above embodiment are implemented.
[0143] The storage medium may be a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes.
[0144] It should be noted that since the storage medium provided in the embodiment of the present application is the storage medium used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the storage medium, so it is not repeated here. All storage media used in the method of the embodiment of the present application belong to the scope of protection of this application.
[0145] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0146] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0149] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0150] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0151] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for testing a network environment, characterized in that: The network environment testing method comprises the following steps: Determine a mapped physical network environment, and construct a network digital model based on the physical network environment; Determine, according to the threat knowledge graph, a predicted behavior of the threat data, and determine, in the network digital model, a behavior result of the threat data according to the predicted behavior; Outputting a test result of the threat data according to the behavior result and the predicted behavior; Based on the test results, risk points are determined in the network digital model.
2. The network environment testing method according to claim 1, characterized in that: The step of determining the mapped physical network environment and constructing a network digital model according to the physical network environment comprises: Determine the corresponding physical network environment according to the device knowledge graph, wherein the physical network environment includes a network topology, device configuration parameters, and connection relationships; Determining a mapping rule according to the network topology, the device configuration parameters and the connection relationship; The physical network environment is mapped into a digital model according to the mapping rule, and the network digital model is generated.
3. The network environment testing method according to claim 1, characterized in that: Before the step of determining the predicted behavior of the threat data according to the threat knowledge graph, the method further includes: Acquire attribute data in the threat knowledge graph, wherein the attribute data includes threat type and threat parameters; The threat type and the threat parameter are associated with each other and determined as the threat data.
4. The network environment testing method according to claim 3, characterized in that: Before the step of obtaining the attribute data in the threat knowledge graph, the method further includes: Determine a preset learning model and each attribute node in the threat knowledge graph; Obtaining target data from a data source, and generating a target attribute node according to the target data and each of the attribute nodes and based on the preset learning model; Fill the target attribute node into the threat knowledge graph.
5. The network environment testing method according to claim 1, characterized in that: The step of determining risk points in the network digital model according to the test results includes: Determining abnormal values in the test results and determining corresponding abnormal modules in the network digital model; The abnormal module and the abnormal value are determined as the risk point.
6. The network environment testing method according to claim 5, characterized in that: After the step of determining risk points in the network digital model according to the test results, the method further includes: According to the risk points, corresponding optimization parameters are determined based on a preset optimization model; According to the optimization parameters, the abnormal parameters corresponding to the abnormal modules are modified, and the network digital model is updated.
7. The network environment testing method according to claim 6, characterized in that: After the step of updating the network digital model according to the optimization parameters, the method further includes: Obtaining historical risk points in a database, and generating a risk assessment report based on the historical risk points; According to the risk assessment report and based on the risk prediction model, a predicted risk event is generated; According to the predicted risk events, corresponding target risk points are determined in the network digital model, and based on the risk assessment report, the target risk points are modified.
8. The network environment testing method according to claim 1, characterized in that: After the step of determining the mapped physical network environment and constructing a network digital model according to the physical network environment, the method further includes: Obtaining a preset monitoring script, and monitoring the physical network environment according to the monitoring script; Determining network data collected by the monitoring script; Determining matching model parameters in the physical network environment according to the network data, and updating the model parameters; Alternatively, after receiving the change instruction, determining the target physical network environment in the physical network environment cluster; The target physical network environment replaces the physical network environment in the network digital model, and generates a target network digital model.
9. A network environment testing device, characterized in that: The network environment testing device includes: a memory, a processor, and a network environment testing program stored in the memory and executable on the processor, wherein the network environment testing program is configured to implement the steps of the network environment testing method as described in any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium stores a test program for a network environment, and when the test program for the network environment is executed by a processor, the steps of the test method for a network environment as described in any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Construction method and equipment of self-feedback network security knowledge graph, and storage medium
CN119420582A
