Network security protection method and system

By dynamically adjusting weight parameters and establishing a mixed state model, we solve the problem that fixed weight parameters in the existing technology cannot adapt to changes in the network environment, achieve in-depth understanding of user behavior and efficient response, and improve the intelligent level of network security protection. .

CN118748611AActive Publication Date: 2024-10-08BEIJING TIANYUN NETWORK SECURITY TECH CO LTD

Patent Information

Application Number
CN202410881484.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-08
Estimated Expiration
2044-07-03

Smart Images

  • Figure CN118748611A_ABST
    Figure CN118748611A_ABST
Patent Text Reader

Abstract

The invention discloses a network security protection method and system, and relates to the technical field of network security, and the method comprises the steps: obtaining the user behavior data of a target user, and determining the current network security level of the user; according to a real-time state and historical data of a network environment, automatically adjusting weight parameters of an active index, a login anomaly index, an operation index and an operation anomaly index; establishing a mixed state model by using the collected user behavior data, and identifying and predicting normal and abnormal behavior modes; on the basis of the dynamically adjusted weight parameters, comprehensive safety parameters of the target user are calculated, and then the overall safety level of the user is determined; a network access control strategy is dynamically adjusted according to the security level of a user, and a set of advanced network security protection mechanism is formed by integrating user behavior analysis, environmental adaptability weight adjustment, mixed state model prediction, comprehensive security parameter calculation and the dynamic access control strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network security, and in particular to a network security protection method and system. Background Art

[0002] With the rapid development of information technology, the Internet has become an indispensable information exchange platform in modern society, but the network security issues it brings are becoming increasingly prominent and have become one of the important factors restricting the progress of the digital age. Traditional network security protection measures focus on static defense, including firewalls and intrusion detection systems. Although these technologies can resist external attacks to a certain extent, they have limited ability to monitor and respond to abnormal internal user behaviors in a timely manner. In recent years, with the rise of big data and artificial intelligence technologies, network security protection has gradually transformed towards intelligent and active defense, striving to achieve efficient and accurate threat identification and response in complex and changing network environments.

[0003] Despite this, existing technologies still face many challenges in practical applications. First, user behavior analysis often relies on a fixed indicator system and weight distribution, and lacks adaptability to dynamic changes in the network environment. When network traffic increases abnormally and new attack methods emerge, the fixed weight parameters cannot accurately reflect the current security situation, resulting in frequent false positives and missed reports. Secondly, most existing behavior recognition models are built based on a single technology and simple machine learning models. These models perform poorly when processing high-dimensional, nonlinear data and have difficulty capturing subtle changes and complex patterns in user behavior. In addition, the adjustment of network access control policies often lags behind the occurrence of security incidents, and cannot flexibly adjust access rights according to the user's real-time security level, leaving security risks. Summary of the invention

[0004] In view of the above existing problems, the present invention is proposed.

[0005] Therefore, the present invention provides a network security protection method and system to solve the problem that user behavior analysis often relies on a fixed indicator system and weight distribution, lacks adaptability to dynamic changes in the network environment, and when network traffic increases abnormally and new attack methods emerge, the fixed weight parameters cannot accurately reflect the current security situation, resulting in frequent false alarms and missed reports. Secondly, most of the existing behavior recognition models are built based on a single technology and simple machine learning models. These models perform poorly when processing high-dimensional and nonlinear data, and have difficulty capturing subtle changes and complex patterns in user behavior. In addition, the adjustment of network access control policies often lags behind the occurrence of security incidents, and cannot flexibly adjust access rights according to the user's real-time security level, thus leaving security risks.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides a network security protection method, which includes:

[0008] Obtain user behavior data of target users and determine the user's current network security level;

[0009] Automatically adjust the weight parameters of the activity index, login abnormality index, operation index, and operation abnormality index based on the real-time status and historical data of the network environment;

[0010] Use the collected user behavior data to build a mixed state model to identify and predict normal and abnormal behavior patterns;

[0011] Based on the dynamically adjusted weight parameters, the comprehensive security parameters of the target user are calculated to determine the user's overall security level;

[0012] Dynamically adjust network access control policies based on the user's security level.

[0013] As a preferred solution of the network security protection method of the present invention, wherein: the user behavior data includes an activity index AI, a login abnormality index LEI, a running index RI and an operation abnormality index OEI;

[0014] Determining the current network security level of the user includes the following steps: a comprehensive security score is performed based on the activity index AI, the login anomaly index LEI, the operation index RI, and the operation anomaly index OEI. The expression is:

[0015]

