A method and system for automatically identifying cryptographic algorithms in data processing

By constructing a probe set, dynamically selecting it, and using Bayesian updates, the problems of invalid probe calculation and misjudgment in the automatic identification of cryptographic algorithms are solved, achieving efficient and reliable cryptographic algorithm identification.

CN123138818APending Publication Date: 2026-11-20ZHONGKE ERNST & YOUNG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611139246.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-29
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, automatic identification methods for cryptographic algorithms rely on fixed detection processes, which leads to redundant calculations of invalid probes, high identification latency, and a tendency to misjudge in short ciphertext scenarios. These methods are not suitable for engineering applications in scenarios involving the processing of massive amounts of heterogeneous ciphertext data.

Method used

A probe set is constructed, metadata and a minimum data processing threshold are set, probes that do not meet the conditions are eliminated through gating decision, the probe with the largest information gain value is dynamically selected, and identification is performed by combining Bayesian update and dynamic confidence threshold. External verification feedback drives online self-calibration of probe scheduling knowledge.

Benefits of technology

By employing a dynamic probe scheduling mechanism, invalid probe calculations are avoided, recognition latency is reduced, recognition throughput is improved, the robustness of recognition results and the reliability of decision-making are enhanced, and adaptive optimization is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138818A_ABST
    Figure CN123138818A_ABST
Patent Text Reader

Abstract

The present application relates to the field of cryptography and data processing technology, and more particularly to a data processing cryptographic algorithm automatic identification method and system, comprising: constructing a probe set and setting minimum data volume threshold and initial information gain and other metadata, initializing candidate algorithm and other prior probability; the ciphertext gate decision admits the probe set; select the maximum information gain probe, gain the same multi-level arbitration; update each algorithm posterior probability with the probe output Bayesian; calculate the dynamic confidence threshold adjusted from high to low with the increase of information, and output the result if the threshold is exceeded, otherwise continue to schedule or refuse to recognize; backtracking path after verification, online correction gain according to contribution and self-calibration. The present application selects the probe with the optimal distinguishing ability according to the actual characteristics of the to-be-identified ciphertext data, avoids the redundant calculation of invalid probes in the fixed process, significantly reduces the identification delay, and improves the identification throughput in the large-scale ciphertext data processing scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of cryptography and data processing technology, and in particular to a method and system for automatic identification of cryptographic algorithms in data processing. Background Technology

[0002] In the field of data security processing, automatic identification of encrypted data is a fundamental prerequisite for decryption analysis, compliance auditing, and threat detection. Current technologies primarily rely on two methods for automatic identification of cryptographic algorithms: static feature matching and fixed-process statistical detection. Static feature matching identifies encryption algorithms by extracting known constants (such as the S-box of AES, the S-box of SM4, and the magic number of a specific file header) from the ciphertext or binary code for comparison. While accurate, this method is only applicable to standard algorithms with known features. Fixed-process statistical detection infers the encryption algorithm type by executing a set of pre-defined detection probes (such as entropy calculation, chi-square test, and block duplication detection) sequentially or in parallel. It does not rely on known constants, but the execution order and scope of the probes are fixed before identification begins and cannot be dynamically adjusted according to the actual characteristics of the data to be identified.

[0003] In real-world scenarios involving massive amounts of heterogeneous ciphertext data, the diverse sources, significant length variations, and different encryption algorithms of the ciphertexts to be identified lead to drastic fluctuations in the ability of different detection probes to distinguish specific ciphertext features. Fixed-process detection methods result in a significant waste of computational resources on executing probes that are ineffective with the current data, leading to high recognition latency, limited throughput, and, in small sample or short ciphertext scenarios, a tendency to produce false positives due to unstable statistical characteristics. These issues hinder the engineering application of automatic cryptographic algorithm identification in large-scale real-time data processing systems. Summary of the Invention

[0004] To overcome the above shortcomings, this invention provides an automatic cryptographic algorithm identification method and system in data processing, aiming to improve the problems of existing automatic cryptographic algorithm identification methods that use fixed process detection, resulting in redundant calculation of invalid probes, high identification delay, and easy misjudgment due to unstable statistical characteristics in short ciphertext scenarios.

[0005] In a first aspect, the present invention provides the following technical solution: an automatic identification method for cryptographic algorithms in data processing, comprising: S1. Construct a probe set, set metadata for each probe, the metadata including at least the minimum data processing threshold and the initial information gain value; initialize the equivalent prior probabilities of all candidate algorithm assumptions; S2. Obtain the encrypted data to be identified, use the probe set as a candidate probe pool, perform gating decision based on the minimum data processing threshold of each probe, remove probes that do not meet the conditions, and obtain the admission probe set. S3. Select the probe with the largest information gain value from the set of admission probes. When the gain values ​​are the same, determine a unique probe through multi-level arbitration and use it as the execution probe for this round. S4. Execute the probe in this round of execution, and use its output as evidence to update the posterior probability of each candidate algorithm hypothesis through Bayesian analysis. S5. Calculate the dynamic confidence threshold, which is adjusted from high to low as the amount of information acquired increases; determine whether the highest posterior probability exceeds the dynamic confidence threshold. If it does, terminate and output the corresponding algorithm identifier; otherwise, return to step S2 to enter the next round until the termination condition is met and the rejection information is output. S6. When external verification feedback confirms that the identification is correct, backtrack the probe scheduling path of this identification task, and correct the information gain value online based on the actual discrimination contribution of each probe to complete the closed-loop self-calibration of scheduling knowledge.

[0006] Secondly, the present invention provides the following technical solution: an automatic identification system for cryptographic algorithms in data processing, the system comprising: The initialization and modeling module is used to construct a probe set, set metadata for each probe, and the metadata includes at least a minimum data processing threshold and an initial information gain value; it also initializes the equivalent prior probabilities of all candidate algorithm assumptions. The gating decision module is used to acquire the encrypted data to be identified, use the probe set as a candidate probe pool, perform gating decision based on the minimum data processing threshold of each probe, remove probes that do not meet the conditions, and obtain the admission probe set. The probe scheduling module is used to select the probe with the largest information gain value from the set of admission probes. When the gain values ​​are the same, a unique probe is determined through multi-level arbitration and used as the execution probe for this round. The probability update module is used to execute the current round of execution probe, and use its output as evidence to update the posterior probability of each candidate algorithm hypothesis through Bayesian methods. The dynamic judgment and decision module is used to calculate the dynamic confidence threshold, which is adjusted from high to low as the amount of information acquired increases; it determines whether the highest posterior probability exceeds the dynamic confidence threshold. If it does, it terminates and outputs the corresponding algorithm identifier; otherwise, it returns to step S2 to enter the next round until the termination condition is met and the rejection information is output. The online self-calibration module is used to backtrack the probe scheduling path of this recognition task when external verification feedback confirms that the recognition is correct. Based on the actual discrimination contribution of each probe, the information gain value is corrected online to complete the closed-loop self-calibration of the scheduling knowledge.

