A security verification node determination method, apparatus, device and medium

By dividing the node cluster into equivalent node groups and determining the target verification node, the efficiency and comprehensiveness issues of security policy verification in large-scale network environments are solved, achieving efficient security policy coverage.

CN122845302BActive Publication Date: 2026-11-24SHANGHAI SHIAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611340830.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-24
Estimated Expiration
2046-09-01

AI Technical Summary

Technical Problem

Existing technologies cannot balance verification efficiency and comprehensiveness when performing security policy verification, especially in large-scale network environments. They cannot reflect policy differences at the host level, leading to traffic being mistakenly allowed to pass and making it difficult to guarantee network security.

Method used

By statistically analyzing the security policy rules and network protocols of each initial node in the node cluster, equivalent node groups are divided, and a target number of verification nodes are determined in each equivalent node group. Simulated nodes are then constructed to represent the entire group for security policy verification.

Benefits of technology

It effectively reduces the construction scale of simulated nodes, ensures that the verification results are valid for the entire group of nodes, takes into account the comprehensiveness and efficiency of security policy verification, and avoids repeated testing and missed verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122845302B_ABST
    Figure CN122845302B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, device, and medium for determining security verification nodes. The method includes: statistically analyzing the security policy rules and network protocols of each initial node in a node cluster to obtain at least one category based on a classification dimension; the classification dimension may include, for example, network connection, security group, network affiliation range, and referenced network segment; dividing the initial nodes in the node cluster to obtain at least one equivalent node group, wherein the categories of each classification dimension are identical within the equivalent node group; and for each equivalent node group, determining a target number of verification nodes within the equivalent node group, wherein the verification nodes are used to construct simulated nodes for performing security policy verification. This invention can minimize the verification scale and improve efficiency while ensuring comprehensiveness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet technology, and in particular to a method, apparatus, device and medium for determining a security verification node. Background Technology

[0002] A security policy is a set of rules used to protect a network. To control access to and from the network, protect a specific network from attacks by "untrusted" networks, and allow legitimate communication between two networks, administrators can configure security policies in the system. Security policies verify the data flow of devices, allowing legitimate traffic that conforms to the policy and blocking illegal traffic, thus achieving access control and ensuring network security.

[0003] When performing security policy verification, such as firewall policy pre-deployment verification, real production environments typically contain hundreds or even thousands of nodes. Building a separate simulated verification node for each node would not only incur huge resource costs but also result in a large amount of repetitive testing for nodes with the same security attributes, leading to low verification efficiency. Therefore, multiple hosts with the same security attributes can be combined into a single merged node to reduce verification complexity.

[0004] Current practices typically treat the entire subnet as a single entity, constructing a unified subnet-level simulated node for all nodes within that subnet, which is then shared by all nodes. However, this method aggregates only based on Internet Protocol (IP) address segments, failing to reflect policy differences at the host level and lacking comprehensive test case coverage. This can lead to traffic that should be blocked by a certain policy being incorrectly allowed, compromising network security. Summary of the Invention

[0005] This invention provides a method, apparatus, device, and medium for determining security verification nodes, which can balance the comprehensiveness and efficiency of security policy verification.

[0006] According to one aspect of the present invention, an embodiment of the present invention provides a method for determining a security verification node, the method comprising:

[0007] By analyzing the security policy rules and network protocols of each initial node in the statistical node cluster, a category with at least one classification dimension is obtained;

[0008] The initial nodes in the node cluster are divided to obtain at least one equivalent node group, wherein the categories of each classification dimension in the equivalent node group are the same;

[0009] For each of the equivalent node groups, a target number of verification nodes are determined in the equivalent node group. The verification nodes are used to construct simulated nodes for security policy verification.

[0010] According to another aspect of the present invention, embodiments of the present invention also provide a security verification node determination device, the device comprising:

[0011] The dimension determination module is used to statistically analyze the security policy rules and network protocols of each initial node in the node cluster to obtain the category of at least one classification dimension.

[0012] An equivalence partitioning module is used to partition the initial nodes in the node cluster to obtain at least one equivalence node group, wherein the categories of each classification dimension in the equivalence node group are the same.

[0013] The verification node determination module is used to determine a target number of verification nodes for each of the equivalent node groups, wherein the verification nodes are used to construct simulated nodes for security policy verification.

[0014] According to another aspect of the present invention, embodiments of the present invention also provide a security verification node determination device, the security verification node determination device comprising:

[0015] At least one processor; and

[0016] A memory that is communicatively connected to at least one processor; wherein,

[0017] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the security verification node determination method of any embodiment of the present invention.

[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement the security verification node determination method of any embodiment of the present invention.

[0019] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the security verification node determination method according to any embodiment of the present invention.

[0020] The technical solution of this invention statistically analyzes the categories of initial nodes across various classification dimensions, grouping nodes with identical categories into the same equivalent node group. This ensures that all nodes within a group are logically equivalent in terms of policy hits. Consequently, only the target number of verification nodes needs to be determined within each equivalent node group to represent the entire group in simulated node construction. This reduces the initial number of nodes required to construct simulated nodes from the total number of nodes in the cluster to the target number, effectively decreasing the scale of simulated node construction. Furthermore, since any node within the same equivalent node group shares the same category across classification dimensions, the simulated nodes constructed by the verification nodes can completely and equivalently replace other unselected nodes within the group during policy verification. This ensures that, while reducing the number of verification nodes, the coverage of security policy verification is not compromised by node selection, and the verification results are valid for all initial nodes in the group, balancing the comprehensiveness and efficiency of security policy verification.

[0021] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a flowchart of a method for determining a security verification node according to an embodiment of the present invention;

[0024] Figure 2 This is a flowchart of another method for determining a security verification node according to an embodiment of the present invention;

[0025] Figure 3 This is a structural diagram of a security verification node determination device provided according to an embodiment of the present invention;

[0026] Figure 4 This is a structural diagram of a security verification node determination device provided in an embodiment of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. 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 should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] In the technical solutions of this invention, the acquisition, storage, and application of cluster security policy information and network setting information, etc., all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0030] Figure 1 This is a flowchart illustrating a method for determining a security verification node according to an embodiment of the present invention. This embodiment is applicable to extracting security verification nodes from a cluster performing security policy verification. The method can be executed by a security verification node determination device, which can be implemented in hardware and / or software. This security verification node determination device can be configured in a server.