[0016] Among them, SS represents the comprehensive safety score, ∫ represents the integral symbol, T represents the time range of data collection, λ represents the decay rate, and e -λt represents the exponential decay factor, ω AI (t),ω LEI (t),ω RI (t),ω OEI (t) represents the dynamic weights of AI, LEI, RI and OEI. AI(t), LEI(t), RI(t) and OEI(t) represent the values ​​of activity index, login abnormality index, operation index and operation abnormality index at time t respectively. dt represents the weighted accumulation of all instantaneous behaviors from time 0 to T.

[0017] The comprehensive security score SS divides users into different preliminary security levels.

[0018] As a preferred solution of the network security protection method of the present invention, the weight parameters of the activity index, login abnormality index, operation index and operation abnormality index are automatically adjusted according to the real-time status and historical data of the network environment. The specific steps are as follows:

[0019] Collect the real-time status of the network environment;

[0020] Analyze historical data to provide a basis for automatically adjusting weight parameters;

[0021] The real-time status data and historical data are combined into a set of feature vectors, expressed as:

[0022]

[0023] Among them, X t represents the feature vector, n represents the number of features, and t represents the time point;

[0024] Define the loss function as L(ω,X t );

[0025] At each time step t, based on the feature vector X t and the current weight vector ω t-1 , using the OGD algorithm to adjust the weight parameter ω in real time t , the expression is:

[0026]

[0027] Among them, ω t represents the weight vector at time t, ω t-1 represents the weight vector at the previous time step t-1, η represents the learning rate, Denotes the loss function L with respect to the weight vector ω t-1 In the current feature vector X t The gradient vector under .

[0028] As a preferred solution of the network security protection method of the present invention, the method of using the collected user behavior data to train the mixed state model to identify and predict normal and abnormal behavior patterns is specifically performed as follows:

[0029] Construct a hybrid state model that integrates the feature representation H(t) of LSTM and CNN and the state transition information of the hidden Markov model HMM. t For feature extraction and pattern learning, the expression is:

[0030] y(t)=Softmax(W2·ReLU(W1·[X t ;H(t)]+b1)+W3·MaxProbTrans[α t]+b2)

[0031] Among them, y(t) represents the probability value predicted at time step t, Softmax and ReLU are activation functions, H(t) represents the current hidden state, W1 and W2 are the weight matrices of the first and second layers respectively, W3 represents the third weight matrix, which is used to map the state transfer information to the output layer, b1 and b2 are the bias items of the first and second layers respectively, MaxProbTrans represents the maximum probability value in the state transfer matrix, α t Represents the state probability distribution of the current time step;

[0032] Set a threshold U and compare the predicted value y(t) with the threshold U;

[0033] When y(t)>U, it is judged as normal behavior;

[0034] When y(t)≤U, it is judged as abnormal behavior.

[0035] As a preferred solution of the network security protection method of the present invention, wherein: the comprehensive security parameters of the target user are calculated based on the dynamically adjusted weight parameters, and then the overall security level of the user is determined, and the specific steps are:

[0036] Based on the adjusted weight parameter ω=[ω AI ,ω LEI ,ω RI ,ω OEI ], calculate the first reliability value and the second reliability value;

[0037] The first reliability value is expressed as:

[0038]

[0039] Among them, R1 represents the first reliable value, ω i (t) represents the weight of indicator i at time t, X i (t) represents the value of indicator i at time t, γ is a constant coefficient, i≠j represents the pairing between indicators i and j, ω ij (t) represents the interaction weight of indicators i and j at time t, and Z represents the normalization factor;

[0040] The second reliability value is expressed as:

[0041]

[0042] Wherein, R2 represents the second reliability value, y(t) represents the predicted probability value of the hybrid state model at time t, α and β are respectively the weight coefficients of the weighted average of the prediction model output and the behavior index, σ represents the standard deviation, Var[y(t)] and μ[y(t)] respectively represent the variance and mean of the predicted value y(t) changing with time;

[0043] Based on R1 and R2, a composite index is defined to determine the overall security level of the user, and the expression is:

[0044] CS = α·R1 + (1 - α)·R2

[0045] Wherein, CS represents the comprehensive security score, and α represents the weight factor.

[0046] As a preferred solution of the network security protection method described in the present invention, wherein: the network access control policy is dynamically adjusted according to the security level of the user, and the specific steps are:

[0047] Based on the user's comprehensive security score CS, the corresponding policy set is automatically selected and applied, and a policy selection function is constructed, and the expression is:

[0048] P(CS) = {LSL, if CS ≤ θ1 MSL, if θ1 < CS ≤ θ2 HSL, if CS > θ2}