[0007] The present invention has the following beneficial effects: 1. In this invention, a dynamic probe scheduling mechanism based on information gain is used to adaptively select the probe with the best discrimination capability according to the actual characteristics of the encrypted data to be identified, thereby avoiding redundant calculation of invalid probes in a fixed process, significantly reducing the recognition delay, and improving the recognition throughput in large-scale encrypted data processing scenarios.

[0008] 2. In this invention, the minimum processing data volume threshold in the probe metadata is used to control the decision, and statistical probes that cannot work stably under the current ciphertext length are automatically filtered out. This avoids probability update deviations caused by unstable statistical features in short ciphertext scenarios and improves the robustness of the recognition results.

[0009] 3. In this invention, by using a mechanism where the dynamic confidence threshold is adjusted from high to low as the amount of information acquired increases, the system is forced to collect more evidence when the amount of information is insufficient, thus avoiding arbitrary misjudgments under small sample conditions. At the same time, the output of rejection information provides an operable degradation processing space for upper-layer business, thereby enhancing the reliability of the system's decision-making.

[0010] 4. In this invention, an online self-calibration mechanism driven by external verification feedback is used to continuously correct the information gain value of each probe, so that the scheduling knowledge gradually evolves from a static general model to an adaptive model that adapts to the real data characteristics of the current deployment environment, thereby realizing the autonomous optimization of recognition efficiency as the running time increases. Attached Figure Description

[0011] Figure 1 This is a flowchart illustrating an automatic identification method for cryptographic algorithms in data processing proposed in this invention. Figure 2 This is a schematic diagram of a multi-level arbitration process for an automatic identification method of cryptographic algorithms in data processing proposed in this invention; Figure 3 This is a schematic diagram of the online self-calibration process of an automatic cryptographic algorithm identification method in data processing proposed in this invention; Figure 4 This is a schematic diagram of the architecture of an automatic cryptographic algorithm identification system in data processing proposed in this invention. Detailed Implementation

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

[0013] Example 1 In a first embodiment of the present invention, the present invention provides a method for automatic identification of cryptographic algorithms in data processing, such as... Figures 1-2 As shown, it includes the following steps: S1. Construct a probe set and set metadata for each probe. The metadata should include at least the minimum data processing threshold and the initial information gain value. Initialize the equivalent prior probabilities of all candidate algorithm hypotheses.

[0014] Furthermore, in S1, a probe set is constructed, and metadata is set for each probe, including: Deploy multiple cryptographic algorithm feature detection probes, including at least statistical feature probes and deterministic feature matching probes. Each probe is encapsulated with a unified calling interface and independent detection logic. Based on the detection logic type of each probe, label the probe type attribute for each probe; Based on the dependence of each probe's detection logic on the length of the ciphertext data, a minimum data processing threshold is set for each probe. Ciphertext data below this threshold will not trigger the scheduling and execution of that probe. Based on the ability of each probe to distinguish the hypotheses of each candidate algorithm on a preset training dataset, the initial information gain value of each probe is calculated and written into the metadata of the corresponding probe. Each probe that has completed its metadata settings will be registered to the probe set for use in subsequent scheduling steps.

[0015] Furthermore, in S1, the equivalent prior probabilities of all candidate algorithm hypotheses are initialized, including: Determine all cryptographic algorithms covered by the identification scope, and combine each cryptographic algorithm and its possible operating modes as a candidate algorithm hypothesis to construct a set of candidate algorithm hypotheses; Each candidate algorithm hypothesis in the candidate algorithm hypothesis set is assigned an equal initial probability value, and the sum of all initial probability values ​​is 1; The set of candidate algorithm hypotheses assigned with equivalent prior probabilities is used as the candidate algorithm probability model for subsequent Bayesian update steps.

[0016] Specifically, multiple cryptographic algorithm feature detection probes are deployed, including at least statistical feature probes and deterministic feature matching probes. Statistical feature probes include entropy calculation probes, chi-square test probes, and byte frequency distribution probes, while deterministic feature matching probes include S-box constant matching probes, round constant matching probes, and block length boundary detection probes. Each probe encapsulates a unified calling interface and independent detection logic. The calling interface is defined as a function pointer or API endpoint, and the detection logic is encapsulated within the interface, exposing only the input ciphertext data and the output detection result to the outside world.

[0017] Based on the detection logic type of each probe, a probe type attribute is assigned to each probe. The probe type attribute value can be either statistical or deterministic and is stored in the probe metadata structure. Based on the dependence of each probe's detection logic on the ciphertext data length, a minimum data processing threshold is set for each probe. The minimum data processing threshold for the entropy calculation probe is set to 64 bytes, for the chi-square test probe to 128 bytes, and for the group length boundary detection probe to 16 bytes. Ciphertext data below the corresponding threshold will not trigger the scheduling and execution of that probe.

[0018] Based on the ability of each probe to distinguish between candidate algorithm hypotheses on a pre-defined training dataset, the initial information gain value of each probe is calculated. The pre-defined training dataset is constructed as follows: multiple sets of random keys are generated for each candidate algorithm hypothesis; each set of keys encrypts diverse plaintext to obtain ciphertext samples; each ciphertext sample is labeled with its corresponding candidate algorithm hypothesis identifier. For example, at least 1000 sets of keys are generated for each candidate algorithm hypothesis, the plaintext length covers multiple typical ranges, and the plaintext content is randomly generated. The formula for calculating the information gain value is: ; in, This represents the information gain value of probe X. This represents the information entropy of the candidate algorithm hypothesis set Y. This represents the conditional information entropy of the candidate algorithm hypothesis set Y, given the output results of probe X. (Information entropy) The calculation formula is: ; Where N is the total number of candidate algorithm hypotheses in the candidate algorithm hypothesis set, and P Describe the hypothesis of the i-th candidate algorithm Prior probabilities in the training dataset. Conditional information entropy. The calculation formula is: ; Where M is the total number of possible output results of probe X, and P This indicates that the output of probe X is The probability, This indicates that the output result of probe X is Under the condition of the candidate algorithm assuming the information entropy of set Y.

