Network security threat intelligent diagnosis method for zero trust network

By generating rule-based location identifiers and decision maps, merging policy evaluation trajectories, and establishing diagnostic maps, the problem of confusion in the policy evaluation process in zero-trust networks is solved, enabling accurate identification and tracing of network security threat types.

CN123163871APending Publication Date: 2026-11-24JIANGSU YUEDA NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611292927.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In zero-trust networks, existing technologies struggle to effectively distinguish and trace the evaluation processes of different security policy execution components. This leads to interference from rule names, condition syntax, and version changes with policy evaluation results, affecting the integrity and consistency of the evaluation process.

Method used

By collecting rule evaluation events and policy evaluation results from security policy enforcement components, rule location identifiers and decision maps are generated, policy evaluation trajectories are formed, identical content is merged and bifurcation points are determined, a diagnostic atlas is established, and threat types are identified using a network security threat diagnostic model.

Benefits of technology

It improves the consistency and traceability of cross-component threat diagnosis, provides a complete basis for policy configuration verification and abnormal access analysis, and reduces the interference of rule confusion on the evaluation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123163871A_ABST
    Figure CN123163871A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of zero-trust network, and particularly discloses a network security threat intelligent diagnosis method for a zero-trust network, which is used in the scene that a plurality of security policy execution components form heterogeneous evaluation records for the same access request, collects the rule entering process and the final processing result of each component, arranges the rules with different names, writings and organization modes into policy expressions which can be compared according to the judgment meaning, arranges the track intervals formed by repeated calling or circular entering, and retains the sequence of each entering, the matching state, the transfer mode and the return relationship. Then, the complete evaluation processes of the components are compared, the common decision content and the substantial difference content are distinguished, the access request, the common process, the difference process and the processing result are combined into a diagnosis graph, and a model trained by historical samples identifies the network security threat type. The application is used for diagnosing the network security threats corresponding to the differences in the policy evaluation of multiple components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of zero-trust network technology, and more specifically to an intelligent method for diagnosing network security threats in zero-trust networks. Background Technology

[0002] Zero-trust networks typically perform dynamic policy evaluation on each access request based on the identity of the accessing subject, the resources accessed, the access operation, and the environmental state. The same access request may pass through multiple security policy enforcement components. Each component sequentially completes condition judgment, rule invocation, and processing actions according to its local policy rules, recording the rule entry order, matching results, node transfer status, and the final policy evaluation result. Operations personnel can analyze the access processing process and policy configuration status by combining the policy evaluation trajectories formed by different components.

[0003] Different security policy execution components may have different rule sources, expressions, and versions. The same judgment content may result in different trajectory content, and rules with the same identifier may correspond to different actual judgment content. When a rule is repeatedly entered or cyclically called among multiple rules, the trajectory length and the position of subsequent elements will also change, with each occurrence corresponding to different matching states and transition relationships. Comparing trajectories based on rule identifiers or arrangement positions can easily confuse differences in expression, differences in repeated calls, and differences in actual policies, affecting the integrity of the correlation between the evaluation process and the policy evaluation results. Summary of the Invention

[0004] The purpose of this invention is to provide an intelligent method for diagnosing network security threats in zero-trust networks, thereby solving the aforementioned technical problems.

[0005] The objective of this invention can be achieved through the following technical solutions:

[0006] A method for intelligent diagnosis of cybersecurity threats in zero-trust networks includes the following steps:

[0007] S1. Obtain access requests and collect rule evaluation events and policy evaluation results generated when multiple security policy execution components process access requests;

[0008] S2. Generate rule location identifiers and rule decision maps based on rule evaluation events, write the corresponding rule evaluation events, and form a strategy evaluation trajectory in the order of occurrence.

[0009] S3. Determine the continuous trajectory interval based on the recurring rule location markers, replace the continuous trajectory interval with folding markers, and obtain the folded trajectory node sequence.

[0010] S4. Based on the rule-based judgment graph, compare multiple folded trajectory node sequences, merge identical content to obtain a common trajectory node sequence, and determine the bifurcation point based on the first different content.

[0011] S5. Based on the sequence of common trajectory nodes and the location of the bifurcation point and the subsequent sequence of folded trajectory nodes, combined with the access request and policy evaluation results, establish a diagnostic map.

[0012] S6. Obtain the completed network security threat diagnosis model, input the diagnosis map into the network security threat diagnosis model, and obtain the network security threat types.

[0013] As a further aspect of the present invention, the process of collecting rule evaluation events and strategy evaluation results is as follows:

[0014] Send access requests to multiple security policy enforcement components;

[0015] When the security policy execution component enters a policy rule, it records the security policy execution component identifier, entry order, policy package identifier, original policy rule identifier, rule version, rule condition expression, rule processing action, rule matching result, and node transfer type to form a rule evaluation event. The node transfer type of the first rule evaluation event is recorded as the start of evaluation, and the node transfer type of subsequent rule evaluation events is recorded according to how the previous policy rule enters the current policy rule.

[0016] When the security policy enforcement component completes the access request processing, it records the security policy enforcement component identifier and the policy evaluation result.