[0049] Wherein, P(CS) represents the policy selection function, LSL, MSL, and HSL respectively represent the policy sets of low, medium, and high security levels, and if represents if.

[0050] As a preferred solution of the network security protection method described in the present invention, wherein: the network access control policy is dynamically adjusted, and the specific steps are:

[0051] Set thresholds θ1 and θ2 according to the comprehensive security score CS;

[0052] When CS ≤ θ1, it is determined that the user has a low security level, and a one-time SMS verification code is sent to the registered mobile phone number to verify the identity. The verification code needs to be entered within the specified time to pass the verification. After passing the verification, access to sensitive resources and key systems is restricted, and only necessary services are opened, reducing network resource allocation. Failure to enter the verification code within the specified time is regarded as a verification failure, and the user's access is refused;

[0053] When θ1 < CS ≤ θ2, it is determined that the user has a medium security level, and a one-time SMS verification code is sent to the registered mobile phone number to verify the identity. The verification code needs to be entered within the specified time to pass the verification. After passing the verification, according to the user role, system resources and function access are opened limitedly, and the access logs are reviewed regularly, and early warnings are given for suspicious behaviors. Failure to enter the verification code within the specified time is regarded as a verification failure, and the user's access is refused;

[0054] When CS>θ2, the user is judged to be at a high security level and needs to enter a preset six-digit password to pass the verification. After successful verification, full access rights are enabled, and the user can freely access resources according to work needs. Network resources are allocated preferentially to ensure business smoothness.

[0055] In a second aspect, the present invention provides a network security protection system, including a collection module, an adjustment module, an analysis module, an evaluation module and an execution module;

[0056] The acquisition module is responsible for collecting the user behavior data of the target user in real time, collecting the real-time status data and historical data of the network environment, and at the same time, it is also responsible for normalizing the collected data;

[0057] The adjustment module includes automatically adjusting the weight parameters of the activity index, login abnormality index, operation index and operation abnormality index based on the collected real-time network environment status and historical data analysis;

[0058] The analysis module includes using a hybrid state model to conduct in-depth analysis of user behavior data to achieve identification and prediction of normal and abnormal behavior patterns. By training the model, setting thresholds to determine whether the behavior is normal or not, and providing users with immediate security risk feedback;

[0059] The evaluation module includes comprehensively considering the user behavior indicators and behavior pattern prediction results after weight adjustment, and further determining the overall security level of the user by calculating the comprehensive security score CS of the target user;

[0060] The execution module includes dynamically adjusting the network access control strategy according to the user's comprehensive security score. At the same time, the system continuously monitors the changes in the user's security level to ensure timely adjustment and implementation of the strategy.

[0061] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the network security protection method described in the first aspect of the present invention is implemented.

[0062] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the network security protection method described in the first aspect of the present invention is implemented.

[0063] The beneficial effects of the present invention are as follows: the present invention forms a set of advanced network security protection mechanisms by integrating user behavior analysis, environmental adaptability weight adjustment, hybrid state model prediction, comprehensive security parameter calculation and dynamic access control strategy. It collects user behavior data to evaluate the security level and ensures the accuracy of basic protection. Then, according to the real-time status of the network environment and historical data analysis, it intelligently adjusts the weight parameters to enhance the timeliness and pertinence of the protection measures. By constructing a hybrid state model, it can not only identify known threats, but also predict unknown risks, and improve the foresight and initiative of protection. The dynamic calculation of comprehensive security parameters provides an accurate basis for user customized security strategies. Finally, the dynamic access control implemented according to the user's security level balances the needs of security and convenience and optimizes the network usage experience. On the whole, the present invention improves the intelligence level of network security protection, realizes a deep understanding of user behavior and efficient response, and effectively resists network threats. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0065] Figure 1 This is a flow chart of the network security protection method in Example 1.

[0066] Figure 2 This is a flow chart of the comprehensive safety score in Example 1. DETAILED DESCRIPTION

[0067] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0068] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0069] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0070] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention. This embodiment provides a network security protection method, including the following steps:

[0071] Obtain the user behavior data of the target user and determine the current network security level of the user.

[0072] The user behavior data includes the activity index AI, the login anomaly index LEI, the running index RI, and the operation anomaly index OEI;

[0073] Determining the current network security level of the user includes the following steps. Based on the activity index AI, the login anomaly index LEI, the running index RI, and the operation anomaly index OEI, a comprehensive security score is calculated. The expression is:

[0074]