[0019] After calculation, the initial information gain value is written to the corresponding probe's metadata. The probe metadata structure includes a probe identifier, probe type attribute, minimum data processing threshold, current information gain value, and historical success rate attribute. The initial value of the historical success rate attribute is set to 0.5. Each probe with completed metadata settings is registered to a probe set, which is stored in memory as a list or array for subsequent scheduling steps to access via probe identifier index.

[0020] Then, initialize the equivalent prior probabilities of all candidate algorithm hypotheses. Determine all cryptographic algorithms covered by the identification scope, including AES-128-ECB, AES-128-CBC, AES-256-CTR, SM4-ECB, SM4-CBC, ChaCha20, and RSA-2048. Combine each cryptographic algorithm and its possible operating modes as a candidate algorithm hypothesis. For example, AES-128 combined with the ECB mode forms one candidate algorithm hypothesis, and AES-128 combined with the CBC mode forms another. Construct a candidate algorithm hypothesis set from all candidate algorithm hypotheses, denoted by N, where N is a positive integer.

[0021] Assign an equal initial probability value to each candidate algorithm hypothesis in the candidate algorithm hypothesis set. The sum of all initial probability values ​​is 1. The set of candidate algorithm hypotheses assigned equivalent prior probabilities is used as the candidate algorithm probability model. The candidate algorithm probability model is stored in a key-value pair data structure, where the key is the candidate algorithm identifier string and the value is the corresponding probability floating-point number, which is used in subsequent Bayesian update steps.

[0022] S2. Obtain the encrypted data to be identified, use the probe set as a candidate probe pool, perform gating decision based on the minimum data processing threshold of each probe, remove probes that do not meet the conditions, and obtain the admission probe set.

[0023] Furthermore, in S2, the set of admission probes is obtained, including: Obtain the ciphertext data to be identified and extract its length. All probes in the probe set are used as the candidate probe pool for this round of scheduling; Iterate through each probe in the candidate probe pool, compare the data length with the minimum data processing threshold for that probe, and mark the probe as not meeting the condition when the data length is less than the minimum data processing threshold. Remove all probes marked as not meeting the conditions from the candidate probe pool, and use the remaining probes as the admission probe set; When the set of admission probes is determined to be empty, rejection processing is triggered, rejection information is output directly, and the current recognition process is terminated.

[0024] Specifically, the ciphertext data to be identified is obtained, and its length, denoted as L, is extracted. All probes in the probe set constructed in step S1 are used as the candidate probe pool for this round of scheduling. The candidate probe pool contains all registered probes, and each probe carries metadata set in step S1, which includes the minimum data processing threshold for that probe.

[0025] Each probe in the candidate probe pool is iterated through, and its data length L is compared with the minimum data processing threshold in the probe's metadata. If L is less than the minimum data processing threshold for a probe, that probe is marked as not meeting the condition. For example, if the length of the ciphertext to be identified is 32 bytes, the minimum data processing threshold for the entropy calculation probe is 64 bytes, the minimum data processing threshold for the chi-square test probe is 128 bytes, and the minimum data processing threshold for the group length boundary detection probe is 16 bytes, then the entropy calculation probe and the chi-square test probe are marked as not meeting the condition, while the group length boundary detection probe is retained.

[0026] All probes marked as not meeting the criteria are removed from the candidate probe pool, and the remaining probes are used as the admission probe set. After the removal operation, it is determined whether the admission probe set is empty. When the admission probe set is empty, it indicates that the length of the current encrypted data to be identified cannot meet the minimum processing data requirement of any probe. In this case, rejection processing is triggered, rejection information is directly output, and the current identification process is terminated, without proceeding to subsequent probe scheduling and probability update steps. When the admission probe set is not empty, it is passed to step S3 for probe scheduling.

[0027] S3. Select the probe with the largest information gain value from the set of admission probes. When the gain values ​​are the same, determine the unique probe through multi-level arbitration and use it as the execution probe for this round.

[0028] Furthermore, in S3, when the gain values ​​are the same, a unique probe is determined through multi-level arbitration to serve as the execution probe for this round, including: Obtain the set of admission probes, determine whether the set of admission probes is empty, if it is empty, trigger the rejection processing, directly output the rejection information and terminate the current recognition process; If the access probe set is not empty, obtain the current information gain value of each probe in the access probe set; Compare the current information gain values ​​of each probe, filter out the probe with the largest information gain value, and when the probe with the largest information gain value is unique, determine that probe as the probe to be executed in this round; When multiple probes have the same information gain value, multi-level arbitration is triggered, and they are compared level by level according to preset priority.

[0029] Specifically, the access probe set output in step S2 is obtained, and it is determined whether the access probe set is empty. If the access probe set is empty, rejection processing is triggered, rejection information is directly output, and the current recognition process is terminated. If the access probe set is not empty, the following steps are continued.

[0030] Obtain the current information gain value of each probe in the admission probe set. The current information gain value of each probe is stored in the probe's metadata, with an initial value calculated in step S1, and dynamically corrected by the online self-calibration mechanism in step S6 during subsequent operation. Compare the current information gain values ​​of each probe and select the probe with the largest information gain value. When the probe with the largest information gain value is unique, it is directly determined as the probe to be executed in this round. When multiple probes have the same information gain value, a multi-level arbitration mechanism is triggered, comparing them level by level according to preset priorities to determine the unique probe as the probe to be executed in this round. The preset priorities of the multi-level arbitration are as follows.

[0031] The first level compares the probe type attributes. Probes with a deterministic probe type attribute are preferred. Deterministic probes provide deterministic detection results with no statistical fluctuations, offering higher reliability compared to statistical probes. The second level compares the historical success rate attribute in the probe metadata if the probe type attributes are the same. Probes with higher historical success rates are preferred. The initial value of the historical success rate attribute is 0.5, and it is subsequently updated synchronously by the online self-calibration mechanism in step S6. The third level compares the computational cost of the probes if the historical success rates are the same. Probes with lower computational costs are preferred to reduce the execution time of a single round of scheduling. Computational cost is measured by the average time taken per probe execution, which is pre-calibrated during probe registration. For example, entropy calculation probes have low computational cost, chi-square test probes have medium computational cost, and S-box constant matching probes have low computational cost. The fourth level determines a unique probe based on a fixed order of probe identifiers if the computational costs are the same. The probe identifier is a unique string or integer sequence number assigned during probe registration, and the fixed order is, for example, ascending lexicographical order of the probe identifiers.

