A network security communication method, device, equipment and storage medium based on zero trust architecture
Through the real-time trust assessment mechanism based on the zero-trust architecture, combined with a variety of technical means, the problem of existing network communication security methods in identifying user behavior differences and insufficient adaptability is solved, and efficient and intelligent security assurance of network communication is achieved.
Patent Information
- Application Number
- CN202411044928.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-01
AI Technical Summary
Existing network communication security methods are difficult to accurately identify subtle differences in user behavior when faced with dynamic threats and complex environments, leading to false positives or missed negatives. Moreover, it is difficult to maintain the rapid response and accuracy of the assessment model in high concurrency scenarios, affecting the system. Security and performance, and adaptability is insufficient to cope with changes in the network environment and emerging threats.
Using a method based on zero trust architecture, through a real-time trust assessment mechanism, combined with user authentication, attribute information analysis, principal component analysis, SVM classifier and analytic hierarchy process, the attribute trust value and interaction experience trust value of network entities are dynamically calculated and updated in real time. Trust threshold to ensure continuous high security of the communication process.
It achieves comprehensive, intelligent and efficient security assurance for network communications, can accurately identify and defend against potential threats in complex scenarios, ensures the security and reliability of the communication process, and adapts to the rapid changes in the modern network environment.
Smart Images