[0017] As a further aspect of the present invention, the process of forming the strategy evaluation trajectory is as follows:

[0018] Obtain the correspondence between attribute names, attribute values, comparison operators, and rule processing actions used by different security policy execution components from the policy management end, and convert rule condition expressions and rule processing actions into standard policy elements.

[0019] The rule condition expressions corresponding to the same access request are aggregated, the value segments of standard policy elements are divided according to the condition boundaries, and a rule decision graph is established in the order of access subject attribute, access object attribute, access operation attribute, environment attribute and evaluation context attribute. The branches in the rule decision graph correspond to the value segments, and the end of the branch records the rule decision result and rule processing action.

[0020] Repeatedly merge decision positions that have the same standard strategy elements and whose branches are connected to the same subsequent position, and delete decision positions where all branches are connected to the same subsequent position, until there are no decision positions that can be merged or deleted.

[0021] The policy package identifier, the original policy rule identifier, and the rule version are combined to form a rule location identifier. The rule location identifier and the rule decision graph are written into the corresponding rule evaluation event. The rule evaluation events of the same security policy execution component are arranged in the order of entry to form a policy evaluation trajectory.

[0022] As a further aspect of the present invention, the process of obtaining the folded trajectory node sequence is as follows:

[0023] Record the location of each rule location identifier in the policy evaluation trajectory, connect two adjacent locations of the same rule location identifier, and use the two locations and the trajectory range between them as the connection range;

[0024] Repeatedly merge the overlapping connection ranges until no two connection ranges overlap, and treat the trajectory nodes between the start and end points of each connection range as a continuous trajectory interval;

[0025] Local event numbers are assigned according to the order of the trajectory nodes, and local rule numbers are assigned according to the order of the first appearance of the rule positioning identifier. When the rule positioning identifier appears for the first time, the local event number, local rule number, rule positioning identifier, rule decision graph, rule matching result, and node transfer type are recorded. When the rule positioning identifier appears again, the current local event number, local rule number, local event number when it appeared last time, rule matching result, and node transfer type are recorded.

[0026] The recorded content is arranged according to the local event number to form a fold mark. The continuous trajectory interval is replaced with the fold mark from back to front according to the starting point of the continuous trajectory interval to obtain the folded trajectory node sequence.

[0027] As a further aspect of the present invention, the process of determining the bifurcation point is as follows:

[0028] Add a termination element to the end of each folded trajectory node sequence to record the policy evaluation result, and read the corresponding elements in multiple folded trajectory node sequences sequentially from the starting position of the same prefix;

[0029] When all corresponding elements are trajectory nodes, compare the rule decision graph, rule matching results, and node transition types; when all corresponding elements are fold markers, compare the number of records in the fold markers, record order, local rule number, local event number when it last appeared, rule decision graph, rule matching results, and node transition types; when all corresponding elements are termination elements, compare the strategy evaluation results.

[0030] When the corresponding elements are of different types or the comparison content is different, the corresponding position is taken as the branch point; when the corresponding elements are of the same type and the comparison content is the same, the corresponding element is written into the common trajectory node sequence and the next position is read.

[0031] When multiple folded trajectory node sequences are all identical up to the termination element, the position after the termination element is taken as the branch point, and the termination element is not written into the shared trajectory node sequence.

[0032] As a further aspect of the present invention: the process of establishing the diagnostic atlas is as follows:

[0033] Read the sequence of common trajectory nodes and the location of the bifurcation point and the sequence of each subsequent folded trajectory node. Expand the fold mark into event nodes arranged in sequence according to the local event number. Establish a back edge from the current event node to the previous event node based on the local event number when it appeared before. Replace the fold mark with the expanded event node.

[0034] Establish access request nodes that record the identity of the accessing subject, the resource identity of the accessed object, and the access operation type. Connect the trajectory nodes and event nodes according to the order of the common trajectory node sequence. Use the trajectory node or event node at the end of the common trajectory node sequence as the diagnostic convergence point. When the common trajectory node sequence is empty, use the access request node as the diagnostic convergence point.

[0035] Starting from the diagnostic convergence point, connect the trajectory nodes and event nodes according to the location of the bifurcation point and the subsequent sequence of folded trajectory nodes. At the end of each sequence of folded trajectory nodes, establish a result node that records the security policy execution component identifier and the policy evaluation result. When the location of the bifurcation point and the subsequent sequence of folded trajectory nodes are empty, connect the result node to the diagnostic convergence point.

[0036] Combine access request nodes, trajectory nodes, event nodes, return edges, diagnostic convergence points, and result nodes to form a diagnostic graph.

[0037] As a further aspect of the present invention, the process for obtaining the network security threat type is as follows:

[0038] Obtain historical access requests, historical rule assessment events, historical policy assessment results, and verified network security threat types, and establish a historical diagnostic map;

[0039] Read the standard strategy elements, value segments, branch connections, rule judgment results, and rule processing actions of the rule decision graph in the historical diagnostic map according to the arrangement order of the standard strategy elements, and arrange the read content in order to form the rule status;