[0075] Among them, SS represents the comprehensive security score, ∫ represents the integral symbol, T represents the time range of data collection, λ represents the decay rate, e -λt represents the exponential decay factor, ω AI (t), ω LEI (t), ω RI (t), ω OEI (t) represents the dynamic weights of AI, LEI, RI, and OEI. AI(t), LEI(t), RI(t), and OEI(t) respectively represent the values of the activity index, the login anomaly index, the running index, and the operation anomaly index at time t. dt represents the weighted accumulation of all instantaneous behaviors during the time from 0 to T;

[0076] The value range of the comprehensive security score SS is from 0 to 1, and the users are divided into different preliminary security levels;

[0077] The preliminary security levels include low security level, medium security level, and high security level;

[0078] When SS ≤ 0.3, it is determined that the user is at a low security level, indicating that there are significant anomalies and risks in the user's behavior;

[0079] When 0.3 < SS ≤ 0.7, it is determined that the user is at a medium security level, indicating that there may be certain security risks in the user's behavior but they are still within the controllable range;

[0080] When 0.7 < SS ≤ 1, it is determined that the user is at a high security level, indicating that users at this level show a highly normal behavior pattern and the security risk is relatively low.

[0081] Automatically adjust the weight parameters of the activity index, the login anomaly index, the running index, and the operation anomaly index according to the real-time status and historical data of the network environment.

[0082] Collect the real-time status of the network environment, including but not limited to network traffic, attack event frequency, and new threat intelligence update rate;

[0083] Analyze historical data to provide a basis for automatically adjusting weight parameters;

[0084] The real-time status data and historical data are combined into a set of feature vectors, expressed as:

[0085]

[0086] Among them, X t represents the feature vector, n represents the number of features, and t represents the time point;

[0087] Define the loss function L(ω,X t ), the expression is:

[0088]

[0089] Among them, L(ω,X t ) represents the loss function, which means that at time t, given the feature vector X t and weight vector ω=[ω AI ,ω LEI ,ω RI ,ω OEI ], BaseLoss(ω,X t ) represents the basic loss term, λ and μ represent the regularization coefficients, represents the square of the L2 norm of the weight vector ω;

[0090] At each time step t, based on the feature vector X t and the current weight vector ω t-1 , using the OGD algorithm to adjust the weight parameter ω in real time t , the expression is:

[0091]

[0092] Among them, ω t Represents the weight vector at time t, including the weight values ​​of the activity index, login abnormality index, operation index, and operation abnormality index, ω t-1 represents the weight vector at the previous time step t-1, η represents the learning rate, Represents the loss function l with respect to the weight vector ω t-1 In the current feature vector X t The gradient vector under ;

[0093] The process of analyzing historical data is:

[0094] Collect data from various log and intelligence sources, including but not limited to user login logs, operation logs, system event logs, network traffic records, and external threat intelligence sources;

[0095] Clean and normalize the data to ensure data quality;

[0096] Statistical analysis is used to identify the user's regular login time, common function operations and activity area behavior patterns, and the abnormal behavior detection algorithm SVM is used to mark activities that deviate significantly from normal behavior;

[0097] By analyzing the time, type, severity, and affected users of historical security events, we can reveal patterns of concentrated periods of security events and common attack types.

[0098] Use the collected user behavior data to build a mixed state model to identify and predict normal and abnormal behavior patterns.

[0099] Construct a hybrid state model that integrates the feature representation H(t) of LSTM and CNN and the state transition information of the hidden Markov model HMM. t For feature extraction and pattern learning, the expression is:

[0100] y(t)=Softmax(W2·ReLU(W1·[X t ;H(t)]+b1)+W3·MaxProbTrans[α t ]+b2)

[0101] Among them, y(t) represents the probability value predicted at time step t, Softmax and ReLU are activation functions, H(t) represents the current hidden state, W1 and W2 are the weight matrices of the first and second layers respectively, W3 represents the third weight matrix, which is used to map the state transfer information to the output layer, b1 and b2 are the bias items of the first and second layers respectively, MaxProbTrans represents the maximum probability value in the state transfer matrix, α t Represents the state probability distribution of the current time step;

[0102] Set a threshold U and compare the predicted value y(t) with the threshold U;

[0103] When y(t)>U, it is judged as normal behavior;

[0104] When y(t)≤U, it is judged as abnormal behavior;

[0105] Mixed state model, including input layer, convolution layer, fully connected layer and anti-overfitting layer;

[0106] In the present invention, the value of the threshold U is 0.5.

[0107] Based on the dynamically adjusted weight parameters, the comprehensive security parameters of the target user are calculated to determine the user's overall security level.

