Consistency detection strategy synchronization method for distributed leak scanning engine under multi-stage cascade architecture
By generating policy fingerprints and constructing a synchronization state matrix, combined with dynamic probes and causal chains, the problem of inconsistent policy execution in the leak scan engine under a multi-cascaded architecture is solved, achieving fine-grained detection and accurate localization, and reducing resynchronization overhead.
Patent Information
- Application Number
- CN202611571519.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-12
- Publication Date
- 2026-11-27
AI Technical Summary
In a multi-level interconnected architecture, existing technologies struggle to guarantee successful deployment and consistent execution of leak scan engine strategies. Anomaly location is difficult and resynchronization overhead is high, especially in large-scale, multi-level, and heterogeneous distributed leak scan deployments.
By generating traceable policy fingerprints for policy subsets, constructing a synchronization state matrix and maintaining it bidirectionally at each level, issuing dynamic probes to actively verify execution consistency, and constructing a policy consistency causal chain for anomaly backtracking and location, fine-grained detection and on-demand resynchronization are achieved.
It achieves proactive consistency detection at the execution level of the leak scan engine, accurately locates the anomaly level, reduces resynchronization overhead and location latency, and improves the synchronization consistency detection rate and location accuracy.
Smart Images

Figure CN123184971A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network security vulnerability scanning technology, and in particular to a method for synchronizing consistency detection strategies of distributed vulnerability scanning engines under a multi-level interconnected architecture. Background Technology
[0002] In large-scale network asset vulnerability scanning scenarios, existing technologies mostly adopt a multi-level management architecture consisting of a central control engine, intermediate cascade management nodes, and leaf-level vulnerability scanning engines. The central control engine generates and maintains the currently effective vulnerability detection policy set, which is then forwarded down to each leaf-level vulnerability scanning engine through the intermediate cascade management nodes. After receiving the policy, the leaf-level vulnerability scanning engine returns a synchronization confirmation message to the next higher level. The intermediate cascade management nodes summarize the information level by level and report it to the central control engine, thus completing the policy synchronization process.
[0003] First, the synchronization confirmation message returned by the leaf-level leak detection engine usually only indicates that the policy message has been received or stored locally, and cannot prove that its actual detection logic has been correctly loaded and executed according to the policy subset, which poses a risk of successful delivery but inconsistent execution. Second, in the process of multi-level cascading forwarding, intermediate cascading management nodes may continue to forward older version policy subsets due to untimely updates to their local policy cache, congestion in the forwarding queue, or a lack of version comparison mechanisms, resulting in inconsistencies between the policy actually effective by the leaf-level leak detection engine and the policy currently effective by the central control engine. Third, different leaf-level leak detection engines can... The existing synchronization mechanisms lack proactive detection methods for such execution-level inconsistencies. First, they can operate on heterogeneous protocol parsing environments and rule execution engines. The parsing results of the same policy subset may differ across engines. Second, current synchronization state maintenance is typically done at the engine-wide granularity, making it difficult to pinpoint the policy subset level. When only a subset of policies fails to take effect correctly, it can easily be mistaken for overall synchronization success. Third, once policy inconsistencies are detected, existing solutions often rely on step-by-step log checks or full redeployment, which is inefficient and inefficient in three-level or higher cascaded architectures, and incurs significant resynchronization overhead. While these problems are not inevitable, they are realistically possible in large-scale, multi-level, and heterogeneous distributed leak scan deployments.
[0004] Therefore, in response to the problems mentioned above, this invention proposes a method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-level management architecture. Summary of the Invention
[0005] To overcome the problems of successful policy issuance but difficulty in ensuring execution consistency, difficulty in accurately locating the anomaly level, and high resynchronization overhead in the distributed leak scan engine policy synchronization process under the multi-level management architecture, this invention proposes a consistency detection policy synchronization method for distributed leak scan engines under a multi-level management architecture. This method generates traceable policy fingerprints for policy subsets, constructs a synchronization state matrix and maintains it bidirectionally at each level, issues dynamic probes to actively verify execution consistency, and constructs a policy consistency causal chain for anomaly backtracking and location. This achieves fine-grained detection of policy synchronization consistency, accurate location of anomaly levels, and on-demand resynchronization.
[0006] The technical solution of this invention is: a method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded architecture. The multi-cascaded architecture includes a central control engine, at least one intermediate cascaded management node, and multiple leaf-level leak scan engines managed by each intermediate cascaded management node. The method includes the following steps: S1, the central control engine splits the currently effective vulnerability detection policy set into policy subsets that match the execution capability profiles of each leaf-level vulnerability scanning engine, and generates a policy fingerprint for each policy subset containing a policy version number, a policy content summary, and a parent version reference pointer. The execution capability profile includes the vulnerability detection types, protocol parsing capabilities, and concurrent scanning capacity supported by the corresponding leaf-level vulnerability scanning engine.
[0007] Specifically, during the registration phase, each leaf-level leak scan engine reports its capability declaration information to its respective intermediate cascade management node. This capability declaration information is then forwarded up through each intermediate cascade management node to the central control engine. The central control engine generates a corresponding execution capability profile based on the capability declaration information and updates the execution capability profile through the hierarchical path of the multi-cascade management architecture when the running status of the leaf-level leak scan engine changes.
[0008] The method for generating the policy fingerprint includes: sorting the detection rule set in the policy subset according to the rule priority and calculating the first hash value; concatenating the policy version number, the first hash value and the parent version reference pointer in a preset field order and calculating the second hash value; and using the second hash value as the policy fingerprint; when the policy subset undergoes incremental updates, the parent version reference pointer points to the policy fingerprint before the update.
[0009] S2, the central control engine constructs a synchronization state matrix ordered by policy version number based on policy fingerprint. Each row of the synchronization state matrix corresponds to a leaf-level leak scan engine, and each column corresponds to a policy subset. The matrix elements identify the synchronization confirmation status of the corresponding leaf-level leak scan engine for the corresponding policy subset. The synchronization state matrix is updated step by step down along the hierarchical path of the multi-cascaded management architecture. Each intermediate cascaded management node maintains a local view of the synchronization state matrix within its jurisdiction and aggregates the matrix elements in the local view that have undergone state changes to the central control engine step by step through the hierarchical path.
[0010] Each intermediate cascade management node receives a synchronization confirmation message reported by the leaf-level leak scan engine under its jurisdiction. The synchronization confirmation message contains the leaf-level leak scan engine identifier and the policy fingerprint of the synchronized policy subset. Each intermediate cascade management node compares the synchronization confirmation message with the local view of the synchronization status matrix. When the comparison result is inconsistent, the corresponding matrix element is updated to the unsynchronized confirmation state.
[0011] Each intermediate cascade management node encapsulates the matrix elements with changed states into incremental synchronization messages. These incremental synchronization messages contain the row and column indices of the changed matrix elements, the state value before the change, the state value after the change, and the change timestamp. The incremental synchronization messages are forwarded level by level along the uplink path of the multi-cascade management architecture. Before forwarding, each intermediate cascade management node appends its own level identifier to the forwarding path field of the incremental synchronization message.
[0012] S3. When there is a matrix element in the synchronization state matrix that is marked as not synchronized and confirmed, the central control engine sends a dynamic probe carrying a policy fingerprint to the leaf-level vulnerability scanning engine corresponding to the matrix element. The dynamic probe constructs simulated vulnerability response features corresponding to the detection rules in the policy subset on the leaf-level vulnerability scanning engine side, and collects the actual detection results of the leaf-level vulnerability scanning engine on the simulated vulnerability response features.
[0013] Specifically, the dynamic probe includes probe control instructions and probe payload data. The probe control instructions are used to instruct the leaf-level vulnerability scanning engine to load probe payload data in the isolated sandbox environment. The probe payload data encapsulates the construction parameters of simulated vulnerability response characteristics. The leaf-level vulnerability scanning engine executes the probe payload data in the isolated sandbox environment and returns the actual detection results to the central control engine level by level through the hierarchical path of the multi-cascaded architecture.
[0014] S4, the central control engine constructs a policy consistency causal chain based on the actual detection results of each leaf-level leak scan engine corresponding to the same policy subset in the synchronization state matrix. This policy consistency causal chain uses the policy fingerprint of the policy subset as the head node, the actual detection results of each leaf-level leak scan engine as the body node, and the hierarchical forwarding logs of each intermediate cascade management node in the multi-cascade management architecture as the inter-chain connection edges.
[0015] Specifically, taking the policy fingerprint as the head node, according to the hierarchical affiliation of each leaf-level leak detection engine corresponding to the same policy subset in the synchronization state matrix, the actual detection results of each leaf-level leak detection engine are respectively used as chain body nodes and sequentially linked to the head node. The hierarchical forwarding logs generated by each intermediate cascade management node during the policy subset distribution process are used as inter-chain connection edges. These inter-chain connection edges record the timestamp and forwarding target identifier when the policy subset is forwarded by the intermediate cascade management node.
[0016] S5. When there is a chain node in the policy consistency causal chain that does not match the policy fingerprint identified by the chain head node, the central control engine backtracks along the inter-chain connection edge corresponding to the mismatched chain node to locate the level where the synchronization anomaly occurred, and re-executes the policy subset distribution and synchronization confirmation of the leaf-level leak scan engine below the level position based on the backtracking result.
[0017] Specifically, starting from the mismatched chain node, the process traces upwards along the inter-chain connection edge to the head node. During the tracing process, the forwarding target identifier recorded by each inter-chain connection edge is matched with the leaf-level leak scan engine identifier corresponding to the chain node. When the first matching failure occurs, the intermediate cascading management node corresponding to the matching failure position is determined as the level position where the synchronization anomaly occurred.
[0018] The central control engine only reissues the corresponding policy subset to the leaf-level leaky scan engines below the specified level, without triggering the reissue of policy subsets to the leaf-level leaky scan engines above the specified level. After the reissue is completed, the central control engine updates the state of the corresponding matrix element in the synchronization state matrix and rebuilds the policy consistency causal chain to verify the synchronization result.
[0019] The beneficial effects of this invention are: 1. This invention actively constructs simulated vulnerability response features and collects actual detection results in the isolated sandbox environment of the leaf-level vulnerability scanning engine by issuing dynamic probes carrying policy fingerprints. It directly verifies the consistency between the detection logic and the policy subset through active injection and passive observation, thus achieving active consistency detection at the execution level.
[0020] 2. This invention generates a policy fingerprint containing a parent version reference pointer for a policy subset, and constructs a synchronization state matrix that is updated and aggregated step by step along the multi-cascaded architecture. This enables the central control engine to accurately grasp the synchronization state of each leaf-level leak scan engine for each policy subset at the granularity of matrix elements, and promptly detect the spread of old version policy subsets when they are abnormally forwarded at intermediate nodes.
[0021] 3. This invention constructs simulated vulnerability response features corresponding to the detection rules in the policy subset within the isolated sandbox environment of the leaf-level vulnerability scanning engine using dynamic probes, and directly collects the actual detection results of the leaf-level vulnerability scanning engine, thereby proactively discovering execution inconsistencies caused by heterogeneous parsing environments without interfering with the actual scanning task.
[0022] 4. This invention constructs a synchronization state matrix with leaf-level leak scan engines as rows and policy subsets as columns, so that the synchronization confirmation state is accurate to the correspondence between each leaf-level leak scan engine and each policy subset, avoiding misjudgments caused by overall granular synchronization state maintenance.
[0023] 5. This invention constructs a policy-consistent causal chain with policy fingerprint as the chain head, actual detection results as the chain body, and hierarchical forwarding logs as inter-chain connection edges. When the chain body node does not match the chain head, the abnormal level is located by backtracking along the inter-chain connection edges, and the policy subset is only reissued to the leaf-level leak scan engine below the abnormal level. This achieves accurate location of synchronization anomalies and on-demand resynchronization, significantly reducing location latency and resynchronization overhead. Attached Figure Description
[0024] Figure 1 The diagram shown is a schematic of the multi-cascaded pipe architecture of the present invention; Figure 2 The diagram shown is a schematic representation of the overall process of the synchronization method of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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 some embodiments of the present invention, but 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.
[0026] This invention provides an embodiment: Please see Figure 1 In this embodiment, the multi-cascaded management architecture includes a central control engine, at least one intermediate cascaded management node, and multiple leaf-level leak scan engines managed by each intermediate cascaded management node.
[0027] The central control engine is used to split the currently effective set of vulnerability detection strategies into a subset of strategies that match the execution capability profile of each leaf-level vulnerability scanning engine, and generate corresponding strategy fingerprints.
[0028] The intermediate cascade management node is located between the central control engine and the leaf-level leak scan engine. It is used for progressive forwarding policy subsets, maintaining a local view of the synchronization state matrix, incremental synchronization message up-floating aggregation, and hierarchical forwarding log recording.
[0029] The leaf-level vulnerability scanning engine is the terminal node that actually performs vulnerability scanning tasks. It receives and loads a subset of policies, responds to dynamic probes in an isolated sandbox environment, and returns the actual detection results to the central control engine through a hierarchical path of a multi-level management architecture.
[0030] The multi-level management architecture has three or more levels. The number of leaf-level leak detection engines managed by each intermediate cascade management node is dynamically adjusted according to the network topology constraints and scanning task load of the level where the intermediate cascade management node is located. The communication between the central control engine and each intermediate cascade management node, and between each intermediate cascade management node and the leaf-level leak detection engines it manages, all adopt a message format with a policy fingerprint verification field.
[0031] Please see Figure 2 The overall process of this invention will be described below, specifically: S1. During the registration phase, each leaf-level leak scan engine reports its capability declaration information to its respective intermediate cascade management node. This capability declaration information is forwarded to the central control engine through each intermediate cascade management node. The central control engine generates the corresponding execution capability profile based on the capability declaration information and updates the execution capability profile through the hierarchical path of the multi-cascade management architecture when the running status of the leaf-level leak scan engine changes.
[0032] The aforementioned execution capability profile includes the vulnerability detection types, protocol parsing capabilities, and concurrent scanning capacity supported by the corresponding leaf-level vulnerability scanning engine. Vulnerability detection types can include web application vulnerability detection, host system vulnerability detection, database vulnerability detection, and network device vulnerability detection, etc.; protocol parsing capabilities include supported versions and parsing depths of protocols such as HTTP, HTTPS, FTP, SSH, SMB, and RDP; concurrent scanning capacity includes the maximum number of concurrent connections, the maximum number of concurrent tasks, and the number of scan requests that can be processed per unit time. When generating the execution capability profile, the central control engine associates and stores the above information according to the leaf-level vulnerability scanning engine identifier, and uses this profile as the basis for subsequent policy subset splitting to ensure that the policy subset received by each leaf-level vulnerability scanning engine matches its actual execution capability.
[0033] After acquiring the execution capability profile, the central control engine iterates through all detection rules in the currently effective vulnerability scanning strategy set. Based on the vulnerability detection type, required protocol parsing capabilities, and resource consumption characteristics of each rule, it assigns it to one or more candidate strategy subsets. Then, for each leaf-level vulnerability scanning engine, it selects the strategy subsets supported by its execution capability profile from the candidate strategy subsets and establishes a mapping relationship between the selected strategy subsets and the leaf-level vulnerability scanning engine identifier. In cases where multiple leaf-level vulnerability scanning engines have the same execution capability profile, the central control engine assigns them the same strategy subset, but each strategy subset still generates a strategy fingerprint independently. This ensures that the granularity of matrix elements in the subsequent synchronization state matrix is accurate to the correspondence between leaf-level vulnerability scanning engines and strategy subsets.
[0034] After the strategy subset is split, the set of detection rules in the strategy subset is sorted according to the rule priority and the first hash value is calculated. The strategy version number, the first hash value and the parent version reference pointer are concatenated in the order of preset fields to calculate the second hash value. Then the second hash value is used as the strategy fingerprint. When the strategy subset is incrementally updated, the parent version reference pointer points to the strategy fingerprint before the update.
[0035] The rule priority is determined by comprehensively considering factors such as the severity level of the detection rule, matching accuracy, and resource consumption. The sorted set of detection rules ensures that the first hash value calculated for policy subsets with the same content remains consistent across different times and nodes. The preset field order is set to "policy version number | first hash value | parent version reference pointer," with fields connected by a preset separator to avoid ambiguity when concatenating different fields. When a policy subset is generated for the first time, the parent version reference pointer is set to null or a preset initial value. When the policy subset undergoes incremental updates, the parent version reference pointer in the new policy fingerprint points to the policy fingerprint before the update, thus forming a traceable policy version chain. This policy fingerprint generation method not only uniquely identifies the current version of the policy subset but also allows tracing the change history of the policy subset through the parent version reference pointer.
[0036] S2, the central control engine constructs a synchronization state matrix ordered by policy version number based on the generated policy fingerprint. Each row of this synchronization state matrix corresponds to a leaf-level leaky engine, and each column corresponds to a policy subset. Matrix elements identify the synchronization confirmation status of the corresponding leaf-level leaky engine for the corresponding policy subset. The row order of the synchronization state matrix follows the identification or registration order of the leaf-level leaky engines, and the column order follows the order of the policy version numbers, thus ensuring that the matrix structure remains consistent across all levels of the multi-cascaded architecture. The synchronization confirmation status of matrix elements includes at least a synchronized confirmation status and an unsynchronized confirmation status. When the central control engine constructs the synchronization state matrix for the first time, all matrix elements can be initialized to the unsynchronized confirmation status. After the leaf-level leaky engine completes the loading of the policy subset and returns a synchronization confirmation message, the corresponding matrix element is updated to the synchronized confirmation status.
[0037] The central control engine distributes the initial structure of the synchronization state matrix and the mapping relationship between each policy subset and the leaf-level leaky scan engine along the hierarchical path to each intermediate cascaded management node. Each intermediate cascaded management node then distributes the matrix row and column information within its jurisdiction to the corresponding leaf-level leaky scan engine. Upon receiving a policy subset, the leaf-level leaky scan engine generates a synchronization confirmation message based on the local loading result. This confirmation message contains the leaf-level leaky scan engine identifier and the policy fingerprint of the synchronized policy subset. After receiving the synchronization confirmation message reported by the leaf-level leaky scan engine under its jurisdiction, the intermediate cascaded management node compares the confirmation message with its locally maintained local view of the synchronization state matrix. If the comparison result is inconsistent, the corresponding matrix element is updated to an unconfirmed synchronization state; if the comparison result is consistent, the corresponding matrix element is updated to a confirmed synchronization state. The inconsistencies mentioned here include situations such as the policy fingerprint reported by the leaf-level missed scan engine not matching the expected policy fingerprint recorded in the local view, the leaf-level missed scan engine not reporting a synchronization confirmation message for a certain policy subset, or the synchronization confirmation message reported by the leaf-level missed scan engine being outside the jurisdiction of the local view.
[0038] Each intermediate cascade management node encapsulates the matrix elements with changed status into incremental synchronization messages. These incremental synchronization messages contain the row and column indices of the changed matrix elements, the status value before the change, the status value after the change, and the change timestamp. The incremental synchronization messages are forwarded level by level along the uplink path of the multi-cascade management architecture. Before forwarding, each intermediate cascade management node appends its own level identifier to the forwarding path field of the incremental synchronization message.
[0039] The row and column indices are used to uniquely identify the position of the matrix element that has undergone a state change in the synchronization state matrix. The row index corresponds to the leaf-level leak scan engine identifier, and the column index corresponds to the policy subset identifier or policy version number. The state values before and after the change are used to record the state transition process; Change timestamps are used to record when a state change occurs, so that they can be correlated with timestamps in the hierarchical forwarding log when building a policy consistency causal chain later.
[0040] The forwarding path field is used to record the hierarchical identifier of each intermediate cascading management node through which the incremental synchronization message passes. This field is continuously appended as the message ascends level by level to form a complete forwarding path record.
[0041] Through the aforementioned two-way maintenance mechanism of progressively sinking and progressively rising and converging, the central control engine can promptly identify which matrix elements in the synchronization status matrix are in an unsynchronized confirmation state without frequently polling all leaf-level leak detection engines, thereby providing accurate target positioning for the subsequent deployment of dynamic probes.
[0042] S3, when there is a matrix element in the synchronization state matrix that is marked as unsynchronized confirmation, the central control engine sends a dynamic probe carrying the policy fingerprint to the leaf-level leak scan engine corresponding to the matrix element.
[0043] The triggering conditions for dynamic probes include: after the synchronization state matrix completes one round of up-floating aggregation, the central control engine scans all matrix elements with unsynchronized confirmation states in the matrix and generates a probe distribution list according to the leaf-level missed scan engine identifier and policy subset identifier corresponding to the matrix elements; for cases where the same leaf-level missed scan engine corresponds to multiple unsynchronized confirmation policy subsets, the central control engine merges multiple dynamic probes into a single distribution to reduce communication overhead. The policy fingerprint carried in the dynamic probe is consistent with the policy fingerprint of the policy subset corresponding to the unsynchronized confirmation matrix element, thus ensuring that the leaf-level missed scan engine can clearly identify the version of the policy subset that needs to be verified when responding to the probe.
[0044] The dynamic probe includes probe control instructions and probe payload data. The probe control instructions are used to instruct the leaf-level vulnerability scanning engine to load the probe payload data in the isolated sandbox environment. The probe payload data encapsulates the construction parameters of simulated vulnerability response characteristics.
[0045] The aforementioned isolated sandbox environment is an independent execution environment pre-configured within the leaf-level vulnerability scanning engine. It is isolated from the main execution environment of the leaf-level vulnerability scanning engine when performing actual vulnerability scanning tasks, thereby ensuring that the execution of dynamic probes will not interfere with the ongoing actual scanning tasks, nor will it have a real impact on the target network assets.
[0046] The construction parameters encapsulated in the aforementioned probe payload data may include response codes, response header fields, response body characteristic strings, and protocol interaction sequences that simulate vulnerability response characteristics. These construction parameters correspond to the matching conditions of the detection rules in the policy subset. For example, if a detection rule in a certain policy subset is used to detect a specific response header field returned by the target service, the simulated vulnerability response characteristics constructed in the probe payload data can simulate a response containing that response header field in an isolated sandbox environment; if the detection rule is used to detect a specific protocol interaction sequence, the probe payload data can simulate the corresponding protocol interaction process.
[0047] After executing probe payload data in the isolated sandbox environment, the leaf-level vulnerability scanning engine returns the actual detection results to the central control engine level by level through a multi-cascaded management architecture. The actual detection results include at least information such as whether the leaf-level vulnerability scanning engine hit the simulated vulnerability response characteristics, the identifier of the hit detection rule, the policy fingerprint used during the detection process, and the detection execution time. Through this active injection-passive observation verification mode, the central control engine can penetrate the surface of the leaf-level vulnerability scanning engine for synchronous verification, directly checking whether its detection logic is consistent with the policy subset, thereby discovering potential problems where deployment is successful but execution is inconsistent.
[0048] S4, the central control engine constructs a policy-consistent causal chain based on the actual detection results of each leaf-level leak scan engine corresponding to the same policy subset in the synchronization state matrix. The policy-consistent causal chain uses the policy fingerprint of the policy subset as the head node, the actual detection results of each leaf-level leak scan engine as the body nodes, and the hierarchical forwarding logs of each intermediate cascade management node in the multi-cascade management architecture as the inter-chain connection edges.
[0049] When constructing the policy consistency causal chain, the policy fingerprint is used as the head node. Based on the hierarchical affiliation of the leaf-level leaky scan engines corresponding to the same policy subset in the synchronization state matrix, the actual detection results of each leaf-level leaky scan engine are sequentially linked to the head node as chain body nodes. The hierarchical forwarding logs generated by each intermediate cascade management node during the policy subset distribution process are used as inter-chain connection edges. These edges record the timestamp and forwarding target identifier when the policy subset is forwarded by the intermediate cascade management node. The hierarchical affiliation can be determined based on the leaf-level leaky scan engine identifier corresponding to each row in the synchronization state matrix and the intermediate cascade management node to which that leaf-level leaky scan engine belongs, thus ensuring that the chain body nodes are arranged in the hierarchical path order from the central control engine to the leaf-level leaky scan engine. The timestamps recorded by the inter-chain connection edges can be used to determine the forwarding order of the policy subset among the intermediate cascade management nodes at each level, and the forwarding target identifier can be used to determine the next-hop target of the policy subset at that intermediate cascade management node, thus providing a basis for subsequent backtracking and localization.
[0050] When constructing a policy consistency causal chain, the central control engine organizes the actual detection results of all leaf-level leak detection engines corresponding to the same policy subset into a tree or chain structure according to hierarchical affiliation. The head node is the policy fingerprint; the first-level chain nodes are summaries of the actual detection results corresponding to the intermediate cascade management nodes that directly manage the leaf-level leak detection engines; the second-level chain nodes are summaries of the actual detection results corresponding to the next lower level of intermediate cascade management nodes, and so on, up to the actual detection results of the leaf-level leak detection engines. Inter-chain connections link adjacent chain nodes and record the hierarchical forwarding logs of the corresponding intermediate cascade management nodes. Through this causal chain structure, the central control engine can correlate the entire chain information from policy subset generation to distribution to execution. This allows for rapid tracing upwards along the inter-chain connections to determine the hierarchical location of the anomaly when a chain node does not match the policy fingerprint identified by the head node.
[0051] S5, when there is a chain node in the policy consistency causal chain that does not match the policy fingerprint identified by the chain head node, the central control engine backtracks along the inter-chain connection edge corresponding to the mismatched chain node to locate the hierarchical position where the synchronization anomaly occurred.
[0052] During backtracking, it first starts from the mismatched chain node and traces upwards along the inter-chain connection edge to the chain head node. Then, during the tracing process, it matches the forwarding target identifier recorded by each inter-chain connection edge with the leaf-level leak scan engine identifier corresponding to the chain node. When the first matching failure occurs, the intermediate cascade management node corresponding to the matching failure position is determined as the level position where the synchronization anomaly occurred.
[0053] The aforementioned matching failures include situations where the forwarding target identifier recorded by the inter-chain connection edge is inconsistent with the leaf-level leak detection engine identifier corresponding to the chain body node, the timestamp recorded by the inter-chain connection edge is later than the timestamp corresponding to the actual detection result of the chain body node, or the inter-chain connection edge is missing. Through this chain-based tracing method, the central control engine does not need to check the logs of all intermediate cascaded management nodes level by level, but instead directly starts from the abnormal chain body node and locates it upwards along the causal chain connection edges, thereby significantly improving the efficiency of anomaly location.
[0054] After locating the level at which the synchronization anomaly occurred, the central control engine only reissues the corresponding policy subset to the leaf-level leaky scan engines below that level, without triggering the reissue of policy subsets to leaf-level leaky scan engines above that level. For example, if the synchronization anomaly occurs at the second-level intermediate cascade management node, the central control engine only reissues the policy subset to the leaf-level leaky scan engines managed by that second-level intermediate cascade management node, and does not reissue it to the first-level intermediate cascade management node and its other managed leaf-level leaky scan engines. After reissue, the central control engine updates the state of the corresponding matrix elements in the synchronization state matrix and reconstructs the policy consistency causal chain to verify the synchronization result. If all chain nodes in the reconstructed policy consistency causal chain match the policy fingerprint identified by the chain head node, it is determined that the policy subset has achieved consistent synchronization in the leaf-level leaky scan engines below that level; if there are still mismatched chain nodes, the backtracking and on-demand resynchronization process is repeated until all chain nodes match the chain head node or the preset maximum number of retries is reached. By using this on-demand resynchronization method, the present invention can avoid unnecessary global resynchronization overhead, especially in large-scale multi-cascaded management architectures, and can significantly reduce the communication and computing load of the central control engine and intermediate cascaded management nodes.
[0055] In this embodiment, the multi-cascaded management architecture has three or more levels. The number of leaf-level leaky scan engines managed by each intermediate cascaded management node is dynamically adjusted based on the network topology constraints and scan task load of the level in which the intermediate cascaded management node is located. For example, regarding network topology constraints, if the network bandwidth of a certain intermediate cascaded management node's level is limited or the latency is high, the number of leaf-level leaky scan engines it manages can be appropriately reduced. Regarding scan task load, if a certain intermediate cascaded management node is currently carrying a large number of scan tasks, some of its managed leaf-level leaky scan engines can be dynamically migrated to intermediate cascaded management nodes of the same level with lighter loads. Communication between the central control engine and each intermediate cascaded management node, and between each intermediate cascaded management node and its managed leaf-level leaky scan engines, all adopt a message format with a policy fingerprint verification field. The policy fingerprint verification field is used to verify the policy fingerprint of the policy subset during message transmission. When parsing the message, the receiver first verifies the policy fingerprint verification field. If the verification fails, the message is discarded and a verification failure notification is returned upstream, thereby preventing the spread of old version policy subsets or forged policy subsets in the cascaded architecture. The message format with a policy fingerprint verification field is used in various interactive messages such as policy subset distribution messages, synchronization confirmation messages, incremental synchronization messages, dynamic probe messages, and actual detection result reporting messages.
[0056] To further verify the effectiveness of this invention, a three-level multi-cascaded management architecture was deployed in the experimental environment. The experimental environment included a central control engine, three first-level intermediate cascaded management nodes, nine second-level intermediate cascaded management nodes, and ninety leaf-level leak scan engines.
[0057] During the experiment, three scenarios were set up with 50, 100, and 200 policy subsets, with each scenario repeated 10 times. Indicators such as synchronization consistency detection rate, anomaly level location accuracy, number of resynchronization policy subsets, and end-to-end location latency were recorded and expressed as mean ± standard deviation. This invention was also compared with the step-by-step log review method and the full redistribution method. The step-by-step log review method refers to the central control engine checking the hierarchical forwarding logs of each intermediate cascaded management node and the synchronization confirmation messages of the leaf-level leak scan engines along the multi-cascaded management architecture after a synchronization anomaly is detected, comparing policy fingerprints level by level to locate the anomaly level. The full redistribution method refers to the method of directly redistributing the corresponding policy subset to all leaf-level leak scan engines after a synchronization anomaly is detected without hierarchical location and waiting for synchronization confirmation.
[0058] Table 1 Comparison of synchronization consistency detection rates under different strategy subset numbers
[0059] Synchronization consistency detection rate refers to the ratio at which the central control engine can correctly identify inconsistencies between the actual execution results of the leaf-level leak scan engine and the policy subsets. As shown in Table 1, the synchronization consistency detection rate of the hierarchical log checking method decreases significantly with the increase in the number of policy subsets. This is because as the number of policy subsets increases, the number of records in the hierarchical logs increases dramatically, making it difficult for manual or automated checks to cover the correspondence between all policy subsets and the leaf-level leak scan engine. This invention maintains a high synchronization consistency detection rate through active verification using a synchronization state matrix and dynamic probes.
[0060] Table 2 Comparison of anomaly level localization accuracy under different cascade levels
[0061] The anomaly level location accuracy refers to the percentage of times the central control engine can correctly trace back to the intermediate cascaded management node level where the synchronous anomaly occurred. As shown in Table 2, the location accuracy of the step-by-step log checking method decreases significantly with the increase in the number of cascaded levels. This is because with more levels, logs are scattered across multiple intermediate cascaded management nodes, making it easy to miss or misjudge during step-by-step checking. This invention, through backtracking the inter-chain connection edges of the policy-consistent causal chain, can directly trace upwards from the anomaly chain node, maintaining a high location accuracy.
[0062] Table 3 Comparison of the number of resynchronization strategy subsets at different anomaly locations.
[0063] The number of resynchronization strategy subsets refers to the total number of strategy subsets that need to be reissued during a single synchronization anomaly repair process. As shown in Table 3, the full reissue method requires reissuing strategy subsets to all 90 leaf-level leaky engines regardless of the level at which the anomaly occurs, resulting in significant resynchronization overhead. In contrast, the method of this invention only reissues strategy subsets to leaf-level leaky engines below the anomaly level, significantly reducing resynchronization overhead. When the anomaly occurs at the first-level intermediate cascade management node, since all leaf-level leaky engines are included below the first level, the number of resynchronization strategy subsets in the method of this invention is the same as the traditional full reissue method. However, when the anomaly occurs at the second or third-level intermediate cascade management node, the method of this invention only needs to reissue to some leaf-level leaky engines, significantly reducing resynchronization overhead.
[0064] Table 4 Comparison of end-to-end positioning latency under different strategy subset numbers
[0065] End-to-end location latency refers to the total time from the occurrence of a synchronization anomaly to the central control engine determining the anomaly level and completing on-demand resynchronization. Table 4 shows that the end-to-end location latency of the hierarchical log investigation method increases significantly with the increase in the number of policy subsets. This is because the amount of log data that needs to be retrieved and analyzed increases linearly with the number of policy subsets. The method of this invention, through the synchronization state matrix and policy consistency causal chain, can quickly locate the nodes in the anomaly chain and trace back along the chain, resulting in a relatively gradual increase in end-to-end location latency.
[0066] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments that can be applied to other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.
Claims
1. A synchronization method for consistency detection strategy of distributed leak scan engine under multi-level management architecture, characterized in that, The multi-cascaded management architecture includes a central control engine, at least one intermediate cascaded management node, and multiple leaf-level leak scan engines managed by each intermediate cascaded management node. The method includes the following steps: S1, the central control engine splits the currently effective vulnerability scanning detection policy set into policy subsets that match the execution capability profiles of each leaf-level vulnerability scanning engine, and generates a policy fingerprint for each policy subset containing a policy version number, a policy content summary and a parent version reference pointer. The execution capability profile includes the vulnerability detection types, protocol parsing capabilities and concurrent scanning capacity supported by the corresponding leaf-level vulnerability scanning engine. S2, the central control engine constructs a synchronization state matrix ordered by policy version number based on policy fingerprint. Each row of the synchronization state matrix corresponds to a leaf-level leak scan engine, and each column corresponds to a policy subset. The matrix elements identify the synchronization confirmation status of the corresponding leaf-level leak scan engine for the corresponding policy subset. The synchronization state matrix is updated step by step down along the hierarchical path of the multi-cascaded management architecture. Each intermediate cascaded management node maintains a local view of the synchronization state matrix within its jurisdiction and aggregates the matrix elements in the local view that have undergone state changes to the central control engine step by step through the hierarchical path. S3, when there is a matrix element in the synchronization state matrix that is marked as unsynchronized confirmation state, the central control engine sends a dynamic probe carrying a policy fingerprint to the leaf-level vulnerability scanning engine corresponding to the matrix element. The dynamic probe constructs simulated vulnerability response features corresponding to the detection rules in the policy subset on the leaf-level vulnerability scanning engine side, and collects the actual detection results of the leaf-level vulnerability scanning engine on the simulated vulnerability response features. S4, the central control engine constructs a policy consistency causal chain based on the actual detection results of each leaf-level leak scan engine corresponding to the same policy subset in the synchronization state matrix. This policy consistency causal chain takes the policy fingerprint of the policy subset as the head node, the actual detection results of each leaf-level leak scan engine as the body node, and the hierarchical forwarding logs of each intermediate cascade management node in the multi-cascade management architecture as the inter-chain connection edges. S5. When there is a chain node in the policy consistency causal chain that does not match the policy fingerprint identified by the chain head node, the central control engine backtracks along the inter-chain connection edge corresponding to the mismatched chain node to locate the level where the synchronization anomaly occurred, and re-executes the policy subset distribution and synchronization confirmation of the leaf-level leak scan engine below the level position based on the backtracking result.
2. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded architecture as described in claim 1, characterized in that, In step S1, the execution capability profile is obtained by the central control engine in the following way: each leaf-level leak scan engine reports its capability declaration information to its respective intermediate cascade management node during the registration phase. The capability declaration information is forwarded to the central control engine level by level through each intermediate cascade management node. The central control engine generates the corresponding execution capability profile based on the capability declaration information, and updates the execution capability profile through the hierarchical path of the multi-cascade management architecture when the running status of the leaf-level leak scan engine changes.
3. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded management architecture as described in claim 1, characterized in that, The method for generating the policy fingerprint in step S1 includes: sorting the detection rule set in the policy subset according to the rule priority and calculating the first hash value; concatenating the policy version number, the first hash value and the parent version reference pointer in a preset field order and calculating the second hash value; and using the second hash value as the policy fingerprint; when the policy subset undergoes incremental update, the parent version reference pointer points to the policy fingerprint before the update.
4. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded architecture as described in claim 1, characterized in that, In step S2, the local view of the synchronization state matrix is maintained by each intermediate cascade management node in the following way: Each intermediate cascade management node receives a synchronization confirmation message reported by the leaf-level leak scan engine under its jurisdiction. The synchronization confirmation message contains the leaf-level leak scan engine identifier and the policy fingerprint of the synchronized policy subset; Each intermediate cascade management node compares the synchronization confirmation message with the locally maintained local view of the synchronization state matrix. When the comparison result is inconsistent, the corresponding matrix element is updated to the unsynchronized confirmation state.
5. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded architecture as described in claim 1, characterized in that, The method by which the matrix elements in the local view that have undergone state changes in step S2 are aggregated step by step through the hierarchical path includes: each intermediate cascade management node encapsulates the matrix elements with state changes into incremental synchronization messages. The incremental synchronization message contains the row and column index of the changed matrix element, the state value before the change, the state value after the change, and the change timestamp. The incremental synchronization message is forwarded step by step along the uplink path of the multi-cascade management architecture. Before forwarding, each intermediate cascade management node appends its own hierarchical identifier to the forwarding path field of the incremental synchronization message.
6. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded management architecture according to claim 1, characterized in that, In step S3, the dynamic probe includes probe control instructions and probe payload data. The probe control instructions are used to instruct the leaf-level leak detection engine to load probe payload data in the isolated sandbox environment. The probe payload data encapsulates the construction parameters of simulated vulnerability response characteristics. The leaf-level leak detection engine executes probe load data in an isolated sandbox environment and returns the actual detection results to the central control engine through a hierarchical path of a multi-cascaded architecture.
7. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded architecture as described in claim 1, characterized in that, The method of constructing the policy consistency causal chain in step S4 includes: taking the policy fingerprint as the head node of the chain, according to the hierarchical affiliation relationship of each leaf-level leak scan engine corresponding to the same policy subset in the synchronization state matrix, linking the actual detection results of each leaf-level leak scan engine as chain body nodes to the head node of the chain in sequence, and using the hierarchical forwarding log generated by each intermediate cascade management node during the policy subset distribution process as the inter-chain connection edge. The inter-chain connection edge records the timestamp and forwarding target identifier when the policy subset is forwarded by the intermediate cascade management node.
8. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded architecture as described in claim 1, characterized in that, The method for tracing back to locate the hierarchical position of the synchronization anomaly along the inter-chain connection edge in step S5 includes: starting from the mismatched chain body node, tracing upwards along the inter-chain connection edge to the chain head node. During the tracing process, the forwarding target identifier recorded by each inter-chain connection edge is matched with the leaf-level leak scan engine identifier corresponding to the chain body node. When the first matching failure occurs, the intermediate cascade management node corresponding to the matching failure position is determined as the hierarchical position of the synchronization anomaly.
9. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded architecture as described in claim 1, characterized in that, The method of re-executing the policy subset distribution and synchronous confirmation in step S5 includes: the central control engine only re-distributes the corresponding policy subset to the leaf-level leak scan engines below the hierarchical position, and does not trigger the re-distribution of policy subsets to the leaf-level leak scan engines above the hierarchical position. After the redistribution is completed, the central control engine updates the state of the corresponding matrix element in the synchronization state matrix and rebuilds the policy consistency causal chain to verify the synchronization result.
10. The method for synchronizing the consistency detection strategy of a distributed leak scan engine under a multi-cascaded architecture according to any one of claims 1-9, characterized in that: The multi-level management architecture has three or more levels. The number of leaf-level leak scan engines managed by each intermediate cascade management node is adjusted according to the network topology constraints and scanning task load of the level where the intermediate cascade management node is located. The communication between the central control engine and each intermediate cascade management node, and between each intermediate cascade management node and its managed leaf-level leak scan engine, all adopt a message format with a policy fingerprint verification field.