[0032] The probe selected after the above comparison is used as the probe for this round of execution and passed to step S4 to perform the detection operation.

[0033] S4. Execute the probe in this round and use its output as evidence to update the posterior probability of each candidate algorithm hypothesis through Bayesian methods.

[0034] Furthermore, in S4, the posterior probabilities of each candidate algorithm hypothesis are updated using Bayesian methods, including: Obtain the current execution probe determined by S3, call its unified interface to execute the detection logic, and obtain the probe output results; Obtain the likelihood probabilities of each candidate algorithm under the assumptions pre-calibrated for the probes used in this round of execution; Using the probe output as evidence, the prior probability of each candidate algorithm hypothesis in the candidate algorithm probability model is multiplied by its corresponding likelihood probability in turn to obtain the likelihood weighted value of each candidate algorithm hypothesis. Summing the likelihood weights of all candidate algorithm hypotheses yields a normalized denominator. Dividing the likelihood weight of each candidate algorithm hypothesis by the normalized denominator yields the updated posterior probability of each candidate algorithm hypothesis. Replace the corresponding prior probability in the candidate algorithm's probability model with the updated posterior probability to complete this round of Bayesian update.

[0035] Specifically, the probe determined in step S3 is obtained, and the detection logic is executed through its unified calling interface to obtain the probe output result. The specific format of the probe output result depends on the probe type. For example, the entropy calculation probe outputs a floating-point value, the S-box constant matching probe outputs a Boolean value, and the group length boundary detection probe outputs an integer value.

[0036] Obtain the likelihood probabilities of the probes pre-calibrated for this round of execution under each candidate algorithm hypothesis. The likelihood probability represents the probability of observing the current probe output when a given candidate algorithm hypothesis holds true. The likelihood probability of each probe is pre-calibrated using the training dataset before probe deployment and stored in probe metadata or a separate likelihood probability lookup table. For probes with discrete output values, the likelihood probability is obtained by statistically analyzing the sample frequencies of probe outputs under each candidate algorithm hypothesis in the training dataset. For probes with continuous output values, the kernel density estimation method is used to estimate the probability density of probe output values ​​under each candidate algorithm hypothesis in the training dataset, and the observed value is taken as the likelihood probability. The likelihood probability lookup table is a two-dimensional matrix structure, where the row index is the candidate algorithm hypothesis identifier, the column index is the possible output value of the probe, and the matrix element value is the corresponding likelihood probability value.

[0037] Using the probe output as evidence, the posterior probabilities of each candidate algorithm hypothesis in the candidate algorithm probability model are updated using Bayes' theorem. The Bayesian update formula is: ; in, This represents the hypothesis of the i-th candidate algorithm. This indicates the probe output results of this round of probe execution. P represents the current prior probability of the hypothesis of the i-th candidate algorithm in the candidate algorithm probabilistic model. This indicates that the probe output was observed when the hypothesis of the i-th candidate algorithm is true. The likelihood probability, Let N represent the posterior probability of the updated i-th candidate algorithm hypothesis, where N is the total number of candidate algorithm hypotheses.

[0038] In the formula, the denominator The normalized denominator, in physical terms, represents the observed probe output results under all candidate algorithm assumptions. The total probability.

[0039] The specific calculation process is as follows: The current prior probability of each candidate algorithm hypothesis in the candidate algorithm probability model is calculated sequentially. The likelihood probability P obtained from the likelihood probability lookup table Multiply these values ​​to obtain the likelihood weighted value of each candidate algorithm hypothesis. Sum the likelihood weighted values ​​of all candidate algorithm hypotheses to obtain the normalized denominator. Divide the likelihood weighted value of each candidate algorithm hypothesis by the normalized denominator to obtain the updated posterior probability of each candidate algorithm hypothesis. .

[0040] The updated posterior probabilities replace the current prior probabilities of the corresponding candidate algorithm hypotheses in the candidate algorithm probability model, completing this round of Bayesian update. The sum of all posterior probabilities in the updated candidate algorithm probability model is 1. The updated candidate algorithm probability model is then passed to step S5 for dynamic confidence threshold determination.

[0041] S5. Calculate the dynamic confidence threshold, which is adjusted from high to low as the amount of information acquired increases; determine whether the highest posterior probability exceeds the dynamic confidence threshold. If it does, terminate and output the corresponding algorithm identifier; otherwise, return to step S2 to enter the next round until the termination condition is met and the rejection information is output.

[0042] Furthermore, in S5, a dynamic confidence threshold is calculated, which adjusts from high to low as the amount of information acquired increases, including: Obtain a metric value for the amount of information acquired in the current recognition task. The metric value is the proportion of the cumulative number of probes executed or the amount of ciphertext data analyzed to the total amount of ciphertext data to be recognized. Set the upper and lower limits of the confidence threshold. The upper limit is higher than the preset baseline, and the lower limit is equal to the preset baseline. The threshold adjustment factor is calculated based on the measurement value, and the threshold adjustment factor decreases from 1 to 0 as the measurement value increases; Based on the threshold adjustment coefficient, the upper and lower limits are weighted and interpolated to calculate the dynamic confidence threshold for the current round.

[0043] Furthermore, in S5, determining whether the highest posterior probability exceeds the dynamic confidence threshold includes: Obtain the current posterior probability of each candidate algorithm hypothesis from the candidate algorithm probability model, and filter out the highest posterior probability and its corresponding candidate algorithm identifier; The highest posterior probability is compared with the dynamic confidence threshold of the current round to determine whether the highest posterior probability exceeds the dynamic confidence threshold. When the highest posterior probability exceeds the dynamic confidence threshold, the recognition process is terminated and the corresponding candidate algorithm identifier is output as the recognition result. When the highest posterior probability does not exceed the dynamic confidence threshold, it is determined whether there are still unscheduled admission probes. If there are, the process returns to step S2 to enter the next round of scheduling. If there are no, the termination condition is met, the rejection information is output, and the current identification process is terminated. The rejection information includes the identifiers of the top two candidate algorithms in the candidate algorithm probability model and their corresponding posterior probability values.