[0108] Based on the dynamically adjusted weight parameters, the comprehensive security parameters of the target user are calculated to determine the user's overall security level. The specific steps are as follows:

[0109] Based on the adjusted weight parameter ω=[ω AI ,ω LEI ,ω RI ,ω OEI ], calculate the first reliability value and the second reliability value;

[0110] The first reliable value is expressed as:

[0111]

[0112] Among them, R1 represents the first reliability value, which represents a quantitative indicator reflecting the activity index, login abnormality index, operation index and operation abnormality index, ω i (t) represents the weight of indicator i at time t, X i (t) represents the value of indicator i at time t, γ is a constant coefficient, i≠j represents the pairing between indicators i and j, ω ij (t) represents the interaction weight of indicators i and j at time t, and Z represents the normalization factor;

[0113] The second most reliable value is expressed as:

[0114]

[0115] Among them, R2 represents the second reliable value, which reflects the comprehensive evaluation of the dynamic changes of the behavior pattern, y(t) represents the predicted probability value of the mixed state model at time t, α and β are the weight coefficients of the weighted average of the prediction model output and the behavior index, σ represents the standard deviation, Var[y(t)] and μ[y(t)] represent the variance and mean of the predicted value y(t) over time, respectively;

[0116] Based on R1 and R2, a composite index is defined to determine the user's overall security level, expressed as:

[0117] CS=α·R1+(1-α)·R2

[0118] Among them, CS represents the comprehensive safety score, ranging from 0 to 1, and α represents the weight factor;

[0119] Comprehensive safety parameters, including a first reliability value and a second reliability value;

[0120] The normalization factor Z is expressed as:

[0121]

[0122] Among them, Z represents the finally calculated normalization factor. represents the maximum value of index i within the entire time period from 0 to T. represents the square of the weighted value of the normalized index i. represents the square of the value after calculating and normalizing the cross term.

[0123] Dynamically adjust the network access control policy according to the user's security level.

[0124] Based on the user's comprehensive security score CS, automatically select and apply the corresponding policy set, and construct a policy selection function. The expression is:

[0125] P(CS) = {LSL, if CS ≤ θ1 MSL, if θ1 < CS ≤ θ2 HSL, if CS > θ2}

[0126] Among them, P(CS) represents the policy selection function, LSL, MSL, and HSL respectively represent the policy sets for low, medium, and high security levels, and if means if;

[0127] The system continuously monitors the user's comprehensive security score CS. Once the security level changes, immediately trigger the policy adjustment mechanism and automatically switch to the corresponding policy set.

[0128] Set thresholds θ1 and θ2 according to the comprehensive security score CS. θ1 is the upper limit of the low security level, and θ2 is the boundary between the medium security level and the high security level;

[0129] When CS ≤ θ1, determine that the user has a low security level, send a one-time SMS verification code to the registered mobile phone number to verify the identity. The user needs to enter the verification code within the specified time to pass the verification. After passing the verification, access to sensitive resources and critical systems is restricted, and only necessary services are opened to reduce network resource allocation. Failure to enter the verification code within the specified time is regarded as a verification failure, and the user's access is refused;

[0130] When θ1 < CS ≤ θ2, determine that the user has a medium security level, send a one-time SMS verification code to the registered mobile phone number to verify the identity. The user needs to enter the verification code within the specified time to pass the verification. After passing the verification, according to the user's role, the system resources and function access are opened limitedly, the access logs are reviewed regularly, and early warnings are issued for suspicious behaviors. Failure to enter the verification code within the specified time is regarded as a verification failure, and the user's access is refused;

[0131] When CS>θ2, the user is judged to be at a high security level and needs to enter a preset six-digit password to pass the verification. After successful verification, full access rights are enabled, and the user can freely access resources according to work needs. Network resources are allocated preferentially to ensure business smoothness.

[0132] The value of θ1 is 0.3 and the value of θ2 is 0.8.

[0133] This embodiment also provides a network security protection system, including: a collection module, an adjustment module, an analysis module, an evaluation module and an execution module;

[0134] The acquisition module is responsible for collecting the user behavior data of the target users in real time, collecting the real-time status data and historical data of the network environment, and at the same time, it is also responsible for normalizing the collected data;

[0135] An adjustment module, including automatic adjustment of weight parameters of activity index, login abnormality index, operation index and operation abnormality index based on the collected real-time network environment status and historical data analysis;

[0136] The analysis module uses a hybrid state model to conduct in-depth analysis of user behavior data, identify and predict normal and abnormal behavior patterns, and provide users with immediate security risk feedback by training models and setting thresholds to determine whether behavior is normal or not.

