Network security defense method, device and equipment and readable storage medium

By obtaining and calculating the configuration information of the network system, and optimizing the configuration conversion with the shortest path algorithm, the problem of high configuration conversion cost of the railway network system is solved, and more efficient configuration conversion is achieved.

CN118764263APending Publication Date: 2024-10-11INST OF COMPUTING TECH CHINA ACAD OF RAILWAY SCI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410922665.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

During the configuration conversion process of the railway network system, due to the environment and software implementation language, multi-step conversion is required, resulting in increased costs.

Method used

By obtaining the general configuration, current configuration and legal configuration of the network system, and combining the shortest path algorithm to calculate the conversion cost and benefit, the network system is optimized to convert from the current configuration to the legal configuration, reducing conversion steps and costs.

Benefits of technology

It effectively reduces the steps and costs of network system configuration conversion and improves the efficiency of configuration conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764263A_ABST
    Figure CN118764263A_ABST
Patent Text Reader

Abstract

The invention provides a network security defense method, device and equipment and a readable storage medium, and relates to the technical field of computers, and the method comprises the steps: obtaining information; calculating a first number of the legal configurations of different combinations according to the number which can be selected by the configuration vectors of each sub-network system; calculating a second number of the universal configurations of different combinations according to the number of the configuration contents of each sub-network system, wherein the first number is not greater than the second number; calculating a final conversion cost generated when the network system is converted from the current configuration to the legal configuration according to the legal configuration, the general configuration, the first number and the second number in combination with a shortest path algorithm; and calculating the total income under the legal configuration. According to the invention, the conversion steps of network system configuration conversion are reduced, and the cost of network system configuration conversion is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network security defense method, device, equipment and readable storage medium. Background Art

[0002] In the railway network system environment configuration conversion strategy, for the railway network system, during the configuration conversion process, for some systems, due to the environment required to realize the function, software implementation language and other reasons, multiple steps of conversion are required, which greatly increases the cost of configuration conversion. Summary of the invention

[0003] The purpose of the present invention is to provide a network security defense method, device, equipment and readable storage medium to improve the above problems. In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0004] In a first aspect, the present application provides a network security defense method, comprising:

[0005] Acquire information, the information including a general configuration, a current configuration, and a legal configuration of the network system, the legal configuration including a configuration vector of each sub-network system of the network system, and the general configuration including configuration content of each sub-network system of the network system;

[0006] Calculate the first number of the legal configurations of different combinations according to the number of configuration vectors that can be selected for each of the sub-network systems;

[0007] Calculate a second number of different combinations of the common configurations according to the number of configuration contents of each of the sub-network systems that can be selected, wherein the first number is not greater than the second number;

[0008] According to the legal configuration, the common configuration, the first number and the second number, and in combination with a shortest path algorithm, a final conversion cost generated when the network system is converted from the current configuration to the legal configuration is calculated;

[0009] The benefit of the network system when the current configuration is converted to the legal configuration is obtained, and the overall benefit under the legal configuration is calculated according to the benefit and the final conversion cost.

[0010] In a second aspect, the present application also provides a network security defense device, comprising:

[0011] An acquisition module, the acquisition module is used to acquire information, the information includes a general configuration, a current configuration and a legal configuration of the network system, the legal configuration includes a configuration vector of each sub-network system of the network system, and the general configuration includes a configuration content of each sub-network system of the network system;

[0012] A first calculation module, the first calculation module is used to calculate a first number of the legal configurations of different combinations according to the number of configuration vectors that can be selected for each of the sub-network systems;

[0013] A second calculation module, the second calculation module is used to calculate a second number of the common configurations of different combinations according to the number of configuration contents of each of the sub-network systems that can be selected, the first number being not greater than the second number;

[0014] a third calculation module, the third calculation module being used to calculate a final conversion cost generated when the network system is converted from the current configuration to the legal configuration according to the legal configuration, the general configuration, the first number, and the second number;

[0015] A fourth calculation module is used to obtain the benefit of the network system when it is converted from the current configuration to the legal configuration, and calculate the overall benefit under the legal configuration according to the benefit and the final conversion cost.

[0016] In a third aspect, the present application also provides a network security defense device, including:

[0017] Memory for storing computer programs;

[0018] A processor is used to implement the steps of the network security defense method when executing the computer program.