[0044] Specifically, a dynamic confidence threshold is calculated, which adjusts from high to low as the amount of information acquired increases. A measure of the amount of information acquired in the current recognition task is obtained, using the cumulative number of probes executed. Let the current number of executed probes be k. Alternatively, the measure of the acquired information can be the ratio of the analyzed ciphertext data to the total amount of ciphertext data to be recognized. Let the total amount of ciphertext data to be recognized be D bytes, and the analyzed ciphertext data be d bytes, then the measure is d / D. The formula for calculating the threshold adjustment coefficient is as follows: The calculation method for the dynamic confidence threshold is the same as that for the aforementioned weighted interpolation method.

[0045] Set the upper limit of the confidence threshold. and lower limit value Upper limit Set to 0.99, lower limit value It equals the preset baseline, which is set to 0.95.

[0046] Calculate the threshold adjustment factor based on the metric value. Threshold adjustment coefficient The threshold adjustment factor decreases from 1 to 0 as the metric increases. When the metric is the cumulative number of executed probes k, the calculation formula for the threshold adjustment factor is: ; Where K is the initial size of the admission probe set, i.e., the total number of probes in the admission probe set after the first gating decision in step S2. When k=0, =1; when k≥K =0.

[0047] Based on threshold adjustment coefficient For the upper limit value and lower limit value Weighted interpolation is performed to calculate the dynamic confidence threshold for the current round. The weighted interpolation formula is: ; In the first round of scheduling, k=0. =1, dynamic confidence threshold =0.99, forcing the system to collect more evidence. As the probe is executed step by step, k increases. The dynamic confidence threshold decreases smoothly from 0.99 until all admission probes have been scheduled. =0, the dynamic confidence threshold drops to the baseline value of 0.95.

[0048] Then, it is determined whether the highest posterior probability exceeds the dynamic confidence threshold. The current posterior probabilities of each candidate algorithm hypothesis are obtained from the candidate algorithm probability model updated in step S4, and the highest posterior probability and its corresponding candidate algorithm identifier are selected. Let the highest posterior probability be... The highest posterior probability Dynamic confidence threshold for the current round Comparison. When When the time is right, terminate the recognition process and output the result. The corresponding candidate algorithm identifier is used as the recognition result. The recognition result includes the algorithm name, operating mode, and corresponding posterior probability value.

[0049] when If any unscheduled admission probes remain, the system determines whether there are still any. The admission probe set is output from step S2. Steps S3 and S4 have already selected and executed several probes from this set. The remaining unscheduled probes are a subset of the current admission probe set excluding executed probes. If unscheduled admission probes still exist, the system returns to step S2 to proceed to the next round of scheduling, using these unscheduled probes as a new candidate probe pool to continue gating and probe scheduling. If no unscheduled admission probes exist, meaning all admission probes have been scheduled and executed, the system determines that the termination condition is met, outputs rejection information, and terminates the current identification process. The rejection information includes the identifiers of the top two candidate algorithms in the candidate algorithm probability model and their corresponding posterior probability values, for use by upper-layer business modules for downgrading or manual evaluation.

[0050] S6. When external verification feedback confirms that the identification is correct, backtrack the probe scheduling path of this identification task, and correct the information gain value online based on the actual discrimination contribution of each probe to complete the closed-loop self-calibration of scheduling knowledge.

[0051] Furthermore, in S6, the probe scheduling path of this recognition task is traced back, and the information gain value of each probe is adjusted online based on its actual discriminative contribution, including: Receive external verification feedback, which confirms that the recognition result output by S5 is correct and contains the unique identifier of this recognition task; Based on the unique identifier, all probes scheduled sequentially from the first round to the end of the identification task are retrieved back to form a probe scheduling path. For each probe on the probe scheduling path, calculate its actual discrimination contribution value in this round of recognition task. The actual discrimination contribution value represents the improvement of the posterior probability of the probe's output result on the correct candidate algorithm hypothesis. Based on the actual discrimination contribution value, the current information gain value of the probe is corrected using an exponentially weighted moving average algorithm, and the corrected information gain value is updated in the probe's metadata. The historical success rate attribute in the probe's metadata is updated synchronously to complete the self-calibration of the scheduling knowledge loop for this identification task.

[0052] Specifically, after step S5 outputs the recognition result, the system submits the result to the external verification stage. The external verification stage judges the correctness of the recognition result through decryption verification or human expert confirmation. When the external verification feedback confirms that the recognition result output in step S5 is correct, the online self-calibration process is triggered. The external verification feedback contains a unique identifier for this recognition task, which is automatically generated by the system each time a recognition task is started. Based on the unique identifier, all probes scheduled sequentially from the first round to the end of the recognition task are retrieved, forming a probe scheduling path. The probe scheduling path is an ordered sequence, where each element contains a probe identifier and the execution round number of that probe in the current round of scheduling.

[0053] For each probe on the probe scheduling path, calculate its actual discrimination contribution value in this round of recognition task. The actual discrimination contribution value characterizes the improvement of the posterior probability of the correct candidate algorithm hypothesis by the probe's output. The correct candidate algorithm hypothesis is the candidate algorithm hypothesis corresponding to the candidate algorithm identifier output in step S5 and confirmed by external verification. The actual discrimination contribution value is calculated as follows: obtain the posterior probability of the correct candidate algorithm hypothesis before the probe is executed, denoted as... ; Obtain the posterior probability of the correct candidate algorithm hypothesis obtained after Bayesian update in step S4 following the execution of the probe, denoted as . Actual discrimination contribution value The calculation formula is: ; Among them, the denominator Assuming a probability boost space before probe execution for the correct candidate algorithm, the molecule This represents the actual probability increase resulting from this probe execution. The physical meaning of this formula is the proportion of the probability increase from the probe output to the correct candidate algorithm hypothesis to the maximum possible increase. When When the denominator approaches 0, and the result is close to 1, then if... and If they are equal, then =0 indicates that the probe does not provide additional discrimination capability; if , ,but .

[0054] Based on the actual discrimination contribution value, the current information gain value of the probe is corrected using an exponentially weighted moving average algorithm. The correction formula is: ; in, The current information gain value stored in the probe metadata. This is the actual discrimination contribution value obtained in this calculation. This is the corrected information gain value. This is the smoothing coefficient, with a value of 0.1. Controlling the speed of merging new and old information The smaller the value, the more historical information is retained, and the smoother the correction. The corrected information gain value... Update the probe's metadata, replacing the original current information gain value.

[0055] The historical success rate attribute in the probe's metadata is updated synchronously. The update method is consistent with the information gain value correction method, employing an exponentially weighted moving average algorithm, with the actual discrimination contribution value as the update basis. The formula for updating the historical success rate is: ; in, The current historical success rate is stored in the probe metadata. The contribution value of the actual discrimination obtained in this calculation. For the updated historical success rate, This is the smoothing coefficient, and its value is the same as the smoothing coefficient for information gain correction, which is 0.1.