[0031] See Figure 1 The method for determining the security verification node shown includes:

[0032] S101. Analyze the security policy rules and network protocols of each initial node in the statistical node cluster to obtain at least one category in the classification dimension.

[0033] In this context, the node cluster can be a set of nodes that require security policy verification. Security policy verification can refer to verification tests that confirm whether the actual execution effect of the security policy is consistent with the configuration of the security policy.

[0034] The initial node is a physical or virtual host deployed in the cluster. Security policy rules are the configuration rules for security policies that take effect on a node. For example, access control rules that take effect on a node can be defined as the security policy rules for that node. Network protocols are the transport layer or application layer protocol standards used by the nodes for communication. Classification dimensions are the dimensions used to categorize nodes.

[0035] In some embodiments, the classification dimensions include: network connectivity, security group, network affiliation range, and referenced network segment. The network connectivity classification dimension can refer to a dimension describing the node's network connectivity. The security group classification dimension can refer to a dimension based on the logical security group to which the node belongs. The network affiliation range classification dimension can refer to a classification dimension based on the network environment to which the node's IP address belongs. The referenced network segment classification dimension can refer to a dimension categorized according to the source or destination address network segment range referenced in the node's security policy rules.

[0036] In a real-world production environment, for ease of management, devices with consistent security policy rules are grouped into a single security group. Within the same security group, the security policy rules are identical; however, different security groups have different security policy rules. The devices within a security group are determined based on actual business needs. For example, in actual business operations, if a department needs to use a certain external chat software, that department can be set up as a security group, and the security policy rules corresponding to that security group will allow access to the external chat software.

[0037] Network protocols are also known as Internet protocols. Network protocols can include Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6).

[0038] Security policy rules reveal whether a node is an external asset. External assets refer to nodes located in external network zones that have access relationships with the internal network. Therefore, nodes can be categorized according to their network affiliation based on security policy rules. For example, they can be divided into external assets and non-external assets. Security policy rules also reveal the network segment referenced in a node's security policy rules. This network segment can refer to a Classless Inter-Domain Routing (CIDR) network segment. CIDR is a flexible and efficient IP address allocation and routing management technology. CIDR is used to improve IP address utilization and simplify network routing.

[0039] When verifying security policies, such as firewall policies and security group policies, real production environments typically contain a large number of IP addresses, i.e., initial nodes. To verify whether all rules are working as expected, it is necessary to construct all possible access paths that could trigger the rules, perform connectivity tests on each path, and compare the results with the expected rule values.

[0040] If an independent simulation node is built for each initial node and all links are enumerated, the scale of the links explodes quadratically with the increase in the number of initial nodes, resulting in a large workload and low efficiency.

[0041] Analysis revealed that many nodes in the node cluster share similarities in security policy configuration or network communication configuration. When verifying changes to firewall policies or security group policies, the nodes can be categorized, and representative nodes from each category can be selected as verification nodes. The process of "statistically analyzing the security policy rules and network protocols of each initial node in the node cluster to obtain at least one category dimension" addresses the issue of classifying nodes.

[0042] Based on security policy rules and network protocols, nodes in a node cluster can be classified according to dimensions such as network connection, security group, network affiliation, and referenced network segment. This is because security policy rules determine which traffic can be allowed and which needs to be blocked; network protocols determine whether corresponding traffic can be allowed or blocked.

[0043] The IP protocol version used by a node can be distinguished by the network connection dimension, namely IPv4 or IPv6. Because the addressing structure and policy syntax of different protocol stacks are fundamentally different, the effective logic of the same rule under the two protocols must be verified separately. Classification can avoid rule omissions caused by cross-protocol mixing tests.

[0044] Security groups are the primary logical boundary for policies to take effect in a cloud environment. Nodes in the same security group share inter-group access rules, and after classification, the interoperability of the entire group can be verified by the verification nodes within the group.

[0045] The network affiliation dimension distinguishes whether a node is located on an internal or external network. This is because firewalls and security group policies typically apply different default actions and rule priorities to internal and external network origins. Internal and external network nodes have fundamentally different policy matching paths and must be categorized separately to ensure complete verification coverage. In some embodiments, external asset nodes belonging to the network affiliation dimension are not in any security group. Initial nodes belonging to the network affiliation dimension are either part of a specific security group or not. Clearly, internal network nodes not belonging to any security group and external network nodes cannot be considered equivalent and need to be differentiated. Therefore, the network affiliation dimension is needed to classify the initial nodes.

[0046] The reference network segment dimension corresponds to the source and destination addresses in the security policy rules. Nodes referencing the same network segment are logically equivalent in rule hits. By combining these four dimensions, nodes in the cluster with the same policy effectiveness conditions can be grouped into the same category. This allows any verification node selected from each category for connectivity testing to cover the equivalent scenarios of all nodes in that category in rule verification. Thus, the quadratic end-to-end testing is compressed into a linear test of the number of categories. At the same time, it ensures that the expected results of each compressed link on untested nodes are consistent with those on verification nodes, ultimately achieving a balance between verification efficiency and policy coverage completeness.

[0047] Optionally, a node's IP address can be used as its identifier. The classification dimension can include: a single IP address. For example, if a single IP address itself belongs to a network scope, then the classification dimension can include: a single IP address.

[0048] S102. Divide the initial nodes in the node cluster to obtain at least one equivalent node group, wherein the categories of each classification dimension in the equivalent node group are the same.

[0049] In this context, an equivalent node group can be a set of nodes that have the same category across all classification dimensions.

[0050] For each initial node, determine its category across all classification dimensions. Group initial nodes that belong to the same category together as an equivalent node group. This results in multiple equivalent node groups.

[0051] In one specific embodiment, each security group contained in the cluster, as well as all the IP addresses bound to each security group, can be obtained; the IP addresses serve as identifiers for node classification.

[0052] Obtain each CIDR network segment referenced in the node's security policy rules to obtain multiple network segment categories;

[0053] Query each external asset to obtain a list of IP addresses for each external asset. External assets can include nodes corresponding to object storage and third-party services.