[0019] In a fourth aspect, the present application further provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned network security defense method are implemented.

[0020] The beneficial effects of the present invention are as follows: the present invention reduces the conversion steps of network system configuration conversion and greatly reduces the cost of network system configuration conversion through a network security defense method, device, equipment and readable storage medium.

[0021] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 A schematic diagram of the process flow of the network security defense method described in an embodiment of the present invention;

[0024] Figure 2 A logical diagram of a network security defense method according to an embodiment of the present invention;

[0025] Figure 3 Schematic diagram of the network security defense device structure described in an embodiment of the present invention.

[0026] Markings in the figure: 800, network security defense equipment; 801, processor; 802, memory; 803, multimedia component; 804, I / O interface; 805, communication component. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0028] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0029] Embodiment 1:

[0030] This embodiment provides a network security defense method.

[0031] See also Figure 1 and Figure 2, the figure shows that the method includes step S100, step S200, step S300, step S400, and step S500.

[0032] Step S100: Acquire information, the information including the general configuration, current configuration and legal configuration of the network system, the legal configuration including the configuration vector of each sub-network system of the network system, and the general configuration including the configuration content of each sub-network system of the network system;

[0033] The legal configuration refers to the system configuration when the sub-network system of the network system functions normally.

[0034] Step S200: Calculating the first number of legal configurations of different combinations according to the number of configuration vectors that can be selected for each of the sub-network systems;

[0035] Step S300: Calculating a second number of different combinations of the common configurations according to the number of configuration contents that can be selected for each of the sub-network systems, wherein the first number is not greater than the second number;

[0036] Step S400: Calculating a final conversion cost generated when the network system is converted from the current configuration to the legal configuration according to the legal configuration, the common configuration, the first number and the second number in combination with a shortest path algorithm;

[0037] The step S400 specifically includes:

[0038] According to the legal configuration, the common configuration, the first number, and the second number, calculating, based on a shortest path algorithm, a final conversion cost generated when the network system is converted from the current configuration to the legal configuration, including:

[0039] Establishing a legal configuration matrix according to the legal configuration and the first number;

[0040] Establishing a general configuration matrix according to the general configuration and the second number;

[0041] Calculate the first conversion cost of converting the current configuration to each of the legal configurations in the legal configuration matrix respectively to obtain a first conversion cost set;

[0042] Screening out available configurations in the legal configuration matrix to obtain available legal configurations;

[0043] The available configurations are screened out in the legal configuration matrix to obtain the available legal configurations, which specifically include:

[0044] Obtaining the probability that the defender believes that the attacker will launch an attack on the corresponding sub-network system;

[0045] Determining whether the probability exceeds a preset safety threshold;

[0046] Screening out the legal configuration corresponding to the corresponding sub-network system whose probability does not exceed the preset security threshold as the available legal configuration;

[0047] Searching the first transition cost set for transitioning from the current configuration to the available legal configuration;

[0048] Enter the minimum conversion cost search loop:

[0049] Calculate the second conversion cost of converting the current configuration to each general configuration in the neighborhood general configuration set one by one, each general configuration in the neighborhood general configuration set is a general configuration of the current configuration within the neighborhood range in the general configuration matrix, obtain a second conversion cost set, and search for the minimum conversion cost in the second conversion cost set, completing one minimum conversion cost search loop;

[0050] Repeating the minimum conversion cost search loop, and calculating the sum of the minimum conversion costs obtained in all the loops;

[0051] The first conversion cost is compared with the sum of the minimum conversion cost, and the one with the smallest conversion cost is selected as the final conversion cost.

[0052] The common configuration near the current configuration is selected, specifically including:

[0053] Selecting the most adjacent common configurations before and after the row where the current configuration is located in the common configuration matrix;

[0054] Selecting the general configurations that are the most adjacent to the current configuration in the general configuration matrix;

[0055] The common configurations closest to the front and back of the row where the current configuration is located and the common configurations closest to the top and bottom of the column where the current configuration is located are used to form the common configurations near the current configuration.

[0056] According to the legal configuration, the common configuration, the first number and the second number, a final conversion cost generated when the network system is converted from the current configuration to the legal configuration is calculated based on a shortest path algorithm, and further includes:

[0057] Determining the current working configuration of the network system, and selecting the type of conversion cost and the weight of each conversion cost according to the working configuration;

