Improved honeypot anti-intrusion method based on genetic algorithm and electronic equipment
The honeypot anti-intrusion method based on genetic algorithm solves the problem of traditional honeypots being detected and avoided by attackers, realizes the dynamic optimization and deceptive improvement of honeypots, and enhances the defense capabilities of network security.
Patent Information
- Application Number
- CN202410526963.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-29
- Filing Date
- 2024-04-29
- Publication Date
- 2024-10-11
AI Technical Summary
Traditional honeypots are detected and circumvented by attackers, cannot effectively play a defensive role, and cannot adjust strategies in time to deal with attackers.
A honeypot anti-intrusion method based on genetic algorithms is adopted to simulate the evolution process by establishing mathematical models, determining evolutionary algorithm parameters, designing coding schemes and dynamic optimization to improve the deceptiveness of honeypots and reduce the occurrence of attacker warnings.
It improves the deceptiveness and network security defense of honeypots, reduces the risk of attacker identification and avoidance, and enhances defense capabilities against modern attack methods.
Smart Images

Figure CN118764217A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network security, and in particular to an improved honeypot anti-intrusion method based on a genetic algorithm. The present application also relates to an electronic device. Background Art
[0002] Network security has become one of the issues that must be addressed in information construction. Among them, honeypot technology, as an important means to improve network security defense capabilities, has received widespread attention.
[0003] However, traditional honeypots have the problem of being detected and evaded by attackers, and cannot truly play their defensive role. Traditional honeypots often only statically provide false or real but worthless services, and cannot adjust strategies in time to change the attack surface, so they can be detected and evaded by attackers.
[0004] Therefore, how to provide an improved honeypot anti-intrusion method based on genetic algorithm, which can overcome the above technical problems and reduce the occurrence of situations such as being triggered by attackers, has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides an improved honeypot anti-intrusion method based on genetic algorithm, which can overcome the above technical problems, simulate the evolutionary process, and quickly find the optimal solution to adapt to the environment, thereby making the honeypot more deceptive and reducing the occurrence of situations such as being warned by attackers.
[0006] A technical solution provided by this application is as follows:
[0007] The present application provides a honeypot anti-intrusion method based on an improved genetic algorithm, comprising the steps of: establishing a mathematical model for reflecting the success and failure of the honeypot;
[0008] Determine the basic parameters of the evolutionary algorithm;
[0009] Design coding scheme: Combine the honeypot environment and the attacker's detection method to create deceptive behavior suitable for the attacker and force the attacker to enter the real target system;
[0010] Honeypot dynamic optimization based on genetic algorithm.
[0011] Furthermore, in a preferred embodiment of the present invention, the step of "establishing a mathematical model for reflecting the success and failure of the honeypot" includes:
[0012] Select appropriate metrics; design weight calculation formula; obtain fitness value; select the range of fitness value.
[0013] Furthermore, in a preferred embodiment of the present invention,
[0014] The metrics in step "Select appropriate metrics" include: the number of service operations provided by the fake service, the number of different IP addresses accessing the service, the number of bounced connections, and the duration of the connection;
[0015] The step "designing a weight calculation formula" includes: using a linear weighted formula to assign different weights to each indicator, the linear weighted formula is in the form of: fitness value = w1 X1 + w2 X2 + ... + wn Xn, where X1 ~ Xn represent the values of each metric indicator respectively; w1 ~ wn represent the weight of each indicator respectively;
[0016] The step "obtaining fitness value" is to obtain the fitness value by using the weighted average method; fitness value = (w1X1+w2X2+...+wn*Xn) / (w1+w2+...+wn), wherein X1~Xn represent the values of different measurement indicators respectively, and w1~wn are the weight values of the corresponding indicators;
[0017] Each metric is standardized to prevent dimensional differences between metrics of different dimensions; the range of the selected fitness value is 0 to 1.
[0018] Furthermore, in a preferred embodiment of the present invention, the step of "determining basic parameters of the evolutionary algorithm" is specifically: determining the population size: 50-200; the crossover rate: 0.6-1; and the mutation rate: 0.001-0.1.
[0019] Furthermore, in a preferred embodiment of the present invention, the step of "dynamically optimizing the honeypot based on a genetic algorithm" is: dynamically optimizing the honeypot through multiple rounds of selection, crossover and mutation operations, and adjusting based on environmental information.
[0020] Furthermore, in a preferred embodiment of the present invention, the step of "dynamic optimization of honeypot based on genetic algorithm" includes the steps of: initializing the population; evaluating the fitness; selecting the next generation population parent according to the fitness value and the selection operator; generating a group of new offspring individuals; changing the newly generated offspring individuals at appropriate individual positions according to the mutation probability and the mutation operator to enhance the diversity of individuals and promote global search; and repeating the above steps.
[0021] Furthermore, in a preferred embodiment of the present invention, the step of "generating a group of new offspring individuals" is specifically as follows: randomly selecting a group of individual pairs from the selected parent individuals according to the crossover probability and the crossover operator, performing a crossover operation in a specified manner in the crossover operator, and generating a group of new offspring individuals.
[0022] Furthermore, in a preferred embodiment of the present invention, the standardization of each metric includes: standardizing each metric using a Z-score standardization method.
[0023] In addition, the present invention also provides an electronic device, comprising: a computer program, wherein the computer program is used to execute the improved honeypot anti-intrusion method based on the genetic algorithm as described above;
[0024] A memory, the memory being used to store a computer program;
[0025] A processor is used to execute a computer program.
[0026] The present invention provides an improved honeypot intrusion prevention method based on genetic algorithm, which, compared with the prior art, includes the following steps: establishing a mathematical model for reflecting the success and failure of the honeypot; determining the basic parameters of the evolutionary algorithm; designing a coding scheme: combining the honeypot environment and the attacker's detection method to create a deceptive behavior suitable for the attacker and force the attacker to enter the real target system; and dynamically optimizing the honeypot based on the genetic algorithm. The technical solution involved in the present invention, the improved honeypot intrusion prevention method based on genetic algorithm uses the optimization strategy of genetic algorithm to dynamically control the configuration, strategy and other parameters of the honeypot, breaking the bottleneck of the traditional honeypot being identified and avoided by the attacker. The solution involved in the present invention can improve the defense strength of network security and protect network security in the case of increasing modern attack methods. In addition, the present application also relates to an electronic device, which also has the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 The figure is a schematic diagram of the overall process of the improved honeypot anti-intrusion method based on genetic algorithm according to an embodiment of the present invention.
[0029] Figure 2 This is a flow chart of a method for dynamic optimization of honeypot based on genetic algorithm according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of this application.
[0031] It should be noted that when an element is referred to as being "fixed on" or "set on" another element, it can be directly on the other element or indirectly set on the other element; when an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0032] It should be understood that the terms "length", "width", "up", "down", "front", "back", "first", "second", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0033] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "multiple" and "several" mean two or more, unless otherwise clearly and specifically defined.
[0034] It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the conditions under which this application can be implemented. Therefore, they have no substantive technical significance. Any structural modification, change in proportional relationship or adjustment of size should still fall within the scope of the technical content disclosed in this application without affecting the effects and purposes that can be achieved by this application.
[0035] Please Figure 1 to Figure 2As shown, the embodiment of the present application provides a honeypot anti-intrusion method based on an improved genetic algorithm, including the steps of: establishing a mathematical model for reflecting the success and failure of the honeypot; determining the basic parameters of the evolutionary algorithm; designing a coding scheme: combining the environment of the honeypot and the detection method of the attacker to create a deceptive behavior suitable for the attacker and force the attacker to enter the real target system; and dynamically optimizing the honeypot based on the genetic algorithm. The technical solution involved in the present invention is based on the improved genetic algorithm honeypot anti-intrusion method. It uses the optimization strategy of the genetic algorithm to dynamically control the configuration, strategy and other parameters of the honeypot, breaking the bottleneck of the traditional honeypot being identified and avoided by the attacker. The solution involved in the present invention can improve the defense strength of network security and protect network security in the case of increasing modern attack methods. In addition, the present application also relates to an electronic device, which also has the above-mentioned beneficial effects.
[0036] Specifically, in the embodiment of the present invention, the step of "establishing a mathematical model for reflecting the success and failure of the honeypot" includes:
[0037] Select appropriate metrics; design weight calculation formula; obtain fitness value; select the range of fitness value.
[0038] Specifically, in the embodiments of the present invention:
[0039] The metrics in step "Select appropriate metrics" include: the number of service operations provided by the fake service, the number of different IP addresses accessing the service, the number of bounced connections, and the duration of the connection;
[0040] The step "designing a weight calculation formula" includes: using a linear weighted formula to assign different weights to each indicator, the linear weighted formula is in the form of: fitness value = w1 X1 + w2 X2 + ... + wn Xn, where X1 ~ Xn represent the values of each metric indicator respectively; w1 ~ wn represent the weight of each indicator respectively;
[0041] The step "obtaining fitness value" is to obtain the fitness value by using the weighted average method; fitness value = (w1X1+w2X2+...+wn*Xn) / (w1+w2+...+wn), wherein X1~Xn represent the values of different measurement indicators respectively, and w1~wn are the weight values of the corresponding indicators;
[0042] Each metric is standardized to prevent dimensional differences between metrics of different dimensions; the range of the selected fitness value is 0 to 1.
[0043] Specifically, in the embodiment of the present invention, the step of "determining basic parameters of the evolutionary algorithm" is specifically: determining the population size: 50-200; the crossover rate: 0.6-1; and the mutation rate: 0.001-0.1.
[0044] Specifically, in the embodiment of the present invention, the step of "dynamically optimizing the honeypot based on a genetic algorithm" is: dynamically optimizing the honeypot through multiple rounds of selection, crossover and mutation operations, and adjusting based on environmental information.
[0045] Specifically, in an embodiment of the present invention, the step of "dynamic optimization of honeypot based on genetic algorithm" includes the steps of: initializing the population; evaluating the fitness; selecting the next generation population parent according to the fitness value and the selection operator; generating a group of new offspring individuals; changing the newly generated offspring individuals at appropriate individual positions according to the mutation probability and the mutation operator to enhance the diversity of individuals and promote global search; repeating the above steps.
[0046] Specifically, in an embodiment of the present invention, the step of "generating a group of new offspring individuals" is specifically as follows: randomly selecting a group of individual pairs from the selected parent individuals according to the crossover probability and the crossover operator, performing a crossover operation in a specified manner in the crossover operator, and generating a group of new offspring individuals.
[0047] Specifically, in the embodiment of the present invention, the standardization process for each metric indicator includes: standardization process for each metric indicator using a Z-score standardization method.
[0048] In addition, an embodiment of the present invention also provides an electronic device, including: a computer program, the computer program is used to execute the improved honeypot anti-intrusion method based on genetic algorithm as described above; a memory, the memory is used to store the computer program; and a processor, the processor is used to execute the computer program, which is also based on the above technical effects.
[0049] To be more specific, network security has become one of the issues that must be addressed in information construction. Among them, honeypot technology, as an important means to improve network security defense capabilities, has received widespread attention.
[0050] However, traditional honeypots have the problem of being detected and evaded by attackers, and cannot truly play their defensive role. Traditional honeypots often only statically provide false or real but worthless services, and cannot adjust strategies in time to change the attack surface, so they can be detected and evaded by attackers.
[0051] The genetic algorithm involved in the embodiment of the present invention can simulate the evolution process and quickly find the optimal solution to adapt to the environment, thereby making the honeypot more deceptive and reducing the occurrence of situations such as being warned by attackers.
[0052] Specifically, the implementation process of the improved honeypot anti-intrusion method based on genetic algorithm is as follows:
[0053] 1. Establish fitness function
[0054] In order to adapt to the ever-changing network attack environment, the fitness function plays a key role. The purpose of this function is to establish a mathematical model that can reflect the success and failure of the honeypot through a multi-faceted quantitative analysis of the deception of the honeypot, and to perform operations such as selection, crossover and mutation on this basis.
[0055] The implementation process of the fitness function mainly includes the following steps:
[0056] (1) Choose the right metrics
[0057] The fitness function needs to select appropriate metrics to evaluate the deceptive success rate of the honeypot. These metrics usually include: the number of service operations provided by the fake service, the number of different IP addresses accessing the service, the number of bounced connections, the duration of the connection, etc.
[0058] (2) Design weight calculation formula
[0059] After determining the metrics of the fitness function, you need to design a weight calculation formula to convert these metrics into numerical values. Usually, this weight calculation formula uses a linear weighted formula, that is, different weights are given to each metric.
[0060] The linear weighting formula is of the form:
[0061] Fitness value = w1 X1 + w2 X2 + ... + wnXn
[0062] Among them, X1~Xn represent the values of each measurement indicator respectively; w1~wn represent the weight of each indicator respectively.
[0063] (3) Give the specific calculation formula of the fitness function
[0064] After comprehensively considering the weights of various indicators, it is necessary to give a specific calculation formula for the fitness function. The fitness value is obtained by using the weighted average method.
[0065] Fitness value = (w1X1+w2X2+...+wn*Xn) / (w1+w2+...+wn)
[0066] Among them, X1~Xn represent the values of different metrics, and w1~wn are the weight values of the corresponding metrics. In the calculation process, each metric needs to be standardized first to prevent the dimensional differences between metrics of different dimensions. The Z-score standardization method is commonly used.
[0067] (4) Select the range of fitness values
[0068] In order to make the genetic algorithm search space effectively, the fitness value should fluctuate within a certain range and have a certain distribution. If the fitness value is too concentrated, the algorithm may fall into a local optimal solution. The present invention selects the fitness value in the range of 0 to 1.
[0069] 2. Determine the basic parameters of the evolutionary algorithm
[0070] In evolutionary algorithms, the design of the genetic coding scheme is one of the key factors in improving the deceptiveness of honeypots. Therefore, the following basic parameters need to be determined:
[0071] Population size: 50-200;
[0072] Crossover rate: 0.6-1;
[0073] Mutation rate: 0.001-0.1;
[0074] 3. Design a coding scheme
[0075] In the design of the coding scheme, it is necessary to consider the different detection methods for different honeypot environments and attackers, to create deceptive behaviors suitable for attackers as much as possible and to force attackers to enter the real target system (or honeypot).
[0076] 4. Perform genetic algorithm-based optimization
[0077] In practical applications, it is necessary to set an optimization goal so that the evolutionary algorithm can find a better solution under the corresponding evaluation index. Through multiple rounds of selection, crossover and mutation operations, as well as fine-tuning based on environmental information, the dynamic optimization of the honeypot is achieved.
[0078] The implementation process is as follows:
[0079] (1) Initialize the population
[0080] According to the selected encoding method and parameter settings, a group of individuals are randomly generated as the population. The population size and individual attributes need to be controlled according to the characteristics of the problem and parameter settings.
[0081] (2) Evaluating fitness
[0082] According to the objective function or evaluation index of the problem, the fitness value of each individual is calculated. The fitness value reflects the degree of excellence of the individual in the problem solution space, and the fitness value of a good individual should be higher.
[0083] (3) Select operation
[0084] According to the fitness value and the selection operator, a group of excellent individuals are selected as the parents of the next generation population to avoid the situation where all good individuals are eliminated and a local optimal solution is caused.
[0085] (4) Crossover operation
[0086] Among the selected parent individuals, a group of individual pairs are randomly selected according to the crossover probability and the crossover operator, and the crossover operation is performed in the specified manner in the crossover operator to generate a group of new offspring individuals.
[0087] (5) Mutation Operation
[0088] For the newly generated offspring individuals, changes are made at appropriate individual positions according to the mutation probability and mutation operator to enhance individual diversity and promote global search.
[0089] (6) Repeat the above steps
[0090] The newly generated offspring are mixed with the parent generation to construct the next generation population, and the fitness evaluation, selection, crossover and mutation operations are continued until the set number of iterations is reached or a satisfactory optimization result is achieved.
[0091] The improved honeypot anti-intrusion method based on genetic algorithm uses the optimization strategy of genetic algorithm to dynamically control the configuration, strategy and other parameters of the honeypot, breaking the bottleneck of traditional honeypots being identified and avoided by attackers. This method can improve the defense strength of network security and protect network security in the context of increasing modern attack methods.
[0092] It should be noted that the construction and arrangement of the present application shown in a plurality of different exemplary embodiments are only exemplary. Although only a few embodiments are described in detail in this disclosure, it should be easily understood by the personnel referring to this disclosure that many modifications are possible (e.g., the size, scale, structure, shape and proportion of various elements, and parameter values (e.g., temperature, pressure, etc.), installation arrangement, use of materials, color, directional changes, etc.) without substantially departing from the novel teachings and advantages of the subject matter described in the application. For example, the element shown as integrally formed can be composed of multiple parts or elements, the position of the element can be inverted or otherwise changed, and the nature or number or position of the discrete element can be changed or changed. Therefore, all such modifications are intended to be included in the scope of the present invention. The order or sequence of any process or method steps can be changed or reordered according to alternative embodiments. In the claims, any "device plus function" clause is intended to cover the structure of performing the function described herein, and is not only structurally equivalent but also equivalent structure. Without departing from the scope of the present invention, other replacements, modifications, changes and omissions can be made in the design, operating conditions and arrangement of the exemplary embodiments. Therefore, the invention is not limited to a specific embodiment, but extends to numerous modifications still falling within the scope of the appended claims.
[0093] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An improved honeypot anti-intrusion method based on genetic algorithm, It is characterized in that Includes steps: Build a mathematical model to reflect the success and failure of honeypots; Determine the basic parameters of the evolutionary algorithm; Design coding scheme: Combine the honeypot environment and the attacker's detection method to create deceptive behavior suitable for the attacker and force the attacker to enter the real target system; Honeypot dynamic optimization based on genetic algorithm.
2. According to the improved honeypot anti-intrusion method based on genetic algorithm according to claim 1, It is characterized in that The step "Establishing a mathematical model to reflect the success and failure of the honeypot" includes: Select appropriate metrics; design weight calculation formula; obtain fitness value; select the range of fitness value.
3. According to the improved honeypot anti-intrusion method based on genetic algorithm according to claim 2, It is characterized in that The metrics in step "Select appropriate metrics" include: the number of service operations provided by the fake service, the number of different IP addresses accessing the service, the number of bounced connections, and the duration of the connection; The step "designing a weight calculation formula" includes: using a linear weighted formula to assign different weights to each indicator, the linear weighted formula is in the form of: fitness value = w1 X1 + w2 X2 + ... + wn Xn, where X1 ~ Xn represent the values of each metric respectively; w1 ~ wn represent the weight of each indicator respectively; The step "obtaining fitness value" is to obtain the fitness value by using the weighted average method; fitness value = (w1X1+w2X2+...+wn*Xn) / (w1+w2+...+wn), wherein X1~Xn represent the values of different measurement indicators respectively, and w1~wn are the weight values of the corresponding indicators; Each metric is standardized to prevent dimensional differences between metrics of different dimensions; the range of the selected fitness value is 0 to 1.
4. According to claim 3, the improved honeypot anti-intrusion method based on genetic algorithm, It is characterized in that The step "determine the basic parameters of the evolutionary algorithm" is specifically: determine the population size: 50-200; crossover rate: 0.6-1; mutation rate: 0.001-0.
1.
5. According to claim 4, the improved honeypot anti-intrusion method based on genetic algorithm, It is characterized in that The step "dynamic optimization of honeypot based on genetic algorithm" is: dynamic optimization of honeypot is achieved through multiple rounds of selection, crossover and mutation operations, and adjustment based on environmental information.
6. According to the improved honeypot anti-intrusion method based on genetic algorithm according to claim 5, It is characterized in that The step "dynamic optimization of honeypot based on genetic algorithm" includes the steps of: initializing the population; evaluating the fitness; selecting the next generation population parent according to the fitness value and the selection operator; generating a group of new offspring individuals; changing the newly generated offspring individuals at appropriate individual positions according to the mutation probability and the mutation operator to enhance the diversity of individuals and promote global search; repeating the above steps.
7. According to the improved honeypot anti-intrusion method based on genetic algorithm according to claim 6, It is characterized in that The step "generating a group of new offspring individuals" is specifically as follows: randomly selecting a group of individual pairs from the selected parent individuals according to the crossover probability and the crossover operator, performing a crossover operation in a specified manner in the crossover operator, and generating a group of new offspring individuals.
8. According to the improved honeypot anti-intrusion method based on genetic algorithm as claimed in claim 3, It is characterized in that The standardization process for each metric includes: standardizing each metric using a Z-score standardization method.
9. An electronic device, It is characterized in that include: A computer program, the computer program being used to execute the improved honeypot anti-intrusion method based on genetic algorithm as claimed in any one of claims 1 to 9; A memory, the memory being used to store a computer program; A processor is used to execute a computer program.