[0056] After updating the information gain value and historical success rate, the closed-loop self-calibration of the scheduling knowledge for this identification task is complete. The corrected information gain value and historical success rate will be applied to the probe scheduling decisions of subsequent identification tasks, enabling the scheduling knowledge to gradually evolve from a static, general model to an adaptive model that adapts to the real data characteristics of the current deployment environment.

[0057] Example 2 In existing automatic cryptographic algorithm identification technologies, the fixed-process detection method predetermines the execution order and scope of probes before identification begins, making dynamic tailoring based on the actual characteristics of the ciphertext data to be identified impossible. Due to the diverse sources and significant length variations of the ciphertexts to be identified, the ability of different detection probes to distinguish specific ciphertexts fluctuates drastically. The fixed process leads to a significant waste of computational resources on executing probes that are ineffective with the current data, resulting in accumulated identification delays and limited throughput. Furthermore, in scenarios with small samples or short ciphertexts, the statistical probe output is unstable. The fixed process lacks dynamic control over probe admission conditions, easily injecting noisy evidence into the probability update process and causing misjudgments. To address these problems, this invention provides an automatic cryptographic algorithm identification system for data processing, the structure of which is as follows: Figure 3 As shown. The specific implementation process of this system is as follows: The initialization and modeling module is used to deploy statistical feature probes and deterministic feature matching probes, and to set metadata such as the minimum data processing threshold and initial information gain value for each probe. At the same time, it constructs a set of candidate algorithm hypotheses and assigns equivalent prior probabilities to establish a probabilistic model of the candidate algorithms.

[0058] After the gating decision module obtains the encrypted data to be identified, it extracts the data length, uses the probe set as a candidate probe pool, compares the data length with the minimum data processing threshold of each probe, and removes probes that do not meet the conditions to obtain the admission probe set. When the admission probe set is empty, it directly outputs the rejection information.

[0059] The probe scheduling module obtains the current information gain value of each probe from the admission probe set, selects the probe with the largest information gain value as the probe to be executed in this round, and when multiple probes have the same gain value, they will conduct multi-level arbitration in a fixed order of probe type attribute, historical success rate, computational cost and probe identifier to determine a unique probe.

[0060] The probability update module calls the unified interface of the current execution probe to obtain the output result, queries the corresponding likelihood probability from the likelihood probability lookup table, updates the prior probability of each candidate algorithm hypothesis with Bayes' formula to obtain the posterior probability, and replaces the corresponding value in the candidate algorithm probability model.

[0061] The dynamic judgment and decision module uses the cumulative number of executed probes as a measure of the amount of information acquired. It calculates a threshold adjustment coefficient decreasing from 1 to 0, and performs weighted interpolation on the upper limit of 0.99 and the lower limit of 0.95 to obtain the dynamic confidence threshold for the current round. It selects the highest posterior probability from the candidate algorithm probability model and compares it with the dynamic confidence threshold. If it exceeds the threshold, it outputs the corresponding candidate algorithm identifier as the recognition result. If it does not exceed the threshold and there are still unscheduled admission probes, it returns to the gating decision module to enter the next round. If there are no remaining probes, it outputs rejection information containing the identifiers and probability values ​​of the top two candidate algorithms with the highest posterior probabilities.

[0062] After receiving external verification feedback confirming correct identification, the online self-calibration module traces back the probe scheduling path based on the unique identifier of the identification task, calculates the actual discriminant contribution of each probe to the improvement of the posterior probability of the correct candidate algorithm hypothesis, corrects the information gain value of each probe using the exponential weighted moving average algorithm, and synchronously updates the historical success rate attribute to complete the closed-loop self-calibration of scheduling knowledge.

[0063] Example 3 This embodiment uses a scenario of enterprise data asset compliance scanning as an example to illustrate the specific implementation of this technical solution in practical applications.

[0064] A company's data platform aggregates approximately five million encrypted data records daily from multiple business systems. It needs to automatically identify the cryptographic algorithms used in the encrypted fields to screen for outdated or weak algorithms. The encrypted fields are independently generated by different business systems, lack algorithm identifier headers, and include over ten different algorithms such as AES-128-ECB, AES-128-CBC, AES-256-CTR, SM4-ECB, SM4-CBC, and ChaCha20.

[0065] Deploying the automatic cryptographic algorithm identification system provided by this technical solution first involves constructing a probe set and setting metadata. The deployed probes include three statistical feature probes: entropy calculation probe, chi-square test probe, and byte frequency distribution probe; and two deterministic feature matching probes: S-box constant matching probe and block length boundary detection probe. The minimum data processing threshold for the entropy calculation probe is set to 64 bytes, for the chi-square test probe to 128 bytes, for the byte frequency distribution probe to 256 bytes, and for the S-box constant matching probe and block length boundary detection probe to 16 bytes. Each probe calculates its initial information gain value on a preset training dataset and then registers it to the probe set. A candidate algorithm hypothesis set is constructed, containing all the aforementioned cryptographic algorithms and their combinations of operating modes, totaling 15 candidate algorithm hypotheses. Each candidate algorithm hypothesis is assigned an equivalent prior probability of 1 / 15, and a candidate algorithm probability model is established.

[0066] The data platform sends the encrypted data records to be identified one by one into the identification system. Taking a record with a ciphertext data length of 256 bytes as an example, after the gating adjudication module extracts the data length of 256 bytes, it compares it with the minimum processing data threshold of each probe in the probe set. Since 256 bytes is greater than the threshold of all probes, all five probes pass the gating adjudication, resulting in an admission probe set containing the five probes.

[0067] The probe scheduling module obtains the current information gain value of each probe from the set of admission probes. Assuming that the gain value of each probe is the initial value during the first round of scheduling, the probe with the entropy value calculation has the highest initial information gain value, and the probe with the largest gain value is unique. Therefore, the probe with the entropy value calculation is determined as the probe to be executed in this round.

[0068] The probability update module calls the unified interface of the entropy calculation probe to perform detection, obtaining a floating-point output with an entropy value of 7.85. It then queries the likelihood probability lookup table for the observed entropy value of 7.85 under each candidate algorithm hypothesis and updates the prior probabilities of each hypothesis using Bayes' theorem. After the update, the posterior probability of AES-128-CBC increases to 0.32, the posterior probability of SM4-CBC increases to 0.28, the posterior probability of AES-128-ECB decreases to 0.03, and the posterior probabilities of the remaining candidate algorithm hypotheses are adjusted accordingly.