[0040] The event node is read according to the local event number, and the rule status, rule matching result and node transition type are arranged in order to form the event status; when the event node records the local event number when it last appeared, the event status of the corresponding previous event node is written into the current event status.

[0041] Access requests and event statuses are sequentially transmitted to the diagnostic convergence point along the common trajectory node sequence. Security policy execution component identifiers, policy evaluation results, and event statuses are transmitted in reverse to the diagnostic convergence point along the trajectory node sequence corresponding to each security policy execution component. The contents received by the diagnostic convergence point are arranged according to the security policy execution component identifiers to form historical diagnostic statuses.

[0042] The historical diagnostic status is used as training input, and the verified network security threat types are used as training labels to train the network security threat diagnosis model; the diagnostic map corresponding to the current access request is input into the network security threat diagnosis model to obtain the network security threat type.

[0043] The beneficial effects of this invention compared to the prior art are as follows:

[0044] This invention analyzes the evaluation process of different security policy execution components according to the actual judgment content of the rules, reducing the interference of rule names, condition syntax, organization methods, and repeated entry counts on the comparison results. It also distinguishes the substantial differences corresponding to rule sources, rule versions, and changes in judgment content. For policy rules that are repeatedly entered or cyclically invoked, the order of entry, matching status, transfer methods, and correlations are fully preserved, avoiding misalignment of subsequent evaluation content caused by changes in trajectory length. The resulting diagnostic information simultaneously reflects the common evaluation process of multiple security policy execution components, their respective handling processes after differences occur, and the corresponding policy evaluation results. This establishes the identification of network security threat types on a continuous policy evolution relationship, improving the consistency and traceability of cross-component threat diagnosis, and providing a complete basis for policy configuration verification, abnormal access analysis, and policy difference source location. Attached Figure Description

[0045] The invention will now be further described with reference to the accompanying drawings.

[0046] Figure 1 This is a flowchart illustrating the intelligent network security threat diagnosis method for zero-trust networks according to the present invention.

[0047] Figure 2 This is a schematic diagram of the process for establishing a diagnostic atlas according to the present invention. Detailed Implementation

[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0049] Please see Figures 1-2As shown, this invention is an intelligent diagnostic method for network security threats in zero-trust networks, comprising the following steps:

[0050] S1. Obtain access requests and collect rule evaluation events and policy evaluation results generated when multiple security policy execution components process access requests;

[0051] In a preferred embodiment of the present invention, the process of collecting rule evaluation events and strategy evaluation results is as follows:

[0052] The access point receives access requests containing the access subject's identity, the accessed resource's identity, and the access operation type. It then reads the identifiers of the security policy enforcement components involved in this access control process and sends the access requests to the corresponding security policy enforcement components. Each security policy enforcement component is an executable program or network device that reads policy rules and provides a policy evaluation result for the access request. Each security policy enforcement component processes the access request and includes the records generated during processing in the current access request.

[0053] When the security policy execution component begins processing, it sets the entry order to 1. A policy rule is a rule record in a policy package that contains rule condition expressions and rule processing actions. Entering a policy rule is considered an entry when the current execution position changes from the evaluation start point or another policy rule to the start point of a policy rule or a saved continuation position. Each entry creates a new rule evaluation event, and the same rule evaluation event is created again upon re-entry into the same policy rule. After creation, the current entry order is written, and the entry order is incremented by 1.

[0054] The system reads the security policy execution component identifier from its configuration data, the policy package identifier from the current policy package, and the original policy rule identifier, rule version, and rule condition expression from the current policy rule. After executing the current policy rule, the condition check result is written as match or no match, and the actual rule processing action selected in this execution is written to the same rule evaluation event. The rule matching result and rule processing action are written after the current policy rule is executed; therefore, each rule evaluation event corresponds to a complete rule entry and subsequent execution process.

[0055] The first rule evaluation event corresponds to the first policy rule entered in this evaluation, and the node transition type is recorded as "Evaluation Start". When subsequent policy rules are entered, the next execution position and transition reason saved at the end position of the previous policy rule are read. When the previous policy rule enters the current policy rule according to a conditional branch, it is recorded as a conditional transition; when the previous policy rule is paused and the called rule is entered, it is recorded as a rule call; when the called rule ends and the execution position of the previous policy rule is resumed, it is recorded as a rule return; when entering the next policy rule according to the policy package order, it is recorded as a sequential transition. The node transition type is written to the current rule evaluation event.

[0056] When the security policy enforcement component stops entering subsequent policy rules and outputs the final processed value, the access request is considered complete. The actual output value (allow, deny, or continue verification) is recorded as the policy evaluation result and saved along with the security policy enforcement component's identifier. For example, if employee A requests to download drawing 01, security policy enforcement component 01 first enters the identity verification rule, forming a rule evaluation event with an entry order of 1 and a node transition type of "evaluation start". After the identity verification rule is matched, the terminal check rule is invoked, forming a rule evaluation event with an entry order of 2 and a node transition type of "rule invocation". After the terminal check is completed, "allow" is output, and security policy enforcement component 01 and the policy evaluation result "allow" are recorded. Other security policy enforcement components output rule evaluation events and policy evaluation results in the same way.