[0058] Calculate the first conversion cost of converting the current configuration to each of the legal configurations in the legal configuration matrix according to the type of the conversion cost and the weight of each of the conversion costs;

[0059] A second conversion cost of converting the current configuration to the common configuration nearby is calculated according to the types of the conversion costs and the weight of each conversion cost.

[0060] Determining the current working configuration of the network system, and selecting the type of conversion cost and the weight of each conversion cost according to the working configuration, including:

[0061] According to factors such as the architecture, deployment location, and service objects of the information system in the railway network, the work configuration of the current system can be divided into one or more sets of experience-sensitive work configuration, manpower-sensitive work configuration, and material-sensitive work configuration, and the work configuration of the network system is obtained;

[0062] In the process of calculating the conversion cost, according to different work configuration types, it is necessary to consider the time cost (i.e., the data transmission delay generated during the conversion process, corresponding to the experience-sensitive work configuration classified by the system), the manpower cost (i.e., the manpower required to participate from the start to the completion of the configuration conversion, corresponding to the manpower-sensitive work configuration classified by the system), and the material cost (i.e., the resources required from the start to the completion of the configuration conversion, including hardware deployment and software installation, corresponding to the material-sensitive work configuration classified by the system), etc.

[0063] According to the experience in daily operation and maintenance, set the conversion cost weight array for the above different costs. When the system is determined to be one of the types of experience-sensitive work configuration, manpower-sensitive work configuration, and material-sensitive work configuration, according to the type of specific system work configuration, set the corresponding weight of the selected work configuration type to 1, and the remaining weights to 0; when the system is determined to be two of the work configuration types among experience-sensitive work configuration, manpower-sensitive work configuration, and material-sensitive work configuration, further sort these two work configurations, select the corresponding weights from high to low, and the other weights are 0; when the work configuration is determined to be three of the work configuration types among experience-sensitive work configuration, manpower-sensitive work configuration, and material-sensitive work configuration, further sort these three types, and select the corresponding weights from high to low;

[0064] Calculate the conversion cost based on the classification results of the current system.

[0065] Step S500: Obtain the benefit of the network system when it is converted from the current configuration to the legal configuration, and calculate the overall benefit under the legal configuration according to the benefit and the final conversion cost.

[0066] In summary, from the perspective of system configuration, the present invention proposes a system configuration matrix, and further performs state transition analysis and revenue management on this basis; in the process of system configuration state transition, the defense party considers the probability of the attacker launching an attack "Determine whether to choose a certain state as the final state; establish the conversion cost and conversion benefit, find the minimum path from the current state to the target state, and select multiple evaluations to find the optimal state and the best benefit.

[0067] Based on the existing network security protection system, the present invention further conducts research on the optimal strategy of state conversion, provides a selection strategy for the system configuration state, and performs benefit calculation. The implementation method and implementation path provided by the present invention can check the network security performance under specified conditions according to the actual situation of network managers and users, and can also be used for dynamic management and control of different network security requirements in emergency situations.

[0068] Embodiment 2:

[0069] This embodiment provides a network security defense device, the device comprising:

[0070] An acquisition module, the acquisition module is used to acquire information, the information includes a general configuration, a current configuration and a legal configuration of the network system, the legal configuration includes a configuration vector of each sub-network system of the network system, and the general configuration includes a configuration content of each sub-network system of the network system;

[0071] A first calculation module, the first calculation module is used to calculate a first number of the legal configurations of different combinations according to the number of configuration vectors that can be selected for each of the sub-network systems;

[0072] A second calculation module, the second calculation module is used to calculate a second number of the common configurations of different combinations according to the number of configuration contents of each of the sub-network systems that can be selected, the first number being not greater than the second number;

[0073] a third calculation module, the third calculation module being used to calculate a final conversion cost generated when the network system is converted from the current configuration to the legal configuration according to the legal configuration, the general configuration, the first number, and the second number;

[0074] A fourth calculation module is used to obtain the benefit of the network system when it is converted from the current configuration to the legal configuration, and calculate the overall benefit under the legal configuration according to the benefit and the final conversion cost.

[0075] Example 3

[0076] The present invention is further described below through the specific application of a network security defense method of the present invention in a railway network system.

[0077] First, model the environment. The modeling process is as follows:

[0078] The railway network system can be divided into several sub-parts, represented by C1, C2, ..., C n Indicates that C i is the ith railway network subsystem, the number of selectable configurations in the ith railway network subsystem is m, that is, there are m configurations in the ith railway network subsystem that can be used to complete the function of the ith railway network subsystem, |C i | represents the number of optional configurations of the ith railway network subsystem. For n railway network subsystems, there are |C1|·|C2|·…·|C n |=|C. For a railway network system, the configuration that ensures its normal functioning is C v =[a1,a2,…,a n ], where a n represents the configuration vector composed of m configurations in the nth railway network subsystem. The combinations of different configurations are |a1|·|a2|·...·|a n |=|C v |pcs.

[0079] In the system operation, there are two types of roles, one is the vulnerability set, represented by θ1, and the other is the attacker set, represented by θ2.

[0080] In the vulnerability set θ1, for each vulnerability θ 1-j , which can be expressed as:

[0081] θ 1-j =<name,C,I,A,AC,AV,AU,(technology1,technology2,…)>,j=1,2,…

[0082] In the above formula, C, I, and A represent confidentiality, integrity, and availability estimates, respectively; AC represents the access complexity when an attacker exploits the vulnerability; AV represents the access vector, i.e., the access path, which represents the attack method used by the attacker when exploiting the vulnerability; and AU represents the number of authentications that the attacker must go through when exploiting the vulnerability. Technology1 and technology2 represent the technical defects of the vulnerability, i.e., the main technologies used when the vulnerability is exploited.

[0083] The attacker set θ2 includes a series of attackers θ 2-i ,Right now:

[0084] θ 2-i =<name,{(expertise,technology),…},probability>,i=1,2,….

[0085] In the above formula, name represents the attacker's ID, expertise represents the attack expertise (quantified in numerical form), technology represents the attack technology that the attacker is good at, and probability represents the probability of launching an attack. express.

[0086] For an attacker θ 2-i , an attack is considered initiated when the following conditions are met:

[0087] Attacker θ 2-i Your own attack expertise 2-i Not less than its own utilization index Es a , that is, expertise 2-i ≥Es a ;

[0088] Attacker θ 2-i Behavioral proficiency techniques can attack system vulnerabilities;

[0089] For the attacker set θ2, since each attacker has a probability of attacking, the present invention proposes to use the first security entropy to measure whether the system is safe for the overall security of the target system. The expression of the first security entropy is as follows:

[0090]

[0091] Denotes the attacker θ 2-i The probability of launching an attack, α i is a limiting factor, which indicates the impact of different attackers on the first security entropy. For attackers with clear attack targets, α i value to adjust, and α i ∈[0,1].

[0092] For defenders, it is necessary to constantly monitor user behavior and conduct assessments on suspicious users to prevent attackers from 2-i For example, the defender believes that the probability of the attacker launching an attack is Its corresponding value serves as a reference factor for mimicry transformation.

[0093] In the setting of the conditions for mimicry conversion, the present invention proposes a recognition method that combines multiple factors to further improve the ability to judge conversion. Compared with the existing conversion conditions, the judgment threshold after integrating multiple conversion conditions can further improve the conversion efficiency in mimicry defense, that is, after the conversion, a safer environment can be obtained with lower conversion overhead, as follows:

[0094] Based on the probability that the defender believes the attacker will launch an attack and the second safety entropy H(a i ) two factors, with the help of the processing provisions of the activation function in the deep learning algorithm, the above two factors are weighted and processed to obtain the mimicry conversion value:

[0095]

[0096]

[0097] In the above formula, T i Represents the first pseudo-conversion value, y i represents the impact of the attacker on the security of the i-th railway network subsystem, β and γ are weight coefficients, β∈[0,1], γ∈[0,1].

[0098] Sum the first mimicry conversion values, that is, Assume that the threshold for mimetic transformation of the railway network system configuration is And in the subsequent defense, according to the set threshold Decide whether to make the switch:

[0099] when When , mimicry conversion is performed;

[0100] when When , no mimicry conversion is performed and the original configuration is maintained.

[0101] In the present invention, when the railway network system is in operation, on the one hand, it is necessary to update and delete threat intelligence based on the existing database, and on the other hand, it is necessary to further evaluate the security of the system after the conversion occurs, and carry out the conversion according to the set security threshold. At the same time, the threat intelligence database is also updated, deleted, and evaluated.