[0054] The IPv4 class (excluding the local loopback 127.0.0.0 / 8) and the IPv6 class (excluding ::1 / 128) are set as the two major classes for network connectivity. The IPv4 and IPv6 classes are used to cover all initial nodes.

[0055] For each initial node, iterate through each security group to determine the security group to which the initial node belongs, thus obtaining the security group category of the initial node; based on the network segment referenced in the security policy rules of the initial node, determine the target network segment category of the initial node in each network segment category; determine whether the initial node is an external asset, and determine whether the initial node's IP is IPv4 or IPv6, thereby obtaining the category of each initial node in each classification dimension, classifying each initial node to obtain the equivalent node group.

[0056] In an optional embodiment, the categories of each classification dimension are different among the equivalent node groups, and the categories of each classification dimension are the same within the same equivalent node group; there is no inclusion or intersection relationship between the equivalent node groups.

[0057] The number of equivalent node groups is determined by the number of possible combinations of categories across different classification dimensions. Each equivalent node group is independent of the others.

[0058] For example, if the security group category of initial node 1 is security group 1; the security group category of initial node 2 is security group 2; and the security group category of initial node 3 is both security group 1 and security group 2, then when generating equivalent node groups, initial node 1, initial node 2, and initial node 3 are three independent equivalent node groups. That is, initial node 1 belongs to the equivalent node group containing only security group 1, initial node 2 belongs to the equivalent node group containing only security group 2, and initial node 3 belongs to the equivalent node group containing both security group 1 and security group 2.

[0059] As can be seen, by limiting the categories of each classification dimension to be different among the equivalent node groups, and ensuring that all initial nodes within the same equivalent node group are completely identical in all classification dimensions, it is guaranteed that each initial node uniquely belongs to an equivalent node group and there is no overlap between groups. This strictly mutually exclusive grouping method ensures the clear uniqueness of the representative node selection, avoids duplicate testing or omission of initial nodes, and guarantees that each compressed test link can unambiguously represent all initial nodes in its equivalent node group. This significantly reduces the verification workload while maintaining the integrity of the security policy verification coverage and the accuracy of the judgment results.

[0060] In an optional embodiment, the step of partitioning the initial nodes in the node cluster to obtain at least one equivalent node group includes: parsing traffic logs to obtain nodes in the traffic logs; removing initial nodes other than those in the traffic logs from the node cluster; and partitioning the initial nodes in the filtered node cluster to obtain at least one equivalent node group.

[0061] Among them, the traffic log is a system log that records communication session information between nodes.

[0062] By utilizing actual communication records from traffic logs, initial nodes with active interactions in the real network environment are selected, while idle nodes with no traffic or no communication participation are removed. This step directly narrows down the range of nodes requiring classification and subsequent verification, avoiding the inclusion of nodes without actual communication behavior in the equivalent node group partitioning process, thus reducing invalid classification calculations and test link construction. This ensures that all resulting equivalent node groups are based on real traffic data, guaranteeing that nodes within each group have verifiable communication scenarios. This ensures that when selecting representative nodes for connectivity testing, all test links correspond to actual access relationships, preventing invalid verification due to the test target node itself having no traffic.

[0063] As can be seen, by first extracting active nodes that actually participate in communication from the traffic logs and then removing idle initial nodes with no traffic records, the subsequent division of equivalent node groups is based solely on the set of nodes with actual access links. This approach avoids including nodes without communication behavior in the groupings and prevents the construction of invalid scenarios without practical application for the test links selected as representative nodes. Thus, while ensuring that policy verification covers all active communication relationships, it further reduces the scale of nodes that need to be classified and tested, improving the overall execution efficiency of the verification process.

[0064] S103. For each of the equivalent node groups, a target number of verification nodes are determined in the equivalent node group, and the verification nodes are used to construct simulated nodes for security policy verification.

[0065] In this context, the verification node is the initial node selected from the equivalent node group. Verification nodes are used to construct mock nodes. A mock node is a virtual mapping entity generated by the verification node in the test environment. Mock nodes are used to perform connectivity tests without affecting the production environment. The target number refers to the specific number of verification nodes to be selected for each equivalent node group. The target number is determined by preset rules or configuration parameters.

[0066] Within each equivalence node group, since all nodes are completely identical in classification dimension, they are logically equivalent in policy hits, thus eliminating the need to select all nodes within the group as validation objects. A small number, or even a single, validation node is selected from each group according to the target quantity to represent all nodes in that group and construct simulated nodes for subsequent testing. Each equivalence node group only produces the target number of simulated nodes, thereby compressing a large number of nodes into a controllable number of simulated nodes. Furthermore, due to the equivalence of nodes within the group, these simulated nodes can completely replace the policy validation function of all nodes in their respective group, ensuring that the validation results are valid for the entire group.

[0067] The technical solution of this invention statistically analyzes the categories of initial nodes across various classification dimensions, grouping nodes with identical categories into the same equivalent node group. This ensures that all nodes within a group are logically equivalent in terms of policy hits. Consequently, only the target number of verification nodes needs to be determined within each equivalent node group to represent the entire group in simulated node construction. This reduces the initial number of nodes required to construct simulated nodes from the total number of nodes in the cluster to the target number, effectively decreasing the scale of simulated node construction. Furthermore, since any node within the same equivalent node group shares the same category across classification dimensions, the simulated nodes constructed by the verification nodes can completely and equivalently replace other unselected nodes within the group during policy verification. This ensures that, while reducing the number of verification nodes, the coverage of security policy verification is not compromised by node selection, and the verification results are valid for all initial nodes in the group, balancing the comprehensiveness and efficiency of security policy verification.

[0068] Figure 2 This is a flowchart illustrating a method for determining a security verification node according to an embodiment of the present invention. Based on the above embodiments, this embodiment further involves dividing the initial nodes in the node cluster to obtain at least one equivalent node group. The equivalent node group contains nodes with the same category across all classification dimensions. The method is defined as follows: generating a feature identifier for the initial node based on its category in each classification dimension; and identifying multiple initial nodes with identical feature identifiers as equivalent nodes within the node cluster, thus generating an equivalent node group.

[0069] It should be noted that for parts not described in detail in the embodiments of the present invention, please refer to the descriptions in other embodiments.

[0070] See Figure 2 The method for determining the security verification node shown includes:

[0071] S201. Analyze the security policy rules and network protocols of each initial node in the statistical node cluster to obtain at least one category in the classification dimension.

[0072] S202. Generate the feature identifier of the initial node according to the category to which the initial node belongs in each of the classification dimensions.

[0073] Among them, the feature identifier can be an identifier that represents the characteristics of the initial node.

[0074] Obtain the category to which the initial node belongs in each of the aforementioned classification dimensions, and generate feature identifiers.

[0075] In one specific embodiment, a code implementation for generating the feature identifier of the initial node is shown below:

[0076] Signature sig(IP x):

[0077] return ( SGs containing x, / / Security group set)

[0078] CIDR network segment set containing x, / / CIDR network segment set

[0079] routeKey(x), / / Route signature

[0080] externalAssets containing x)

[0081] The code above demonstrates the logic for generating the feature identifier of the initial node corresponding to IP x. Here, IP x represents the initial node with IP address x.

[0082] First, a function named sig is defined, which takes an IP address, such as IP x, as input and returns a tuple containing four elements as the feature identifier of the corresponding initial node for that IP.

[0083] The first element, SGs containing x, represents the set of all security groups containing IP x. This gives the security group category of IP x.

[0084] The second element, `Cidrs containing x`, represents the set of all CIDR network segments referenced in the security policy rules containing IP address `x`. CIDR is a classless inter-domain routing address block representation method, and this element returns the string of all network segments that can match the IP address `x`. In other words, it gives the referenced network segment category for IP address `x`.

[0085] The third element, routeKey(x), represents the route signature calculated for IP address x. The route signature is an identifier value generated by matching the destination address according to routing table rules, used to distinguish the forwarding behavior of this IP under different routing policies. In other words, it determines the network connection category of x.

[0086] The fourth element, `externalAssets containing x`, represents the set of external assets containing IP x. In other words, it determines the external asset category to which IP x belongs within the external asset set, thus obtaining the network affiliation range of IP x.

[0087] The four elements obtained are converted into a structured quadruple signature, which serves as the characteristic identifier of IP x.

[0088] In an optional embodiment, the network connection is a primary classification dimension, and the security group, network affiliation range, and referenced network segment are secondary classification dimensions under the primary classification dimension. Generating the feature identifier of the initial node based on its category in each of the classification dimensions includes: determining the network category of the initial node under the network connection classification dimension based on the initial node's configuration information; determining the category of each initial node under each network category in the secondary classification dimension; and determining that the initial node's category in the secondary classification dimension is empty when the initial node's configuration information indicates that the initial node is different from all categories in the secondary classification dimension.

[0089] The primary classification dimension is the initial classification criterion used for node partitioning. The category values ​​of the primary classification dimension primarily determine the coarse-grained grouping of nodes. The secondary classification dimension is the classification criterion used to further refine the partitioning of nodes after the primary classification dimension has been determined.

[0090] The initial node must belong to a category in a primary classification dimension. The initial node may not belong to a category in a secondary classification dimension. For example, in the network connectivity dimension, the IP protocol version used by the initial node must be either IPv4 or IPv6. However, in the security group dimension, the initial node may not be in any security group and may not belong to any category within that security group dimension.

[0091] Network connectivity is a primary classification dimension. It distinguishes the IP protocol version used by a node, i.e., IPv4 or IPv6. Security group is a secondary classification dimension, indicating the logical security group category to which the node belongs. Network affiliation is a secondary classification dimension, indicating whether the node belongs to an internal or external network. Referenced network segment is a secondary classification dimension, representing the set of source or destination network segments referenced in the node's security policy rules. An empty category indicates that the node does not have any matching categories for a given secondary classification dimension. Optionally, if the initial node does not have any matching categories for a given secondary classification dimension, no elements for generating feature identifiers will be generated under that classification dimension.

[0092] To obtain the configuration information of each initial node, first extract the IP address protocol field of the network interface to determine whether the address belongs to IPv4 or IPv6. The determination result is used as the network category of the node under the first-level classification dimension of network connections. Based on the network category, all initial nodes are divided into two independent network connection sets: an IPv4 node set and an IPv6 node set.

[0093] For each initial node in the network connection set, its security group data identifier is read one by one, and this identifier is used as the category of the second-level dimension of the security group. The node's IP address is read, and it is determined whether the node's IP is in the external asset IP list to determine the network affiliation category. The source address and destination address fields in the node's security policy rules are traversed to extract all referenced network segment strings, generating a set of referenced network segment categories. The judgment result of each second-level classification dimension is checked. If the security group identifier does not exist or the referenced network segment set is empty, the category value corresponding to the security group or referenced network segment classification dimension is set to an empty string. Based on the category value of the first-level classification dimension and the category values ​​of all second-level classification dimensions, a feature identifier string for the initial node is generated.

[0094] S203. In the node cluster, multiple initial nodes with the same feature identifier are identified as equivalent nodes, and an equivalent node group is generated.

[0095] Equivalent nodes are nodes with completely identical feature identifiers. All nodes in an equivalent node group are equivalent nodes.

[0096] Using the feature identifier as a unique matching key, all initial nodes in the node cluster are grouped and aggregated, and nodes with the same feature identifier are grouped into the same equivalent node group.

[0097] Optionally, one specific implementation is as follows: Traverse all initial nodes in the node cluster, using each node's characteristic identifier as the key, and search in the hash table. If the hash table does not contain a record corresponding to the characteristic identifier, create a new equivalent node group record and add the node to it. If the hash table already contains a record corresponding to the characteristic identifier, directly add the node to the existing equivalent node group. After traversal, each characteristic identifier corresponds to an equivalent node group, which contains all initial nodes with the same characteristic identifier. Output all equivalent node groups and their list of contained nodes, where any node within each equivalent node group is an equivalent node to another node.

[0098] Specifically, the code implementation for generating equivalent node groups is as follows:

[0099] partition(F):

[0100] classes = Map<Signature, EquivClass> ()

[0101] for x in Permanent Full Set / / (Merge of all IPv4 and all IPv6, excluding loopbacks):

[0102] classes[sig(x)].add(x)

[0103] return classes

[0104] First, a function named `partition` is defined, which takes one parameter F and returns a result that completely partitions the input set. The parameter F includes the categories for each classification dimension.