[0069] The dynamic judgment and decision module calculates the dynamic confidence threshold for the current round. During the initial scheduling, the cumulative number of executed probes is 1, the initial size of the admission probe set is 5, and the threshold adjustment coefficient is 1 minus 1 / 5, equaling 0.8. The weighted interpolation yields a dynamic confidence threshold of 0.8 x 0.99 plus 0.2 x 0.95, equaling 0.982. The current highest posterior probability of 0.32 does not exceed the dynamic confidence threshold of 0.982, and there are still four unscheduled admission probes. Therefore, the system returns to the gating and decision module to proceed to the next round of scheduling.

[0070] After three rounds of scheduling, the posterior probability of AES-128-CBC rose to 0.96. At this point, the cumulative number of probes executed was 3, the threshold adjustment coefficient was 1 minus 3 / 5 equaling 0.4, and the dynamic confidence threshold dropped to 0.4 multiplied by 0.99 plus 0.6 multiplied by 0.95 equaling 0.966. The highest posterior probability of 0.96 was still slightly lower than the dynamic confidence threshold of 0.966, so a fourth round of scheduling continued. After executing the S-box constant matching probe in the fourth round, the posterior probability of AES-128-CBC rose to 0.97, the dynamic confidence threshold dropped to 0.958, and the highest posterior probability exceeded the dynamic confidence threshold for the first time. The system terminated the recognition process and output the recognition result as AES-128-CBC.

[0071] The recognition result is sent to the downstream decryption module for decryption. If decryption is successful, external verification feedback is generated to confirm the correctness of the recognition. After receiving the feedback, the online self-calibration module traces back the probe scheduling path of this recognition task. This path consists of, in sequence, the entropy calculation probe, the group length boundary detection probe, the byte frequency distribution probe, and the S-box constant matching probe. The actual discrimination contribution value of each probe is calculated, and the information gain value of each probe is corrected with a smoothing coefficient of 0.1 using an exponentially weighted moving average algorithm. The historical success rate attribute of each probe is also updated synchronously.

[0072] For another record with a encrypted data length of only 8 bytes, the gating and adjudication module extracts the 8-byte data length and compares it with the minimum processing data threshold for each probe. The thresholds for the entropy calculation probe (64 bytes), chi-square test probe (128 bytes), and byte frequency distribution probe (256 bytes) all fail to meet the requirements and are marked as unqualified and removed. Only the thresholds for the S-box constant matching probe and the group length boundary detection probe are 16 bytes, but 8 bytes is still less than 16 bytes, so they are also removed. At this point, the admission probe set is empty, the system triggers rejection processing, directly outputs rejection information, and terminates the current identification process. This record is marked as unrecognizable and handed over to manual analysis and processing.

[0073] After a week of continuous automated identification operation, the online self-calibration module has cumulatively corrected the information gain value and historical success rate attributes of each probe. The average number of rounds required for the system to identify the company's encrypted data has gradually decreased from the initial 4.2 rounds to 2.8 rounds, with identification efficiency autonomously optimizing as the running time increases. At the same time, the system screened out several SM4 encrypted fields that were still using the ECB mode, generated a compliance risk report, and notified the relevant business systems to upgrade their algorithm modes.

[0074] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for automatically identifying cryptographic algorithms in data processing, characterized in that, include: S1. Construct a probe set, set metadata for each probe, the metadata including at least the minimum data processing threshold and the initial information gain value; initialize the equivalent prior probabilities of all candidate algorithm assumptions; S2. Obtain the encrypted data to be identified, use the probe set as a candidate probe pool, perform gating decision based on the minimum data processing threshold of each probe, remove probes that do not meet the conditions, and obtain the admission probe set. S3. Select the probe with the largest information gain value from the set of admission probes. When the gain values ​​are the same, determine a unique probe through multi-level arbitration and use it as the execution probe for this round. S4. Execute the probe in this round of execution, and use its output as evidence to update the posterior probability of each candidate algorithm hypothesis through Bayesian analysis. S5. Calculate the dynamic confidence threshold, which is adjusted from high to low as the amount of information acquired increases; determine whether the highest posterior probability exceeds the dynamic confidence threshold. If it does, terminate and output the corresponding algorithm identifier; otherwise, return to step S2 to enter the next round until the termination condition is met and the rejection information is output. S6. When external verification feedback confirms that the identification is correct, backtrack the probe scheduling path of this identification task, and correct the information gain value online based on the actual discrimination contribution of each probe to complete the closed-loop self-calibration of scheduling knowledge.

2. The method for automatic identification of cryptographic algorithms in data processing according to claim 1, characterized in that, In S1, a probe set is constructed, and metadata is set for each probe, including: Deploy multiple cryptographic algorithm feature detection probes, including at least statistical feature probes and deterministic feature matching probes, each probe encapsulating a unified calling interface and independent detection logic; Based on the detection logic type of each probe, label the probe type attribute for each probe; Based on the dependence of each probe's detection logic on the length of the ciphertext data, a minimum data processing threshold is set for each probe. Ciphertext data below this threshold will not trigger the scheduling and execution of that probe. Based on the ability of each probe to distinguish the hypotheses of each candidate algorithm on a preset training dataset, the initial information gain value of each probe is calculated, and the initial information gain value is written into the metadata of the corresponding probe. Each probe that has completed its metadata settings will be registered to the probe set for use in subsequent scheduling steps.

3. The method for automatic identification of cryptographic algorithms in data processing according to claim 1, characterized in that, In S1, the equivalent prior probabilities of all candidate algorithm hypotheses are initialized, including: Determine all cryptographic algorithms covered by the identification scope, and combine each cryptographic algorithm and its possible operating modes as a candidate algorithm hypothesis to construct a set of candidate algorithm hypotheses; Each candidate algorithm hypothesis in the candidate algorithm hypothesis set is assigned an equal initial probability value, and the sum of all initial probability values ​​is 1; The set of candidate algorithm hypotheses assigned with equivalent prior probabilities is used as the candidate algorithm probability model for subsequent Bayesian update steps.