[0057] S2. Generate rule location identifiers and rule decision maps based on rule evaluation events, write the corresponding rule evaluation events, and form a strategy evaluation trajectory in the order of occurrence.

[0058] In a specific embodiment of the present invention, the process of forming a strategy evaluation trajectory is as follows:

[0059] The policy management terminal is a management device that stores the policy packages and rule expressions corresponding to each security policy execution component. Before a policy package is put into use, policy configuration personnel register the security policy execution component identifier, original attribute name, original attribute value, original comparison operator, original rule processing action, and standard content with consistent meaning item by item. The security policy execution component identifier in the rule evaluation event is read, the corresponding registered content is selected, and the attribute name, attribute value, and comparison operator in the rule condition expression are replaced sequentially, along with the rule processing action. During the replacement process, the original order of the conditions and the AND, OR, and NOT relationships are maintained. The standard policy element is a replaced condition or action. The condition includes the attribute category, standard attribute name, standard comparison operator, and standard attribute value; the action includes the standard rule processing action.

[0060] All rule evaluation events corresponding to the same access request are aggregated, and the critical values ​​in each numerical condition are extracted according to the standard attribute name. The condition boundary is the value that changes the condition judgment result when the attribute value passes the critical value. Condition boundaries with the same standard attribute name are arranged from smallest to largest, and the complete value range of the attribute is divided into non-overlapping value segments according to whether the comparison operator includes the condition boundary. When discrete attributes cannot be divided according to continuous numerical values, each existing standard attribute value forms a value segment, and the remaining standard attribute values ​​form the residual value segment.

[0061] Attribute categories are determined by the source of the attribute values. Access subject attributes are derived from the access subject's identity record, including identity identifier, organization, role, and authentication status. Access object attributes are derived from resource records, including resource identifier, resource type, organization, and security level. Access operation attributes are derived from access requests, including read, download, modify, and delete. Environment attributes are derived from the terminal status, network status, and access time at the time of access, including terminal registration status, terminal risk status, network area, and access period. Evaluation context attributes are generated during this policy evaluation process and are used by subsequent policy rules, including the rule judgment result of the previous policy rule, secondary verification status, and verification round.

[0062] Standard attribute names are arranged according to the following categories: access subject attribute, access object attribute, access operation attribute, environment attribute, and evaluation context attribute. Within the same attribute category, they are arranged in alphabetical order. The decision position is determined by reading a standard attribute name and selecting a value segment based on its value; each value segment forms a branch. Subsequent positions are either the next decision position connected to the branch or the end of the branch. Decision positions are connected in the order they are arranged. The matching status of the rule condition expression is calculated based on the value segment corresponding to each branch. The rule decision result and corresponding rule processing action are recorded at the end of each branch. The decision positions, branches, subsequent positions, and branch ends together form the rule decision graph.

[0063] The rule decision graph is examined from the end of each branch backwards. If two decision positions correspond to the same standard attribute name and value range, and each branch connects to the same subsequent position, the connection pointing to one decision position is changed to point to the other decision position, and the lost decision position is deleted. If all branches of a decision position connect to the same subsequent position, the connection pointing to that decision position is directly changed to point to that subsequent position, and the decision position is deleted. The process is repeated after each merge or deletion, stopping when a complete check shows no changes.

[0064] The rule location identifier consists of three items arranged sequentially: policy package identifier, original policy rule identifier, and rule version. The corresponding rule evaluation event is located based on the security policy execution component identifier and the above three items. The rule location identifier and rule decision graph are then written into the rule evaluation event. Rule evaluation events of the same security policy execution component are arranged in ascending order of entry, with each rule evaluation event forming a trajectory node. All the arranged trajectory nodes form the policy evaluation trajectory.

[0065] S3. Determine the continuous trajectory interval based on the recurring rule location markers, replace the continuous trajectory interval with folding markers, and obtain the folded trajectory node sequence.

[0066] In a specific embodiment of the present invention, the process of obtaining the folded trajectory node sequence is as follows:

[0067] The first trajectory node in the strategy evaluation trajectory is designated as position 1, and subsequent trajectory nodes are numbered sequentially according to their arrangement. The corresponding trajectory nodes are located according to the rule-based positioning identifier, and the positions of the same rule-based positioning identifier are arranged from smallest to largest, forming a record of the positions of that rule-based positioning identifier. Two adjacent positions are connected, with the former position as the start point and the latter position as the end point. The start point, end point, and all trajectory nodes between them constitute the connection range. If the rule-based positioning identifier appears only once, no connection range is formed.

[0068] The connection range is defined by a start point and an end point. If two connection ranges share at least one trajectory node, the location ranges are considered to overlap. During merging, the start point with the smaller location number from the two connection ranges is selected as the new start point, and the end point with the larger location number is selected as the new end point. All trajectory nodes between the new start point and the new end point form a new connection range. After each merge, all connection ranges are re-examined until no two connection ranges share any trajectory nodes. At this point, all trajectory nodes continuously arranged from the start point to the end point within each connection range form a continuous trajectory interval. For example, if the same rule-based positioning identifier appears at positions 1, 3, and 5 respectively, two connection ranges are first formed: one from position 1 to position 3 and the other from position 3 to position 5. These are then merged into a continuous trajectory interval from position 1 to position 5.