[0105] Inside the function, an empty mapping structure `classes` is first created. The key of this mapping is of type `Signature`, which is the characteristic identifier of the defined IP, and the value is of type `EquivClass`, which is used to store all IP addresses with the same characteristic identifier.

[0106] The function then iterates through all resident IP addresses in the universal set. The universal set is the union of all IPv4 addresses and all IPv6 addresses, excluding loopback addresses, such as 127.0.0.0 / 8 and ::1, which are used for local communication.

[0107] For each IP address x encountered, the function calculates its signature sig(x), and then uses this signature as the key to search for the corresponding set of equivalent node groups in the classes mapping. If the signature does not already exist in the mapping, a new empty equivalent node group is created; otherwise, the existing equivalent node group is retrieved. The current IP address x is then added to this equivalent node group.

[0108] After the traversal is complete, the function returns the classes map, which contains the groups of equivalent nodes.

[0109] S204. For each of the equivalent node groups, a target number of verification nodes are determined in the equivalent node group, and the verification nodes are used to construct simulated nodes for security policy verification.

[0110] In an optional embodiment, determining the target number of verification nodes in the equivalent node group includes: determining whether the category of the security group classification dimension corresponding to the equivalent node group is empty; if yes, determining one verification node in the equivalent node group; if no, determining multiple verification nodes in the equivalent node group, wherein the multiple verification nodes are used to construct inter-security group access test cases.

[0111] The number of verification nodes selected is determined by whether the equivalent node group belongs to a security group: nodes with an empty security group category are not involved in intra-security group communication logic, while nodes with a non-empty security group category need to verify intra-group communication rules.

[0112] One implementation involves reading the feature identifier of the current equivalence node group and parsing out the category of the security group classification dimension. Then, it is determined whether the category is an empty string.

[0113] If the security group category value is empty, an initial node is selected from the equivalent node group as the verification node. The selection method can be to take the first node in the node list within the equivalent node group.

[0114] If the security group category is not empty, at least two initial nodes are selected as verification nodes from the equivalent node group. Optionally, the selection method can be to sort by the hash value of the node identifier and take the first two nodes. The selected verification nodes are then output. Multiple verification nodes output when the security group category is not empty will be used to subsequently build inter-security group access test cases.

[0115] As can be seen, by determining whether the security group classification dimension of the equivalent node group is empty, the number of verification nodes can be determined differently, accurately matching the verification requirements in different scenarios. Equivalent node groups with empty security group categories do not involve intra-group communication logic; only one verification node is needed to represent the entire group in completing external policy verification, avoiding redundant selection and wasting simulated node resources. Equivalent node groups with non-empty security group categories select multiple verification nodes, enabling subsequently constructed simulated nodes to build bidirectional communication test cases between different members within the same security group, ensuring complete coverage of intra-group communication rules. While ensuring the comprehensiveness of security policy verification, the on-demand allocation of the number of nodes based on whether there is actual intra-group communication requirement avoids resource waste and ensures that no intra-group communication scenarios are missed in verification.

[0116] In an optional embodiment, determining the network category of the initial node under the classification dimension of the network connection based on the configuration information of the initial node includes: if the network connection field in the configuration information of the initial node is a field supporting all network protocols, determining the network category of the initial node as a first protocol category and a second protocol category, wherein the first protocol category corresponds to a first network protocol and the second protocol category corresponds to a second network protocol; generating a feature identifier of the initial node based on the category to which the initial node belongs in each of the classification dimensions includes: generating a first feature identifier and a second feature identifier for the initial node whose network category is the first protocol category and the second protocol category, wherein the first feature identifier corresponds to the first network protocol and the second feature identifier corresponds to the second network protocol; determining a target number of verification nodes in the equivalent node group includes: for the initial node whose network category is the first protocol category and the second protocol category, selecting one verification node from each of the equivalent node group of the first protocol category to which the initial node belongs and the equivalent node group of the second protocol category to which the initial node belongs.

[0117] The "All Network Protocol Support" field refers to a special field value that the initial node simultaneously supports all network protocol types. In one embodiment, the "All Network Protocol Support" field is the "any" field. The first network protocol can be IPv4. The second network protocol can be IPv6. The first protocol category is the classification result of the initial node into the IPv4 protocol category under the network connectivity classification dimension. The second protocol category is the classification result of the initial node into the IPv6 protocol category under the network connectivity classification dimension. The first feature identifier is an encoded string generated by concatenating the first protocol category and all secondary classification dimension categories. The second feature identifier is an encoded string generated by concatenating the second protocol category and all secondary classification dimension categories.

[0118] When the network connection field in the initial node configuration information is a field that supports all network protocols, the initial node actually has both IPv4 and IPv6 dual-stack communication capabilities. Therefore, it needs to be split into two independent network logical nodes, and feature identifiers corresponding to the first network protocol and the second network protocol are generated respectively, so that it can be classified into the equivalent node group of the first protocol category and the equivalent node group of the second protocol category at the same time.

[0119] Read the initial node's configuration information and extract the specific field values ​​of the network connection field. Determine if the field value equals the preset string for all supported network protocol fields. If it equals the preset string, determine that the initial node's network category is both the first protocol category and the second protocol category. When generating feature identifiers, generate two feature identifiers for this node: the first feature identifier is formed by concatenating the first protocol category with the node's category values ​​in the three secondary classification dimensions of security group, network affiliation range, and referenced network segment; the second feature identifier is formed by concatenating the second protocol category with the same three secondary classification dimension category values.

[0120] The node identifier of the initial node is recorded in the equivalent node group corresponding to the first feature identifier and the equivalent node group corresponding to the second feature identifier, so that the node belongs to two different equivalent node groups at the same time.

[0121] When determining the verification nodes, one verification node is selected from the equivalent node group of the first protocol category to which the initial node belongs; and one verification node is also selected from the equivalent node group of the second protocol category to which the initial node belongs. Optionally, the two selected verification nodes may be the same physical node.

[0122] As can be seen, by splitting the initial node whose network connection field is a field supporting all network protocols into two independent identities, namely the first protocol category and the second protocol category, and generating the first feature identifier and the second feature identifier respectively, the dual-stack node can belong to two different equivalent node groups at the same time. This ensures that both IPv4 and IPv6 protocols can independently obtain a verification node when selecting verification nodes in the future, and avoids the lack of policy verification for a certain protocol category due to a single affiliation.