[0137] The evaluation module includes comprehensively considering the user behavior indicators and behavior pattern prediction results after weight adjustment, and further determining the user's overall security level by calculating the target user's comprehensive security score CS;

[0138] The execution module dynamically adjusts the network access control policy based on the user's comprehensive security score. At the same time, the system continuously monitors changes in user security levels to ensure timely adjustment and implementation of policies.

[0139] This embodiment also provides a computer device, which is suitable for the network security protection method, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the network security protection method proposed in the above embodiment.

[0140] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0141] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the network security protection method proposed in the above embodiment is implemented; the storage medium 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 Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0142] In summary, the present invention forms a set of advanced network security protection mechanisms by integrating user behavior analysis, environmental adaptability weight adjustment, hybrid state model prediction, comprehensive security parameter calculation and dynamic access control strategy. It collects user behavior data to evaluate the security level and ensures the accuracy of basic protection. Then, according to the real-time status of the network environment and historical data analysis, it intelligently adjusts the weight parameters to enhance the timeliness and pertinence of the protection measures. By constructing a hybrid state model, it can not only identify known threats, but also predict unknown risks, and improve the foresight and initiative of protection. The dynamic calculation of comprehensive security parameters provides an accurate basis for user customized security strategies. Finally, the dynamic access control implemented according to the user's security level balances the needs of security and convenience and optimizes the network usage experience. On the whole, the present invention improves the intelligence level of network security protection, realizes a deep understanding of user behavior and efficient response, and effectively resists network threats.

[0143] Example 2

[0144] Referring to Table 1, which is the second embodiment of the present invention, in order to further verify the advancement of the present invention, experimental simulation data of the network security protection method is provided.

[0145] In this embodiment, we simulated the behavior of a group of target users in a network environment to evaluate and verify the proposed network security protection method. First, we constructed a data set containing 1,000 virtual users. The behavior patterns of these users covered normal and abnormal situations to ensure the diversity and representativeness of the experiment. The data set includes key parameters such as activity index AI, login anomaly index LEI, operation index RI, and operation anomaly index OEI. The data range covers two consecutive weeks of network activity records. Activity index AI: records the frequency of user activities in a specific time period, with the number of logins per hour as a quantitative indicator.

[0146] Login Anomaly Index LEI: It is measured by monitoring the login failure rate and the number of logins during abnormal periods. An abnormal login ratio exceeding 5% is considered abnormal.

[0147] Operation Index RI: reflects the intensity of user resource usage, calculated based on CPU and memory usage. If it is higher than 90%, it is considered to be a potential risk.

[0148] Operational Abnormality Index (OEI): monitors the frequency of abnormal operations, such as frequent attempts to access restricted resources, and sets the threshold to more than once per hour.

[0149] Using historical data and real-time network status, we apply the online gradient descent (OGD) algorithm to automatically adjust the weight parameters of the above four indexes. By analyzing the network attack events and security logs in the past three months, we define a feature vector X t, including network traffic and known threat activity frequency dimensions. The loss function L(ω,X t ) is designed to minimize the difference between the prediction error and the actual safety incident. The learning rate η is set to 0.01 to balance the convergence speed and stability.

[0150] Mixed state model training

[0151] The constructed hybrid state model integrates the feature representation of long short-term memory network (LSTM) and convolutional neural network (CNN) combined with hidden Markov model (HMM). After model training, normal and abnormal behaviors are distinguished by threshold U = 0.5, where U is determined based on cross-validation to maximize the harmonic mean of precision and recall (F1 score).

[0152] The details are shown in the following table:

[0153] Table 1 Experimental record table

[0154] User ID Time range T AI(t) LEI(t) RI(t) OEI(t) λ decay rate Comprehensive safety score SS User1 1-7 days 3.6 0.02 0.85 0.005 0.05 0.987 User2 1-7 days 2.9 0.04 0.92 0.01 0.05 0.964 User3 1-7 days 4.1 0.01 0.88 0.008 0.05 0.992 ... ... ... ... ... ... ... ...

[0155] By analyzing the above data, we can observe that:

[0156] The comprehensive security score SS of users User1 and User3 is significantly higher than that of other users, thanks to the lower login anomaly index LEI and operation anomaly index OEI, indicating that our model can effectively identify and give higher weight to normal behavior, reflecting the accuracy of the model in identifying normal and abnormal behaviors.

[0157] By comparing the data of User2 and User1, although the two are similar in activity index AI and operation index RI, User2's overall security score is lower due to its higher LEI value. This shows that the weight adaptive adjustment mechanism can dynamically adjust parameters according to the subtle differences in different user behaviors, effectively improving the pertinence and accuracy of security protection.