[0069] Each continuous trajectory interval is processed separately, and the local numbering is only used within the current continuous trajectory interval. Local event numbers are assigned consecutively starting from 1, according to the order in which the trajectory nodes are arranged from front to back. Then, local rule numbers are assigned starting from 1, according to the order in which the rule positioning identifier first appears within the current continuous trajectory interval. When the same rule positioning identifier appears multiple times within the current continuous trajectory interval, the same local rule number is used for each occurrence; for different continuous trajectory intervals, local event numbers and local rule numbers are reassigned starting from 1.

[0070] When a rule location identifier first appears, the local event number, local rule number, rule location identifier, rule decision graph, rule matching result, and node transition type of the trajectory node are recorded. When a rule location identifier appears again, the local event number, local rule number, local event number of the previous occurrence of the same rule location identifier, rule matching result, and node transition type of the current trajectory node are recorded. The local event number of the previous occurrence is the local event number corresponding to the nearest trajectory node with the same rule location identifier.

[0071] The records formed by each trajectory node within a continuous trajectory interval are arranged in ascending order of local event number to form a folded marker. A folded marker is an ordered set of records corresponding to a continuous trajectory interval. When a rule positioning identifier first appears, the complete rule positioning identifier and rule decision map are saved. When it appears again, the local rule number corresponds to the first record, and the order of recurrence is recorded using the local event number from the previous occurrence.

[0072] The continuous trajectory intervals are arranged from largest to smallest starting position. Each time, all trajectory nodes within the current continuous trajectory interval are deleted, and a corresponding folding marker is written at the original starting position. After all replacements are completed from back to front, trajectory nodes that have not entered the continuous trajectory interval retain their original positions. The folding markers and remaining trajectory nodes are arranged according to the original strategy's evaluation of their order in the trajectory, forming a folded sequence of trajectory nodes.

[0073] S4. Based on the rule-based judgment graph, compare multiple folded trajectory node sequences, merge identical content to obtain a common trajectory node sequence, and determine the bifurcation point based on the first different content.

[0074] In a specific embodiment of the present invention, the process of determining the bifurcation point is as follows:

[0075] Read the collapsed trajectory node sequences corresponding to multiple security policy execution components, and add a termination element to the end of each collapsed trajectory node sequence. The termination element is a record distinct from the trajectory nodes and collapse markers, recording only the policy evaluation results generated by the corresponding security policy execution component. The first element of each collapsed trajectory node sequence is used as the starting position of a common prefix, denoted as position 1. Corresponding elements are elements with the same position number in multiple collapsed trajectory node sequences. The prefix is ​​the sequence portion that continuously contains the same corresponding elements starting from position 1.

[0076] When all corresponding elements are trajectory nodes, the rule decision graphs are compared first. Standard strategy elements are read according to the order of decision positions, and branches are read according to the order of value segments. The standard strategy elements, value segments, subsequent positions of branch connections, rule decision results, and rule processing actions are compared item by item. If all of the above are the same, the comparison result of the rule decision graphs is the same. Then, the rule matching results and node transition types of each trajectory node are compared. If all three comparison items are the same, the comparison result of the trajectory nodes is the same.

[0077] When all corresponding elements are folded markers, first compare the number of records contained in each folded marker, then read each record in ascending order of local event number. If the number of records or the order of records differs, the comparison results for the folded markers will be different. If the number of records and the order of records are the same, compare the local rule number, the local event number of the previous occurrence, the rule matching result, and the node transition type for each record. If a record contains a rule decision graph, compare it according to the comparison method for rule decision graphs in trajectory nodes. If a record does not contain the local event number of the previous occurrence or a rule decision graph, the corresponding records in other folded markers should also not contain the same content. If the comparison content of all records is the same, the comparison results for the folded markers will be the same.

[0078] When all corresponding elements are termination elements, the strategy evaluation results of each termination element are directly compared. If a corresponding element contains a trajectory node, a fold marker, or a termination element simultaneously, the corresponding elements are considered to be of different types. If the corresponding elements are of different types, or if any comparison content of corresponding elements of the same type is different, the current corresponding position is determined as a bifurcation point. A bifurcation point is the position where multiple folded trajectory node sequences first exhibit different content starting from the same prefix starting position.

[0079] When the types and comparison contents of corresponding elements are the same, copy the comparison contents of one of the corresponding elements, write it into the shared trajectory node sequence, and read the corresponding element at the next position. The shared trajectory node sequence is a sequence of consecutive identical trajectory nodes and fold markers before the fork point, formed in their original position order. It does not record the differences between security policy execution components that were not compared.

[0080] If multiple collapsed trajectory node sequences do not contain different content before reaching the termination element, and the policy evaluation results recorded by each termination element are the same, the termination element is not written into the common trajectory node sequence. Instead, the position after the termination element is determined as the branch point. The final output includes the common trajectory node sequence, the branch point, and the collapsed trajectory node sequence of each security policy execution component starting from the branch point.