Figure CN118573480B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication security technology, and in particular to a network security communication method, device, equipment and storage medium based on a zero-trust architecture. Background Art
[0002] In modern network communications, ensuring the security of network communications is a critical consideration. Traditional network communication security methods usually rely on static authentication and authorization mechanisms, which cannot effectively cope with dynamic and complex threat environments. Due to the close interconnection of network devices, traditional trust models are not flexible and adaptable enough to deal with evolving threats. Network security communications are also facing threats from cyber attacks.
[0003] Chinese patent document CN117335960A proposes a blockchain-based carbon data sharing access method and device in a zero-trust network, aiming to enhance the security and transparency of data sharing through blockchain technology. The solution combines smart contracts and trust evaluation mechanisms to dynamically calculate the comprehensive trust value of users to control data access rights. Chinese patent document CN117997626A proposes an API interface encryption authentication method and storage device, which uses machine learning algorithms to evaluate user behavior, generates user status evaluation values in real time based on the amount of interface data, the credibility of user identity, and the amount of interaction data, and issues encrypted verification requests when necessary to improve the security of API data interaction.
[0004] Although the above two existing solutions have made contributions to network security, they still have certain limitations in their implementation. Existing solutions cannot accurately identify subtle differences in user behavior, which is crucial in distinguishing normal from malicious operations, and inaccurate evaluations may lead to false positives or false negatives, affecting system security and user satisfaction. In addition, in high-concurrency scenarios, existing solutions have difficulty maintaining the rapid response and accuracy of evaluation models, which increases the risk of service delays, reduces network performance, and may overlook important security threats. At the same time, existing solutions are not adaptable. Faced with rapid changes in the network environment and the emergence of new threats, they may not be able to quickly adjust security policies, resulting in lagging security protection measures and insufficient response to emerging security risks.
[0005] Therefore, for network communications, it is necessary to strengthen traditional security methods to adapt to the dynamic threat environment, and to take measures to deal with escalating network attacks. Considering the limitations of traditional trust models and the threats of network attacks, seeking more advanced and flexible security mechanisms is an urgent problem to be solved in the current network communication field. Summary of the invention
[0006] In order to address the deficiencies in the prior art, the present invention proposes a network security communication method, apparatus, device and storage medium based on a zero-trust architecture. The method utilizes the zero-trust principle and real-time trust evaluation mechanism to comprehensively analyze the identity authentication, attribute information and historical interaction behavior of network entities to ensure the continuous high security of the communication process and provide comprehensive and seamless security protection for the communication interaction between network entities.
[0007] To achieve the above object, the present invention adopts the following technical solutions:
[0008] In a first aspect of the present invention, a network security communication method based on a zero trust architecture is disclosed, the method comprising the following steps:
[0009] S1. Network entity A initiates an access request to network entity B. Network entity B performs user authentication on network entity A and verifies the username, password and session token of network entity A.
[0010] S2. Network entity B captures the attribute information of network entity A in real time, normalizes the attribute information to obtain the attribute score of network entity A, establishes a network entity attribute table according to the attribute score of network entity A, updates the hash value of the network entity attribute table in real time, and constructs a hash chain;
[0011] S3. Based on the network entity attribute table, obtain the attribute information of network entity A, use the principal component analysis method to determine the weight corresponding to each attribute information, and use the weighted sum algorithm to evaluate each attribute information to determine the attribute trust value of network entity A. and attribute trust threshold ;
[0012] S4, using the SVM classifier to evaluate the current communication environment of the network entity A;
[0013] S5. Based on the evaluation result of the current communication environment of network entity A, the interactive experience trust value between network entity A and network entity B is calculated using the hierarchical analysis method. and interactive experience trust threshold ;
[0014] S6. Attribute trust value based on network entity A and attribute trust threshold And interactive experience trust value Interaction Experience Trust Threshold , network entity B performs trust evaluation on network entity A.
[0015] Preferably, in step S1, the network entity A initiates an access request to the network entity B, and the network entity B performs user authentication on the network entity A and verifies the user name, password and session token of the network entity A, including:
[0016] S11, network entity A initiates an access request to network entity B, and network entity B verifies the username and password of network entity A using formula (1):
[0017] (1);
[0018] In formula (1), It is used to verify whether the password input by the network entity A after hash encryption is the same as the password hash value stored in the database; Represents a hash value matching function; represents a hash function; Indicates the password entered by network entity A; Indicates that the password input by network entity A is hashed and encrypted; represents a password hash value stored in a database. During the registration phase, the password entered by the network entity A is hashed to generate a password hash value, which is stored in the database for verification during login attempts;
[0019] S12, based on the user name of network entity A, the secret key SECRET_KEY preset by network entity B, and the validity period E set by network entity B, generate a session token of network entity A using formula (2):
[0020] (2);
[0021] In formula (2), A session token representing network entity A; represents a hash function; Indicates the user name; Indicates the validity period scheduled by network entity B; Indicates the current timestamp; Indicates the key preset by network entity B;
[0022] S13, network entity B uses formula (3) to check the session token input by network entity A from time to time to determine whether the token is the same as the session token issued by network entity B to network entity A within the validity period:
[0023] (3);
[0024] In formula (3), Indicates that network entity B determines whether the session token input by network entity A is valid; Indicates the time when the session token is issued by network entity B to network entity A; It indicates the validity period scheduled by network entity B; TokenExpirationTime indicates the expiration time of the session token, and TokenExpirationTime is equal to T+E.
[0025] Preferably, in step S2, the network entity B captures the attribute information of the network entity A in real time, normalizes the attribute information to obtain the attribute score of the network entity A, establishes a network entity attribute table according to the attribute score of the network entity A, updates the hash value of the network entity attribute table in real time, and constructs a hash chain, including:
[0026] S21. Network entity B monitors the security logs, firewall logs and network traffic of network entity A in real time through network monitoring tools, obtains characteristic data of abnormal access attempts and abnormal network traffic percentage, and normalizes the obtained characteristic data of abnormal access attempts and abnormal network traffic percentage, and obtains the security level score of network entity A through average weighted summation. ;
[0027] S22. Network entity B monitors the delay data and packet loss rate in the communication of network entity A, normalizes the delay data and packet loss rate, and obtains the service quality score of network entity A by average weighted sum calculation. ;
[0028] S23, network entity B monitors the data transmission volume and network bandwidth utilization rate in the communication of network entity A, and normalizes the data transmission volume and network bandwidth utilization rate, and obtains the network utilization rate of network entity A by average weighted summation. ;
[0029] S24. Network entity B normalizes the CPU, memory and disk utilization in network entity A, and calculates the resource utilization of network entity A by average weighted summation. ;
[0030] S25. Generate a network entity attribute table according to the attribute score of network entity A calculated in steps S21-S24, build a hash chain according to the network entity attribute table, store the network entity attribute table and the hash chain in a database, and update the hash chain when the network entity attribute table changes;
[0031] The attribute score of the network entity A includes a security level score , service quality rating , Network Utilization and resource utilization , the four scores are calculated using formula (4):
[0032] (4);
[0033] In formula (4), Indicates safety level score , service quality rating , Network Utilization Or resource utilization ; Indicates the number of factors that affect each score when calculating the score; Indicates the weight of the influencing factors when calculating each score; Represents each factor corresponding to each score of the network entity; Represents normalization processing to ensure the consistency and comparability of the data.
[0034] Preferably, in step S3, based on the network entity attribute table, each attribute information of the network entity A is obtained, the weight corresponding to each attribute information is determined by principal component analysis, and each attribute information is evaluated by weighted sum algorithm to determine the attribute trust value of the network entity A. and attribute trust threshold ,include:
[0035] S31, using a reliability enhancement verification mechanism based on a hash chain to verify the integrity of the data in the network entity attribute table, and after confirming that the data is complete, obtaining various attribute information of the network entity A from the network entity attribute table;
[0036] S32. Based on the attribute information of the network entity A obtained in step S31, the covariance matrix of the attributes of the network entity A is calculated using formula (7):
[0037] (7);
[0038] In formula (7), is the covariance matrix Line The elements of the column represent the network entity attribute table (security level score , service quality rating , Network Utilization and resource utilization ) Features and The correlation between the features; n Indicates the total number of rows in the network entity attribute table; Indicates The sample The value of the feature, Indicates The sample The value of a feature; Indicates The mean of the features; Indicates The mean of the features;
[0039] S33. Calculate the eigenvalue of the covariance matrix of the network entity A attribute using formula (8):
[0040] (8);
[0041] In formula (8), Represents the covariance matrix of the attributes of network entity A; The eigenvectors representing the decomposition of the covariance matrix; represents the eigenvalues of the covariance matrix decomposition;
[0042] S34. Use formula (9) to normalize the eigenvalues of the covariance matrix of the attributes of network entity A to obtain the weight of each attribute of network entity A:
[0043] (9);
[0044] In formula (9), Indicates The weight of the attribute, The values of range from 1 to 4, corresponding to the four attributes of security level score, service quality score, network utilization and resource utilization; The value of is 4, which means there are four attributes: security level score, service quality score, network utilization and resource utilization; represents the diagonal elements on the eigenvalue diagonal matrix Λ;
[0045] S35. Based on the weight of each attribute of network entity A, the attribute trust value of network entity A is calculated using formula (10): :
[0046] (10);
[0047] In formula (10), represents the attribute trust value of network entity A, Indicates the safety level score, represents the weight corresponding to the safety level score, Indicates the service quality rating, represents the weight corresponding to the service quality score, Indicates the network utilization rate. Indicates the weight corresponding to the network utilization, Indicates resource utilization, Indicates the weight corresponding to resource utilization;
[0048] S36. Attribute trust value based on network entity A , use formula (11) to calculate the attribute trust threshold of network entity A :
[0049] (11);
[0050] In formula (11), represents the attribute trust threshold of network entity A; Represents the attribute trust value of network entity A; Indicates the multiplication coefficient; Indicates the size of the time window, Indicates The trust value of network entity attributes;
[0051] S37, adopting a dynamic threshold update strategy based on a sliding window to update the attribute trust threshold of network entity A Updates are made to adapt to real-time changes in the network entity communication environment.
[0052] Preferably, according to the present invention, in step S4, using an SVM classifier to evaluate the current communication environment of the network entity A includes:
[0053] S41, using data capture technology to capture network traffic data during the communication process of network entity A in real time and process the data;
[0054] S42, using the SVM classifier to analyze the processed network traffic data to obtain an evaluation result of the current communication environment of the network entity A. According to the evaluation result of the current communication environment of the network entity A, a normal communication mode and an abnormal behavior mode can be effectively distinguished, thereby realizing accurate analysis of the network traffic;
[0055] Preferably, in step S5, based on the evaluation result of the current communication environment of network entity A, the interactive experience trust value of network entity A is calculated using the analytic hierarchy process (AHP). and interactive experience trust threshold ,include:
[0056] S51, obtaining real-time communication data of network entity A, recording the interaction time and historical direct trust value between network entity A and network entity B into an interaction record table, and determining key evaluation factors;
[0057] S52. Based on the hierarchical analysis method, the weight vector of each key evaluation factor is determined using formula (14): :
[0058] (14);
[0059] In formula (14), represents the weight vector; Representation Guidelines Relative to the criteria the relative importance of represents the number of key evaluation factors affecting trust, , the key evaluation factors include the time span of interaction, the frequency of successful interaction, the frequency of failed interaction and the status of the current communication environment;
[0060] S53, based on the hierarchical analysis method, use formula (15) to calculate the weight vector W To standardize:
[0061] (15);
[0062] In formula (15), yes The elements in the weight vector represent The weights of the key evaluation factors that affect trust; represents the subscript of the weight vector W; represents the number of key evaluation factors affecting trust, , the key evaluation factors include the time span of interaction, the frequency of successful interaction, the frequency of failed interaction and the status of the current communication environment;
[0063] S54. Use formula (16) to establish a time decay model based on the sigmoid function to evaluate the impact of time on the direct trust value:
[0064] (16);
[0065] In formula (16), represents the temporal forgetting factor; Indicates the constant coefficient of adjusting the sigmoid function curve; represents the maximum time window, Indicates the initial interaction time, Indicates the current time. represents the base of natural logarithms;
[0066] S55. Based on the real-time communication data of network entity A obtained in step S51, the direct trust value between network entity A and network entity B is calculated by using formula (17) and formula (18) using a weighted summation method. :
[0067] (17);
[0068] in, (18);
[0069] In formula (17) and formula (18), Indicates the direct trust value between network entity A and network entity B; Represents the historical direct trust value between network entity A and network entity B; Indicates the number of interactions between network entity A and network entity B; Represents the total number of interactions with network entity B; Indicates the number of interaction failures between network entity A and network entity B; Represents the total number of interactions between network entity A and network entity B; Indicates the current network environment score and the probability of the SVM classifier model predicting anomalies ; Indicates that the current network traffic is abnormal; Indicates the current network traffic attributes; Indicates input Function to perform classification; represents the parameters of the SVM classifier model, obtained by fitting the training data;
[0070] S56. Calculate the indirect trust value between network entity A and network entity B :
[0071] S57. Use formula (24) to calculate the direct trust value between network entity A and network entity B and the indirect trust value between network entity A and network entity B Perform weighted summation to obtain the interactive experience trust value of network entity A :
[0072] (twenty four);
[0073] In formula (24), represents the interactive experience trust value of network entity A; Represents the weight between direct trust value and indirect trust value; Indicates the direct trust value between network entity A and network entity B; Indicates the indirect trust value between network entity A and network entity B;
[0074] The weight between the direct trust value and the indirect trust value is , using equations (25) to (27), based on PCA technology, we get:
[0075] First, the covariance matrix of the interaction experience of network entity A is calculated using formula (25):
[0076] (25);
[0077] In formula (25), is the covariance matrix Line The elements of the column represent the Features and The correlation between the features; Indicates the total number of rows in the network entity trust table; Indicates The sample The value of the feature, Indicates The sample The value of a feature; Indicates The mean of the features; Indicates The mean of the features;
[0078] Then, the eigenvalue of the covariance matrix of the interaction experience of network entity A is calculated using formula (26):
[0079] (26);
[0080] In formula (26), Represents the covariance matrix of the interaction experience of network entity A; The eigenvectors representing the decomposition of the covariance matrix; represents the eigenvalues of the covariance matrix decomposition;
[0081] Finally, the eigenvalues of the covariance matrix of the interaction experience of network entity A are normalized using formula (27) to obtain the weight between the direct trust value and the indirect trust value of network entity A: :
[0082] (27);
[0083] In formula (27), Represents the weight between direct trust value and indirect trust value; represents the eigenvalue diagonal matrix Data in row 1 and column 1; represents the eigenvalue diagonal matrix Data in row 2 and column 2;
[0084] S58. Interaction experience trust value based on network entity A , use formula (28) to calculate the interactive experience trust threshold of network entity A :
[0085] (28);
[0086] In formula (28), represents the interactive experience trust threshold of network entity A; Indicates the size of the time window; represents the interactive experience trust value of network entity A; Indicates the multiplication coefficient; Indicates The interactive experience trust value of network entities.
[0087] According to a preferred embodiment of the present invention, in step S6, based on the attribute trust value of network entity A and attribute trust threshold And interactive experience trust value Interaction Experience Trust Threshold , network entity B performs trust evaluation on network entity A, including:
[0088] Use formula (29) to compare the attribute trust value of network entity A and attribute trust threshold And interactive experience trust value Interaction Experience Trust Threshold , if the attribute trust value of network entity A Greater than the attribute trust threshold And the interactive experience trust value Greater than the interactive experience trust threshold , then it is determined that network entity A passes the trust evaluation:
[0089] (29);
[0090] In formula (29), It is used to verify whether network entity A is trustworthy; Indicates the trust value of network entity attributes; represents the trust threshold of network entity attributes; Represents the interactive experience trust value of network entities; Represents the empirical trust threshold of network entity interaction.
[0091] Preferably, according to the present invention, the method further comprises: S7, using the STC89C52 single chip microcomputer to construct a network entity communication simulation system, and using the network entity communication simulation system to perform real-time monitoring on the network entity.
[0092] In step S7, the network entity communication simulation system is used to monitor the network entity in real time, including:
[0093] S71, obtaining the movement trajectory of the network entity A and displaying it through a graphical user interface;
[0094] S72, in the process of network entity A accessing network entity B, monitor the changes of the attribute trust value and the interactive experience trust value of network entity A in real time, if the attribute trust value of network entity A is less than the attribute trust threshold or the interactive experience trust value between network entity A and network entity B is less than the interactive experience trust threshold, send an abnormal signal to the single chip microcomputer corresponding to network entity B;
[0095] S73. After receiving the abnormal signal, network entity B corrects the path of network entity A based on the preset path, so that network entity A returns to running on the preset path.
[0096] In step S7, the network entity communication simulation system includes: a trajectory display module, a real-time monitoring module and a trajectory correction module; the trajectory display module is used to obtain and display the movement trajectory of the network entity; the real-time monitoring module is used to monitor the attribute trust value of network entity A and the interaction experience trust value between network entity A and network entity B in real time during the process of network entity A accessing network entity B. During the access process, if the attribute trust value of network entity A is less than the trust threshold or the interaction experience trust value between network entity A and network entity B is less than the interaction experience trust threshold, an abnormal signal is sent to the single chip microcomputer corresponding to network entity B; the trajectory correction module is used to correct the path of network entity A after network entity B receives the abnormal signal, so that network entity A returns to run on the preset path.
[0097] In a second aspect of the present invention, a network security communication device based on a zero-trust architecture is disclosed. The device includes: a login verification module, a network entity attribute table construction module, an attribute trust value and attribute trust threshold acquisition module, a communication environment evaluation module, an interactive experience trust value and interactive experience trust threshold acquisition module, and a trust evaluation module.
[0098] The login verification module is used for network entity B to perform user authentication on network entity A and verify the user name, password and session token of network entity A when network entity A initiates an access request to network entity B. The network entity attribute table construction module is used for real-time capture of attribute information of network entity A through network entity B, normalization of the attribute information to obtain the attribute score of network entity A, and establishment of a network entity attribute table according to the attribute score of network entity A, and real-time update of the hash value of the network entity attribute table to construct a hash chain. The attribute trust value and attribute trust threshold acquisition module is used for acquiring various attribute information of network entity A based on the network entity attribute table, determining the weight corresponding to each attribute information by principal component analysis, and evaluating each attribute information by weighted sum algorithm to determine the attribute trust value and attribute trust threshold of network entity A. The communication environment evaluation module is used for evaluating the current communication environment of network entity A by using SVM classifier. The interactive experience trust value and interactive experience trust threshold acquisition module is used to calculate the interactive experience trust value and interactive experience trust threshold between network entity A and network entity B based on the evaluation result of the current communication environment of network entity A and using the hierarchical analysis method. The trust evaluation module is used for network entity B to perform trust evaluation on network entity A based on the attribute trust value and attribute trust threshold of network entity A and the interactive experience trust value and interactive experience trust threshold between network entity A and network entity B.
[0099] In a third aspect of the present invention, an electronic device is disclosed, comprising: at least one processor; and a memory, wherein the memory stores instructions, and when the instructions are executed by the at least one processor, the at least one processor executes the above-mentioned network security communication method based on zero trust architecture.
[0100] In a fourth aspect of the present invention, a machine-readable storage medium is disclosed, which stores executable instructions, and when the instructions are executed, the machine executes the above-mentioned network security communication method based on zero trust architecture.
[0101] Compared with the prior art, the advantages of the present invention are:
[0102] The present invention adopts the zero-trust principle, requiring identity authentication and trust evaluation to be re-performed every time a communication is made, regardless of whether it has been authenticated before, in order to provide comprehensive, intelligent and efficient security protection for network communications. The present invention uses data processing algorithms and artificial intelligence technologies to perform real-time and dynamic trust evaluations on the identity authentication, attribute analysis, interaction records and communication environment of network entities. It is suitable for complex scenarios such as collaborative tasks, and can effectively identify and defend against potential security threats. The present invention can ensure that the zero-trust principle is followed at every step in the entire communication process from the data source to the destination, thereby ensuring the security and reliability of the communication. The present invention aims to build a highly secure, flexible and responsive network communication environment to effectively respond to the evolving security challenges in the modern network environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] Figure 1 Schematic diagram of the system model of the network security communication method based on zero trust architecture in the present invention;
[0104] Figure 2 It is a curve chart of simulated direct trust value changing with time, where the horizontal axis represents time in seconds, and the vertical axis represents the simulated direct trust value, which is a number between 0 and 1 and has no unit;
[0105] Figure 3 It is a curve chart of simulated indirect trust value changing with time, where the horizontal axis represents time in seconds, and the vertical axis represents the simulated indirect trust value, which is a number between 0 and 1 and has no unit;
[0106] Figure 4 It is a curve chart of the simulated interaction experience trust value changing over time, where the horizontal axis represents time in seconds, and the vertical axis represents the simulated interaction experience trust value, which is a number between 0 and 1 and has no unit;
[0107] Figure 5 It is a simulated trust evaluation curve for network entity attributes and interaction experience. The graph divides the evaluation results into four situations. The rejected quadrant will show the current trust value and trust threshold. In the quadrant where the evaluation failed, the left side of the bracket is the trust value of the network entity, and the right side refers to the trust threshold of the network entity.
[0108] Figure 6 This is the state diagram of the microcontroller receiving abnormal signals;
[0109] Figure 7 It is a simulation diagram of the movement trajectory of a network entity, where the y-axis shows the height and the x-axis shows the lateral distance of the movement in meters. DETAILED DESCRIPTION
[0110] The present disclosure is further described below with reference to the accompanying drawings and embodiments:
[0111] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those generally understood by those of ordinary skill in the art to which the present disclosure belongs. It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof. In the absence of conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other.
[0112] Example 1
[0113] like Figure 1 A network security communication method based on a zero trust architecture is shown, the method comprising the following steps:
[0114] S1. Network entity A initiates an access request to network entity B. Network entity B performs user authentication on network entity A and verifies the user name, password and session token of network entity A.
[0115] The step S1 comprises:
[0116] S11, network entity A initiates an access request to network entity B. Network entity B uses formula (1) to verify the username and password of network entity A. If the verification is successful, network entity A logs in successfully:
[0117] (1);
[0118] In formula (1), It is used to verify whether the password input by the network entity A after hash encryption is the same as the password hash value stored in the database; Represents a hash value matching function; represents a hash function; Indicates the password entered by network entity A; Indicates that the password input by network entity A is hashed and encrypted; Represents the password hash value stored in the database. During the registration phase, the password entered by network entity A is hashed to generate a password hash value, which is stored in the database for verification during login attempts.
[0119] S12. To further enhance security, after network entity A successfully logs in, network entity B generates a unique session token of network entity A using formula (2) based on the user name of network entity A, the secret key SECRET_KEY preset by network entity B, and the validity period E set by network entity B:
[0120] (2);
[0121] In formula (2), A session token representing network entity A; represents a hash function; Indicates the user name; Indicates the validity period scheduled by network entity B; Indicates the current timestamp; Represents the key preset by network entity B. Formula (2) generates the session token of network entity A using a hash algorithm based on the user name of network entity A, the key predefined by network entity B, and the validity period set by network entity B. The session token generated by formula (2) is not only used to identify the session identity of network entity A, but also has time sensitivity. It is usually set to a validity period of 360 seconds, which means that the user session will automatically expire after a period of time, and the user needs to re-authenticate to obtain a new session token. In addition, a limit on the number of attempts is set to prevent dictionary attacks, thereby significantly improving the security and defense capabilities of the entire authentication process.
[0122] S13. After network entity A successfully logs in, network entity B uses formula (3) to check the session token input by network entity A from time to time to determine whether the token is the same as the session token issued by network entity B to network entity A within the validity period:
[0123] (3);
[0124] In formula (3), Indicates that network entity B determines whether the session token input by network entity A is valid; Indicates the time when the session token is issued by network entity B to network entity A; It indicates the validity period scheduled by network entity B; TokenExpirationTime indicates the expiration time of the session token, and TokenExpirationTime is equal to T+E.
[0125] S2. Network entity B captures the attribute information of network entity A in real time, normalizes the attribute information to obtain the attribute score of network entity A, establishes a network entity attribute table according to the attribute score of network entity A, updates the hash value of the network entity attribute table in real time, and constructs a hash chain. The attribute information includes the security level, service quality, network utilization, and resource utilization of the network entity. The present invention proposes a reliability enhancement verification mechanism to perform reliability assessment on the attribute information of network entities. The attribute information data of network entity A is updated every 30 seconds. Network entity B collects the key attribute information of network entity A's security level, service quality, network utilization, and resource utilization in an all-round manner, and uses the security level score to evaluate the network entity's security level. , service quality rating , Network Utilization and resource utilization These four attribute scores comprehensively reflect the communication performance and system health of network entities.
[0126] The step S2 comprises:
[0127] S21. Network entity B monitors the security logs, firewall logs and network traffic of network entity A in real time through network monitoring tools, obtains characteristic data of abnormal access attempts and abnormal network traffic percentage, and normalizes the obtained characteristic data of abnormal access attempts and abnormal network traffic percentage, and obtains the security level score of network entity A through average weighted summation. .
[0128] S22. Network entity B monitors the delay data and packet loss rate in the communication of network entity A, normalizes the delay data and packet loss rate, and obtains the service quality score of network entity A by average weighted sum calculation. .
[0129] S23, network entity B monitors the data transmission volume and network bandwidth utilization rate in the communication of network entity A, and normalizes the data transmission volume and network bandwidth utilization rate, and obtains the network utilization rate of network entity A by average weighted summation. .
[0130] S24. Network entity B normalizes the CPU, memory and disk utilization in network entity A, and calculates the resource utilization of network entity A by average weighted summation. .
[0131] The attribute score of the network entity A includes a security level score , service quality rating , Network Utilization and resource utilization , the four scores are calculated using formula (4):
[0132] (4);
[0133] In formula (4), Indicates safety level score , service quality rating , Network Utilization or resource utilization ; Indicates the number of factors that affect each score when calculating the score; Indicates the weight of the influencing factors when calculating each score; Represents each factor corresponding to each score of the network entity; Represents normalization processing to ensure the consistency and comparability of the data.
[0134] Formula (4) is an improved normalization algorithm, where score Calculated using the average weighted summation method. Calculate the security level score of network entity A When calculating the number of abnormal access attempts and the abnormal network traffic percentage feature data, two influencing factors need to be considered. ; When calculating the service quality level score, two influencing factors, delay data and packet loss rate in communication, need to be considered, so ; When calculating the network utilization score, two influencing factors need to be considered: the amount of data transmitted in the communication and the network bandwidth utilization. ; When calculating resource utilization scores, three factors, CPU, memory, and disk utilization, need to be considered, so .
[0135] S25. Generate a network entity attribute table according to the attribute score of network entity A calculated in steps S21-S24, build a hash chain according to the network entity attribute table, store the network entity attribute table and the hash chain in a database, and update the hash chain when the network entity attribute table changes.
[0136] The step S25 comprises:
[0137] S251. Generate a network entity attribute table according to the attribute score of network entity A calculated in steps S21-S24, obtain the hash value and creation timestamp of the network entity attribute table, and store the hash value and creation timestamp of the network entity attribute table in a database. The network entity attribute table contains four attribute scores of network entity A: security level score, service quality score, network utilization score, and resource utilization score. After the network entity attribute table is generated, calculate the hash value of the network entity attribute table. The hash value of the network entity attribute table is securely stored together with the creation timestamp (the time after the network entity attribute table is created) to provide a benchmark for subsequent data verification.
[0138] S252. Create a hash chain according to the hash value of the network entity attribute table, and detect in real time whether the network entity attribute table has changed. If it has changed, update the hash value of the network entity attribute table using formula (5), and update the hash chain according to the updated hash value of the network entity attribute table:
[0139] (5);
[0140] In formula (5), Indicates the number of rows of data in the network entity attribute table; represents a hash function; Indicates the first Hash value of row data; Indicates the first - Hash value of 1 row of data; Indicates the first row of data in the network entity attribute table: security level score , service quality rating , Network Utilization and resource utilization ; Indicates the first Row data: Safety level score , service quality rating , Network Utilization and resource utilization .
[0141] Use formula (5) to calculate the first The hash value is the network entity attribute table. i Hash value of row data , it can be seen from formula (5) that if =1, the first row of data in the network entity attribute table is used Data 1 The hash value obtained by hash calculation is used as the root hash of the hash chain; if >1, then the previous hash value in the hash chain The network entity attribute table Row Data Data i After the XOR operation, the hash value obtained by hash calculation is used as the current hash value of the hash chain. After such calculation, the hash value of the network entity attribute table is finally obtained. In this way, a continuous and irreversible hash chain is constructed. After each update, the new hash value obtained each time is calculated. It will be stored in the network entity attribute table together with the corresponding timestamp to record the data change history and ensure the continuity and immutability of the data.
[0142] S3. Based on the network entity attribute table, obtain the attribute information of network entity A, use principal component analysis (PCA) to determine the weights corresponding to each attribute information, and use the weighted sum algorithm to evaluate each attribute information to determine the attribute trust value of network entity A. and attribute trust threshold .
[0143] The step S3 comprises:
[0144] S31. Use a reliability enhancement verification mechanism based on a hash chain to verify the integrity of the data in the network entity attribute table. After determining that the data is complete, obtain various attribute information of network entity A from the network entity attribute table. When extracting the attribute information of network entity A from the network entity attribute table, first perform reliability enhancement verification to verify the integrity of the data in the network entity attribute table. In order to ensure the integrity of the data, the present invention uses a reliability enhancement verification mechanism based on a hash chain to perform reliability enhancement verification.
[0145] The step S31 comprises:
[0146] S311, for the network entity attribute table -1 Hash value of the row data and Row Data Perform XOR calculation to obtain the first The hash value of the row data.
[0147] S312, using formula (6), check whether the hash value calculated in step S311 is consistent with the first Whether the hash values of the nodes match:
[0148] (6);
[0149] In formula (6), Indicates the number used to verify the hash chain. The hash value of the node Through the network entity attribute table -1 Hash value of the row data and the network entity attribute table Row Data Whether the hash values obtained by XOR calculation match; Indicates the number of rows of data in the network entity attribute table; represents a hash function; Indicates the first The hash value of the node is equal to the Hash value of row data; Indicates the first Row data: Safety level score , service quality rating , Network Utilization and resource utilization ; Indicates the first i- The hash value of 1 row of data.
[0150] When data integrity needs to be verified, first check the first row of data in the network entity attribute table: the security level score , service quality rating , Network Utilization and resource utilization , perform hash calculation, perform XOR calculation on the result of hash calculation and the second row of data in the network entity attribute table, perform hash calculation on the result of XOR, and calculate in sequence according to the above steps to obtain the hash value of the network entity attribute table, and calculate and compare the hash value of each row of data in the hash chain and the hash value of the network entity attribute table to ensure that the data has not been tampered with since the last verification.
[0151] S313, repeat steps S311 and S312 until the hash values of all rows of data in the network entity attribute table are checked. If the hash value of each row of data matches the corresponding hash value in the hash chain, the data in the network entity attribute table is complete, and step S32 is executed; if not, it means that the data in the network entity attribute table has been tampered with, and the process returns to step S2. If the hash value does not match, the system will trigger an alarm and take predefined security measures, pop up a warning prompt, restart step S2, re-collect the attribute data of network entity A, and re-evaluate the trust of network entity A. In addition, the hash chain audit will be automatically executed regularly to maintain the long-term integrity and reliability of the data. Through this method, it is intended to provide an efficient and reliable data integrity guarantee for the communication security of network entities.
[0152] In order to ensure the integrity and non-tampering of the data, the entire network entity attribute table needs to be verified with reliability verification. A complete hash chain audit means first calculating the hash value of the previous row of data in the network entity attribute table, and then calculating the hash value of the next row of data based on this hash value, and so on, and finally obtaining the hash value of the entire network entity attribute table. Each time the attribute information in the network entity attribute table is obtained, the hash value of each row of data in the network entity attribute table must be compared with the hash value stored in the hash chain to verify whether the data is complete.
[0153] After obtaining the attribute information of network entity A from the network entity attribute table, these attribute information are used to calculate the attribute trust value of the network entity. The attribute trust value calculation requires the use of four attribute scores of the network entity attributes. By assigning corresponding weights to each attribute, accurate quantitative analysis of the reliability and performance of the network entity in multiple dimensions is achieved. In order to ensure the dynamic adaptability and sensitivity of the trust evaluation system, the present invention introduces a dynamic threshold update strategy based on a sliding window algorithm to dynamically adjust the trust threshold of the network entity attribute of the trust evaluation. This strategy aims to respond to fluctuations in the communication process of the network entity in real time and maintain the timeliness and flexibility of the evaluation system. Specifically, the mechanism significantly improves the security and reliability of the communication process by continuously monitoring the trust status of the network entity and updating the trust evaluation in a timely manner based on real-time data. Next, the principal component analysis (PCA) technology is used to accurately calculate the weights between the four attributes obtained in step S31, thereby obtaining a comprehensive attribute trust threshold that reflects the network entity A. Comprehensively reflecting network entities means analyzing the attributes of network entities from four major perspectives (security level, service quality, network utilization, and resource utilization), and the four perspectives also take into account at least two influencing factors.
[0154] S32. Based on the attribute information of the network entity A obtained in step S31, the covariance matrix of the attributes of the network entity A is calculated using formula (7):
[0155] (7);
[0156] In formula (7), is the covariance matrix Line The elements of the column represent the network entity attribute table (security level score , service quality rating , Network Utilization and resource utilization ) Features and The correlation between the features; n Indicates the total number of rows in the network entity attribute table; Indicates The sample The value of the feature, Indicates The sample The value of a feature; Indicates The mean of the features; Indicates The covariance matrix C of the four rating data in the network entity attribute table reflects the linear relationship between the four ratings, and then the weights between the four ratings are calculated.
[0157] S33. Calculate the eigenvalue of the covariance matrix of the network entity A attribute using formula (8):
[0158] (8);
[0159] In formula (8), Represents the covariance matrix of the attributes of network entity A; The eigenvectors representing the decomposition of the covariance matrix; represents the eigenvalue of the covariance matrix decomposition. Formula (8) decomposes the covariance matrix of the network entity A attribute into eigenvalues and eigenvectors. The eigenvalues are used to calculate the weights. The eigenvalues of and the eigenvalue diagonal matrix The product of The transpose of .
[0160] S34. Use formula (9) to normalize the eigenvalues of the covariance matrix of the attributes of network entity A to obtain the weight of each attribute of network entity A:
[0161] (9);
[0162] In formula (9), Indicates The weight of the attribute, The values of range from 1 to 4, corresponding to the four attributes of security level score, service quality score, network utilization and resource utilization; The value of is 4, which means there are four attributes: security level score, service quality score, network utilization and resource utilization; denotes the diagonal elements of the eigenvalue diagonal matrix Λ.
[0163] S35. Based on the weight of each attribute of network entity A, the attribute trust value of network entity A is calculated using formula (10): :
[0164] (10);
[0165] In formula (10), represents the attribute trust value of network entity A, Indicates the safety level score, represents the weight corresponding to the safety level score, Indicates the service quality rating, represents the weight corresponding to the service quality score, Indicates the network utilization rate. Indicates the weight corresponding to the network utilization, Indicates resource utilization, Indicates the weight corresponding to resource utilization.
[0166] S36. Attribute trust value based on network entity A , use formula (11) to calculate the attribute trust threshold of network entity A :
[0167] (11);
[0168] In formula (11), represents the attribute trust threshold of network entity A; Represents the attribute trust value of network entity A; Indicates the multiplication coefficient; Indicates the size of the time window, Indicates The trust value of a network entity attribute.
[0169] S37, adopting a dynamic threshold update strategy based on a sliding window to update the attribute trust threshold of network entity A Update to adapt to the real-time changes in the network entity communication environment and ensure the network entity attribute trust threshold of the network entity Timely updates enable dynamic monitoring and real-time assessment of network entity communication security.
[0170] The present invention adopts a comprehensive evaluation mechanism to evaluate the security of network entity communications, which not only improves the security of network entity communications, but also provides strong support for the stable operation and efficient management of network entities. To evaluate the trustworthiness of a network entity, it must satisfy that the network entity attribute trust value is greater than the attribute trust threshold and the interactive experience trust value is greater than the interactive experience trust threshold. Step S3 is the process of calculating the network entity attribute trust value and the attribute trust threshold. First, find the attribute information of network entity A in the network entity attribute table: security level score, service quality score, network utilization, resource utilization data, and then use the PCA method to calculate the weights corresponding to each attribute and perform weighting to obtain the attribute trust value of network entity A. The attribute trust value is compared with the attribute trust threshold to ensure that all attribute indicators of network entity A meet the established security standards.
[0171] S4. Use the SVM classifier to evaluate the current communication environment of network entity A.
[0172] S41. Using data capture technology, the network traffic data during the communication process of network entity A is captured in real time and the data is processed.
[0173] S42. Analyze the processed network traffic data using the SVM classifier to obtain an evaluation result of the current communication environment of network entity A. According to the evaluation result of the current communication environment of network entity A, normal communication mode and abnormal behavior mode can be effectively distinguished, thereby realizing accurate analysis of network traffic.
[0174] The step S41 comprises: using a network monitoring tool to capture network traffic data during the communication process of network entity A; the network traffic data comprises flow duration, total number of forward data packets, total number of reverse data packets, traffic bytes per second, traffic data packets per second, and mean arrival time between flows.
[0175] The step S42 comprises:
[0176] S421. Constructing the dataset: Using the dataset CICIDS2017 (Canadian Institute for Cyber Security Intrusion Detection System 2017 dataset) as the original dataset S , the original data set S The data in the proportion p Divide into training set and test set. Preferably, the ratio p It is 7:3.
[0177] S422, use the data in the training set to train the SVM classifier , using the test set Evaluate the trained SVM classifier and get the evaluation results , according to the evaluation results Optimize the SVM classifier to obtain the optimized classifier The evaluation result is the accuracy of the SVM classifier model.
[0178] Step S422 is implemented using formula (12):
[0179] (12);
[0180] In formula (12), Indicates that the SVM classifier is optimized using the test set; represents the optimization function; Represents the evaluation function, using the test set Perform performance evaluation on the trained SVM classifier model; Represents the training function, using the training set to train the SVM classifier ; represents the test set; Represents the SVM classifier, which is the model to be trained; Represents the partitioning function, which converts the original data set S According to the proportion p Divide into training set and test set; Indicates the partition ratio, the proportion of data used for training in the data set; Represents the original dataset, i.e., the CICIDS2017 dataset; Indicated by The model performance indicator obtained by the function is the accuracy of the SVM classifier model.
[0181] S423, the optimized classifier Deploy to the actual network environment , using formula (13) at time point For classifier Perform real-time network traffic monitoring and anomaly detection tasks, and monitor classifiers regularly Performance to ensure its effectiveness and accuracy:
[0182] (13);
[0183] In formula (13), Indicates the accuracy of the model prediction; Indicates the monitoring function, used to monitor At the point in time The prediction accuracy of the model; It indicates the result after executing the deployment operation, which refers to the classifier that has been running in the network environment; Indicates a point in time; Indicates the monitored network traffic data.
[0184] S424. Determine the evaluation result of the current communication environment of network entity A according to the processing result of step S423; the evaluation result of the current communication environment of network entity A includes: the current network environment score, the probability of abnormality predicted by the SVM classifier model, whether the network traffic is normal, and the current network traffic attributes.
[0185] When calculating the interactive experience trust value and interactive experience trust threshold between network entity A and network entity B, the current communication environment of network entity A needs to be considered. Step S4 is used to determine whether the communication environment of network entity A is normal. The SVM classifier is used to analyze the network traffic in the current communication process of network entity A. The analysis result is applied in formula (18).
[0186] S5. Based on the evaluation results of the current communication environment of network entity A, the interactive experience trust value between network entity A and network entity B is calculated using the analytic hierarchy process (AHP). and interactive experience trust threshold .
[0187] Step S5 is mainly used to calculate the interactive experience trust value and interactive experience trust threshold of the network entity. The interactive experience trust value mainly includes direct trust value and indirect trust value. The direct trust value mainly considers four factors: time span, successful interaction frequency, failed interaction frequency and the status of the current communication environment. In order to determine the weights of these four factors, the AHP method is used to obtain the direct trust value by weighted summation. The indirect trust value is calculated on the basis of the direct trust value, considering the impact of collusion attack. The weights between the direct and indirect trust values are obtained by PCA technology, and the network entity interactive experience trust value is obtained by weighted summation. The interactive experience trust threshold is calculated by using a dynamic threshold update strategy based on a sliding window. Obtaining the direct trust value and indirect trust value of network entity communication provides a systematic and quantitative weight allocation scheme for multi-criteria decision-making to ensure the scientificity and rationality of trust evaluation. An in-depth analysis of the direct and indirect interaction experience between network entities is conducted to provide a quantitative trust measurement method for the security of network entity communication systems. This method comprehensively considers the impact of time factors, successful interaction frequency, failed interaction frequency and communication environment on direct trust value, and at the same time incorporates time dynamics, the possibility of collusion attack and direct experience value into the calculation of indirect trust value. The use of analytic hierarchy process (AHP) to calculate the direct and indirect trust values of network entity communication can provide a systematic and quantitative weight allocation scheme for multi-criteria decision-making, ensuring the scientificity and rationality of trust evaluation. In addition, a dynamic threshold update mechanism based on sliding window is adopted to calculate the empirical trust threshold of network entity interaction, so that the trust evaluation can respond to the latest interaction data and environmental changes in real time, providing a sensitive and reliable evaluation scheme for secure communication between network entities.
[0188] The step S5 comprises:
[0189] S51. Acquire the real-time communication data of network entity A, record the interaction time and historical direct trust value between network entity A and network entity B into the interaction record table, and determine the key evaluation factors. The real-time communication data includes the time span of the interaction, the frequency of successful interaction, the frequency of failed interaction, and the status of the current communication environment. The time span of the interaction, the frequency of successful interaction, the frequency of failed interaction, and the status of the current communication environment are used as key evaluation factors affecting trust. When calculating the direct trust value and indirect trust value of the network entity communication, first carefully identify and determine the key evaluation factors affecting trust, which include the time span of the interaction, the frequency of successful interaction, the frequency of failed interaction, and the status of the current communication environment.
[0190] S52. Based on the hierarchical analysis method, the weight vector of each key evaluation factor is determined using formula (14): :
[0191] (14);
[0192] In formula (14), represents the weight vector; Representation Guidelines Relative to the criteria the relative importance of represents the number of key evaluation factors affecting trust, , the key evaluation factors include the time span of interaction, the frequency of successful interaction, the frequency of failed interaction, and the status of the current communication environment. Formula (14) determines the unstandardized weight vector of the key evaluation factors affecting trust by calculating the average relative importance of each evaluation factor relative to all other factors.
[0193] S53, based on the hierarchical analysis method, use formula (15) to calculate the weight vector W To standardize:
[0194] (15);
[0195] In formula (15), yes The elements in the weight vector represent The weights of the key evaluation factors that affect trust; represents the subscript of the weight vector W; represents the number of key evaluation factors affecting trust, , the key evaluation factors include the time span of interaction, the frequency of successful interaction, the frequency of failed interaction and the status of the current communication environment. Formula (15) is used to standardize the weight vector W Each weight in , making sure they add up to 1.
[0196] S54. Use formula (16) to establish a time decay model based on the sigmoid function to evaluate the impact of time on the direct trust value:
[0197] (16);
[0198] In formula (16), represents the temporal forgetting factor; Indicates the constant coefficient of adjusting the sigmoid function curve; represents the maximum time window, Indicates the initial interaction time, Indicates the current time. Represents the base of natural logarithms.
[0199] S55. Based on the real-time communication data of network entity A obtained in step S51, the direct trust value between network entity A and network entity B is calculated by using formula (17) and formula (18) using a weighted summation method. :
[0200] (17);
[0201] in, (18);
[0202] In formula (17) and formula (18), Indicates the direct trust value between network entity A and network entity B; Represents the historical direct trust value between network entity A and network entity B; Indicates the number of interactions between network entity A and network entity B; Represents the total number of interactions with network entity B; Indicates the number of interaction failures between network entity A and network entity B; Represents the total number of interactions between network entity A and network entity B; Indicates the current network environment score and the probability of the SVM classifier model predicting anomalies ; Indicates that the current network traffic is abnormal; Indicates the current network traffic attributes; Indicates input Function to perform classification; Represents the parameters of the SVM classifier model, obtained by fitting the training data.
[0203] When no direct interaction between devices is found in the interaction record table, the default
[0204] (19);
[0205] In formula (19), the calculation of the direct trust value needs to consider whether there is a historical interaction between network entity A and network entity B. If not, the direct trust value is 0.5, which means that network entity A has an uncertain trust relationship with network entity B.
[0206] S56. Calculate the indirect trust value between network entity A and network entity B For the calculation of indirect trust value, the present invention further considers the risk of collusion attack, which is crucial for evaluating the security of communication.
[0207] S561. Calculate the median absolute deviation of the communication data of network entity D using equations (20) and (21): , using the median absolute deviation Measures the dispersion of the direct trust value of network entity D relative to the median:
[0208] (20);
[0209] (twenty one);
[0210] In formula (20) and formula (21), It indicates that network entity D that has direct interaction records with both network entity A and network entity B is found; Represents the calculation with A and The median of a set of direct trust values of network entity D with direct interaction records; M represents the median; Indicates the number of network entities D; Indicates all With median The mean difference is the median absolute deviation.
[0211] S562. Based on the degree of dispersion of the direct trust value of network entity D relative to the median, use formula (22) to calculate the deviation adjustment factor of the indirect trust value between network entity A and network entity B. :
[0212] (twenty two);
[0213] In formula (22), represents a deviation adjustment factor for adjusting the indirect trust value between network entity A and network entity B when network entity D is used to calculate the indirect trust value between network entity A and network entity B; Indicates all With median The average difference between the medians is the absolute deviation of the medians; Indicates that the network entity is found and network entities D where there is also direct interaction record; M represents the median;
[0214] S563. Calculate the indirect trust value between network entity A and network entity B using formula (23):
[0215] (twenty three);
[0216] In formula (23), Indicates the indirect trust value between network entity A and network entity B; Indicates the direct trust value between network entity A and network entity D; Indicates the indirect trust value between network entity D and network entity B; represents a deviation adjustment factor for adjusting the indirect trust value between network entity A and network entity B when network entity D is used to calculate the indirect trust value between network entity A and network entity B; Indicates the number of network entities D.
[0217] S57, the calculated direct and indirect trust values of network entity A and network entity B are stored in the network entity trust table to facilitate the calculation of the weight between the direct trust value and the indirect trust value. and the indirect trust value between network entity A and network entity B Perform weighted summation to obtain the interactive experience trust value of network entity A , to fully reflect the trustworthiness of network entities during the communication process:
[0218] (twenty four);
[0219] In formula (24), represents the interactive experience trust value of network entity A; Represents the weight between direct trust value and indirect trust value; Indicates the direct trust value between network entity A and network entity B; Indicates the indirect trust value between network entity A and network entity B.
[0220] The weight between the direct trust value and the indirect trust value , calculated using PCA technology and formulas (25) to (27).
[0221] (25);
[0222] In formula (25), is the covariance matrix Line The elements of the column represent the first Features and The correlation between the features; Indicates the total number of rows in the network entity trust table; Indicates The sample The value of the feature, Indicates The sample The value of a feature; Indicates The mean of the features; Indicates The mean of the features.
[0223] Through the covariance matrix of direct and indirect trust values in the network entity trust table It reflects the linear relationship between direct and indirect trust values, and then finds the weight between direct and indirect trust values. The eigenvalue of the covariance matrix of the interaction experience of network entity A is calculated using formula (26):
[0224] (26);
[0225] In formula (26), Represents the covariance matrix of the interaction experience of network entity A; The eigenvectors representing the decomposition of the covariance matrix; represents the eigenvalue of the covariance matrix decomposition. Formula (26) decomposes the covariance matrix of the interaction experience of network entity A into eigenvalues and eigenvectors. The eigenvalues are used to calculate the weights. The eigenvalues of and the eigenvalue diagonal matrix The product of The transpose of .
[0226] Formula (27) is used to normalize the eigenvalues of the covariance matrix of the interaction experience of network entity A to obtain the weight between the direct trust value and the indirect trust value of network entity A: :
[0227] (27)
[0228] In formula (27), Represents the weight between direct trust value and indirect trust value; represents the eigenvalue diagonal matrix Data in row 1 and column 1; represents the eigenvalue diagonal matrix Data in row 2 and column 2.
[0229] S58. Interaction experience trust value based on network entity A , use formula (28) to calculate the interactive experience trust threshold of network entity A :
[0230] (28);
[0231] In formula (28), represents the interactive experience trust threshold of network entity A; Indicates the size of the time window; represents the interactive experience trust value of network entity A; Indicates the multiplication coefficient; Indicates The interactive experience trust value of network entities.
[0232] S6. Attribute trust value based on network entity A and attribute trust threshold And interactive experience trust value Interaction Experience Trust Threshold , network entity B performs trust evaluation on network entity A.
[0233] The step S6 comprises:
[0234] Use formula (29) to compare the attribute trust value of network entity A and attribute trust threshold And the interactive experience trust value between network entity A and network entity B Interaction Experience Trust Threshold , if the attribute trust value of network entity A Greater than the attribute trust threshold And the interactive experience trust value between network entity A and network entity B Greater than the interactive experience trust threshold , then it is determined that network entity A passes the trust evaluation:
[0235] (29);
[0236] In formula (29), It is used to verify whether network entity A is trustworthy; Indicates the trust value of network entity attributes; represents the trust threshold of network entity attributes; Represents the interactive experience trust value of network entities; Represents the empirical trust threshold of network entity interaction.
[0237] Compare the network entity attribute trust value with the network entity attribute trust threshold, the network entity interaction experience trust value with the network entity interaction experience trust threshold, and when both are greater than the threshold, it is verified that the network entity is trustworthy. When the network entity is trustworthy, it can be determined that the network entity accepts access. Under the method described in the present invention, network communication security is doubly guaranteed: first, the attribute trust value of network entity A is greater than the threshold, and the network entity A is less trustworthy than the network entity A. Must be greater than the attribute trust threshold , to ensure that all attribute indicators of network entities meet the established security standards; secondly, considering the performance of network entities in historical interactions and the real-time status of the communication environment, the interactive experience trust value of network entity A Must be greater than its corresponding trust threshold A network entity must meet both of the above key conditions to be considered as having passed a strict trust evaluation. The comprehensive evaluation mechanism proposed in the present invention significantly improves the overall security and reliability of the network entity communication system through precise data analysis and a strict verification process, and establishes a solid trust foundation for seamless collaboration and data exchange between network entities.
[0238] In order to monitor the network entity in real time during the communication between network entity A and network entity B and issue an alarm when an abnormality is found, the method also includes: S7, using the STC89C52 single-chip microcomputer to build a network entity communication simulation system, and using the network entity communication simulation system to monitor the network entity in real time.
[0239] In step S7, the network entity communication simulation system is used to monitor the network entity in real time, including:
[0240] S71 . Obtain the movement trajectory of the network entity A and display it through a graphical user interface.
[0241] S72. Real-time monitoring of changes in the attribute trust value and interactive experience trust value of network entity A during the process of network entity A accessing network entity B. If the attribute trust value of network entity A is less than the trust threshold or the interactive experience trust value of network entity A is less than the interactive experience trust threshold, an abnormal signal is sent to the single-chip microcomputer corresponding to network entity B to complete an active response.
[0242] S73. After receiving the abnormal signal, network entity B corrects the path of network entity A based on the preset path, so that network entity A returns to the preset path. The coordinates of network entity A deviating from the preset path are calculated, and the main chip uses the existing correction method to correct the network entity that deviates from the trajectory, guides the network entity back to the preset path, and completes the real-time response.
[0243] Through the collaborative design of software programming and hardware logic, the movement behavior of network entities in two-dimensional space is simulated. When abnormal signals are detected, the coordinate data of the network entity is updated in real time, and its current trajectory is dynamically displayed through the graphical user interface (GUI). When deviation from the trajectory is detected, the deviation of the network entity trajectory is returned to the original set trajectory, thereby maintaining the security and stability of the entire communication process.
[0244] In step S7, the network entity communication simulation system includes: a trajectory display module, a real-time monitoring module and a trajectory correction module. The network entity communication simulation system can be installed on each network entity.
[0245] The trajectory display module is used to obtain and display the motion trajectory of network entities. The main single chip uses the leader-follower algorithm to calculate the motion trajectory of each single chip, and the main single chip uses serial communication to complete the data transmission with the PC. The computer and other single chip microcomputers also use serial communication for data transmission. In this embodiment, single chip No. 1 plays the role of master control, and uses the leader-follower algorithm to calculate the motion coordinates of all single chip microcomputers including itself. The main single chip microcomputer first determines its own motion path, and then plans paths for other single chip microcomputers to ensure the coordination of the entire network entity group. The calculation results are transmitted to the zero-trust PC via serial communication, which uses these data for analysis and draws real-time motion trajectories on the graphical interface.
[0246] The real-time monitoring module is used to monitor in real time the changes in the attributes and interactive experience trust values of network entities during the process of network entity A accessing network entity B. During the access process, if the attribute trust value of network entity A is less than the trust threshold or the interactive experience trust value of network entity A is less than the interactive experience trust threshold, an abnormal signal is sent to the single-chip microcomputer corresponding to network entity B to complete the active response. Once the host PC side evaluates the abnormality of the network entity through real-time trust evaluation, it will send a warning signal to the main single-chip microcomputer, and the main single-chip microcomputer will then recalculate and adjust the motion coordinates of the abnormal network entity and notify the PC side at the same time. The PC side will also broadcast warning signals to other single-chip microcomputers, causing their warning lights to flash, reminding operators to pay attention to potential abnormal situations. If the abnormal behavior is confirmed to be caused by a specific network entity, the PC side will send a dangerous signal to the single-chip microcomputers corresponding to other network entities, triggering their indicator lights to be always on, indicating that it is a dangerous source. This visualization method not only provides intuitive feedback on the safe communication of network entities to operators, but also plays a key role in quickly identifying and responding to potential motion anomalies.
[0247] In the trajectory correction module, after network entity B receives an abnormal signal, it calculates the coordinates of network entity A deviating from the preset trajectory. The main chip uses the existing correction method to correct the network entity that has deviated from the trajectory, guides the network entity back to the preset path, and completes the real-time response. When the deviation from the trajectory is detected, the trajectory of the deviated network entity is returned to the original set trajectory, thereby maintaining the security and stability of the entire communication process.
[0248] In order to better demonstrate the evaluation and monitoring process of the trust value of network entities in a network environment, and how to improve the security and reliability of network communications through these evaluations, the method described in the present invention was tested by taking the access of network entity No. 8 to network entity No. 1 as an example. In order to evaluate the trust value of network entity No. 8, detailed simulation calculations were performed, and relevant charts were drawn to demonstrate these calculation processes and results. Figures 2 to 4 The process of calculating the direct trust value, indirect trust value and interactive experience trust value of network entity No. 8 by network entity No. 1 is shown respectively.
[0249] Figure 2 It is a curve of simulated direct trust value changing over time. Figure 2 It can be seen that the direct trust value can be accurately calculated by considering the time span of the interaction, the frequency of successful interaction, the frequency of failed interaction, and the current communication environment.
[0250] Figure 3 It is a curve of simulated indirect trust value changing over time. Figure 3 It can be seen that the indirect trust value is calculated by considering the direct trust value and collusion attack.
[0251] Figure 4 It is a curve of simulated interactive experience trust value changing over time. Figure 4 It can be seen that the weights calculated using PCA technology can accurately calculate the interactive experience trust value of network entities. Figure 2~Figure 4 In the example, when new interaction records are generated, the curve will change; the rising curve is because new interaction records are generated, and the falling curve indicates that the trust value decreases with the forgetting of time.
[0252] In order to better evaluate whether the network entity is trustworthy, taking the evaluation of the attributes and interaction experience of network entity No. 1 on 8 network entities as an example, the attribute and interaction experience trust value of each network entity and the attribute and interaction experience trust threshold are calculated and analyzed. Figure 5 It is a simulated trust evaluation curve for network entity attributes and interaction experience. The graph divides the evaluation results into four situations. The rejected quadrant will show the current trust value and trust threshold. In the quadrant where the evaluation failed, the left side of the bracket is the trust value of the network entity, and the right side refers to the trust threshold of the network entity. Figure 5 It can be seen that the attributes and interaction experience of the eight network entities were evaluated separately. The evaluation from two perspectives can improve the accuracy of the evaluation.
[0253] In order to better demonstrate the reaction of network entities in abnormal situations and their movement trajectories, take the example of network entity No. 8 accessing network entity No. 3. Figure 6 When the No. 8 network entity is abnormal, the No. 8 microcontroller receiving signal changes. Figure 7 When showing the anomaly of Cyber Entity No. 8, its movement trajectory changes. Figure 6 This is the state diagram of the microcontroller receiving abnormal signals. Figure 6 It can be seen that when at least one of the trust values of network entity attributes and interaction experience is lower than the corresponding trust threshold, the software end will send a warning signal to other single chips. When other single-chip computers receive the warning signal, the two lights are always on. Figure 7 It is a simulation diagram of the motion trajectory of network entities, such as Figure 7 As shown, the movement trajectories of 8 network entities are simulated in total. Since at least one of the trust values of the attributes and interaction experience of network entity No. 8 is lower than the corresponding trust threshold, the movement trajectory of network entity No. 8 is abnormal.
[0254] In summary, the present invention not only improves the efficiency of anomaly detection, but also enhances the reliability of automatic control through intelligent control strategies, and provides strong technical support for the stable operation and security monitoring of network entity security communications. The present invention adopts the zero-trust principle to perform unified identity authentication and real-time trust evaluation on network entities to ensure the security of the communication process. Identity authentication uses hash comparison and dynamic token (JWT) technology to ensure password security and session uniqueness. The network entity attribute information in the database is updated regularly, and reliability verification is performed each time the data is read to ensure data accuracy and security. The attribute information processing uses an improved normalization algorithm and principal component analysis (PCA) to improve the accuracy of weight calculation and calculate the trust value of network entity attributes. To adapt to the real-time changes in the communication environment, the attribute trust threshold Dynamically updated through an adaptive sliding window algorithm. In addition, the present invention uses time series analysis (historical interaction trust values in direct trust values) and behavior pattern recognition (anomaly detection of network traffic in the current communication environment), combined with a time decay model based on a sigmoid function, to accurately evaluate the impact of historical interactions and detect anomalies through real-time network monitoring. The analytic hierarchy process (AHP) is used to determine the weights of evaluation factors to achieve a comprehensive evaluation of trust values and calculate the empirical trust values of network entity interactions. , dynamically update the interactive experience trust threshold through the adaptive sliding window algorithm . Network entities need to satisfy the network entity attribute trust value Greater than the network entity attribute trust threshold And the network entity interaction experience trust value Greater than the network entity interaction experience trust threshold The present invention uses software and hardware combined technology to build a network entity interaction simulation system, simulate the movement trajectory of network entities, and provide a comprehensive, intelligent and highly reliable solution for the field of network communication security.
[0255] Example 2
[0256] The present embodiment provides a network security communication device based on a zero-trust architecture, which includes: a login verification module, a network entity attribute table construction module, an attribute trust value and attribute trust threshold acquisition module, a communication environment evaluation module, an interactive experience trust value and interactive experience trust threshold acquisition module, and a trust evaluation module.
[0257] The login verification module is used for network entity B to perform user authentication on network entity A and verify the user name, password and session token of network entity A when network entity A initiates an access request to network entity B. The network entity attribute table construction module is used for real-time capture of attribute information of network entity A through network entity B, normalization of the attribute information to obtain the attribute score of network entity A, and establishment of a network entity attribute table according to the attribute score of network entity A, and real-time update of the hash value of the network entity attribute table to construct a hash chain. The attribute trust value and attribute trust threshold acquisition module is used for acquiring various attribute information of network entity A based on the network entity attribute table, determining the weight corresponding to each attribute information by principal component analysis, and evaluating each attribute information by weighted sum algorithm to determine the attribute trust value and attribute trust threshold of network entity A. The communication environment evaluation module is used for evaluating the current communication environment of network entity A by using SVM classifier. The interactive experience trust value and interactive experience trust threshold acquisition module is used to calculate the interactive experience trust value and interactive experience trust threshold between network entity A and network entity B based on the evaluation result of the current communication environment of network entity A and using the hierarchical analysis method. The trust evaluation module is used for network entity B to perform trust evaluation on network entity A based on the attribute trust value and attribute trust threshold of network entity A and the interaction experience trust value and interaction experience trust threshold between network entity A and network entity B.
[0258] Example 3
[0259] This embodiment also provides an electronic device, including: at least one processor; and a memory, wherein the memory stores instructions, and when the instructions are executed by the at least one processor, the at least one processor executes the network security communication method based on the zero trust architecture as described above. In this embodiment, the electronic device may include but is not limited to: a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile computing device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable computing device, a consumer electronic device, and the like.
[0260] Example 4
[0261] This embodiment also provides a machine-readable storage medium, which stores executable instructions, and when the instructions are executed, the machine executes the network security communication method based on the zero trust architecture as described above. Specifically, a system or device equipped with a readable storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and the computer or processor of the system or device reads and executes the instructions stored in the readable storage medium. In this case, the program code read from the readable medium itself can implement the functions of any of the above embodiments, so the machine-readable code and the readable storage medium storing the machine-readable code constitute a part of this specification. Embodiments of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Optionally, the program code can be downloaded from a server computer or a cloud by a communication network. It should be understood by those skilled in the art that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The above embodiments are only descriptions of the preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made by ordinary technicians in this field to the technical solution of the present invention should fall within the protection scope determined by the claims of the present invention.
Claims
1. A network security communication method based on zero trust architecture, characterized in that: The method comprises the following steps: S1. Network entity A initiates an access request to network entity B. Network entity B performs user authentication on network entity A and verifies the username, password and session token of network entity A. S2. Network entity B captures the attribute information of network entity A in real time, normalizes the attribute information to obtain the attribute score of network entity A, establishes a network entity attribute table according to the attribute score of network entity A, updates the hash value of the network entity attribute table in real time, and constructs a hash chain; S3. Based on the network entity attribute table, obtain the attribute information of network entity A, use the principal component analysis method to determine the weight corresponding to each attribute information, and use the weighted sum algorithm to evaluate each attribute information to determine the attribute trust value of network entity A. and attribute trust threshold ; S4, using the SVM classifier to evaluate the current communication environment of the network entity A; S5. Obtain the real-time communication data of network entity A, record the interaction time and historical direct trust value between network entity A and network entity B into the interaction record table, and determine the key evaluation factors based on the evaluation results of the current communication environment of network entity A, and calculate the interaction experience trust value between network entity A and network entity B using the hierarchical analysis method. and interactive experience trust threshold ; The real-time communication data includes the time span of interaction, the frequency of successful interaction, the frequency of failed interaction and the status of the current communication environment; S6. Attribute trust value based on network entity A and attribute trust threshold And interactive experience trust value Interaction Experience Trust Threshold , network entity B performs trust evaluation on network entity A.
2. The network security communication method based on zero trust architecture according to claim 1, characterized in that: In step S1, the network entity A initiates an access request to the network entity B, and the network entity B performs user authentication on the network entity A and verifies the user name, password and session token of the network entity A, including: S11, network entity A initiates an access request to network entity B, and network entity B verifies the username and password of network entity A using formula (1): (1); In formula (1), It is used to verify whether the password input by the network entity A after hash encryption is the same as the password hash value stored in the database; Represents a hash value matching function; represents a hash function; Indicates the password entered by network entity A; Indicates that the password input by network entity A is hashed and encrypted; represents a password hash value stored in a database. During the registration phase, the password entered by the network entity A is hashed to generate a password hash value, which is stored in the database for verification during login attempts; S12, based on the user name of network entity A, the secret key SECRET_KEY preset by network entity B, and the validity period E set by network entity B, generate a session token of network entity A using formula (2): (2); In formula (2), A session token representing network entity A; represents a hash function; Indicates the user name; Indicates the validity period scheduled by network entity B; Indicates the current timestamp; Indicates the key preset by network entity B; S13, network entity B uses formula (3) to check the session token input by network entity A from time to time to determine whether the token is the same as the session token issued by network entity B to network entity A within the validity period: (3); In formula (3), Indicates that network entity B determines whether the session token input by network entity A is valid; Indicates the time when the session token is issued by network entity B to network entity A; It indicates the validity period scheduled by network entity B; TokenExpirationTime indicates the expiration time of the session token, and TokenExpirationTime is equal to T+E.
3. The network security communication method based on zero trust architecture according to claim 1, characterized in that: In step S2, the network entity B captures the attribute information of the network entity A in real time, normalizes the attribute information to obtain the attribute score of the network entity A, establishes a network entity attribute table according to the attribute score of the network entity A, updates the hash value of the network entity attribute table in real time, and constructs a hash chain, including: S21. Network entity B monitors the security logs, firewall logs and network traffic of network entity A in real time through network monitoring tools, obtains characteristic data of abnormal access attempts and abnormal network traffic percentage, and normalizes the obtained characteristic data of abnormal access attempts and abnormal network traffic percentage, and obtains the security level score of network entity A through average weighted summation. ; S22. Network entity B monitors the delay data and packet loss rate in the communication of network entity A, normalizes the delay data and packet loss rate, and obtains the service quality score of network entity A by average weighted sum calculation. ; S23, network entity B monitors the data transmission volume and network bandwidth utilization rate in the communication of network entity A, and normalizes the data transmission volume and network bandwidth utilization rate, and obtains the network utilization rate of network entity A by average weighted summation. ; S24. Network entity B normalizes the CPU, memory and disk utilization in network entity A, and calculates the resource utilization of network entity A by average weighted summation. ; S25. Generate a network entity attribute table according to the attribute score of network entity A calculated in steps S21-S24, build a hash chain according to the network entity attribute table, store the network entity attribute table and the hash chain in a database, and update the hash chain when the network entity attribute table changes.
4. The network security communication method based on zero trust architecture according to claim 3 is characterized in that: In step S3, based on the network entity attribute table, the attribute information of the network entity A is obtained, the weight corresponding to each attribute information is determined by the principal component analysis method, and the attribute trust value of the network entity A is determined by evaluating each attribute information by the weighted sum algorithm. and attribute trust threshold ,include: S31, using a reliability enhancement verification mechanism based on a hash chain to verify the integrity of the data in the network entity attribute table, and after confirming that the data is complete, obtaining various attribute information of the network entity A from the network entity attribute table; S32. Based on the attribute information of the network entity A obtained in step S31, the covariance matrix of the attributes of the network entity A is calculated using formula (7): (7); In formula (7), is the covariance matrix Line The element of the column represents the Features and The correlation between the features; n Indicates the total number of rows in the network entity attribute table; Indicates The sample The value of the feature, Indicates The sample The value of a feature; Indicates The mean of the features; Indicates The mean of the features; S33. Calculate the eigenvalue of the covariance matrix of the network entity A attribute using formula (8): (8); In formula (8), Represents the covariance matrix of the attributes of network entity A; The eigenvectors representing the decomposition of the covariance matrix; represents the eigenvalues of the covariance matrix decomposition; S34. Use formula (9) to normalize the eigenvalues of the covariance matrix of the attributes of network entity A to obtain the weight of each attribute of network entity A: (9); In formula (9), Indicates The weight of the attribute, The values of range from 1 to 4, corresponding to the four attributes of security level score, service quality score, network utilization and resource utilization; The value of is 4, which means there are four attributes: security level score, service quality score, network utilization and resource utilization; represents the diagonal elements on the eigenvalue diagonal matrix Λ; S35. Based on the weight of each attribute of network entity A, the attribute trust value of network entity A is calculated using formula (10): : (10); In formula (10), represents the attribute trust value of network entity A, Indicates the safety level score, represents the weight corresponding to the safety level score, Indicates the service quality rating, represents the weight corresponding to the service quality score, Indicates the network utilization rate. Indicates the weight corresponding to the network utilization, Indicates resource utilization, Indicates the weight corresponding to resource utilization; S36. Attribute trust value based on network entity A , use formula (11) to calculate the attribute trust threshold of network entity A : (11); In formula (11), represents the attribute trust threshold of network entity A; Represents the attribute trust value of network entity A; Indicates the multiplication coefficient; Indicates the size of the time window, Indicates The trust value of network entity attributes; S37, adopting a dynamic threshold update strategy based on a sliding window to update the attribute trust threshold of network entity A Updates are made to adapt to real-time changes in the network entity communication environment.
5. The network security communication method based on zero trust architecture according to claim 4, characterized in that: In step S4, the current communication environment of the network entity A is evaluated by using the SVM classifier, including: S41, using data capture technology to capture network traffic data during the communication process of network entity A in real time and process the data; S42, using the SVM classifier to analyze the processed network traffic data to obtain an evaluation result of the current communication environment of the network entity A; In step S5, the real-time communication data of network entity A is obtained, the interaction time and historical direct trust value between network entity A and network entity B are recorded in the interaction record table, and based on the evaluation result of the current communication environment of network entity A, the key evaluation factors are determined, and the interactive experience trust value between network entity A and network entity B is calculated by using the hierarchical analysis method. and interactive experience trust threshold ,include: S51, obtaining real-time communication data of network entity A, recording the interaction time and historical direct trust value between network entity A and network entity B into an interaction record table, and determining key evaluation factors; S52. Based on the hierarchical analysis method, the weight vector of each key evaluation factor is determined using formula (14): : (14); In formula (14), represents the weight vector; Representation Guidelines Relative to the criteria the relative importance of represents the number of key evaluation factors affecting trust, , the key evaluation factors include the time span of interaction, the frequency of successful interaction, the frequency of failed interaction and the status of the current communication environment; S53, based on the hierarchical analysis method, use formula (15) to calculate the weight vector W To standardize: (15); In formula (15), yes The elements in the weight vector represent The weights of the key evaluation factors that affect trust; represents the subscript of the weight vector W; represents the number of key evaluation factors affecting trust, , the key evaluation factors include the time span of interaction, the frequency of successful interaction, the frequency of failed interaction and the status of the current communication environment; S54. Use formula (16) to establish a time decay model based on the sigmoid function to evaluate the impact of time on the direct trust value: (16); In formula (16), represents the temporal forgetting factor; Indicates the constant coefficient of adjusting the sigmoid function curve; represents the maximum time window, Indicates the initial interaction time, Indicates the current time. represents the base of natural logarithms; S55. Based on the real-time communication data of network entity A obtained in step S51, the direct trust value between network entity A and network entity B is calculated by using formula (17) and formula (18) using a weighted summation method. : (17); in, (18); In formula (17) and formula (18), Indicates the direct trust value between network entity A and network entity B; Represents the historical direct trust value between network entity A and network entity B; Indicates the number of interactions between network entity A and network entity B; Represents the total number of interactions with network entity B; Indicates the number of interaction failures between network entity A and network entity B; Represents the total number of interactions between network entity A and network entity B; Indicates the current network environment score and the probability of the SVM classifier model predicting anomalies ; Indicates that the current network traffic is abnormal; Indicates the current network traffic attributes; Indicates input Function to perform classification; Represents the parameters of the SVM classifier model, obtained by fitting the training data; S56. Calculate the indirect trust value between network entity A and network entity B : S57. Use formula (24) to calculate the direct trust value between network entity A and network entity B and the indirect trust value between network entity A and network entity B Perform weighted summation to obtain the interactive experience trust value of network entity A : (24); In formula (24), represents the interactive experience trust value of network entity A; Represents the weight between direct trust value and indirect trust value; Indicates the direct trust value between network entity A and network entity B; Indicates the indirect trust value between network entity A and network entity B; S58. Interaction experience trust value based on network entity A , use formula (28) to calculate the interactive experience trust threshold of network entity A : (28); In formula (28), represents the interactive experience trust threshold of network entity A; Indicates the size of the time window; represents the interactive experience trust value of network entity A; Indicates the multiplication coefficient; Indicates The interactive experience trust value of network entities.
6. The network security communication method based on zero trust architecture according to claim 5, characterized in that: In step S6, based on the attribute trust value of network entity A and attribute trust threshold And interactive experience trust value Interaction Experience Trust Threshold , network entity B performs trust evaluation on network entity A, including: Use formula (29) to compare the attribute trust value of network entity A and attribute trust threshold And interactive experience trust value Interaction Experience Trust Threshold , if the attribute trust value of network entity A Greater than the attribute trust threshold And the interactive experience trust value Greater than the interactive experience trust threshold , then it is determined that network entity A passes the trust evaluation: (29); In formula (29), It is used to verify whether network entity A is trustworthy; Represents the trust value of network entity attributes; represents the trust threshold of network entity attributes; Represents the interactive experience trust value of network entities; Represents the empirical trust threshold of network entity interaction.
7. The network security communication method based on zero trust architecture according to claim 6, characterized in that: The method further includes: S7, using STC89C52 single chip microcomputer to build a network entity communication simulation system, and using the network entity communication simulation system to monitor the network entity in real time; In step S7, the network entity communication simulation system is used to monitor the network entity in real time, including: S71, obtaining the movement trajectory of the network entity A and displaying it through a graphical user interface; S72, in the process of network entity A accessing network entity B, monitor the changes of the attribute trust value and the interactive experience trust value of network entity A in real time, if the attribute trust value of network entity A is less than the attribute trust threshold or the interactive experience trust value between network entity A and network entity B is less than the interactive experience trust threshold, send an abnormal signal to the single chip microcomputer corresponding to network entity B; S73, after receiving the abnormal signal, the network entity B corrects the path of the network entity A based on the preset path, so that the network entity A returns to run on the preset path; In step S7, the network entity communication simulation system includes: a trajectory display module, a real-time monitoring module and a trajectory correction module; the trajectory display module is used to obtain and display the movement trajectory of the network entity; the real-time monitoring module is used to monitor the attribute trust value of network entity A and the interaction experience trust value between network entity A and network entity B in real time during the process of network entity A accessing network entity B. During the access process, if the attribute trust value of network entity A is less than the trust threshold or the interaction experience trust value between network entity A and network entity B is less than the interaction experience trust threshold, an abnormal signal is sent to the single chip microcomputer corresponding to network entity B; the trajectory correction module is used to correct the path of network entity A after network entity B receives the abnormal signal, so that network entity A returns to run on the preset path.
8. A network security communication device based on zero trust architecture, characterized in that: The device comprises: a login verification module, a network entity attribute table construction module, an attribute trust value and attribute trust threshold acquisition module, a communication environment evaluation module, an interactive experience trust value and interactive experience trust threshold acquisition module, and a trust evaluation module; The login verification module is used for, when network entity A initiates an access request to network entity B, network entity B performs user authentication on network entity A and verifies the user name, password and session token of network entity A; The network entity attribute table construction module is used to capture the attribute information of the network entity A in real time through the network entity B, normalize the attribute information to obtain the attribute score of the network entity A, and establish the network entity attribute table according to the attribute score of the network entity A, update the hash value of the network entity attribute table in real time, and construct a hash chain; The attribute trust value and attribute trust threshold acquisition module is used to obtain various attribute information of network entity A based on the network entity attribute table, determine the weight corresponding to each attribute information by using the principal component analysis method, and evaluate each attribute information by using the weighted sum algorithm to determine the attribute trust value and attribute trust threshold of network entity A; The communication environment evaluation module is used to evaluate the current communication environment of network entity A using an SVM classifier; The interactive experience trust value and interactive experience trust threshold acquisition module is used to obtain the real-time communication data of network entity A, record the interaction time and historical direct trust value between network entity A and network entity B in the interaction record table, and determine the key evaluation factors based on the evaluation result of the current communication environment of network entity A, and calculate the interactive experience trust value and interactive experience trust threshold between network entity A and network entity B by using the hierarchical analysis method; The trust evaluation module is used for network entity B to perform trust evaluation on network entity A based on the attribute trust value and attribute trust threshold of network entity A and the interaction experience trust value and interaction experience trust threshold between network entity A and network entity B.
9. An electronic device, characterized in that: include: at least one processor; and a memory storing instructions, which, when executed by the at least one processor, causes the at least one processor to execute the network security communication method based on the zero trust architecture as claimed in any one of claims 1 to 7.
10. A machine-readable storage medium, characterized in that: It stores executable instructions, which, when executed, enable the machine to perform the network security communication method based on zero trust architecture as described in any one of claims 1 to 7.