[0102] During the mimetic conversion process, the present invention also makes a quantitative analysis of the benefits and costs: because of the configuration changes, the costs are incurred; on the other hand, because the vulnerability is prevented from being exploited during the conversion process, thus avoiding the loss to the system, in this sense, the conversion can also gain benefits. The quantitative derivation of the costs and benefits is as follows:

[0103] According to the calculation formula of the Common Vulnerability Scoring System V2.0, we can get:

[0104] Attacker's own exploitation index: Es a =20*AC*AV*AU,

[0105] Mimetic conversion benefit: Is = -10.41*(1-(1-C)(1-I)(1-A));

[0106] Depending on the given system application, the technical subsections C1, C2, ..., C n In the mimetic transformation, a matrix can be formed, which can be divided into m×n cases according to the actual situation. For the case of mimetic transformation, the conversion cost is set to K ij , then K ij Represents an m×n matrix. The value of each element in the matrix can be represented by quantization.

[0107] For the defender, there are benefits both when mimicry conversion occurs and when mimicry conversion does not occur;

[0108] When the attacker did not launch an attack, the railway network system did not undergo mimicry transformation;

[0109] When the attacker launched the attack, the railway network system happened to undergo a mimicry transformation.

[0110] Combined with the above situation, during the operation of the system, the overall profit of the defender within a certain period of time is expressed as follows:

[0111]

[0112] In the above formula, Indicates the specific strategy of the attacker when an attack occurs; x c represents all possible strategies of the defender; K ij is the conversion overhead during the conversion process; represents the profit obtained by the defender after the conversion; Δ i Represents the probability of a transition occurring.

[0113] After the above environment modeling is completed, the environment configuration conversion is implemented. The implementation process of the environment configuration conversion is as follows:

[0114] For a system, the configuration that ensures its normal functioning is C v =[a1,a2,…,a n ], where a n represents the configuration vector in the nth layer, |a i |=q represents the number of configurations that can be selected for this layer. The combinations of different configurations are |a1|·|a2|·...·|a n |=|C v |. The general configuration of the system is C = [c1, c2, ..., c n ], for the application of n sub-technical parts, |C i | indicates the optional number of configurations in this layer. The configuration combinations of different parts are |C1|·|C2|·…·|C n |=|C| pieces.

[0115] In the railway network system environment configuration conversion strategy, on the one hand, for the railway network system, during the configuration conversion process, it is necessary to consider whether it can be converted to the required configuration at one time, that is, in one step. For some systems, due to the environment required to realize the function, software implementation language and other reasons, multiple steps of conversion are required; on the other hand, analysis is carried out on the problem of conversion overhead caused by different conversion strategies (for example: system performance is temporarily affected due to configuration conversion, human and material expenses are generated, etc.). The present invention needs to combine the above two considerations and propose a strategy with the lowest overhead in the system configuration conversion process. By finding the path with the lowest overhead in the system configuration conversion process, the defense benefit can be maximized after the system conversion.

[0116] For a given system, its normally functioning configuration C v =[a1,a2,…,a n ] can be represented by the following vector: And satisfy |C v |≤|C|.

[0117] For each vector, it can be said that the application can function normally under this configuration. Since the cost and benefit of the conversion need to be considered when deciding to perform configuration conversion, the present invention further assumes that the cost of converting between all configurations is K ij , where i,j=1,2,…,|C| represents the index of the configuration vector.

[0118] The cost of switching between different configuration vectors is different. The present invention considers the cost incurred during the switching process, and also considers the probability of successfully avoiding attacks after the switching. It also considers the benefits brought by the switching and provides a configuration switching strategy, which is as follows:

[0119] In the present invention, according to the conversion cost between different configuration conversions, the shortest path search strategy is used to realize the conversion cost from the current configuration to the target configuration, and compared with the cost of direct conversion between two configurations, the strategy with the lowest conversion cost is taken as the local optimal conversion method. v | Different legal configurations, after completing the local optimal conversion method respectively, are compared again. From the above conversion costs, the configuration corresponding to the minimum conversion cost value is selected, and the configuration corresponding to this minimum cost value is used for the next step of analysis. The specific steps are as follows:

[0120] (1) Retrieve the conversion cost from the current configuration to the configuration that works normally. Based on the current configuration and the corresponding configuration vector C m , where m = 1, 2, ..., |C|, find the conversion cost required to convert from this configuration to the legal configuration, represented by P, then:

[0121]

[0122] In the above formula, p i ,i=1,2,...,|C v | indicates starting from this configuration and switching to a configuration that works normally C v =[a1,a2,...,a n ], the generated |C v |Conversion cost.

[0123] According to the legal configuration C v =[a1,a2,…,a n ], establish a legal configuration matrix:

[0124]

[0125] Obviously, in the above configuration, nq=|C v |. Based on the corresponding matrix of the above legal configuration, starting from the configuration of the railway network system, the configuration conversion cost is calculated respectively.

[0126] Assume the current system configuration is C MN , and perform the following steps according to the shortest path conversion cost during the configuration conversion process:

[0127] a) Based on the legal configuration matrix, and considering the probability that the defender believes the attacker will launch an attack Determine the legal configuration a i, j is an available configuration. The specific judgment basis is: set the corresponding attack probability threshold, when the probability of the attacker launching an attack When it is greater than or equal to the threshold, the legal configuration a i, j is considered an unavailable configuration, otherwise a is a legal configuration. i, j is considered an available configuration. If the configuration is not listed as unavailable and is available, the search starts from the current configuration C MN The conversion cost to this configuration is denoted as p (MN)→(i,j) .

[0128] b) Select the current configuration C MN The configuration nearby, namely: C M-1,N , C M,N+1 , C M+1,N , C M,N-1 There are four configurations, and the conversion costs are recorded as k (MN)→(M-1,N) , k (MN)→(M,N+1) , k (MN)→(M+1,N) , k (MN)→(M,N-1) , and calculate the conversion cost to this configuration, C MN The location is as follows:

[0129]

[0130] c) According to step b), from k (MN)→(M-1,N) , k (MN)→(M,N+1) , k (MN)→(M+1,N) , k (MN)→(M,N-1) Select the configuration corresponding to the minimum cost among the four cost values. The conversion cost is recorded as k1 and the corresponding configuration is recorded as T r1 , select the configuration adjacent to the configuration again, and compare the corresponding configuration conversion costs, find the minimum conversion cost and the corresponding configuration, and mark them respectively. In the nth conversion, the minimum conversion cost is recorded as k n , the corresponding configuration is recorded as T rn .

[0131] Compare the conversion cost p when directly converting (MN)→(i,j) The total cost of the shortest path conversion process Select the one with the smaller cost as the current system configuration C MN Switch to legal configuration a i,j The final cost is denoted as min(K).

[0132] Consider the benefit R of switching to this configuration, where the quantification of R comes from daily operation and maintenance experience. Calculate the overall benefit of selecting this target configuration as follows:

[0133] Q=R-min(K)

[0134] Conversion cost calculation:

[0135] Conversion cost K ij The calculation includes:

[0136] Obtaining the working configuration of the network system, according to factors such as the architecture, deployment location, and service objects of the information system in the railway network, the working configuration of the current system can be divided into one or more sets of experience-sensitive working configuration, manpower-sensitive working configuration, and material-sensitive working configuration;

[0137] In the calculation process of the conversion cost, the time cost (i.e. the data transmission delay generated during the conversion, denoted as T) needs to be considered according to different work configuration types. t,i→j , corresponding to the experience-sensitive work configuration classified by the system), human cost (i.e., the human resources required from the start to the completion of the configuration conversion, denoted as T r,i→j , corresponding to the human-sensitive work configuration of the system classification), material cost (that is, the resources consumed from the beginning to the completion of the configuration conversion, including hardware deployment and software installation, denoted as T w,i→j , corresponding to the physical and material sensitive work configuration of the system classification) etc.;

[0138] According to the experience in daily operation and maintenance, the conversion cost weight array is set for the above different costs. When the system is determined to be one of the types of experience-sensitive work configuration, manpower-sensitive work configuration, and material-sensitive work configuration, the weight array ω={ω1,ω2,ω3}={0,0,1}, and according to the type of specific system work configuration, the corresponding weight of the selected work configuration type is set to 1, and the remaining weights are 0; when the system is determined to be two of the work configuration types among experience-sensitive work configuration, manpower-sensitive work configuration, and material-sensitive work configuration, the weight array ω={ω1,ω2,ω3}={0.4,0.6,0}, the two work configurations are further sorted, and the corresponding weights are selected from high to low, and the other weights are 0; when the work configuration is determined to be three of the work configuration types among experience-sensitive work configuration, manpower-sensitive work configuration, and material-sensitive work configuration, it is recorded as ω={ω1,ω2,ω3}={0.15,0.35,0.50}, the three types are further sorted, and the corresponding weights are selected from high to low;