[0081] S5. Based on the sequence of common trajectory nodes and the location of the bifurcation point and the subsequent sequence of folded trajectory nodes, combined with the access request and policy evaluation results, establish a diagnostic map.

[0082] In another preferred embodiment of the present invention, the process of establishing a diagnostic atlas is as follows:

[0083] Read the shared trajectory node sequence and the collapsed trajectory node sequence for each security policy execution component, starting from the bifurcation point. Examine each element in the sequence; the trajectory nodes retain their original content, and the collapsed markers are expanded in ascending order of the local event numbers recorded within them. Each record in the collapsed markers forms an event node. An event node represents the location of a rule entry process within the diagnostic graph, containing the local event number, local rule number, rule location identifier, rule decision graph, rule matching result, and node transition type.

[0084] When expanding the collapse marker, first read the record where each local rule number first appears, and establish a correspondence between the local rule number, rule location identifier, and rule decision graph. For records that appear again, do not repeatedly save the rule location identifier and rule decision graph; instead, read them from the correspondence according to the local rule number and write them to the event node. If a record contains the local event number from its previous occurrence, find the previous event node with that local event number and establish a back edge from the current event node to the previous event node. The back edge is a directed connection representing the recurrence of the same rule location identifier; its starting point is the current event node, and its ending point is the previous event node.

[0085] Replace the original fold marker with the expanded event node. If a trajectory node or event node exists before the fold marker, connect the preceding node to the event node with the smallest local event number; connect the event nodes inside the fold marker sequentially according to their local event numbers; if a trajectory node or event node exists after the fold marker, connect the event node with the largest local event number to the following node. The above connections represent the order of occurrence in the trajectory evaluated by the original strategy, and the back edges are retained as separate connections.

[0086] An access request node is established. This node is the starting point in the diagnostic graph, recording the source and destination of the current access, and recording the identity of the accessing subject, the resource identifier of the accessed object, and the access operation type. When the shared trajectory node sequence is not empty, the access request node is connected to the first trajectory node or the first event node in the shared trajectory node sequence. Subsequent trajectory nodes and event nodes are then connected according to the order of the shared trajectory node sequence, with the last trajectory node or event node designated as the diagnostic convergence point. The diagnostic convergence point is the location where the shared trajectory ends and the corresponding trajectories of each security policy execution component begin, respectively. When the shared trajectory node sequence is empty, the access request node is designated as the diagnostic convergence point.

[0087] For each security policy execution component, the location of the fork point and the subsequent sequence of collapsed trajectory nodes are read. The terminating element at the end of the sequence is removed, and the remaining trajectory nodes and the expanded event nodes are connected in the original order. The first node is then connected to the diagnostic convergence point. Nodes corresponding to different security policy execution components are connected separately and are not merged after the diagnostic convergence point.

[0088] The security policy execution component identifier is read according to the correspondence between the collapsed trajectory node sequence and the security policy execution component. The policy evaluation result is read from the termination element, and a result node recording both items is created. The end node of the sequence corresponding to the current security policy execution component is connected to the result node. When the sequence is empty after removing the termination element, the result node is directly connected to the diagnostic convergence point. The access request node, trajectory node, event node, connection indicating the order of occurrence, back edge, diagnostic convergence point, and result node together form the diagnostic graph.

[0089] S6. Obtain the completed network security threat diagnosis model, input the diagnosis map into the network security threat diagnosis model, and obtain the network security threat types.

[0090] In a preferred embodiment of the present invention, the process of obtaining network security threat types is as follows:

[0091] The system retrieves historical access requests, historical rule evaluation events, and historical policy evaluation results saved during multiple historical access processes. Security management personnel then review the cybersecurity threat type corresponding to each historical access process. The aforementioned rule standardization, trajectory folding, trajectory comparison, and diagnostic map creation processes are performed on each historical access process to form a historical diagnostic map. Each historical diagnostic map corresponds to a reviewed cybersecurity threat type.

[0092] A standard content encoding table is established, assigning codes to standard strategy elements, value segments, rule judgment results, rule processing actions, rule matching results, and node transition types. Following the order of the standard strategy elements in the rule judgment graph, the standard strategy elements, corresponding value segments, subsequent positions of branch connections, rule judgment results, and rule processing actions are read sequentially and converted into codes. These codes are then input into the rule encoding layer, which uses gated loop units to read the codes item by item, using the hidden vector formed after the last read as the rule state. The rule state represents the conditional content, branch structure, and processing actions included in a strategy rule.

[0093] Event nodes are read in ascending order of local event number. The rule status, rule matching result code, and node transition type code corresponding to each event node are sequentially input into the event coding layer to form the event status. When an event node records the local event number of its previous occurrence, the event status of the corresponding previous event node is read, and the previous event status, the current rule status, rule matching result code, and node transition type code are input together into the event coding layer. When ordinary trajectory nodes do not contain local event numbers, they are read according to the order of their arrangement in the diagnostic atlas, and the same content is used to form the event status.

