A network security alarm whitelisting rule verification and deviation control method and system
By simulating the enabled and disabled states of whitelisting rules in a shadow execution environment, a path change set and suppression impact graph are constructed. This solves the problem that existing technologies cannot automatically identify structural risks of whitelisting rules, and enables accurate prediction and automated approval of whitelisting rules, thereby improving the reliability and flexibility of security decisions.
Patent Information
- Application Number
- CN202611483380.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-22
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies cannot automatically identify structural risks in whitespace rules, leading to erroneous whitespace additions and distorted detection outputs. They also lack automated safety baseline verification and runtime deviation control.
By simulating the enabling and disabling states of whitelisting rules in a shadow execution environment, a path change set and suppression impact graph are constructed to identify structural risks. Through multidimensional invariant verification rules, automated verification of the safety baseline and runtime deviation control are ensured.
It enables accurate prediction and automated approval of whitelisting rules, avoiding erroneous whitelisting and distorted detection output, and improving the reliability and flexibility of security decisions.
Smart Images

Figure CN123145035A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of network security, and in particular relates to a method and system for verifying and controlling deviations in network security alarm whitelisting rules. Background Technology
[0002] In scenarios where traffic probe alarms from multiple lower-level units are uniformly collected and centrally operated in the data center, monitoring personnel summarize patterns based on alarm analysis experience and submit whitelisting rule applications to the operation and collaboration system. After the analysis personnel approve the application, the rule is uniformly stored in the operation and collaboration system and then adapted and distributed to downstream systems such as the network security situation awareness platform and the security orchestration automation and response system through the rule conversion engine, so as to perform actions such as silencing, blocking, or marking the alarms that meet the conditions as analyzed.
[0003] Currently, the management of whitelisting rules typically employs the following methods: (1) Static gating, which verifies the granularity of rule conditions, necessary field combinations, and rule repetition; (2) Hit statistics, which counts the number of hits within a time window before and after the rule takes effect, for approval reference and operational monitoring; (3) Rule conversion and distribution, which uses the operational collaboration system as the unified source of rules, generates adaptation expressions for different target systems through a rule conversion engine, and distributes them. However, the above methods still have the following drawbacks when handling whitelisting rules: First, static field validation or hit count statistics cannot predict which alarm detection and handling paths will be changed after the candidate whitelisting rule is enabled. For example, the approval interface can only display the expected hit count, but cannot distinguish which alarms will change from "awaiting manual judgment" to "whitelisted / silent". It is also difficult to identify the structural differences between false whitelisting attack test alarms and normal business false alarms, resulting in a lack of accurate basis for approval decisions.
[0004] Second, although it can count the expected number of suppressed alarms, it still cannot automatically identify structural risk clusters in the suppressed alarms. For example, it cannot identify situations where the proxy client IP is inconsistent with the source IP but the rule does not constrain the X-Forwarded-For request header field, it cannot identify situations where high-risk alarms are changed by the path, and it cannot identify situations where alarms across the application unit boundary are suppressed by the same rule.
[0005] Third, security baselines established in operational practice, such as "prohibiting the suppression of high-risk alerts" and "proxy field consistency," exist only in the form of manual specifications or operation manuals and have not yet been transformed into invariant verification logic for the detection chain that can be automatically executed by the computer system before rule approval and during operation. When whitelisting rules do not constrain request header fields such as X-Forwarded-For, attackers can use proxies to transmit the real attack IP, causing attack alerts to be mistakenly whitelisted and bypassing the detection chain. Similarly, the lack of automatic verification of high-risk alerts may lead to improper changes to the handling path of high-risk alerts.
[0006] Fourth, after the rules are issued, if the actual suppression effect is inconsistent with the approval expectations, or if a new security threshold for the detection link is breached, the existing technology mostly relies on manual review. Apart from some long-term zero-hit discontinuation strategies, there is a lack of a mechanism to automatically compare the approval baseline with the actual effect during the runtime and drive changes in the execution state of the rule engine accordingly. Summary of the Invention
[0007] This invention provides a method and system for verifying and controlling deviations in network security alarm whitelisting rules, which solves the problem of the inability to automatically identify structural risks, leading to erroneous whitelisting and distorted detection output.
[0008] This invention provides a basic solution: a method for network security alarm whitelisting rule verification and deviation control, comprising the following steps: S1: Obtain historical alarm slices, candidate whitelisting rules, rule versions, and engine versions, and preprocess the obtained information; S2: In a semantically consistent shadow execution environment, shadow suppression simulations of baseline state and candidate state are performed on historical alarm slices within a preset time window, respectively. The detection and handling path labels are compared between the two states, and alarms with inconsistent labels are identified as path change sets. The baseline state disables the candidate whitening rule and calculates the detection and handling path label for each alarm. The candidate state enables the candidate whitening rule and calculates the detection and handling path label for the same alarm. S3: Construct a suppression impact map based on the path change set, and extract a risk sub-map from the suppression impact map; S4: Based on the path change set, suppression impact graph and risk subgraph, perform link invariant verification according to preset verification rules to obtain the invariant violation set; S5: Perform an empty set check on the invariant violation set. If the invariant violation set is not empty, a gating signal is directly generated to prevent candidate whitelisting rules from entering the production activation state. If the invariant violation set is empty, the candidate whitelisting rules are manually approved. After approval, the current invariant verification pass snapshot is archived as the expected baseline, and the candidate whitelisting rules are adapted and distributed to the production alarm handling link through the rule conversion engine. The snapshot archive includes the invariant violation set, path change set summary, suppression impact graph summary, rule version, and time window definition. S6: During the execution of the candidate whitelisting rule, according to the time window definition archived in the expected baseline, re-execute steps S2-S4 on the actual alarm flow to obtain the runtime path change set, runtime suppression impact map and runtime invariant violation set. S7: Compare the runtime invariant violation set with the archived invariant violation set in the expected baseline. If there is an invariant number in the runtime invariant violation set that is newly added relative to the expected baseline, then generate a control signal to switch the execution state of the candidate whitelist rule in the production rule engine to the disabled or rollback state.
[0009] Preferably, in step S1, the preprocessing includes semantic consistency constraints and static gating operations; The semantic consistency constraints include: The candidate whitelisting rules are transformed by a rule transformation engine that is consistent with the production rule engine version in the target system, and then verified to ensure that the shadow execution environment is semantically consistent with the production rule engine. This semantic consistency includes that the field dictionary, operators, and value processing are semantically consistent. The static gating operation includes: Granularity constraints: It is prohibited to use alarm name or any single IP class field as the sole condition for whitening, and it is prohibited to use fuzzy matching or negation operator as the only condition; Required field validation: Candidate whitelisting rules must include at least the IP class field, alarm name, and URI field; Hash deduplication: Compare the candidate whitelisting rules with the existing rules using content hashing.
[0010] Preferably, the detection and handling path label is a multi-dimensional vector, including a display state component, an analysis state component, a security orchestration script state component, and an alarm level state component; In step S2, label inconsistency means that at least one component in the multidimensional vector has a different value.
[0011] Beneficial effects: By using semantic consistency constraints, the shadow test run and production suppression behavior are made comparable and verifiable, so that the shadow verification results have reliable predictive power for the production environment.
[0012] Preferably, in step S3, the suppression influence map construction strategy is as follows: Using alarms in the path change set as nodes, add node attributes to each node, and establish an edge between the nodes when two alarm nodes meet the preset association conditions to form a suppression effect graph. The node attributes attached to each node include alarm level, applicant unit identifier, asset identifier, URI, and marking information indicating whether the proxy client IP and the source IP are consistent; The preset association conditions include: two nodes sharing the same asset, two nodes belonging to the same applicant, or the URIs of two nodes belonging to the same URI family; when any of the above conditions are met, an edge is established between the corresponding nodes.
[0013] Beneficial effects: By attaching multi-dimensional attributes such as alarm level, applying unit, asset, URI and proxy consistency to alarm nodes in the path change set, and establishing edges with asset co-occurrence, unit co-occurrence or URI cluster co-occurrence as association conditions, discrete alarm nodes are formed into a structured graph, which can automatically identify structural risk clusters such as high risk, cross-unit, and inconsistent proxy source addresses, providing structured input for subsequent invariant verification.
[0014] Preferably, in step S3, the risk sub-graph includes: The high-risk subgraph consists of nodes with a high-risk alert level in the path change set and their associated edges; The cross-unit subgraph consists of nodes whose applicant unit identifiers in the path change set are inconsistent with those of the applicant units in the candidate whitening rules, and their associated edges. The proxy source address inconsistency subgraph consists of nodes in the path change set where the proxy client IP and the source IP are inconsistent, and their associated edges.
[0015] Beneficial effects: By extracting high-risk subgraphs, cross-unit subgraphs, and proxy source address inconsistency subgraphs from the suppression impact graph, the three typical structural risk clusters in the path change set are explicitly separated. This allows subsequent invariant verification to perform independent and computable judgments for each type of risk, avoiding the obscuring of structural defects by a single statistical indicator. As a result, the risks of high-risk alarms being suppressed, cross-unit out-of-bounds suppression, and attack traffic being mistakenly whitelisted due to unconstrained proxy fields can be automatically identified and blocked before approval.
[0016] More preferably, the preset verification rules include: I1: High-risk invariant, requiring the high-risk subgraph to be empty; I2: Boundary invariant, requires that the subgraphs across units be empty; I3: Proxy consistency invariant, requires that when the proxy source address inconsistency subgraph is empty, or when the proxy source address inconsistency subgraph is not empty, the candidate whitelist rule must constrain the X-Forwarded-For and / or X-Real-IP fields; I4: The path is monotonic and invariant, requiring that there is no situation where the alarm is "awaiting manual judgment" in the detection and handling path label of the baseline state and "completely silent" in the detection and handling path label of the candidate state; I6: Traffic upper bound invariant, requiring that, within the configurable statistical range and granularity, the number of alarms falling into the path change set does not exceed the configurable upper bound; When any of the above conditions are not met, the invariant is added to the invariant violation set.
[0017] Beneficial effects: By setting five types of computable invariants, the security baselines such as "prohibiting the suppression of high-risk alarms", "prohibiting cross-unit and out-of-boundary suppression", "proxy field consistency", "path monotonicity" and "traffic upper bound" are formalized into computer-executable verification logic. This enables the automatic and comprehensive detection of structural defects in candidate whitelisting rules across multiple security dimensions before approval. When any invariant is not satisfied, it is added to the invariant violation set to trigger gating, thereby avoiding omissions and misjudgments caused by relying on manual specifications or experience-based judgments, and significantly improving the reliability of whitelisting rule approval.
[0018] More preferably, during runtime, the preset verification rules further include: I5: Activity Invariant, used for evaluation during operation. When the set of path changes is empty within a consecutive preset period T, the activity is deemed to fail, triggering rule deactivation or generating deactivation suggestions. The preset period T is configured according to the alarm traffic cycle pattern, operation management strategy requirements, or rule type attributes. I5 is not included in the invariant verification before manual approval and is not included in the invariant violation set.
[0019] Beneficial effects: By setting the I5 activity invariant, the activity of rules whose path change set is empty within a consecutive preset period is determined during runtime, and deactivation or deactivation suggestion is triggered accordingly. This can automatically discover whitelist rules that have been invalid for a long time due to business changes or threat decay. At the same time, I5 does not participate in pre-approval verification and is not included in the invariant violation set, which distinguishes it from security mandatory constraints such as I1 to I4 and I6. This avoids unnecessary pre-judgment of rule activity during the approval stage, balancing the strictness of security control with the flexibility of operation management.
[0020] Preferably, in step S5, if the invariant violates the non-empty set rule, a gating signal is directly generated to prevent the candidate whitening rule from entering the production enabled state, without rule conversion or distribution; steps S2-S4 are then re-executed after the rule conditions are manually modified.
[0021] Beneficial effects: By directly generating a gating signal when an invariant violates the non-empty set rule, candidate rules are prohibited from entering the production activation state and rule conversion and distribution are blocked. This prevents rules with structural defects from entering the production environment, avoiding the risk of erroneous whitelisting from the source. At the same time, by manually modifying the rule conditions and re-executing steps S2-S4, a closed-loop verification mechanism is established to ensure that the rule can be deployed only after being corrected and passing all invariant verifications again. This forms a safe gating process that intercepts rules that fail verification and requires verification after correction.
[0022] Another basic solution provided by this invention is: a network security alarm whitelisting rule verification and deviation control system, used to run the above method, comprising: The data acquisition and preprocessing module is used to acquire historical alarm slices, candidate whitelisting rules, rule versions and engine versions, and to preprocess the acquired information. The shadow suppression calculation module includes a path change set generation submodule, a suppression effect map generation submodule, and an invariant detection submodule; The path change set generation submodule performs shadow suppression simulations for baseline and candidate states for historical alarm slices within a preset time window in a semantically consistent shadow execution environment. It compares the detection and handling path labels in the two states and identifies alarms with inconsistent labels as path change sets. The baseline state disables the candidate whitening rule and calculates the detection and handling path label for each alarm. The candidate state enables the candidate whitening rule and calculates the detection and handling path label for the same alarm. The suppression impact map generation submodule constructs a suppression impact map based on the path change set and extracts a risk subgraph from the suppression impact map. The invariant detection submodule performs invariant verification of the detection link according to preset verification rules based on the path change set, the suppression effect graph and the risk subgraph, and obtains the invariant violation set. The rule judgment and distribution module is used to determine whether the invariant violation set is empty. If the invariant violation set is not empty, a gating signal is directly generated to prevent the candidate whitelisting rule from entering the production activation state. If the invariant violation set is empty, the candidate whitelisting rule is manually approved. After approval, the current invariant verification pass snapshot is archived as the expected baseline. The snapshot archive includes a summary of the invariant violation set and the path change set, a summary of the suppression impact graph, the rule version and time window definition. At the same time, the candidate whitelisting rule is adapted and distributed to the production alarm handling link through the rule conversion engine. The runtime feedback module is used to generate a runtime path change set, a runtime suppression impact map, and a runtime invariant violation set based on the actual alarm flow, according to the time window definition archived in the expected baseline. It compares the runtime invariant violation set with the invariant violation set archived in the expected baseline. If there are new invariant numbers in the runtime invariant violation set relative to the expected baseline, it generates a control signal to switch the execution state of the candidate whitelist rule in the production rule engine to a disabled or rollback state.
[0023] The principles and advantages of this invention are as follows: 1. By generating a path change set through counterfactual dual-state shadow execution, it is possible to accurately predict which alarm detection and handling paths will be changed after the candidate whitelisting rule is enabled. Compared with simple hit count statistics, it has stronger predictability and interpretability, providing accurate basis for approval decisions.
[0024] 2. By constructing a suppression impact graph based on the path change set and extracting risk subgraphs, it can automatically identify structural risk clusters such as unconstrained proxy source addresses, cross-unit boundaries, and high-risk alarms being changed by paths. This avoids the problems of incorrect whitelisting and distorted detection output caused by the inability of existing technologies to automatically identify structural risks.
[0025] 3. By comparing the relative additions to the expected baseline archive and runtime invariant violation set, the system can automatically detect new safety bottom line breaches relative to the approval baseline during rule execution and drive the rule engine execution state change, forming a deviation control closed loop without relying on manual review.
[0026] 4. By checking the invariant of the detection link, the security baselines such as prohibiting the suppression of high-risk alarms and ensuring the consistency of proxy fields can be formalized into executable constraints. Candidate rules with structural defects can be automatically intercepted before approval, so as to avoid the security baselines remaining at the level of manual specification. Attached Figure Description
[0027] Figure 1 This is a flowchart of the present invention; Figure 2 This is a system logic block diagram of the present invention; Figure 3 This is a schematic diagram of the counterfactual two-state shadow execution in an embodiment of the present invention; Figure 4 This is a schematic diagram of runtime invariant violation comparison and execution-state control timing in an embodiment of the present invention. Detailed Implementation
[0028] The following detailed description illustrates the specific implementation method: The specific implementation process is as follows: (See details) Figure 1A method for verifying and controlling deviations in network security alert whitelisting rules includes the following steps: S1: Obtain historical alarm slices, candidate whitelisting rules, rule versions, and engine versions, and preprocess the obtained information.
[0029] The rule version and engine version are used to indicate the objects to be aligned in this trial run.
[0030] The engine version includes the version of the rule transformation engine and the version of the production rule engine in the target system to which the candidate whitelist rule is adapted.
[0031] In step S1, the preprocessing includes semantic consistency constraints and static gating operations; The semantic consistency constraints include: The candidate whitelisting rules are transformed using a rule transformation engine consistent with the production rule engine version in the target system, and semantic consistency is checked to ensure that the shadow execution environment is semantically consistent with the production rule engine. This semantic consistency includes maintaining consistency in the field dictionary, operators, and value processing. If the check fails, the subsequent shadow execution process is terminated.
[0032] The static gating operation includes: Granularity constraints: It is prohibited to use only the alarm name or any single IP class field (such as source IP, destination IP, etc.) as the whitening condition, and it is prohibited to use fuzzy matching or negation operators as the only condition; Required field validation: Candidate whitelisting rules must include at least the IP class field, alarm name, and URI (Uniform Resource Identifier) field; Hash deduplication: Candidate whitelisting rules are compared with existing rules using content hashing to avoid duplicate whitelisting. Specifically, if the hash value of a candidate rule is the same as the hash value of any existing rule, it is determined to be a duplicate rule and is rejected from further processing. The hash value is calculated by concatenating all condition fields, operators, and values of the rule in a predetermined order and then using the SHA-256 or MD5 algorithm.
[0033] S2: In a semantically consistent shadow execution environment, historical alarm slices within a preset time window W. Shadow suppression simulations were performed in both the baseline and candidate states. The detected path labels were compared between the two states, and alarms with inconsistent labels were identified as path change sets. ; The baseline state is the rule for disabling candidate whitelisting, and the detection and handling path label is calculated for each alarm a; The candidate state is to enable the candidate whitelisting rule and calculate the detection and handling path label for the same alarm a.
[0034] The detection and handling path label is a multi-dimensional vector, including display state component, judgment state component, security orchestration script state component and alarm level state component; In step S2, label inconsistency means that at least one component in the multidimensional vector has a different value.
[0035] Path Change Set The calculation formula is:
[0036] in, This represents the path label vector for alarm 'a' when the rule is disabled. This represents the path label vector of alarm 'a' when the rule is enabled. Preferably, the time window W is a rolling 7-day window.
[0037] S3: Construct a suppression effect map based on the path change set And from the suppression effect diagram Extract the risk subgraph from it; In step S3, the suppression influence map construction strategy is as follows: Using alarms in the path change set as nodes, each node is assigned node attributes. When two alarm nodes meet preset association conditions, an edge is established between the nodes, forming a suppression effect graph. ; The node attributes attached to each node include alarm level. Applicant's identification Asset identification URI, and information indicating whether the proxy client IP matches the source IP; The preset association conditions include: two nodes sharing the same asset, two nodes belonging to the same applicant, or the URIs of two nodes belonging to the same URI family; when any of the above conditions are met, an edge is established between the corresponding nodes.
[0038] The clustering method for URI clusters is as follows: Remove query parameters from the URI, and template numeric fields (such as user ID and timestamp) into placeholders using regular expressions. Use the processed string as the clustering key corresponding to the URI. URIs with the same clustering key are grouped into the same URI cluster.
[0039] For example, / user / 12345 / profile?timestamp=20260723&from=home is processed into / user / 12345 / profile; both / user / 12345 / profile and / user / 67890 / profile are processed into / user / {id} / profile; both / order / 20260701 / detail and / order / 20260702 / detail are processed into / order / {date} / detail. After processing, K_uri( / user / 12345 / profile) = / user / {id} / profile and K_uri( / user / 67890 / profile) = / user / {id} / profile. Since they have the same clustering key, they belong to the same URI cluster, and edges are established between the corresponding nodes in the suppression influence graph.
[0040] In this embodiment, the asset clustering key is... Clustering keys of applicant units URI clustering key To accelerate edge construction, an inverted index is pre-built for each key value. Specifically, the cluster key is used as the index term to record all nodes with that cluster key. When constructing edges, a set of nodes is retrieved from the same index term, and edges are constructed between nodes within that set. For example, if the index term / user / {id} / profile corresponds to the node set {node v1, node v5, node v9}, then edges are constructed between node v1 and node v5, between node v1 and node v9, and between node v5 and node v9, respectively. The construction of the inverted index does not change the semantics of the edge relationship Rel.
[0041] In step S3, the risk subgraph includes: High-risk subgraph Nodes in the set whose alarm level is high-risk due to path changes It consists of its associated edges, where H is a predefined set of high-risk levels, set according to the alarm level classification system of the target system. In this embodiment, the default value is {HIGH, CRITICAL}, and it is configured to include other level identifiers such as MEDIUM according to the security management policy. Cross-unit subgraph The application units whose identifiers and candidate whitelisting rules are changed by the path in the application unit set. Inconsistent nodes It consists of its associated edges; Proxy source address inconsistency subgraph The path change set contains nodes where the proxy client IP and the source IP are inconsistent. It consists of its associated edges.
[0042] S4: Based on the path change set, suppression impact graph, and risk subgraph, perform link invariant verification according to preset verification rules to obtain the invariant violation set. .
[0043] The preset verification rules include: I1: High-risk invariant, requiring the high-risk subgraph to be empty; I2: Boundary invariants, requiring that subgraphs across units be empty, i.e. There are no alarm nodes in the path change set whose applicant unit identifier is inconsistent with the candidate rule applicant unit orgR; I3: Proxy consistency invariant, requires that when the proxy source address inconsistency subgraph is empty, or when the proxy source address inconsistency subgraph is not empty, the candidate whitelist rule must constrain the X-Forwarded-For and / or X-Real-IP fields; I4: The path is monotonically invariant, requiring that there are no situations where the alarm is "awaiting manual review" in the baseline state detection and handling path label and "completely silent" in the candidate state detection and handling path label; "awaiting manual review" refers to the value of the review state component, and "completely silent" indicates that the alarm is not displayed in the display state and does not enter the main script in the security orchestration script state, i.e. The judgment state component is "awaiting manual judgment" and When the presentation component is "not presented" and the safe orchestration component is "do not enter the main script", it constitutes an I4 violation.
[0044] I6: Traffic upper bound invariant, requiring that, within a configurable statistical range and granularity, the number of alarms falling into the path change set does not exceed a configurable upper bound; the configurable upper bound is set based on at least one of the following factors: historical alarm total baseline, operations team handling capability, alarm level and business importance, historical hit statistics of similar rules, compliance and audit requirements; in this embodiment, the statistical range is a time window W, the statistical granularity is a natural day d, and the number of alarms falling into ΔP on that day is denoted as n(d), requiring that for all d ∈ W, n(d) ≤ , The output ranges from 1,000 to 10,000 items per day; in this embodiment, the value is 5,000 items per day.
[0045] When any of the above conditions are not met, the invariant is added to the invariant violation set.
[0046] S5: Violation of set invariants Perform an empty set check; If the invariant violates the non-empty set ( If so, a gating signal is directly generated to prevent candidate whitelisting rules from entering the production enabled state. No rule conversion or distribution is performed. At this time, the rule conditions are manually modified and steps S2-S4 are re-executed. The next step is only performed when the new round of invariant violation set is empty. It is required that the deletion of violation number or the removal of application shall not be regarded as passing. When the field is significantly changed, the preprocessing steps in step S1 are used for processing before step S2 is executed.
[0047] If the invariant violates the rule that the set is empty ( If the candidate whitelisting rule is approved, it will be manually reviewed. After approval, the current invariant verification will be saved as the expected baseline B, and the candidate whitelisting rule will be adapted and distributed to the production alarm handling link through the rule conversion engine. The content of the snapshot archive includes the invariant violation set. (When approval is granted) This value, once archived, serves as the baseline invariant violation set. ), path change set summary, suppression impact graph summary, rule version and time window definition.
[0048] Specifically, the step of adapting and distributing candidate whitelisting rules to the production alarm handling link via the rule conversion engine is as follows: the operation collaboration system serves as the unified source of rules, generates adaptation expressions for target systems such as the network security situation awareness platform and the security orchestration automation and response system via the rule conversion engine, and distributes them to each target system in the production alarm handling link.
[0049] S6: During the execution of candidate whitening rules, the time window defined in the expected baseline is followed. Re-execute steps S2-S4 on the actual alarm flow to obtain the runtime path change set. Operational period suppression impact diagram and runtime invariants violate set rules ; During runtime, the preset verification rules also include: I5: Activity invariant, used for evaluation during operation. When the set of path changes is empty within a consecutive preset period T, the activity is deemed to fail, triggering rule deactivation or generating deactivation suggestions. The preset period T is configured according to the alarm traffic cycle pattern, operation management strategy requirements, or rule type attributes. In this embodiment, the preset period is set to 180 days. I5 is not included in the invariant verification before manual approval and is not included in the invariant violation set. That is, the default check set before approval is {I1, I2, I3, I4, I6}, and I5 is only evaluated separately during runtime.
[0050] During the operation period, the statistical range and granularity of the invariant I6 remain consistent with those at the time of approval to ensure that the recalculation results during the operation period are comparable to the expected baseline.
[0051] S7: Invariant violates comparison and execution control; Comparison of runtime invariants violates set rules The set of baseline invariants archived in expected baseline B violates the set. Calculate the set of newly added violation numbers:
[0052] in, The set of invariant violations in step S5 is defined by the invariant set at the time of approval. The baseline invariant violation set obtained from the archive (when approval is granted) Therefore ).
[0053] If the runtime invariant violation set contains newly added invariant numbers relative to the expected baseline ( Then, a control signal is generated to switch the execution state of the candidate whitening rule in the production rule engine to a disabled or rollback state.
[0054] Specifically, when Added contains any of the numbers I1, I2, I3, I4, or I6, the rule execution state is forcibly switched to DISABLED (disabled); when I5 fails, the rule execution state is switched to DISABLED according to the configuration, or only a disabling suggestion is sent and the on-duty personnel are notified. The control signal Ctrl acts on the production rule engine through API calls or configuration distribution to complete the execution state change.
[0055] Taking the X-Forwarded-For unconstrained scenario as an example: A security operations center submitted a whitelisting rule application for alerts related to the Apache Shiro RememberMe deserialization vulnerability. The source IP of these alerts is an internal proxy address, and the real attacking IP of the red team's test traffic is located in the X-Forwarded-For request header.
[0056] The candidate rules are combined using AND logic. The condition fields include source IP (belonging to a preset set of internal network proxy addresses), destination IP (belonging to a preset set of destination addresses), destination port (belonging to {80, 8080, 8088}), alarm name (equal to "Apache Shiro RememberMe deserialization vulnerability"), domain name (belonging to a preset set of domain names), and URI (containing a preset path fragment). The candidate rules do not contain IP field constraints in request headers such as X-Forwarded-For or X-Real-IP.
[0057] After preprocessing, see Figure 3 A bi-state shadow suppression simulation was performed on the historical alarm slices within the rolling 7-day window. The path label of the red team test alarm (the proxy IP and the source IP are inconsistent) changed from "awaiting manual review" to "whitelisted / silent," and it was included in the path change set ΔP. After executing step S3, the proxy source address inconsistency subgraph... Not empty. During step S4, because... If the candidate rule R is not empty and does not constrain the X-Forwarded-For and / or X-Real-IP fields, the I3 proxy consistency invariant check fails. = {I3}. Step S5 generates a gate signal (Gate) to prevent the rule from entering production and prompts the applicant to supplement the IP field constraint in the request header.
[0058] After the applicant supplemented the X-Forwarded-For field constraint, steps S2-S4 were executed again, and the I3 validation passed. The rules are then subject to manual approval and issuance.
[0059] Take a cross-unit boundary scenario as an example: A subordinate unit A submitted a whitelist rule application for an alarm related to "detection of attacks on IoT devices". Each unit deploys an independent local area network segment. Units A and B both have 172 network segment addresses. Initially, the candidate rules only matched the source IP (172.16.32.101, 172.16.32.99), destination IP (172.16.66.228), and destination port (514), without limiting the data source collection boundaries.
[0060] After preprocessing, step S2 is executed. Both false IoT alarms from Unit A and similar IoT alarms from Unit B change from "awaiting manual review" to "whitelisted / silent," and are included in ΔP. After executing step S3, cross-unit subgraphs... Non-empty ( (The set of nodes across the unit subgraph) contains B-unit nodes. During step S4, the I2 boundary invariant check fails. = {I2}. Step S5 generates a Gate signal, prompting the applicant to supplement the data source IP or unit boundary constraints.
[0061] After the applicant adds the condition "the data source IP belongs to 10.130.11.22" (the traffic probe data collection source of Unit A), steps S2-S4 are re-executed, and only alarms from Unit A are retained in ΔP. If empty, the I2 check passes, and the rule enters the manual approval process and is issued.
[0062] Runtime invariant violation scenarios: See Figure 4This is a schematic diagram illustrating runtime invariant violation comparisons and execution-state control timing. When a certain whitening rule is approved, the expected baseline B record shows that the default checkset {I1,I2,I3,I4,I6} all passed the verification before approval, and the number of path changes within the 7-day rolling window was 11953. .
[0063] During rule execution, the system performs step S6 according to the rolling 7-day window definition in the expected baseline, recalculating the actual alarm flow. The path labels for newly emerging high-risk alarms change, and the high-risk subgraph... Not empty. After executing step S4, = {I1}. Step S7 calculates Added = {I1} \ = {I1} ≠ Generate a control signal Ctrl to switch the execution state of the corresponding rule in the production rule engine to DISABLED and send a notification to the duty group.
[0064] How semantically consistent shadow environments are implemented: In one implementation, the operation and collaboration system builds shadow suppression verification capabilities, including: (1) Historical alarm playback module, used to provide alarm slices within a preset time window to the shadow execution environment; (2) Shadow rule engine, which shares the same matching expression output by the rule transformation engine as the production rule engine, and maintains consistency in field dictionary, operator and value processing semantics; (3) Approval interface, used to display the summary of path change set, the risk subgraph of the suppression impact graph and the invariant verification results; (4) Expected baseline library, used to archive and verify snapshots after approval.
[0065] The version number of the rule conversion engine and the version number of the production rule engine in the target system are recorded and bound to the shadow trial results each time the shadow is executed, so as to ensure the traceability and verifiability of the trial results.
[0066] Based on the existing capabilities of static gating, rule conversion and distribution, hit statistics, and long-term zero-hit shutdown, a complete shadow suppression verification and runtime feedback control closed loop will be implemented.
[0067] Runtime control scenarios for active invariants: A certain whitelisting rule, after being approved, ran for an extended period. Due to business changes, the rule went 180 days without any alarms being triggered. During the recalculation in step S6, the I5 activity invariant determination showed that ΔP was empty for a continuous preset period T=180 days, indicating that the activity failed. According to the system configuration, when I5 fails, if the system is configured for strong deactivation, a control signal Ctrl is generated to switch the rule's execution state to DISABLED; if the system is configured for suggestion mode, only a deactivation suggestion is generated and notified to the rule creator and the monitoring group, allowing for a manual decision on whether to deactivate the rule.
[0068] Example 2 See Figure 2 It also includes a network security alert whitelisting rule verification and deviation control system for running the above method, including: The data acquisition and preprocessing module is used to acquire historical alarm slices, candidate whitelisting rules, rule versions and engine versions, and to preprocess the acquired information. The shadow suppression calculation module includes a path change set generation submodule, a suppression effect map generation submodule, and an invariant detection submodule; The path change set generation submodule performs shadow suppression simulations for baseline and candidate states for historical alarm slices within a preset time window in a semantically consistent shadow execution environment. It compares the detection and handling path labels in the two states and identifies alarms with inconsistent labels as path change sets. The baseline state disables the candidate whitening rule and calculates the detection and handling path label for each alarm. The candidate state enables the candidate whitening rule and calculates the detection and handling path label for the same alarm. The suppression impact map generation submodule constructs a suppression impact map based on the path change set and extracts a risk subgraph from the suppression impact map. The invariant detection submodule performs invariant verification of the detection link according to preset verification rules based on the path change set, the suppression effect graph and the risk subgraph, and obtains the invariant violation set. The rule judgment and distribution module is used to determine whether the invariant violation set is empty. If the invariant violation set is not empty, a gating signal is directly generated to prevent the candidate whitelisting rule from entering the production activation state. If the invariant violation set is empty, the candidate whitelisting rule is manually approved. After approval, the current invariant verification pass snapshot is archived as the expected baseline. The content of the snapshot archive includes the invariant violation set, the path change set summary, the suppression impact graph summary, the rule version and time window definition. At the same time, the candidate whitelisting rule is adapted and distributed to the production alarm handling link through the rule conversion engine. The runtime feedback module is used to generate a runtime path change set, a runtime suppression impact map, and a runtime invariant violation set based on the actual alarm flow, according to the time window definition archived in the expected baseline. It compares the runtime invariant violation set with the invariant violation set archived in the expected baseline. If there are new invariant numbers in the runtime invariant violation set relative to the expected baseline, it generates a control signal to switch the execution state of the candidate whitelist rule in the production rule engine to a disabled or rollback state.
[0069] The above are merely embodiments of the present invention. Commonly known structures and characteristics are not described in detail here. Those skilled in the art are aware of all common technical knowledge in the field prior to the application date or priority date, are aware of all existing technologies in that field, and have the ability to apply conventional experimental methods prior to that date. Those skilled in the art can, under the guidance of this application, improve and implement this solution in combination with their own capabilities. Some typical known structures or methods should not be obstacles for those skilled in the art to implement this application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the structure of the present invention. These should also be considered within the scope of protection of the present invention, and will not affect the effectiveness of the implementation of the present invention or the practicality of the patent. The scope of protection claimed in this application should be determined by the content of its claims, and the specific embodiments described in the specification can be used to interpret the content of the claims.
Claims
1. A method for network security alarm whitelisting rule verification and deviation control, characterized in that, Includes the following steps: S1: Obtain historical alarm slices, candidate whitelisting rules, rule versions, and engine versions, and preprocess the obtained information; S2: In a semantically consistent shadow execution environment, shadow suppression simulations of baseline state and candidate state are performed on historical alarm slices within a preset time window, respectively. The detection and handling path labels are compared between the two states, and alarms with inconsistent labels are identified as path change sets. The baseline state disables the candidate whitening rule and calculates the detection and handling path label for each alarm. The candidate state enables the candidate whitening rule and calculates the detection and handling path label for the same alarm. S3: Construct a suppression impact map based on the path change set, and extract a risk sub-map from the suppression impact map; S4: Based on the path change set, suppression impact graph and risk subgraph, perform link invariant verification according to preset verification rules to obtain the invariant violation set; S5: Perform an empty set check on the invariant violation set. If the invariant violation set is not empty, a gating signal is directly generated to prevent candidate whitelisting rules from entering the production activation state. If the invariant violation set is empty, the candidate whitelisting rules are manually approved. After approval, the current invariant verification pass snapshot is archived as the expected baseline, and the candidate whitelisting rules are adapted and distributed to the production alarm handling link through the rule conversion engine. The snapshot archive includes the invariant violation set, path change set summary, suppression impact graph summary, rule version, and time window definition. S6: During the execution of the candidate whitelisting rule, according to the time window definition archived in the expected baseline, re-execute steps S2-S4 on the actual alarm flow to obtain the runtime path change set, runtime suppression impact map and runtime invariant violation set. S7: Compare the runtime invariant violation set with the archived invariant violation set in the expected baseline. If there is an invariant number in the runtime invariant violation set that is newly added relative to the expected baseline, then generate a control signal to switch the execution state of the candidate whitelist rule in the production rule engine to the disabled or rollback state.
2. The network security alarm whitelisting rule verification and deviation control method according to claim 1, characterized in that: In step S1, the preprocessing includes semantic consistency constraints and static gating operations; The semantic consistency constraints include: The candidate whitelisting rules are transformed by a rule transformation engine that is consistent with the production rule engine version in the target system, and then verified to ensure that the shadow execution environment is semantically consistent with the production rule engine. This semantic consistency includes that the field dictionary, operators, and value processing are semantically consistent. The static gating operation includes: Granularity constraints: It is prohibited to use alarm name or any single IP class field as the sole condition for whitening, and it is prohibited to use fuzzy matching or negation operator as the only condition; Required field validation: Candidate whitelisting rules must include at least the IP class field, alarm name, and URI field; Hash deduplication: Compare the candidate whitelisting rules with the existing rules using content hashing.
3. The network security alarm whitelisting rule verification and deviation control method according to claim 1, characterized in that: The detection and handling path label is a multi-dimensional vector, including display state component, judgment state component, security orchestration script state component and alarm level state component; In step S2, label inconsistency means that at least one component in the multidimensional vector has a different value.
4. The network security alarm whitelisting rule verification and deviation control method according to claim 1, characterized in that: In step S3, the suppression influence map construction strategy is as follows: Using alarms in the path change set as nodes, each node is assigned node attributes. When two alarm nodes meet the preset association conditions, an edge is established between the nodes to form a suppression effect graph. The node attributes attached to each node include alarm level, applicant unit identifier, asset identifier, URI, and marking information indicating whether the proxy client IP and the source IP are consistent; The preset association conditions include: two nodes sharing the same asset, two nodes belonging to the same applicant, or the URIs of two nodes belonging to the same URI family; when any of the above conditions are met, an edge is established between the corresponding nodes.
5. The network security alarm whitelisting rule verification and deviation control method according to claim 1 or 4, characterized in that: In step S3, the risk subgraph includes: The high-risk subgraph consists of nodes with a high-risk alert level in the path change set and their associated edges; The cross-unit subgraph consists of nodes whose applicant unit identifiers in the path change set are inconsistent with those of the applicant units in the candidate whitening rules, and their associated edges. The proxy source address inconsistency subgraph consists of nodes in the path change set where the proxy client IP and the source IP are inconsistent, and their associated edges.
6. The network security alarm whitelisting rule verification and deviation control method according to claim 5, characterized in that: The preset verification rules include: I1: High-risk invariant, requiring the high-risk subgraph to be empty; I2: Boundary invariants, requiring that subgraphs across units be empty; I3: Proxy consistency invariant, requires that when the proxy source address inconsistency subgraph is empty, or when the proxy source address inconsistency subgraph is not empty, the candidate whitelist rule must constrain the X-Forwarded-For and / or X-Real-IP fields; I4: The path is monotonically invariant, requiring that there is no situation where the alarm is "awaiting manual judgment" in the detection and handling path label of the baseline state and "completely silent" in the detection and handling path label of the candidate state; I6: Traffic upper bound invariant, requiring that, within the configurable statistical range and granularity, the number of alarms falling into the path change set does not exceed the configurable upper bound; When any of the above conditions are not met, the invariant is added to the invariant violation set.
7. The network security alarm whitelisting rule verification and deviation control method according to claim 1, characterized in that: During runtime, the preset verification rules also include: I5: Activity Invariant, used for evaluation during operation. When the set of path changes is empty within a consecutive preset period T, the activity is deemed to fail, triggering rule deactivation or generating deactivation suggestions. The preset period T is configured according to the alarm traffic cycle pattern, operation management strategy requirements, or rule type attributes. I5 is not included in the invariant verification before manual approval and is not included in the invariant violation set.
8. The network security alarm whitelisting rule verification and deviation control method according to claim 1, characterized in that: In step S5, if the invariant violates the non-empty set rule, a gating signal is directly generated to prevent the candidate whitening rule from entering the production enabled state, without rule conversion or distribution; steps S2-S4 are then re-executed after the rule conditions are manually modified.
9. A network security alarm whitelisting rule verification and deviation control system, characterized in that, include: The data acquisition and preprocessing module is used to acquire historical alarm slices, candidate whitelisting rules, rule versions and engine versions, and to preprocess the acquired information. The shadow suppression calculation module includes a path change set generation submodule, a suppression effect map generation submodule, and an invariant detection submodule; The path change set generation submodule performs shadow suppression simulations for baseline and candidate states for historical alarm slices within a preset time window in a semantically consistent shadow execution environment. It compares the detection and handling path labels in the two states and identifies alarms with inconsistent labels as path change sets. The baseline state disables the candidate whitening rule and calculates the detection and handling path label for each alarm. The candidate state enables the candidate whitening rule and calculates the detection and handling path label for the same alarm. The suppression impact map generation submodule constructs a suppression impact map based on the path change set and extracts a risk subgraph from the suppression impact map. The invariant detection submodule performs invariant verification of the detection link according to preset verification rules based on the path change set, the suppression effect graph and the risk subgraph, and obtains the invariant violation set. The rule judgment and distribution module is used to determine whether the invariant violation set is empty. If the invariant violation set is not empty, a gating signal is directly generated to prevent the candidate whitelisting rule from entering the production activation state. If the invariant violation set is empty, the candidate whitelisting rule is manually approved. After approval, the current invariant verification pass snapshot is archived as the expected baseline. The snapshot archive includes a summary of the invariant violation set and the path change set, a summary of the suppression impact graph, the rule version and time window definition. At the same time, the candidate whitelisting rule is adapted and distributed to the production alarm handling link through the rule conversion engine. The runtime feedback module is used to generate a runtime path change set, a runtime suppression impact map, and a runtime invariant violation set based on the actual alarm flow, according to the time window definition archived in the expected baseline. It compares the runtime invariant violation set with the invariant violation set archived in the expected baseline. If there are new invariant numbers in the runtime invariant violation set relative to the expected baseline, it generates a control signal to switch the execution state of the candidate whitelist rule in the production rule engine to a disabled or rollback state.