[0139] According to the classification results of the current system, calculate the conversion cost: K ij =T t,i→j ×ω1+T r,i→j ×ω2+T s,i→j ×ω3.

[0140] For example: when the work configuration is one or more of the customer meal ordering configuration and the customer service ticket purchasing configuration, the conversion cost is selected as the time cost; when the work configuration is one or more of the network security attack and defense exercise configuration and the sudden network security incident configuration, the conversion cost is selected as the time cost and the manpower cost; when the work configuration is the security threat encountering configuration, the conversion cost is selected as the time cost, the manpower cost and the material cost.

[0141] It should be noted that, regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0142] Embodiment 4:

[0143] Corresponding to the above method embodiment, this embodiment further provides a network security defense device. The network security defense device described below and the network security defense method described above can refer to each other.

[0144] Figure 3 FIG. 8 is a block diagram of a network security defense device 800 according to an exemplary embodiment. Figure 3As shown, the network security defense device 800 may include: a processor 801 and a memory 802. The network security defense device 800 may also include one or more of a multimedia component 803, an I / O interface 804, and a communication component 805.

[0145] The processor 801 is used to control the overall operation of the network security defense device 800 to complete all or part of the steps in the above network security defense method. The memory 802 is used to store various types of data to support the operation of the network security defense device 800. These data may include, for example, instructions for any application or method used to operate on the network security defense device 800, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 802 or sent through the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the network security defense device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 805 may include: Wi-Fi module, Bluetooth module, NFC module.

[0146] In an exemplary embodiment, the network security defense device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned network security defense method.

[0147] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned network security defense method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 802 including program instructions, and the above-mentioned program instructions can be executed by the processor 801 of the network security defense device 800 to complete the above-mentioned network security defense method.

[0148] Embodiment 5:

[0149] Corresponding to the above method embodiment, this embodiment further provides a readable storage medium, and the readable storage medium described below and the network security defense method described above can refer to each other.

[0150] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the network security defense method of the above method embodiment.

[0151] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.

[0152] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0153] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A network security defense method, characterized in that: include: Acquire information, the information including a general configuration, a current configuration, and a legal configuration of the network system, the legal configuration including a configuration vector of each sub-network system of the network system, and the general configuration including configuration content of each sub-network system of the network system; Calculate the first number of the legal configurations of different combinations according to the number of configuration vectors that can be selected for each of the sub-network systems; Calculate a second number of different combinations of the common configurations according to the number of configuration contents of each of the sub-network systems that can be selected, wherein the first number is not greater than the second number; According to the legal configuration, the common configuration, the first number and the second number, and in combination with a shortest path algorithm, a final conversion cost generated when the network system is converted from the current configuration to the legal configuration is calculated; The benefit of the network system when the current configuration is converted to the legal configuration is obtained, and the overall benefit under the legal configuration is calculated according to the benefit and the final conversion cost.

2. The network security defense method according to claim 1 is characterized in that , according to the legal configuration, the common configuration, the first number and the second number, the final conversion cost generated when the network system is converted from the current configuration to the legal configuration is calculated based on the shortest path algorithm, including: Establishing a legal configuration matrix according to the legal configuration and the first number; Establishing a general configuration matrix according to the general configuration and the second number; Calculate the first conversion cost of converting the current configuration to each of the legal configurations in the legal configuration matrix respectively to obtain a first conversion cost set; Screening out available configurations in the legal configuration matrix to obtain available legal configurations; Searching the first transition cost set for transitioning from the current configuration to the available legal configuration; Enter the minimum conversion cost search loop: Calculate the second conversion cost of converting the current configuration to each general configuration in the neighborhood general configuration set one by one, each general configuration in the neighborhood general configuration set is a general configuration of the current configuration within the neighborhood range in the general configuration matrix, obtain a second conversion cost set, and search for the minimum conversion cost in the second conversion cost set, completing one minimum conversion cost search loop; Repeating the minimum conversion cost search loop, and calculating the sum of the minimum conversion costs obtained in all the loops; The first conversion cost is compared with the sum of the minimum conversion cost, and the one with the smallest conversion cost is selected as the final conversion cost.