[0094] The access subject's identity, the accessed object's resource identity, and the access operation type are converted into access request codes. Following the shared trajectory node sequence, the access request codes and event states are sequentially input from the access request node to the diagnostic convergence point, forming a shared trajectory state through the forward propagation layer. For each security policy execution component, starting from the result node, the policy evaluation result code, security policy execution component identifier code, and event states are read in the reverse order of the policy evaluation direction, forming the corresponding component trajectory state through the reverse propagation layer.

[0095] The trajectory states of each component are arranged in alphabetical order according to the identifier of the security policy execution component, with the common trajectory state placed first, followed by the trajectory states of each component in sequence, forming the historical diagnostic state. The historical diagnostic state is an ordered sequence of states representing the common evaluation process of the same access request, the subsequent evaluation process of each security policy execution component, and the policy evaluation results.

[0096] The cybersecurity threat diagnostic model is structured sequentially as follows: content encoding layer, rule encoding layer, event encoding layer, forward propagation layer, backward propagation layer, diagnostic status reading layer, and classification output layer. The content encoding layer output connects to the rule encoding layer and the event encoding layer. The rule status output from the rule encoding layer connects to the event encoding layer. The event encoding layer output connects to both the forward and backward propagation layers. The outputs from the forward and backward propagation layers connect to the diagnostic status reading layer. The diagnostic status reading layer output connects to the classification output layer. The number of outputs from the classification output layer equals the number of verified cybersecurity threat types.

[0097] Historical diagnostic maps were divided into training and validation data in an 8:2 ratio. The content encoding dimension was set to 64, and the hidden state dimension of the rule encoding layer, event encoding layer, forward propagation layer, backward propagation layer, and diagnostic state reading layer was set to 128. 32 historical diagnostic maps were read per training iteration, with an initial learning rate of 0.001. Historical diagnostic states were used as training input, and the corresponding cybersecurity threat types were encoded as training labels. Cross-entropy was used to determine the difference between the classification output and the training labels, and adaptive moment estimation was used to update the parameters of each layer. Validation data was read after each training iteration. Training stopped when the validation difference did not decrease after 10 consecutive iterations, and the model parameters at the lowest validation difference were saved.

[0098] When processing the current access request, the current diagnostic map is converted into the current diagnostic state according to the same encoding table, node reading order, and state propagation direction as historical data. The current diagnostic state is then input into the trained cybersecurity threat diagnostic model, and the output position with the largest value in the classification output layer is read. The cybersecurity threat type corresponding to that output position is taken as the diagnostic result.

[0099] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the present invention should still fall within the scope of the present invention.

Claims

1. A network security threat intelligent diagnosis method for a zero trust network, characterized in that, The method comprises the following steps: S1, acquiring an access request, collecting rule evaluation events and policy evaluation results generated when a plurality of security policy execution components process the access request; S2, generating rule positioning identifiers and rule decision graphs according to the rule evaluation events, writing the rule evaluation events, and forming a policy evaluation track according to the occurrence order; S3, determining a continuous track interval according to the rule positioning identifiers that appear repeatedly, replacing the continuous track interval with a folding mark to obtain a folded track node sequence; S4, comparing a plurality of folded track node sequences according to the rule decision graphs, merging the same content to obtain a common track node sequence, and determining a branch point according to the first different content; S5, establishing a diagnosis graph according to the common track node sequence, the location of the branch point and the folded track node sequence after the branch point, combining the access request and the policy evaluation results; S6, obtaining a network security threat diagnosis model trained, inputting the diagnosis graph into the network security threat diagnosis model, and obtaining a network security threat type.

2. The network security threat intelligent diagnosis method for a zero trust network according to claim 1, characterized in that, The process of collecting rule evaluation events and policy evaluation results is: sending the access request to a plurality of security policy execution components; when the security policy execution component enters a policy rule, recording the security policy execution component identifier, the entry order, the policy package identifier, the original policy rule identifier, the rule version, the rule condition expression, the rule processing action, the rule matching result and the node transfer type, forming a rule evaluation event, and recording the node transfer type of the first rule evaluation event as the start of evaluation, and recording the node transfer type of the subsequent rule evaluation event according to the way the previous policy rule enters the current policy rule; when the security policy execution component completes the access request processing, recording the security policy execution component identifier and the policy evaluation result.

3. The network security threat intelligence diagnosis method for a zero trust network according to claim 2, characterized in that, The process of forming a policy evaluation track is: obtaining the correspondence between the attribute name, attribute value, comparison operator and rule processing action used by different security policy execution components from the policy management end, converting the rule condition expression and rule processing action into standard policy elements; collecting the condition boundaries in the rule condition expression corresponding to the same access request, dividing the value section of the standard policy element according to the condition boundary, establishing a rule decision graph in the order of access subject attribute, access object attribute, access operation attribute, environment attribute and evaluation context attribute, and the branches in the rule decision graph correspond to the value section, and the end of the branch records the rule decision result and the rule processing action; repeatedly merging the decision positions of the same standard policy elements and the branches connected to the same subsequent position, and deleting the decision positions connected to the same subsequent position, until there is no decision position that can be continuously merged or deleted; composing the rule positioning identifier with the policy package identifier, the original policy rule identifier and the rule version, writing the rule positioning identifier and the rule decision graph into the corresponding rule evaluation event, arranging the rule evaluation events of the same security policy execution component according to the entry order, and forming a policy evaluation track.