[0123] The technical solution of this invention first generates feature identifiers based on the category of the initial node in each classification dimension, and then groups nodes according to the consistency of the feature identifiers. This transforms the comparison of multi-dimensional categories into the equality matching of a single feature identifier string, making the grouping operation more direct and reliable. As a fixed-format encoding, the feature identifier can carry complete category information for all classification dimensions, ensuring that only nodes with completely identical categories across all dimensions generate the same identifier, thus accurately satisfying the condition that all classification dimensions within an equivalent node group are identical. Grouping by feature identifiers avoids the tedious operation of comparing multi-dimensional fields for each node individually, simplifying the judgment logic of the grouping process. Furthermore, the generated feature identifiers can be stored independently and reused. When it is necessary to re-determine the equivalent node group later, it is not necessary to re-determine the categories of each dimension; grouping can be completed directly based on the stored feature identifiers, reducing computation time and improving efficiency.

[0124] In an optional embodiment, after determining the target number of verification nodes for each of the equivalent node groups, the method further includes: determining at least one port category based on each port referenced in the security policy rules; determining the membership relationship of each port in the port category for each port under the same protocol domain; grouping all ports with identical membership relationships into the same port group, with different membership relationships for ports in different port groups; and selecting a verification port from each port group for each port group, wherein the verification port is used to construct a simulated message for security policy verification, and the simulated message constructed by the verification port and the simulated node constructed by the verification node together constitute a connectivity test link for network security policy verification.

[0125] Here, port category refers to the classification of a set of ports according to the security policy rules. Membership relationship refers to the relationship between the protocol domain to which a port belongs within its port category and its port type combination. Port group is a set of ports formed by grouping all ports with identical membership relationships into the same group. Verification port is the port selected from the port group to construct the simulated security policy verification message.

[0126] Ports do not have concepts such as "security groups", "CIDR" and "external assets". The classification of port categories comes entirely from the port definitions in policy rules.

[0127] Specifically, this includes: the set of ports referenced by the rules of each security group in each authentication direction (inbound or outbound egress) (including TCP ports, UDP ports, and port ranges such as "8000-9000"); and the set of all resident ports (TCP 1–65535, UDP 1–65535). Optionally, the Internet Control Message Protocol (ICMP) is treated separately as a protocol without port number definitions and is not involved in the port group division.

[0128] The security policy rules contained in the parsed node cluster are extracted, including the protocol type field, service type field, and corresponding port information referenced in each rule. Port information includes either the port number or a port range. Ports are categorized into TCP and UDP protocol domains based on protocol type. Within each protocol domain, ports referenced by rules are further classified into different port categories according to service type. The entire port range from 1 to 65535 is included in the port category set.

[0129] For each port within the same protocol domain, iterate through all port categories, determining whether each port belongs to the current category and recording its membership status in each category, thus forming a membership vector for that port. Ports with identical membership vectors are grouped into the same port group, with different membership vectors for different port groups.

[0130] For each port group, select one port from the group as the verification port. Optionally, the selection method can be to choose the port with the smallest port number in the group or to select according to a preset rule. Output each port group and its corresponding verification port for use in filling the port field of subsequent simulated messages.

[0131] For example, a web security group SG_web has three rules in the inbound direction. Parsing the security policy rules, we find that the first rule references port 3306 and the protocol is TCP. The second rule references ports 80 and 443, and the protocol is TCP. The third rule references port 22, and the protocol is TCP.

[0132] The code is represented as follows:

[0133] Rule 1: src=sg_db, protocol=tcp, port=3306, action=accept

[0134] Rule 2: src=any, protocol=tcp, port=80,443, action=accept

[0135] Rule 3: src=any, protocol=tcp, port=22, action=accept

[0136] The ports referenced by the rules are divided into port categories: P1 corresponds to port 3306 in the first rule; P2 corresponds to ports 80 and 443 in the second rule; and P3 corresponds to port 22 in the third rule. Simultaneously, the entire port range from 1 to 65535 is included in the port category set as the all-port category P_all. These four port categories—P1, P2, P3, and P_all—together constitute four port categories.

[0137] For each port under the same protocol domain, namely the TCP protocol domain, iterate through all port categories and determine the port's affiliation in each port category.

[0138] For example: Port 3306 belongs to P1, does not belong to P2, does not belong to P3, but belongs to P_all. Port 80 does not belong to P1, belongs to P2, does not belong to P3, but belongs to P_all. Port 443 does not belong to P1, belongs to P2, does not belong to P3, but belongs to P_all. Port 22 does not belong to P1, does not belong to P2, belongs to P3, and belongs to P_all. All other TCP ports do not belong to P1, P2, or P3, but belong only to P_all.

[0139] All ports with identical membership are grouped into the same port group. Port 3306 belongs to P1 and P_all, but not P2 or P3, and is grouped into port group G1. Ports 80 and 443 both belong to P2 and P_all, but not P1 or P3, and are grouped into port group G2. Port 22 belongs to P3 and P_all, but not P1 or P2, and is grouped into port group G3. All other TCP ports belong only to P_all, and not P1, P2, or P3, and are grouped into port group G4.

[0140] For each port group, a verification port is selected. Port group G1 contains only port 3306, so 3306 is selected as the verification port. Port group G2 contains ports 80 and 443, so port 80 is selected as the verification port based on the smallest port number. Port group G3 contains only port 22, so port 22 is selected as the verification port. Port group G4 contains all TCP ports except 3306, 80, 443, and 22, so the port with the smallest port number, i.e., 1, is selected as the verification port according to a preset rule. Finally, the four port groups output verification ports 3306, 80, 22, and 1 respectively, which are used to fill the port field of subsequent simulated packets.

[0141] As can be seen, by classifying the ports referenced in the security policy rules into port categories according to the rules, and then grouping each port according to its affiliation within each port category, all ports with identical affiliations are grouped into the same port group. Finally, a verification port is selected from each port group for simulated packet construction. This mechanism compresses the entire port space that would otherwise need to be processed one by one into a small number of port groups and their corresponding verification ports. Each verification port can represent the rule matching behavior of all ports within its port group, thereby significantly reducing the number of port variables constructed in the simulated packets while ensuring the integrity of policy verification coverage, and reducing the link size of subsequent connectivity tests.