[0158] Based on the comprehensive security score CS, the users in the embodiment are automatically classified into different security levels, and then corresponding measures are taken. For example, for users with low security levels (such as extreme cases not shown in the simulation), strict access control is implemented to effectively reduce the potential threat risks. For users with high security levels, an optimized network experience is provided to ensure business smoothness, reflecting the flexibility and practicality of the invention content in practical applications.

[0159] This embodiment not only verifies the technical feasibility of the invention, but also highlights its innovation and advantages in improving network security protection efficiency and user experience through specific data. Through further experiments and optimization, this method is expected to become an important technological breakthrough in the field of network security protection in the future.

[0160] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A network security protection method, characterized in that: include, Obtain user behavior data of target users and determine the user's current network security level; Automatically adjust the weight parameters of the activity index, login abnormality index, operation index, and operation abnormality index based on the real-time status and historical data of the network environment; Use the collected user behavior data to build a mixed state model to identify and predict normal and abnormal behavior patterns; Based on the dynamically adjusted weight parameters, the comprehensive security parameters of the target user are calculated to determine the user's overall security level; Dynamically adjust network access control policies based on the user's security level.

2. The network security protection method according to claim 1, characterized in that: The user behavior data includes the activity index AI, login abnormality index LEI, operation index RI and operation abnormality index OEI; Determining the current network security level of the user includes the following steps: a comprehensive security score is performed based on the activity index AI, the login anomaly index LEI, the operation index RI, and the operation anomaly index OEI. The expression is: Among them, SS represents the comprehensive safety score, ∫ represents the integral symbol, T represents the time range of data collection, λ represents the decay rate, and e -λt represents the exponential decay factor, ω AI (t),ω LEI (t),ω RI (t),ω OEI (t) represents the dynamic weights of AI, LEI, RI and OEI. AI(t), LEI(t), RI(t) and OEI(t) represent the values ​​of activity index, login abnormality index, operation index and operation abnormality index at time t respectively. dt represents the weighted accumulation of all instantaneous behaviors from time 0 to T. The comprehensive security score SS divides users into different preliminary security levels.

3. The network security protection method according to claim 1, characterized in that: The specific steps of automatically adjusting the weight parameters of the activity index, login abnormality index, operation index and operation abnormality index according to the real-time status and historical data of the network environment are as follows: Collect the real-time status of the network environment; Analyze historical data to provide a basis for automatically adjusting weight parameters; The real-time status data and historical data are combined into a set of feature vectors, expressed as: Among them, X t represents the feature vector, n represents the number of features, and t represents the time point; Define the loss function as L(ω,X t ); At each time step t, based on the feature vector X t and the current weight vector ω t-1 , using the OGD algorithm to adjust the weight parameter ω in real time t , the expression is: Among them, ω t represents the weight vector at time t, ω t-1 represents the weight vector at the previous time step t-1, η represents the learning rate, Denotes the loss function L with respect to the weight vector ω t-1 In the current feature vector X t The gradient vector under .

4. The network security protection method according to claim 3, characterized in that: The method uses the collected user behavior data to train the mixed state model to identify and predict normal and abnormal behavior patterns. The specific steps are as follows: Construct a hybrid state model that integrates the feature representation H(t) of LSTM and CNN and the state transition information of the hidden Markov model HMM. t For feature extraction and pattern learning, the expression is: y(t)=Softmax(W2·ReLU(W1·[X t ;H(t)]+b1)+W3·MaxProbTrans[α t ]+b2) Among them, y(t) represents the probability value predicted at time step t, Softmax and ReLU are activation functions, H(t) represents the current hidden state, W1 and W2 are the weight matrices of the first and second layers respectively, W3 represents the third weight matrix, which is used to map the state transfer information to the output layer, b1 and b2 are the bias items of the first and second layers respectively, MaxProbTrans represents the maximum probability value in the state transfer matrix, α t Represents the state probability distribution of the current time step; Set a threshold U and compare the predicted value y(t) with the threshold U; When y(t)>U, it is judged as normal behavior; When y(t)≤U, it is judged as abnormal behavior.