3. The network security defense method according to claim 2 is characterized in that , the available configurations are screened out in the legal configuration matrix to obtain the available legal configurations, including: Obtaining the probability that the defender believes that the attacker will launch an attack on the corresponding sub-network system; Determining whether the probability exceeds a preset safety threshold; The legal configurations corresponding to the corresponding sub-network systems whose probabilities do not exceed the preset security threshold are screened out as available legal configurations.

4. The network security defense method according to claim 2 is characterized in that , select a common configuration near the current configuration, including: Selecting the most adjacent common configurations before and after the row where the current configuration is located in the common configuration matrix; Selecting the general configurations that are the most adjacent to the current configuration in the general configuration matrix; The common configurations closest to the front and back of the row where the current configuration is located and the common configurations closest to the top and bottom of the column where the current configuration is located are used to form the common configurations near the current configuration.

5. A network security defense device, characterized in that: include: An acquisition module, the acquisition module is used to acquire information, the information includes a general configuration, a current configuration and a legal configuration of the network system, the legal configuration includes a configuration vector of each sub-network system of the network system, and the general configuration includes a configuration content of each sub-network system of the network system; A first calculation module, the first calculation module is used to calculate a first number of the legal configurations of different combinations according to the number of configuration vectors that can be selected for each of the sub-network systems; A second calculation module, the second calculation module is used to calculate a second number of the common configurations of different combinations according to the number of configuration contents of each of the sub-network systems that can be selected, the first number being not greater than the second number; a third calculation module, the third calculation module being used to calculate a final conversion cost generated when the network system is converted from the current configuration to the legal configuration according to the legal configuration, the general configuration, the first number, and the second number; A fourth calculation module is used to obtain the benefit of the network system when it is converted from the current configuration to the legal configuration, and calculate the overall benefit under the legal configuration according to the benefit and the final conversion cost.

6. The network security defense device according to claim 5, characterized in that: The third calculation module includes: a first building module, the first building module being used to establish a legal configuration matrix according to the legal configuration and the first number; a second building module, the second building module being used to establish a general configuration matrix according to the general configuration and the second number; a fifth calculation module, the fifth calculation module being used to respectively calculate a conversion cost of converting the current configuration to each of the legal configurations in the legal configuration matrix to obtain a first conversion cost set; A screening module, the screening module is used to screen out available configurations in the legal configuration matrix to obtain available legal configurations; A search module, the search module is used to search the first conversion cost set for converting from the current configuration to the available legal configuration; A loop module, calculating the second conversion cost of converting the current configuration to each general configuration in the neighborhood general configuration set one by one, wherein each general configuration in the neighborhood general configuration set is a general configuration of the current configuration within the neighborhood range of the general configuration matrix, obtaining a second conversion cost set, and searching for a minimum conversion cost in the second conversion cost set, thereby completing a minimum conversion cost search loop; A repeating module, the repeating module is used to repeat the minimum conversion cost search loop and calculate the sum of the minimum conversion costs obtained in all sub-loops; A comparison module is used to compare the first conversion cost and the sum of the minimum conversion cost, and select the one with the smallest conversion cost as the final conversion cost.

7. The network security defense device according to claim 6, characterized in that: The screening module comprises: A probability acquisition module, the probability acquisition module is used to obtain the probability that the defender believes that the attacker launches an attack on the corresponding sub-network system; A judgment module, the judgment module is used to judge whether the probability exceeds a preset safety threshold; A screening submodule is used to screen out legal configurations corresponding to the corresponding subnetwork systems whose probabilities do not exceed the preset security threshold as available legal configurations.

8. The network security defense device according to claim 6, characterized in that: The circulation module comprises: A first selection module, the first selection module is used to select the most adjacent common configurations before and after the row where the current configuration is located in the common configuration matrix; A second selection module, the second selection module is used to select the general configurations that are most adjacent to the current configuration in the general configuration matrix; A construction module is used to construct a common configuration near the current configuration according to the common configurations closest to the front and back of the row where the current configuration is located and the common configurations closest to the top and bottom of the column where the current configuration is located.

9. A network security defense device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the network security defense method as claimed in any one of claims 1 to 4 when executing the computer program.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network security defense method according to any one of claims 1 to 4 are implemented.