[0142] Figure 3 This is a schematic diagram of a security verification node determination device provided in an embodiment of the present invention. This embodiment of the present invention is applicable to the extraction of security verification nodes from a cluster performing security policy verification. The device can execute a security verification node determination method and can be implemented in hardware and / or software.

[0143] See Figure 3 The security verification node determination device shown includes:

[0144] The dimension determination module 301 is used to statistically analyze the security policy rules and network protocols of each initial node in the node cluster to obtain the category of at least one classification dimension.

[0145] The equivalence partitioning module 302 is used to partition the initial nodes in the node cluster to obtain at least one equivalence node group. The categories of each classification dimension in the equivalence node group are the same; the categories of each classification dimension are different between the equivalence node groups; the categories of each classification dimension in the same equivalence node group are the same; and there is no inclusion or intersection relationship between the equivalence node groups.

[0146] The verification node determination module 303 is used to determine a target number of verification nodes in each of the equivalent node groups, wherein the verification nodes are used to construct simulated nodes for security policy verification.

[0147] The technical solution of this invention statistically analyzes the categories of initial nodes across various classification dimensions, grouping nodes with identical categories into the same equivalent node group. This ensures that all nodes within a group are logically equivalent in terms of policy hits. Consequently, only the target number of verification nodes needs to be determined within each equivalent node group to represent the entire group in simulated node construction. This reduces the initial number of nodes required to construct simulated nodes from the total number of nodes in the cluster to the target number, effectively decreasing the scale of simulated node construction. Furthermore, since any node within the same equivalent node group shares the same category across classification dimensions, the simulated nodes constructed by the verification nodes can completely and equivalently replace other unselected nodes within the group during policy verification. This ensures that, while reducing the number of verification nodes, the coverage of security policy verification is not compromised by node selection, and the verification results are valid for all initial nodes in the group, balancing the comprehensiveness and efficiency of security policy verification.

[0148] In an optional embodiment, the equivalence partitioning module 302 includes:

[0149] A traffic parsing unit is used to parse traffic logs and obtain nodes from the traffic logs.

[0150] A node filtering unit is used to remove initial nodes from the node cluster that are not in the traffic logs;

[0151] Equivalent partitioning units are used to partition the initial nodes in the filtered node cluster to obtain at least one equivalent node group.

[0152] In an optional embodiment, the equivalence partitioning module 302 includes:

[0153] The feature identifier generation unit is used to generate a feature identifier for the initial node based on the category to which the initial node belongs in each of the classification dimensions.

[0154] An equivalence group generation unit is used to identify multiple initial nodes with consistent feature identifiers as equivalence nodes in the node cluster and generate an equivalence node group.

[0155] In an optional embodiment, the classification dimensions include: network connection, security group, network affiliation range, and referenced network segment, where network connection is a primary classification dimension, and security group, network affiliation range, and referenced network segment are secondary classification dimensions under the primary classification dimension.

[0156] Feature identifier generation unit, including:

[0157] The network category determination unit is used to determine the network category of the initial node under the classification dimension of the network connection based on the configuration information of the initial node;

[0158] The secondary classification unit is used to determine the category of each initial node under the network category in the secondary classification dimension for each network category;

[0159] The empty category determination unit is used to determine that the category of the initial node in the secondary classification dimension is empty when the configuration information of the initial node determines that the initial node is different from each category of the secondary classification dimension.

[0160] In an optional embodiment, the network category determination unit includes: a special field processing subunit, configured to determine the network category of the initial node as a first protocol category and a second protocol category if the network connection field in the configuration information of the initial node is a field supporting all network protocols, wherein the first protocol category corresponds to a first network protocol and the second protocol category corresponds to a second network protocol. The feature identifier generation unit includes: a feature identifier generation subunit, configured to generate a first feature identifier and a second feature identifier for the initial node whose network category is the first protocol category and the second protocol category, wherein the first feature identifier corresponds to the first network protocol and the second feature identifier corresponds to the second network protocol. The verification node determination module 303 includes: a quantity determination subunit, configured to select one verification node from each of the equivalent node group of the first protocol category and the equivalent node group of the second protocol category to which the initial node belongs, for each of the initial nodes whose network category is the first protocol category and the second protocol category.

[0161] In an optional embodiment, the verification node determination module 303 includes:

[0162] The security group judgment unit is used to determine whether the category of the security group classification dimension corresponding to the equivalent node group is empty;

[0163] The first determination unit is used to determine a verification node in the equivalent node group if the condition is met.

[0164] The second determination unit is used to determine multiple verification nodes in the equivalent node group if no, and the multiple verification nodes are used to construct inter-access test cases within the security group.

[0165] In an optional embodiment, it further includes:

[0166] The port category generation unit is used to determine at least one port category based on the ports referenced in the security policy rules;

[0167] The relationship determination unit is used to determine the membership relationship of each port in the port category for each port under the same protocol domain;

[0168] Port equivalence grouping unit is used to group all ports with the same membership into the same port group, while the membership of ports in different port groups is different;

[0169] The verification port selection unit is used to select a verification port from each of the port groups. The verification port is used to construct a simulated message for security policy verification. The simulated message constructed by the verification port and the simulated node constructed by the verification node together constitute a connectivity test link for network security policy verification.

[0170] The security verification node determination device provided in the embodiments of the present invention can execute the security verification node determination method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the security verification node determination method.

[0171] Figure 4 A schematic diagram of the structure of a security verification node determination device 400 that can be used to implement an embodiment of the present invention is shown.

[0172] like Figure 4 As shown, the security authentication node determination device 400 includes at least one processor 401 and a memory, such as a read-only memory 402 or a random access memory 403, communicatively connected to the at least one processor 401. The memory stores computer programs executable by the at least one processor. The processor 401 can perform various appropriate actions and processes based on the computer program stored in the read-only memory 402 or loaded from storage unit 408 into the random access memory 403. The random access memory 403 may also store various programs and data required for the operation of the security authentication node determination device 400. The processor 401, read-only memory 402, and random access memory 403 are interconnected via a bus 404. An input / output interface 405 is also connected to the bus 404.