5. The network security protection method according to claim 4, characterized in that: The comprehensive security parameters of the target user are calculated based on the dynamically adjusted weight parameters, thereby determining the overall security level of the user. The specific steps are as follows: Based on the adjusted weight parameter ω=[ω AI ,ω LEI ,ω RI ,ω OEI ], calculate the first reliability value and the second reliability value; The first reliability value is expressed as: Among them, R1 represents the first reliable value, ω i (t) represents the weight of indicator i at time t, X i (t) represents the value of indicator i at time t, γ is a constant coefficient, i≠j represents the pairing between indicators i and j, ω ij (t) represents the interaction weight of indicators i and j at time t, and Z represents the normalization factor; The second reliability value is expressed as: Among them, R2 represents the second reliable value, y(t) represents the predicted probability value of the mixed state model at time t, α and β are the weight coefficients of the weighted average of the prediction model output and the behavior index, σ represents the standard deviation, Var[y(t)] and μ[y(t)] represent the variance and mean of the predicted value y(t) over time, respectively; Based on R1 and R2, a composite index is defined to determine the user's overall security level, expressed as: CS=α·R1+(1-α)·R2 Among them, CS represents the comprehensive safety score and α represents the weight factor.

6. The network security protection method according to claim 5, characterized in that: The specific steps of dynamically adjusting the network access control policy according to the user's security level are as follows: Based on the user's comprehensive security score CS, the corresponding policy set is automatically selected and applied, and the policy selection function is constructed. The expression is: P(CS)={LSL,ifCS≤θ1MSL,ifθ1<CS≤θ2HSL,ifCS> θ2} Among them, P(CS) represents the policy selection function, LSL, MSL, and HSL represent the policy sets of low, medium, and high security levels respectively, and if means if.

7. The network security protection method according to claim 6, characterized in that: The specific steps of dynamically adjusting the network access control strategy are as follows: Set thresholds θ1 and θ2 according to the comprehensive security score CS; When CS ≤ θ1, determine that the user has a low security level, send a one-time SMS verification code to the registered mobile phone number to verify the identity. The user needs to enter the verification code within the specified time to pass the verification. After passing the verification, access to sensitive resources and critical systems is restricted, and only necessary services are opened. The network resource allocation is reduced. Failure to enter the verification code within the specified time is regarded as a verification failure, and the user's access is refused; When θ1 < CS ≤ θ2, determine that the user has a medium security level, send a one-time SMS verification code to the registered mobile phone number to verify the identity. The user needs to enter the verification code within the specified time to pass the verification. After passing the verification, according to the user role, the system resources and function access are opened in a limited way, the access logs are reviewed regularly, and early warnings are given for suspicious behaviors. Failure to enter the verification code within the specified time is regarded as a verification failure, and the user's access is refused; When CS > θ2, determine that the user has a high security level. The user needs to enter a preset six-digit password to pass the verification. After successful verification, full access rights are enabled, and resources can be freely accessed according to work needs. Network resources are preferentially allocated to ensure the smoothness of the business.

8. A network security protection system, based on the network security protection method according to any one of claims 1 to 7, characterized in that: It includes a collection module, an adjustment module, an analysis module, an evaluation module and an execution module; The collection module is responsible for collecting the user behavior data of the target user in real time, collecting the real-time status data and historical data of the network environment. At the same time, it is also responsible for normalizing the collected data; The adjustment module includes automatically adjusting the weight parameters of the activity index, login anomaly index, running index and operation anomaly index based on the analysis of the collected real-time network environment status and historical data; The analysis module includes deeply analyzing the user behavior data by using a hybrid state model to realize the identification and prediction of normal and abnormal behavior patterns. By training the model, set a threshold to judge whether the behavior is normal or not, and provide instant security risk feedback to the user; The evaluation module includes comprehensively considering the user behavior indicators and the behavior pattern prediction results after weight adjustment, and further determining the overall security level of the user by calculating the comprehensive security score CS of the target user; The execution module includes dynamically adjusting the network access control policy according to the comprehensive security score of the user. At the same time, the system continuously monitors the change of the user security level to ensure the timely adjustment and implementation of the policy.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, it implements the steps of the network security protection method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the network security protection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Network security protection method and network security protection system thereof

    CN115549989A

  • Dynamic credibility evaluation method and device in micro-isolation cloud environment

    CN116684123A

  • Abnormal user behavior processing method and system based on cloud computing service

    CN116776324A

  • Network security detection method and system

    CN118101250A

  • Anomaly-based mitigation of access request risk

    US20220345457A1

Cited By

  • Network security dynamic early warning method and system based on multi-source data fusion

    CN119402253A

  • A network security dynamic early warning method and system based on multi-source data fusion

    CN119402253B

  • Social engineering attack detection method based on context awareness

    CN119652639A

  • Network security protection method and system based on artificial intelligence

    CN120512290A

  • Method for identifying and protecting Teensy virus of mobile hard disk

    CN120579182A