Database security defense method and system
By building Hfish honeypot network and multiple defense modules, the problems of low practicality and low protection level of database security defense in the existing technology are solved, accurate identification and adaptive defense of malicious attacks are achieved, and the security of the database is improved. and protection capabilities.
Patent Information
- Application Number
- CN202410973005.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing database security defense technology has low practicality, single means, simple functions, and low protection level. It cannot accurately identify data disguised by malicious attacks and lacks effective defense and detection methods.
Build a system that includes isolating databases, real databases and virtual databases, set up a firewall, and build an Hfish honeypot network in the virtual database. Preset honeypot defense strategies are obtained through offensive and defense games, combining log analysis modules, user verification modules, and signature verification modules , flow detection module and honeypot defense optimization module to realize multiple defense and adaptive defense.
It improves the effectiveness and protection level of database security defense, can accurately identify and detect camouflage data, automatically identify malicious attacks through deep traffic feature analysis, and realizes the adaptive evolution of security defense.
Smart Images

Figure CN118965450A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of database security, and in particular relates to a database security defense method and system. Background Art
[0002] With the continuous development of information technology, databases, as the core data storage and management system, are receiving increasing attention for their security. Existing database security defense technologies mostly remain at the level of firewalls blocking illegal users, with low practicality and unable to accurately identify data disguised as malicious attacks. In addition, the protection level of the database itself is low, and there is a lack of effective means to defend and detect malicious attacks after they have invaded. Summary of the invention
[0003] In order to solve the problems of low practicability, single means, simple functions, low protection level and poor security in the prior art, the present invention aims to provide a database security defense method and system.
[0004] The technical solution adopted by the present invention is:
[0005] A database security defense method comprises the following steps:
[0006] Based on the cloud data center, a database system including an isolated database, a real database and a virtual database is constructed. A firewall is set between the isolated database and the real database, and an Hfish honeypot network is constructed in the virtual database of the database system.
[0007] Conduct attack and defense games on the Hfish honeypot network to obtain the preset honeypot defense strategy, and build log analysis module, user verification module, signature verification module, traffic detection module and honeypot defense optimization module in the isolated database;
[0008] Based on the trusted institution, key generation and identity authentication are performed for several user terminals accessing the database system, and the public-private key pair and signature information of each user terminal are obtained. The private key and signature information in the public-private key pair are sent to the corresponding user terminal, and the public key in the public-private key pair is published to the database system;
[0009] Based on the user terminal, the real-time user information data is encrypted and signed according to the private key and signature information to obtain the encrypted real-time user information data and real-time signature data, and the encrypted real-time user information data and real-time signature data are uploaded to the cloud data center;
[0010] Based on the isolated database of the cloud data center, the encrypted real-time user information data and the real-time signature data are received, and the signature verification module is used to verify the signature of the real-time signature data. After the signature verification is passed, the encrypted real-time user information data is decrypted according to the public key to obtain the decrypted real-time user information data;
[0011] Use the user verification module to verify the decrypted real-time user information data. After the user verification is passed, the real-time access log data of the user terminal is generated, and the log analysis module is used to perform log analysis on the real-time access log data. After the log analysis is passed, the firewall is opened;
[0012] Use the Hfish honeypot network to collect real-time access traffic data of user terminals accessing the virtual database, and use the traffic detection module to perform traffic detection on the real-time access traffic data to obtain the real-time traffic detection result. If the real-time traffic detection result shows an abnormality, the firewall is closed;
[0013] According to the abnormal real-time traffic detection results, the honeypot defense optimization module is used to optimize the preset honeypot defense strategy of the Hfish honeypot network, obtain the optimized honeypot defense strategy, and send the optimized honeypot defense strategy to each Hfish honeypot.
[0014] Furthermore, based on the cloud data center, a database system including an isolated database, a real database and a virtual database is constructed, a firewall is set between the isolated database and the real database, and an Hfish honeypot network is constructed in the virtual database of the database system, including the following steps:
[0015] Based on the cloud data center, build an isolated database and a real database, and set up a firewall between the isolated database and the real database;
[0016] Partition the real database to obtain a number of real data partitions, and collect real configuration information of each real data partition;
[0017] According to the real configuration information of the real data partitions in the real database, construct the corresponding virtual data partitions in the virtual database;
[0018] An Hfish management module is set in the isolated database, an Hfish honeypot is set in each virtual data partition, and an Hfish honeypot network is constructed based on the Hfish management module and a plurality of Hfish honeypots.
[0019] Furthermore, an attack and defense game is conducted on the Hfish honeypot network to obtain a preset honeypot defense strategy, and a log analysis module, a user verification module, a signature verification module, a traffic detection module, and a honeypot defense optimization module are constructed in the isolation database, including the following steps:
[0020] Conduct attack and defense games on the Hfish honeypot network, obtain the preset honeypot defense strategy, and send the preset honeypot defense strategy to each Hfish honeypot;
[0021] Based on a number of historical access log data, a log analysis module is constructed in the isolated database using a clustering algorithm, and the log analysis module is connected to the firewall;
[0022] According to the preset legal user information database, a user verification module is constructed in the isolation database, and the user verification module is connected to the legal user information database and the firewall;
[0023] Building a signature verification module in the isolated database and connecting the signature verification module to the trusted institution and the firewall;
[0024] Based on several historical access traffic data, a traffic detection module is constructed in the isolation database using a deep learning algorithm to generate several historical traffic detection results, and the traffic detection module is connected to the Hfish management module and the firewall;
[0025] According to several historical traffic detection results and preset honeypot defense strategies, a honeypot defense optimization module is constructed using reinforcement learning algorithm, and the honeypot defense optimization module is connected to the Hfish management module.
[0026] Furthermore, an attack-defense game algorithm based on attack belief is used to conduct an attack-defense game on the Hfish honeypot network to obtain a preset honeypot defense strategy.
[0027] Furthermore, based on several historical access log data, a log analysis module is constructed in the isolated database using the FCM clustering algorithm.
[0028] Furthermore, based on several historical access traffic data, a traffic detection module is constructed in the isolated database using the ICPO-DBN algorithm.
[0029] Furthermore, based on several historical traffic detection results and preset honeypot defense strategies, a honeypot defense optimization module is constructed using the DQN algorithm.
[0030] Furthermore, based on a trusted institution, an asymmetric encryption algorithm is used to generate keys for several user terminals accessing the database system.
[0031] Furthermore, based on a trusted institution, a digital identity algorithm is used to perform identity authentication on several user terminals accessing the database system.
[0032] A database security defense system is used to implement a database security defense method. The system includes a cloud data center, a trusted institution, and a plurality of user terminals. The cloud data center and the trusted institution are respectively connected to the plurality of user terminals in communication, and the cloud data center is connected to the trusted institution in communication;
[0033] The cloud data center is equipped with a database system including an isolated database, a real database and a virtual database. The virtual database is equipped with an Hfish honeypot network, and the isolated database is equipped with a log analysis module, a user verification module, a signature verification module, a traffic detection module and a honeypot defense optimization module.
[0034] The beneficial effects of the present invention are:
[0035] The invention discloses a database security defense method and system. By constructing an attack trapping Hfish honeypot network and using active defense technology, some loopholes are actively exposed and some baits are set to lure attackers to attack, so that the attack behavior can be captured and analyzed, the effectiveness of security defense means is improved, and the security protection level and security of the database are improved; through multiple defense and authentication means such as a log analysis module, a user verification module, and a signature verification module, disguised data can be accurately identified and detected, and the detection accuracy and practicality are improved; using a flow detection module, by mining the deep data features of flow data, the flow data of malicious attacks is automatically and accurately identified and detected, and the accuracy, effectiveness and real-time of security defense are further improved; the honeypot defense optimization module realizes the adaptive evolution of security defense strategies, and can gradually improve its own security defense capabilities with the development of malicious attacks.
[0036] Other beneficial effects of the present invention will be further described in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a flowchart of the database security defense method in the present invention.
[0038] Figure 2 It is a structural block diagram of the database security defense system in the present invention. DETAILED DESCRIPTION
[0039] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments.
[0040] Embodiment 1:
[0041] like Figure 1 As shown, this embodiment provides a database security defense method, including the following steps:
[0042] S1: Based on the cloud data center, a database system including an isolated database, a real database and a virtual database is constructed, a firewall is set between the isolated database and the real database, and an Hfish honeypot network is constructed in the virtual database of the database system, including the following steps:
[0043] S1-1: Based on the cloud data center, build an isolated database and a real database, and set up a firewall between the isolated database and the real database;
[0044] S1-2: partition the real database to obtain a number of real data partitions, and collect real configuration information of each real data partition;
[0045] S1-3: constructing corresponding virtual data partitions in the virtual database according to the real configuration information of the real data partitions in the real database;
[0046] S1-4: Setting up an Hfish management module in the isolated database, setting up an Hfish honeypot in each virtual data partition, and constructing an Hfish honeypot network based on the Hfish management module and the Hfish honeypots, including the following steps:
[0047] S1-4-1: Generate corresponding Hfish honeypot elements according to the real configuration information of the virtual data partition; the Hfish honeypot elements include the service framework agreement of the virtual server corresponding to the Hfish honeypot, the virtual server attribute information, the data partition configuration attribute information and the applicable data partition attribute information;
[0048] S1-4-2: According to the Hfish honeypot elements, set up the Hfish honeypot at the virtual data partition, and set up an access flow probe on the Hfish honeypot;
[0049] S1-4-3: Set up the Hfish management module in the isolated database, connect all access traffic probes to the Hfish management module, and build the Hfish honeypot network;
[0050] S2: Conduct an attack and defense game on the Hfish honeypot network to obtain a preset honeypot defense strategy, and build a log analysis module, user verification module, signature verification module, traffic detection module, and honeypot defense optimization module in the isolated database, including the following steps:
[0051] S2-1: Use the attack-defense game algorithm based on attack belief to conduct an attack-defense game on the Hfish honeypot network, obtain a preset honeypot defense strategy, and send the preset honeypot defense strategy to each Hfish honeypot, including the following steps:
[0052] S2-1-1: Set the initial attack belief value for the attacker participating in the attack and defense game, and preset three types of attack actions for the attacker: including low-frequency attack actions, high-frequency attack actions, and attack exit actions, and two types of defense actions for the defender: including blocking actions and releasing actions;
[0053] The formula for the threshold attack belief value is:
[0054]
[0055] Where P threshold is the threshold attack belief value for the attacker to execute the attack action; P exit The attack belief value of the attacker to perform the attack exit action; p t1 The probability that the defender executes the release action; r l The profit of the attacker for successfully executing low-frequency attack actions; r h The profit of the attacker for successfully executing high-frequency attack actions; l The loss caused by the attacker's information being leaked when the attacker is captured by the Hfish honeypot while performing low-frequency attack actions; h The loss caused by the attacker's information being leaked when the attacker is captured by the Hfish honeypot when performing high-frequency attack actions; n is the number of iterations of the Hfish honeypot attack and defense game;
[0056] The update formula of attack belief value is:
[0057]
[0058] Where P' is the attack belief value updated by the attacker when the defender's defensive action is blocking action; p t2 is the probability of the defender performing a blocking action, p t2 Much smaller than p t1 ; P0 is the initial attack belief value of the attacker;
[0059] S2-1-2: Based on the initial attack belief value, the expected benefits of the attacker performing three types of attack actions are obtained, including: the expected benefits of low-frequency attack actions, the expected benefits of high-frequency attack actions, and the expected benefits of attack exit actions;
[0060] The formula for equilibrium payoff is:
[0061]
[0062] In the formula, is the equilibrium payoff of the attacker in the nth iteration; is the equilibrium payoff of the attacker in the n-1th iteration after the attack belief value is updated; l k The cost for the attacker to re-execute the attack;d Cost of maintenance for the defender; k Profits for the attacker to re-execute the attack;
[0063] like The defender executes the release action;
[0064] The formula for expected return is:
[0065]
[0066] In the formula, is the expected benefit of the attacker when the defender's defense action is a release action and the attacker's attack action is a low-frequency attack action in the nth iteration; is the expected benefit of the attacker when the defender's defense action is a release action and the attacker's attack action is a high-frequency attack action in the nth iteration; l l The loss caused by the attacker's information being leaked when the attacker is captured by the Hfish honeypot while performing low-frequency attack actions; h is the loss caused by the attacker’s information being leaked when the attacker is captured by the Hfish honeypot when performing high-frequency attack actions; n is the number of iterations of the Hfish honeypot attack and defense game; P n The attack belief value updated by the attacker in the nth iteration; r l The profit of the attacker for successfully executing low-frequency attack actions; r h The profit of the attacker for successfully executing high-frequency attack actions; is the equilibrium payoff of the attacker in the nth iteration; p t1 The probability of the defender executing the release action; p t2 The probability of executing a blocking action for the defender;
[0067] like The attacker performs low-frequency attack actions;
[0068]
[0069] In the formula, is the expected benefit of the attacker when the defender's defense action is blocking action and the attacker's attack action is a low-frequency attack action in the nth iteration; is the expected benefit of the attacker when the defender's defense action is a blocking action and the attacker's attack action is a high-frequency attack action in the nth iteration;
[0070] like The attacker performs low-frequency attack actions;
[0071] S2-1-3: Based on the expected return of the attacker, execute the attack action with the highest expected return, and send the corresponding attack action execution information to the defender;
[0072] S2-1-4: Based on the defender, according to the attack action execution information, the expected benefits of executing three types of attack actions are obtained, including: the expected benefits of blocking actions and the expected benefits of releasing actions;
[0073] S2-1-5: Execute the defense action with the highest expected benefit according to the expected benefit of the defender, and generate the corresponding defense action execution information;
[0074] S2-1-6: If the defense action of the defender included in the defense action execution information is a blocking action, according to the Bayesian rule, the attack belief value of the attacker is updated to obtain an updated attack belief value, and the above steps are repeated according to the updated attack belief value to proceed to the next step of the Hfish honeypot attack and defense game;
[0075] S2-1-7: If the number of iterations of the Hfish honeypot attack and defense game is greater than the preset number threshold, the Hfish honeypot attack and defense game is stopped, a preset honeypot defense strategy is obtained, and the preset honeypot defense strategy is sent to each Hfish honeypot;
[0076] The attack-defense game algorithm based on attack belief can fully weigh the risk of attack and reduce the suspicion of the attacker according to the attacker's strategy, so as to obtain more information benefits from the attacker and select the best response, which improves the response speed of Hfish honeypot to malicious attacks and the effectiveness of defense strategy, and speeds up the efficiency and speed of defense action execution;
[0077] S2-2: Based on some historical access log data, a log analysis module is constructed in the isolated database using the fuzzy C-mean (FCM) clustering algorithm, and the log analysis module is connected to the firewall, including the following steps:
[0078] S2-2-1: Based on the FCM clustering algorithm, select clustering parameters, including the fuzzy factor m and the total number of cluster centers, and cluster a number of historical access log data according to the clustering parameters to obtain a number of initial cluster centers; the initial cluster centers represent possible abnormal access types;
[0079] S2-2-2: according to the Euclidean distance between each historical access log data and several initial cluster centers, set a corresponding fuzzy membership for each initial cluster center;
[0080] The formula is:
[0081] d ij =||x i -z j || 2
[0082] Where, d ijis the Euclidean distance between the i-th historical access log data and the j-th cluster center; x i is the i-th historical access log data; j is the jth cluster center; i is the data indicator; j is the cluster center indicator;
[0083] S2-2-3: Update the cluster center according to the fuzzy membership degree to obtain several corresponding updated cluster centers;
[0084] The formula for updating fuzzy membership is:
[0085]
[0086] In the formula, x i is the i-th historical access log data; i is the data indicator; j and k are the cluster center indicators; c is the total number of cluster centers; d ij d ik is the distance from the i-th historical access log data to the j-th and k-th cluster centers; u ij is the updated fuzzy membership of the i-th historical access log data belonging to the j-th cluster center;
[0087] The formula for updating the cluster center is:
[0088]
[0089] In the formula, z' j is the cluster center updated for the jth time; m is the fuzzy factor; i is the data indicator; n' is the total number of data; j is the cluster center indicator; x i is the i-th historical access log data; u ij is the fuzzy membership degree of the i-th historical access log data belonging to the j-th cluster center;
[0090] S2-2-4: Use the Lagrange multiplier method to calculate the combined function and obtain the combined function value and the combined function change value;
[0091] The formula is:
[0092]
[0093] In the formula, J t , J t-1 is the combined function value of the Lagrange multiplier method at the t and t-1 iterations; ΔJ t is the corresponding change value; λ' i is the i-th characteristic parameter; t is the indicator of the number of iterations; u ij is the degree of membership of the i-th historical access log data to the j-th cluster center; m is the fuzzy factor; i is the data indicator; n' is the total number of data; j is the cluster center indicator; c is the total number of cluster centers; dij is the Euclidean distance from the i-th historical access log data to the j-th cluster center;
[0094] S2-2-6: If the merge function value is greater than the function threshold, or the merge function change value is greater than the change value threshold, then continue to update the cluster center, otherwise, use the current cluster center as the final cluster center; the final cluster center represents the final abnormal access type;
[0095] S2-3: According to the preset legal user information database, a user verification module is constructed in the isolation database, and the user verification module is connected to the legal user information database and the firewall;
[0096] S2-4: Build a signature verification module in the isolated database and connect the signature verification module to the trusted organization and the firewall;
[0097] S2-5: Based on some historical access traffic data, using the Improved Crested Porcupine Optimizer (ICPO)-Deep Belief Network (DBN) algorithm, a traffic detection module is constructed in the isolated database, several historical traffic detection results are generated, and the traffic detection module is connected to the Hfish management module and the firewall, including the following steps:
[0098] S2-5-1: Based on some historical access traffic data without real labels, the DBN network is pre-trained to obtain a pre-trained traffic detection model;
[0099] S2-5-2: Use the ICPO optimization algorithm to obtain the optimal initial network parameters of the pre-trained traffic detection model, including the following steps:
[0100] S2-5-2-1: Randomly generate several candidate initial network parameters;
[0101] S2-5-2-2: Encode the candidate initial network parameters as ICPO individuals of the ICPO optimization algorithm;
[0102] S2-5-2-3: Set the ICPO population parameters, maximum number of iterations and fitness function of the ICPO optimization algorithm;
[0103] S2-5-2-4: According to the number of individuals in the ICPO population parameters, the Circle chaotic mapping sequence is used for initialization to obtain the initial ICPO population;
[0104] The formula is:
[0105]
[0106] In the formula, It is the initial ICPO individual of Circle chaos mapping; is the randomly generated initial ICPO individual; i' is the ICPO individual indicator;
[0107] S2-5-2-5: Introduce a cyclic population reduction mechanism to limit the number of individuals in the ICPO population parameters and obtain updated ICPO population parameters for the next iteration;
[0108] The formula is:
[0109]
[0110] In the formula, S t+1 is the number of individuals in the ICPO population parameter of the t+1th iteration; S t is the number of individuals in the ICPO population parameter of the tth iteration; S min is the minimum number of individuals in the ICPO population parameter; a' is the function evaluation parameter; V is the function evaluation cycle parameter; V max is the maximum function evaluation loop parameter; t is the number of iterations indicator;
[0111] S2-5-2-6: Calculate the initial fitness value of the initial ICPO individuals in the initial ICPO population according to the fitness function;
[0112] The formula is:
[0113]
[0114] In the formula, f(x i' ) is the ICPO individual x i' The fitness value of For ICPO individual x i' The training loss function of For ICPO individual x i' The training bias function of For ICPO individual x i' The training time cost function of α, β, are weight coefficients; ν is the compensation coefficient;
[0115] S2-5-2-7: According to the initial fitness value and the updated ICPO population parameters, the first defense strategy, the second defense strategy, the third defense strategy and the fourth defense strategy are used to update the initial ICPO population to obtain an updated ICPO population;
[0116] The formula for the first defense strategy is:
[0117]
[0118] In the formula, For the updated ICPO individuals within the first defense range; is the initial ICPO individual within the first defense range; τ1 is a random number based on normal distribution; τ2 is a random value in the interval [0,1]; It is the optimal solution within the first defense range; is the vector generated between the true optimal solution within the first defense range and the optimal solution randomly selected from the ICPO population; i' is the ICPO individual indicator; t is the iteration indicator;
[0119] The formula for the second defense strategy is:
[0120]
[0121] In the formula, For the updated ICPO individuals within the second defense range; The initial ICPO individual within the second defense range; is the search upper limit vector of the second defense range; τ3 is a random value in the interval [0,1]; are the r1th and r2th initial ICPO individuals respectively; r1 and r2 are two random integers between [1, S]; is the vector generated between the true optimal solution within the second defense range and the optimal solution randomly selected from the ICPO population;
[0122] The formula for the third defense strategy is:
[0123]
[0124] In the formula, For the updated ICPO individuals within the third defense range; The initial ICPO individual within the third defense range; is the search upper limit vector of the third defense range; are the r2th and r3th initial ICPO individuals respectively; r3 is a random integer between [1, S]; The odor diffusion factor defined for the fitness function; λ t It is a defense factor; Control parameters for search direction;
[0125] The formula for the fourth defense strategy is:
[0126]
[0127] In the formula, For the updated ICPO individuals within the fourth defense range; The initial ICPO individual within the fourth defense range; is the optimal solution within the fourth defense range; τ4 and τ5 are both random values in the interval [0,1]; λ t It is a defense factor; Control parameters for search direction; is the average force affecting the search direction; a' is the convergence speed factor;
[0128] S2-5-2-8: Use the dynamic reverse learning algorithm to perform dynamic reverse learning on the updated ICPO population to generate a dynamic reverse ICPO population;
[0129] The formula is:
[0130]
[0131] In the formula, is the ICPO individual in dynamic reverse direction; γ is the decreasing inertia coefficient; L max , L min are the maximum and minimum values of the vector space respectively; For the updated ICPO individual;
[0132] S2-5-2-9: According to the fitness function, calculate the fitness values of all ICPO individuals in the updated ICPO population and the dynamically reversed ICPO population, and take the ICPO individual with the minimum fitness value as the optimal individual;
[0133] S2-5-2-10: If the number of iterations reaches the maximum number of iterations or the fitness value of the optimal individual meets the requirements, the optimal solution corresponding to the current optimal individual is output to obtain the optimal initial network parameters;
[0134] S2-5-3, optimizing the pre-trained traffic detection model according to the optimal initial network parameters to obtain an initial traffic detection model;
[0135] S2-5-4: Optimize and train the initial traffic detection model using a number of historical access traffic data with real labels to obtain a final traffic detection model and generate a number of historical traffic detection results;
[0136] S2-5-5: deploy the final traffic detection model in the traffic detection module, and connect the traffic detection module to the Hfish management module and the firewall;
[0137] S2-6: Based on several historical traffic detection results and the preset honeypot defense strategy, a honeypot defense optimization module is constructed using the Deep Q Network (DQN) algorithm, and the honeypot defense optimization module is connected to the Hfish management module, including the following steps:
[0138] S2-6-1: Based on the honeypot defense optimization problem, define the simulation environment of the Deep Q Network (DQN) algorithm, and build the Deep Q Network, agency, and experience storage pool of the DQN algorithm. S2-6-2: Based on the preset honeypot defense strategy, define the action space of the DQN algorithm, and define the state space of the DQN algorithm based on the historical traffic detection results;
[0139] S2-6-3: Define the reward function of the DQN algorithm based on the action space and state space;
[0140] S2-6-4: Construct an initial honeypot defense optimization model based on the simulation environment, state space, action space, reward function, deep Q network, agent, and experience storage pool;
[0141] The neural network structure is a deep Q network, which includes two neural networks with the same structure but different parameters: one is used to predict Q values (online Q network), and the other is used to generate target Q values (target Q network). The parameters of the target Q network are regularly copied from the online Q network, but are not updated frequently, which helps to improve the stability of the learning process.
[0142] S2-6-5: Based on several historical traffic detection results and the preset honeypot defense strategy, the initial honeypot defense optimization model is optimized and trained, and the generated honeypot defense optimization experience is stored in the experience storage pool to obtain the final honeypot defense optimization model;
[0143] S2-6-6: deploy the final honeypot defense optimization model in the honeypot defense optimization module, and connect the honeypot defense optimization module to the Hfish management module;
[0144] S3: Based on the trusted institution, key generation and identity authentication are performed for several user terminals accessing the database system, and the public-private key pair and signature information of each user terminal are obtained. The private key and signature information in the public-private key pair are sent to the corresponding user terminal, and the public key in the public-private key pair is published to the database system, including the following steps:
[0145] S3-1: Based on a trusted institution, using an asymmetric encryption algorithm, key generation is performed for several user terminals accessing the database system to obtain a public-private key pair for each user terminal, including the following steps:
[0146] S3-1-1: Based on the trusted institution and the attribute information of the user terminal, an asymmetric encryption algorithm is used to generate keys to obtain the public parameter GP, the master key MSK and the initial key PK;
[0147] The formula is:
[0148] GP={g,g1,g a ,e(g,g) a ,H1,H2,H3,H4,H5,H6}
[0149] PK={g,g1,g a ,e(g,g) a ,H u}
[0150] MSK = {g a ,a}
[0151] Where GP is the public parameter; MSK is the master key; PK is the initial key; a is the integer domain Z p Random numbers; H1, H2, H3, H4, H5, H6, H u All are target hash functions; g, g1, g a are all random numbers that are generators of the cyclic group G; e(g,g) a is a bilinear map of random numbers g;
[0152] S3-1-2: Based on the public parameter GP, the master key MSK, the initial key PK and the attribute information V of the user terminal u , generate the corresponding public-private key pair of the user terminal, the public-private key pair includes the private key SK u and public key PK u , the formula is:
[0153] SK u = {MSK,V u ,K=g a g ab ,L u =g b ,(K=H3(V u ) b )}
[0154]
[0155] In the formula, SK u is the private key of user terminal u; b is the integer domain Z p Random number; L u , K is the private key parameter of user terminal u; H3 is the target hash function of public parameter GP; u is the user terminal indicator; MSK is the master key; PK is the initial key; PK u is the public key of user terminal u; g b , g a , g ab is the random number of the generator of the cyclic group G; V u is the attribute information of the user terminal u;
[0156] S3-2: Based on a trusted institution, use a digital identity algorithm to authenticate the identities of several user terminals accessing the database system and obtain signature information of each user terminal;
[0157] The formula is:
[0158]
[0159] In the formula, k" is a random number; K u is the registration parameter of user terminal u; KID u KID is the registration ID of user terminal u; u and the corresponding K u The signature information {K u ,KID u}; H1 is the target hash function; ID u SK is the entity ID of the user terminal u; u is the private key of user terminal u; is the prime order; P is the base point of the prime domain;
[0160] S3-3: Send the private key and signature information in the public-private key pair to the corresponding user terminal, and publish the public key in the public-private key pair to the database system;
[0161] S4: Based on the user terminal, the real-time user information data is encrypted and signed according to the private key and the signature information to obtain the encrypted real-time user information data and the real-time signature data, and the encrypted real-time user information data and the real-time signature data are uploaded to the cloud data center;
[0162] The formula is:
[0163] M u =E(SK u ,m u )
[0164] Where M u is the encrypted real-time user information data of user terminal u; E(*) is the asymmetric encryption function; m u is the real-time user information data of user terminal u; SK u is the private key of user terminal u; u is the user terminal indication quantity;
[0165] The formula is:
[0166]
[0167] In the formula, r' is a random number; is the prime order; P is the base point of the prime domain; H2 is the target hash function; K u For the signature information {Ku ,KID u} Registration parameters of user terminal u; KID u For the signature information {K u ,KID u}Registration ID of user terminal u; ID u is the entity ID of the user terminal u; the real-time signature data is {ID u ,M u ,γ'={K u ,R u ,B u}}; R u ,B u ,γ' are the signature parameters of user terminal u;
[0168] S5: Based on the isolated database of the cloud data center, receive the encrypted real-time user information data and the real-time signature data, use the signature verification module to verify the signature of the real-time signature data, and after the signature verification passes, decrypt the encrypted real-time user information data according to the public key to obtain the decrypted real-time user information data;
[0169] The formula is:
[0170] β u B u P=β u H2(R u ,M u ,ID u ,K u )R u +β u K u +β u H1(ID u ,K u )PK u
[0171] In the formula, β u PK is the signature verification parameter of user terminal u; u is the public key of user terminal u; if the left formula is equal to the right formula, the signature verification is successful;
[0172] The formula is:
[0173] m' u =E - (PK u ,M u )
[0174] In the formula, m' u is the decrypted real-time user information data of user terminal u; E - (*) is an asymmetric decryption function; M uPK is the encrypted real-time user information data of user terminal u; u is the public key of user terminal u;
[0175] S6: Use the user verification module to perform user verification on the decrypted real-time user information data. After the user verification is passed, generate real-time access log data of the user terminal, and use the log analysis module to perform log analysis on the real-time access log data. After the log analysis is passed, open the firewall;
[0176] Use the FCM clustering algorithm to obtain the Euclidean distance between the real-time access log data and all cluster centers. If the nearest Euclidean distance is greater than the distance threshold, it means that the real-time access log data does not belong to the abnormal access type corresponding to any cluster center, and the log analysis passes. Otherwise, the log analysis fails.
[0177] S7: Use the Hfish honeypot network to collect real-time access traffic data of user terminals accessing the virtual database, and use the traffic detection module to perform traffic detection on the real-time access traffic data to obtain real-time traffic detection results. If the real-time traffic detection result shows that there is an abnormality, the firewall is closed;
[0178] S8: Based on the abnormal real-time traffic detection results, the honeypot defense optimization module is used to optimize the preset honeypot defense strategy of the Hfish honeypot network to obtain the optimized honeypot defense strategy, and the optimized honeypot defense strategy is sent to each Hfish honeypot, including the following steps:
[0179] S8-1: According to the abnormal real-time traffic detection results, update the state space of the startup strategy optimization model to obtain the updated state space S'=[s'1,...,s' i" ,...,s' I ], where s' i" is the updated i'th state value, i" is the state indicator;
[0180] S8-2: According to the preset honeypot defense strategy of the Hfish honeypot network corresponding to the real-time traffic detection result, update the action space A'=[a'1,...,a' j" ,...,a' I ], where a' j" is the updated j-th "action value", j" is the action indicator;
[0181] S8-3: Update the state space S' = [s'1, ..., s' i' ,...,s' I ] as the input of the starting policy optimization model, based on the deep Q network, using the agency to obtain the updated action space A'=[a'1,...,a'j' ,...,a' I ];
[0182] S8-4: Use the reward function to obtain the reward value of the possible action, and update the predicted Q value of the possible action according to the reward value to obtain the updated Q value of the possible action;
[0183] The formula is:
[0184] Q(s' p' ,a' p' )=(1-α)·Q(s p' ,a p' )+α'·(R(s p' ,a p' ,s' p' )+γ·Q max (s p' ,a p' ))
[0185] In the formula, Q(s' p' ,a' p' ) is the updated state value s' p' and the updated action value a' p' The corresponding updated Q value; Q(s p' ,a p' ) is the state value s p' and action value a p' The corresponding predicted Q value; α' is the learning rate; Q max (s p' ,a p' ) is the highest predicted Q value;
[0186] S8-5: Repeat the above steps until the iteration number threshold is reached, and use the greedy strategy to take the possible action corresponding to the highest updated Q value as the execution action;
[0187] S8-6: Optimize the preset honeypot defense strategy according to the execution action to obtain the optimized honeypot defense strategy, and send the optimized honeypot defense strategy to each Hfish honeypot.
[0188] Embodiment 2:
[0189] like Figure 2 As shown, this embodiment provides a database security defense system for implementing a database security defense method. The system includes a cloud data center, a trusted institution, and a plurality of user terminals. The cloud data center and the trusted institution are respectively connected to the plurality of user terminals in communication, and the cloud data center is connected to the trusted institution in communication;
[0190] The cloud data center is equipped with a database system including an isolated database, a real database and a virtual database. The virtual database is equipped with an Hfish honeypot network, and the isolated database is equipped with a log analysis module, a user verification module, a signature verification module, a traffic detection module and a honeypot defense optimization module.
[0191] The invention discloses a database security defense method and system. By constructing an attack trapping Hfish honeypot network and using active defense technology, some loopholes are actively exposed and some baits are set to lure attackers to attack, so that the attack behavior can be captured and analyzed, the effectiveness of security defense means is improved, and the security protection level and security of the database are improved; through multiple defense and authentication means such as a log analysis module, a user verification module, and a signature verification module, disguised data can be accurately identified and detected, and the detection accuracy and practicality are improved; using a flow detection module, by mining the deep data features of flow data, the flow data of malicious attacks is automatically and accurately identified and detected, and the accuracy, effectiveness and real-time of security defense are further improved; the honeypot defense optimization module realizes the adaptive evolution of security defense strategies, and can gradually improve its own security defense capabilities with the development of malicious attacks.
[0192] The present invention is not limited to the above optional implementations, and anyone can derive other various forms of products under the enlightenment of the present invention. The above specific implementations should not be understood as limiting the scope of protection of the present invention. The scope of protection of the present invention should be based on the definition in the claims, and the description can be used to interpret the claims.
Claims
1. A database security defense method, characterized in that: The steps include: Based on the cloud data center, a database system including an isolated database, a real database and a virtual database is constructed. A firewall is set between the isolated database and the real database, and an Hfish honeypot network is constructed in the virtual database of the database system. Conduct attack and defense games on the Hfish honeypot network to obtain the preset honeypot defense strategy, and build log analysis module, user verification module, signature verification module, traffic detection module and honeypot defense optimization module in the isolated database; Based on the trusted institution, key generation and identity authentication are performed for several user terminals accessing the database system, and the public-private key pair and signature information of each user terminal are obtained. The private key and signature information in the public-private key pair are sent to the corresponding user terminal, and the public key in the public-private key pair is published to the database system; Based on the user terminal, the real-time user information data is encrypted and signed according to the private key and signature information to obtain the encrypted real-time user information data and real-time signature data, and the encrypted real-time user information data and real-time signature data are uploaded to the cloud data center; Based on the isolated database of the cloud data center, the encrypted real-time user information data and the real-time signature data are received, and the signature verification module is used to verify the signature of the real-time signature data. After the signature verification is passed, the encrypted real-time user information data is decrypted according to the public key to obtain the decrypted real-time user information data; Use the user verification module to verify the decrypted real-time user information data. After the user verification is passed, the real-time access log data of the user terminal is generated, and the log analysis module is used to perform log analysis on the real-time access log data. After the log analysis is passed, the firewall is opened; Use the Hfish honeypot network to collect real-time access traffic data of user terminals accessing the virtual database, and use the traffic detection module to perform traffic detection on the real-time access traffic data to obtain the real-time traffic detection result. If the real-time traffic detection result shows an abnormality, the firewall is closed; According to the abnormal real-time traffic detection results, the honeypot defense optimization module is used to optimize the preset honeypot defense strategy of the Hfish honeypot network, obtain the optimized honeypot defense strategy, and send the optimized honeypot defense strategy to each Hfish honeypot.
2. A database security defense method according to claim 1, characterized in that: Based on the cloud data center, a database system including an isolated database, a real database and a virtual database is constructed. A firewall is set between the isolated database and the real database, and an Hfish honeypot network is constructed in the virtual database of the database system, including the following steps: Based on the cloud data center, build an isolated database and a real database, and set up a firewall between the isolated database and the real database; Partition the real database to obtain a number of real data partitions, and collect real configuration information of each real data partition; According to the real configuration information of the real data partitions in the real database, construct the corresponding virtual data partitions in the virtual database; An Hfish management module is set in the isolated database, an Hfish honeypot is set in each virtual data partition, and an Hfish honeypot network is constructed based on the Hfish management module and a plurality of Hfish honeypots.
3. A database security defense method according to claim 1, characterized in that: Conduct an attack and defense game on the Hfish honeypot network to obtain the preset honeypot defense strategy, and build a log analysis module, user verification module, signature verification module, traffic detection module and honeypot defense optimization module in the isolated database, including the following steps: Conduct attack and defense games on the Hfish honeypot network, obtain the preset honeypot defense strategy, and send the preset honeypot defense strategy to each Hfish honeypot; Based on a number of historical access log data, a log analysis module is constructed in the isolated database using a clustering algorithm, and the log analysis module is connected to the firewall; According to the preset legal user information database, a user verification module is constructed in the isolation database, and the user verification module is connected to the legal user information database and the firewall; Building a signature verification module in the isolated database and connecting the signature verification module to the trusted institution and the firewall; Based on several historical access traffic data, a traffic detection module is constructed in the isolation database using a deep learning algorithm to generate several historical traffic detection results, and the traffic detection module is connected to the Hfish management module and the firewall; According to several historical traffic detection results and preset honeypot defense strategies, a honeypot defense optimization module is constructed using reinforcement learning algorithm, and the honeypot defense optimization module is connected to the Hfish management module.
4. A database security defense method according to claim 3, characterized in that: Using the attack-defense game algorithm based on attack belief, the attack-defense game is carried out on the Hfish honeypot network to obtain the preset honeypot defense strategy.
5. A database security defense method according to claim 3, characterized in that: Based on several historical access log data, a log analysis module is built in the isolated database using the FCM clustering algorithm.
6. A database security defense method according to claim 3, characterized in that: According to some historical access traffic data, the ICPO-DBN algorithm is used to build a traffic detection module in the isolated database.
7. A database security defense method according to claim 3, characterized in that: According to several historical traffic detection results and preset honeypot defense strategies, the DQN algorithm is used to build a honeypot defense optimization module.
8. A database security defense method according to claim 1, characterized in that: Based on a trusted institution, an asymmetric encryption algorithm is used to generate keys for several user terminals accessing the database system.
9. A database security defense method according to claim 1, characterized in that: Based on a trusted institution, a digital identity algorithm is used to authenticate the identities of several user terminals accessing the database system.
10. A database security defense system, used to implement the database security defense method according to any one of claims 1 to 9, characterized in that: The system includes a cloud data center, a trusted institution and a plurality of user terminals, wherein the cloud data center and the trusted institution are respectively connected to the plurality of user terminals in communication, and the cloud data center is connected to the trusted institution in communication; The cloud data center is provided with a database system including an isolated database, a real database and a virtual database. The virtual database is provided with an Hfish honeypot network, and the isolated database is provided with a log analysis module, a user verification module, a signature verification module, a flow detection module and a honeypot defense optimization module.
Citation Information
Patent Citations
Web security protection-oriented cheating defense system
CN116132090A
Network security log query method and system
CN117614750A
Database attack defense method and device, storage medium and electronic equipment
CN117633783A
Webpage tamper-proof data encryption method and system
CN117729041A
Deception defense method and device based on reinforcement learning high attack and defense interaction in multi-honeypot scene
CN117938473A
Cited By
DDoS attack identification method and system based on multi-modal fusion analysis
CN119210903A
Data synchronization method and system based on honeypot service, terminal and medium
CN119892406A
Financial service full life cycle monitoring and analysis method and system
CN119989387A
Financial data security management system and method
CN120046167A
Network security intrusion detection method and system
CN120602119A