4. The method for automatic identification of cryptographic algorithms in data processing according to claim 1, characterized in that, In S2, an access probe set is obtained, including: Obtain the ciphertext data to be identified, and extract the data length of the ciphertext data to be identified; All probes in the probe set are used as the candidate probe pool for this round of scheduling; Iterate through each probe in the candidate probe pool, compare the data length with the minimum data processing threshold for that probe, and mark the probe as not meeting the condition when the data length is less than the minimum data processing threshold. Remove all probes marked as not meeting the conditions from the candidate probe pool, and use the remaining probes as the admission probe set; When the set of access probes is determined to be empty, rejection processing is triggered, rejection information is directly output and the current recognition process is terminated.

5. The method for automatic identification of cryptographic algorithms in data processing according to claim 1, characterized in that, In S3, when the gain values ​​are the same, a unique probe is determined through multi-level arbitration to serve as the execution probe for this round, including: Obtain the set of access probes, determine whether the set of access probes is empty, if it is empty, trigger the rejection processing, directly output the rejection information and terminate the current recognition process; If the access probe set is not empty, then obtain the current information gain value of each probe in the access probe set; Compare the current information gain values ​​of each probe, filter out the probe with the largest information gain value, and when the probe with the largest information gain value is unique, determine that probe as the probe to be executed in this round; When multiple probes have the same information gain value, multi-level arbitration is triggered, and they are compared level by level according to preset priority.

6. The method for automatic identification of cryptographic algorithms in data processing according to claim 1, characterized in that, In S4, the posterior probabilities of each candidate algorithm hypothesis are updated using Bayesian methods, including: Obtain the current execution probe determined by S3, call its unified interface to execute the detection logic, and obtain the probe output result; Obtain the likelihood probabilities of each candidate algorithm under the assumptions pre-calibrated for the probe of this round of execution; Using the probe output as evidence, the prior probability of each candidate algorithm hypothesis in the candidate algorithm probability model is multiplied by its corresponding likelihood probability in turn to obtain the likelihood weighted value of each candidate algorithm hypothesis. The likelihood weights of all candidate algorithm hypotheses are summed to obtain a normalized denominator. The likelihood weight of each candidate algorithm hypothesis is divided by the normalized denominator to obtain the updated posterior probability of each candidate algorithm hypothesis. The updated posterior probability replaces the corresponding prior probability in the candidate algorithm's probability model, thus completing this round of Bayesian update.

7. The method for automatic identification of cryptographic algorithms in data processing according to claim 1, characterized in that, In step S5, a dynamic confidence threshold is calculated, which adjusts from high to low as the amount of information acquired increases, including: Obtain a metric value for the amount of information acquired in the current identification task. The metric value is the ratio of the cumulative number of probes executed or the amount of ciphertext data analyzed to the total amount of ciphertext data to be identified. Set an upper limit and a lower limit for the confidence threshold, wherein the upper limit is higher than a preset baseline and the lower limit is equal to the preset baseline; A threshold adjustment coefficient is calculated based on the metric value, and the threshold adjustment coefficient decreases from 1 to 0 as the metric value increases; Based on the threshold adjustment coefficient, the upper limit value and the lower limit value are weighted and interpolated to calculate the dynamic confidence threshold for the current round.

8. The method for automatic identification of cryptographic algorithms in data processing according to claim 1, characterized in that, In step S5, determining whether the highest posterior probability exceeds the dynamic confidence threshold includes: Obtain the current posterior probability of each candidate algorithm hypothesis from the candidate algorithm probability model, and filter out the highest posterior probability and its corresponding candidate algorithm identifier; The highest posterior probability is compared with the dynamic confidence threshold of the current round to determine whether the highest posterior probability exceeds the dynamic confidence threshold. When the highest posterior probability exceeds the dynamic confidence threshold, the recognition process is terminated, and the corresponding candidate algorithm identifier is output as the recognition result. When the highest posterior probability does not exceed the dynamic confidence threshold, it is determined whether there are still unscheduled admission probes. If there are, the process returns to step S2 to enter the next round of scheduling. If there are no, the termination condition is met, rejection information is output, and the current identification process is terminated. The rejection information includes the identifiers of the top two candidate algorithms in the candidate algorithm probability model and their corresponding posterior probability values.

9. The method for automatic identification of cryptographic algorithms in data processing according to claim 1, characterized in that, In step S6, the probe scheduling path of this identification task is traced back, and the information gain value of each probe is adjusted online based on its actual discriminative contribution, including: Receive external verification feedback, which confirms that the recognition result output by S5 is correct and contains the unique identifier of this recognition task; Based on the unique identifier, all probes scheduled sequentially from the first round to the end of the identification task are retrieved back to form a probe scheduling path. For each probe on the probe scheduling path, calculate its actual discrimination contribution value in this round of identification task. The actual discrimination contribution value represents the improvement of the posterior probability of the probe's output result on the correct candidate algorithm hypothesis. Based on the actual discrimination contribution value, the current information gain value of the probe is corrected using an exponentially weighted moving average algorithm, and the corrected information gain value is updated in the probe's metadata. The historical success rate attribute in the probe's metadata is updated synchronously to complete the self-calibration of the scheduling knowledge loop for this identification task.

10. An automatic cryptographic algorithm identification system for data processing, characterized in that, A method for automatic identification of cryptographic algorithms in data processing according to any one of claims 1-9, the system comprising: The initialization and modeling module is used to construct a probe set, set metadata for each probe, and the metadata includes at least a minimum data processing threshold and an initial information gain value; it also initializes the equivalent prior probabilities of all candidate algorithm assumptions. The gating decision module is used to acquire the encrypted data to be identified, use the probe set as a candidate probe pool, perform gating decision based on the minimum data processing threshold of each probe, remove probes that do not meet the conditions, and obtain the admission probe set. The probe scheduling module is used to select the probe with the largest information gain value from the set of admission probes. When the gain values ​​are the same, a unique probe is determined through multi-level arbitration and used as the execution probe for this round. The probability update module is used to execute the current round of execution probe, and use its output as evidence to update the posterior probability of each candidate algorithm hypothesis through Bayesian methods. The dynamic judgment and decision module is used to calculate the dynamic confidence threshold, which is adjusted from high to low as the amount of information acquired increases; it determines whether the highest posterior probability exceeds the dynamic confidence threshold. If it does, it terminates and outputs the corresponding algorithm identifier; otherwise, it returns to step S2 to enter the next round until the termination condition is met and the rejection information is output. The online self-calibration module is used to backtrack the probe scheduling path of this recognition task when external verification feedback confirms that the recognition is correct. Based on the actual discrimination contribution of each probe, the information gain value is corrected online to complete the closed-loop self-calibration of the scheduling knowledge.