4. The network security threat intelligent diagnosis method for a zero trust network according to claim 3, characterized in that, The process of obtaining the folded track node sequence is: Record the location of each rule location identifier in the policy evaluation trajectory, connect two adjacent locations of the same rule location identifier, and use the two locations and the trajectory range between them as the connection range; Repeatedly merge the overlapping connection ranges until no two connection ranges overlap, and treat the trajectory nodes between the start and end points of each connection range as a continuous trajectory interval; Local event numbers are assigned according to the order of the trajectory nodes, and local rule numbers are assigned according to the order of the first appearance of the rule positioning identifier. When the rule positioning identifier appears for the first time, the local event number, local rule number, rule positioning identifier, rule decision graph, rule matching result, and node transfer type are recorded. When the rule positioning identifier appears again, the current local event number, local rule number, local event number when it appeared last time, rule matching result, and node transfer type are recorded. The recorded content is arranged according to the local event number to form a fold mark. The continuous trajectory interval is replaced with the fold mark from back to front according to the starting point of the continuous trajectory interval to obtain the folded trajectory node sequence.

5. The cyber security threat intelligence diagnosis method for a zero trust network according to claim 4, characterized in that, The process of determining the bifurcation point is as follows: Add a termination element to the end of each folded trajectory node sequence to record the policy evaluation result, and read the corresponding elements in multiple folded trajectory node sequences sequentially from the starting position of the same prefix; When all corresponding elements are trajectory nodes, compare the rule decision graph, rule matching results, and node transition types; when all corresponding elements are fold markers, compare the number of records in the fold markers, record order, local rule number, local event number when it last appeared, rule decision graph, rule matching results, and node transition types; when all corresponding elements are termination elements, compare the strategy evaluation results. When the corresponding elements are of different types or the comparison content is different, the corresponding position is taken as the branch point; when the corresponding elements are of the same type and the comparison content is the same, the corresponding element is written into the common trajectory node sequence and the next position is read. When multiple folded trajectory node sequences are all identical up to the termination element, the position after the termination element is taken as the branch point, and the termination element is not written into the shared trajectory node sequence.

6. The cyber security threat intelligence diagnosis method for a zero trust network according to claim 5, characterized in that, The process of establishing a diagnostic atlas is as follows: Read the sequence of common trajectory nodes and the location of the bifurcation point and the sequence of each subsequent folded trajectory node. Expand the fold mark into event nodes arranged in sequence according to the local event number. Establish a back edge from the current event node to the previous event node based on the local event number when it appeared before. Replace the fold mark with the expanded event node. Establish access request nodes that record the identity of the accessing subject, the resource identity of the accessed object, and the access operation type. Connect the trajectory nodes and event nodes according to the order of the common trajectory node sequence. Use the trajectory node or event node at the end of the common trajectory node sequence as the diagnostic convergence point. When the common trajectory node sequence is empty, use the access request node as the diagnostic convergence point. Starting from the diagnostic convergence point, connect the trajectory nodes and event nodes according to the location of the bifurcation point and the subsequent sequence of folded trajectory nodes. At the end of each sequence of folded trajectory nodes, establish a result node that records the security policy execution component identifier and the policy evaluation result. When the location of the bifurcation point and the subsequent sequence of folded trajectory nodes are empty, connect the result node to the diagnostic convergence point. Combine access request nodes, trajectory nodes, event nodes, return edges, diagnostic convergence points, and result nodes to form a diagnostic graph.

7. The cyber security threat intelligence diagnosis method for a zero trust network according to claim 6, characterized in that, The process of obtaining the type of cybersecurity threat is as follows: Obtain historical access requests, historical rule assessment events, historical policy assessment results, and verified network security threat types, and establish a historical diagnostic map; Read the standard strategy elements, value segments, branch connections, rule judgment results, and rule processing actions of the rule decision graph in the historical diagnostic map according to the arrangement order of the standard strategy elements, and arrange the read content in order to form the rule status; The event node is read according to the local event number, and the rule status, rule matching result and node transition type are arranged in order to form the event status; when the event node records the local event number when it last appeared, the event status of the corresponding previous event node is written into the current event status. Access requests and event statuses are sequentially transmitted to the diagnostic convergence point along the common trajectory node sequence. Security policy execution component identifiers, policy evaluation results, and event statuses are transmitted in reverse to the diagnostic convergence point along the trajectory node sequence corresponding to each security policy execution component. The contents received by the diagnostic convergence point are arranged according to the security policy execution component identifiers to form historical diagnostic statuses. The historical diagnostic status is used as training input, and the verified network security threat types are used as training labels to train the network security threat diagnosis model; the diagnostic map corresponding to the current access request is input into the network security threat diagnosis model to obtain the network security threat type.