[0173] The security authentication node determines that multiple components in device 400 are connected to input / output interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of monitors, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows the security authentication node to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0174] Processor 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, central processing units, graphics processing units, various special-purpose artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any suitable processor, controller, microcontroller, etc. Processor 401 performs the various methods and processes described above, such as the security verification node determination method.

[0175] In some embodiments, the secure authentication node determination method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the secure authentication node determination device 400 via read-only memory 402 and / or communication unit 409. When the computer program is loaded into random access memory 403 and executed by processor 401, one or more steps of the secure authentication node determination method described above may be performed. Alternatively, in other embodiments, processor 401 may be configured to perform the secure authentication node determination method by any other suitable means (e.g., by means of firmware).

[0176] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays, application-specific integrated circuits (ASICs), application-specific standard products (ASICs), systems-on-a-chip (SoCs), complex programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0177] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0178] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, flash memory, optical fiber, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0179] To provide interaction with the user, the systems and techniques described herein can be implemented on the operation detection device, which includes: a display device (e.g., a cathode ray tube or liquid crystal monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the security verification node. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0180] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0181] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product within the cloud computing service system. This addresses the shortcomings of traditional physical hosts and virtual private servers, such as high management difficulty and weak business scalability.

[0182] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0183] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for determining a security verification node, characterized in that, The method comprises: Statistics of the security policy rules and network protocols of each initial node in the node cluster to obtain categories of at least one classification dimension; the classification dimension comprises: network connection, security group, network home range and reference network segment; Divide the initial nodes in the node cluster to obtain at least one equivalent node group, the categories of each classification dimension in the equivalent node group are all the same; the categories of each classification dimension between each equivalent node group are different, the categories of each classification dimension in the same equivalent node group are all the same; there is no containing or intersecting relationship between each equivalent node group; For each equivalent node group, determine a target number of verification nodes in the equivalent node group, the verification nodes are used to construct simulation nodes for security policy verification; Wherein, the determination of the target number of verification nodes in the equivalent node group comprises: Determine whether the category of the security group classification dimension corresponding to the equivalent node group is empty; If yes, determine one verification node in the equivalent node group; If not, determine multiple verification nodes in the equivalent node group, the multiple verification nodes are used to construct security group internal access test cases.

2. The method of claim 1, wherein, The division of the initial nodes in the node cluster to obtain at least one equivalent node group, the categories of each classification dimension in the equivalent node group are all the same, comprises: According to the categories of each classification dimension to which the initial nodes belong, generate the feature identifier of the initial node; In the node cluster, determine multiple initial nodes with the same feature identifier as equivalent nodes, and generate an equivalent node group.

3. The method of claim 2, wherein, The network connection is a primary classification dimension, and the security group, network home range and reference network segment are secondary classification dimensions under the primary classification dimension; According to the categories of each classification dimension to which the initial nodes belong, generate the feature identifier of the initial node, comprises: According to the configuration information of the initial node, determine the network category of the initial node in the network connection classification dimension; For each network category, determine the categories of each initial node in the secondary classification dimension under the network category; When it is determined according to the configuration information of the initial node that the initial node is different from each category of the secondary classification dimension, determine that the category of the initial node in the secondary classification dimension is empty.

4. The method of claim 1, wherein, After determining the target number of verification nodes in the equivalent node group for each equivalent node group, it further comprises: According to each port referenced in the security policy rule, determine at least one port category; For each port under the same protocol domain, determine the membership relationship of the port in the port category; All ports with the same membership relationship are classified into the same port group, and the membership relationships of ports in different port groups are different; For each port group, select a verification port from the port group, the verification port is used to construct simulation messages for security policy verification, and the simulation messages constructed by the verification port and the simulation nodes constructed by the verification nodes jointly constitute a connectivity test link for security policy verification.

5. The method of claim 3, wherein, The step of determining the network category of the initial node under the classification dimension of the network connection based on the configuration information of the initial node includes: If the network connection field in the configuration information of the initial node is a field that supports all network protocols, the network category of the initial node is determined to be a first protocol category and a second protocol category, where the first protocol category corresponds to a first network protocol and the second protocol category corresponds to a second network protocol. The step of generating the feature identifier of the initial node based on the category to which the initial node belongs in each of the classification dimensions includes: A first feature identifier and a second feature identifier are generated for the initial node whose network category is a first protocol category and a second protocol category. The first feature identifier corresponds to a first network protocol, and the second feature identifier corresponds to a second network protocol. Determining the target number of verification nodes in the equivalent node group includes: For an initial node whose network category is a first protocol category and a second protocol category, one verification node is selected from each of the equivalent node groups of the first protocol category to which the initial node belongs and the equivalent node groups of the second protocol category to which the initial node belongs.

6. The method of claim 1, wherein, The step of partitioning the initial nodes in the node cluster to obtain at least one group of equivalent nodes includes: Parse the traffic logs to obtain the nodes in the traffic logs; Remove the initial nodes from the node cluster that are not listed in the traffic logs; The initial nodes in the filtered node cluster are partitioned to obtain at least one group of equivalent nodes.

7. A secure authentication node determination apparatus, comprising: The device includes: The dimension determination module is used to statistically analyze the security policy rules and network protocols of each initial node in the node cluster to obtain at least one category of classification dimensions; the classification dimensions include: network connection, security group, network affiliation range, and referenced network segment; An equivalence partitioning module is used to partition the initial nodes in the node cluster to obtain at least one equivalence node group. The categories of each classification dimension in the equivalence node group are the same; the categories of each classification dimension are different between the equivalence node groups; the categories of each classification dimension in the same equivalence node group are the same; and there is no inclusion or intersection relationship between the equivalence node groups. The verification node determination module is used to determine a target number of verification nodes in each of the equivalent node groups, wherein the verification nodes are used to construct simulated nodes for security policy verification. The verification node determination module includes: The security group judgment unit is used to determine whether the category of the security group classification dimension corresponding to the equivalent node group is empty; The first determination unit is used to determine a verification node in the equivalent node group if the condition is met. The second determination unit is used to determine multiple verification nodes in the equivalent node group if no, and the multiple verification nodes are used to construct inter-access test cases within the security group.

8. A secure validation node determining device, comprising: The security verification node determines the following devices: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the security verification node determination method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the security verification node determination method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Security policy verification method and device, security gateway and storage medium

    CN115242520A