Standardized evaluation method and system for industrial control protocol reverse engineering facing static network traffic

By constructing a hierarchical standardized benchmark dataset and introducing innovative evaluation indicators, an adaptive weighting mechanism was designed to solve the problem of inconsistent evaluation results of industrial control protocol reverse engineering tools. This enabled unified, comparable, and reproducible evaluation of industrial control protocol reverse engineering tools, improving the objectivity and scalability of the evaluation.

CN123145338APending Publication Date: 2026-11-20ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Current industrial control protocol reverse engineering tools lack unified data, labeling, and indicator standards during the evaluation process, resulting in incomparable evaluation results and inconsistent formats, making it difficult to achieve fair and reproducible evaluations.

Method used

We construct a hierarchical standardized benchmark dataset, introduce innovative evaluation indicators, design a quantifiable and adaptive weight self-learning mechanism, and achieve automated evaluation of reverse engineering tools for different industrial control protocols through the analytic hierarchy process and adaptive optimization.

Benefits of technology

It enables comparability evaluation of industrial control protocol reverse engineering tools under unified conditions, enhances the objectivity and reproducibility of evaluation results, and supports automated and scalable evaluation processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145338A_ABST
    Figure CN123145338A_ABST
Patent Text Reader

Abstract

The application discloses a kind of industrial control protocol reverse engineering standardization evaluation method and system for static network traffic.The method realizes the automatic, fair, reproducible evaluation of different industrial control protocol reverse engineering tools under uniform conditions by constructing hierarchical standardized benchmark data set, generating machine-checkable structure and semantic fine annotation file, defining unified evaluation index system, unified standard result file format and calibratable comprehensive scoring rules.The evaluation index system includes four stages of message clustering, format inference, semantic inference and state machine reconstruction, and introduces control field recognition confidence and state machine behavior similarity index.The comprehensive score adopts the weight self-learning mechanism combining AHP prior weight and discriminability-stability joint optimization, and outputs ranking and weight sensitivity report.The application improves the objectivity, comparability, reproducibility and engineering landing of industrial control protocol reverse tool evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of industrial control system network security and protocol reverse engineering technology. Specifically, it relates to a standardized evaluation method and system for industrial control protocol reverse engineering oriented to static network traffic. It aims to provide a unified, objective, and reproducible standardized evaluation benchmark framework for industrial control protocol reverse engineering in the field of industrial control security, and solve the core problem that the evaluation results of current protocol reverse engineering tools are incomparable under different data, different annotations, and different index conditions. Background Technology

[0002] With the deepening development of the Industrial Internet and intelligent manufacturing, the cybersecurity of Industrial Control Systems (ICS) has received increasing attention. Protocol reverse engineering, as a key technical means to understand unknown or proprietary ICS protocols, plays an important role in security assessment, vulnerability discovery, intrusion detection, and attack and defense verification.

[0003] Currently, various protocol reverse engineering tools have emerged in academia and industry, such as Netzob, FieldHunter, NetPlier, and REInPro. However, when these tools are evaluated and compared side-by-side, the following four issues are commonly observed: 1. Inaccessibility and inconsistency of datasets: Most studies rely on private, temporarily constructed test datasets. Different tools use datasets from different sources, of different sizes, and with different protocols for evaluation, making it impossible to verify the performance advantages of new methods on the same benchmark.

[0004] 2. Inconsistent labeling standards: Field granularity, semantic tag sets, and state machine labeling depth vary, resulting in misaligned evaluation benchmarks.

[0005] 3. Fragmentation and subjectivity of evaluation indicators: Different studies have used drastically different indicators, such as V-Measure, accuracy, and coverage, when evaluating the results of static flow analysis, resulting in a lack of a unified standard for comparing the cross-sectional performance of different tools.

[0006] 4. Inconsistent result formats: The output formats of different tools vary, making it difficult to achieve automated, batch processing and reproducible fair ranking.

[0007] The root cause of the above problems lies in the lack of a standardized evaluation framework with "the same data, the same labels, the same indicators, and the same scoring rules." Therefore, it is urgent to establish a standardized evaluation benchmark and automated evaluation process for reverse engineering of industrial control protocols to improve the objectivity, fairness, and reproducibility of the evaluation results. Summary of the Invention

[0008] The purpose of this invention is to address the shortcomings of existing technologies by providing a standardized evaluation method and system for reverse engineering of industrial control protocols for static network traffic. This method constructs a hierarchical standardized benchmark dataset with verifiable coverage, introduces innovative evaluation indicators oriented towards industrial control characteristics, and designs a quantifiable, adaptive, and reproducible weight self-learning mechanism to achieve automated evaluation of different protocol reverse engineering (PRE) tools under unified calibrable conditions.

[0009] According to the first aspect of this specification, a standardized evaluation method for reverse engineering of industrial control protocols for static network traffic is provided, which includes the following steps: Construct a hierarchical standardized benchmark dataset, perform fine-grained structural and semantic annotation on the corresponding messages of the benchmark dataset, generate standard annotation files, and perform consistency verification; A unified evaluation index system is constructed, dividing the evaluation process of reverse engineering into four independent and measurable stages: message clustering, format inference, semantic inference, and state machine reconstruction. Among them, the semantic inference stage sets a control field identification confidence index to highlight the importance of control fields in the reverse engineering process of industrial control protocols. The state machine reconstruction stage sets a state machine behavior similarity index to evaluate whether the inferred state machine is equivalent to the real state machine from the perspective of dynamic behavior, rather than just comparing whether the structures are the same. Receive the output of various protocol reverse engineering tools, standardize the result file format, perform legality verification on the standard result file, and calculate the score for each stage; The weights for each stage are determined by a weight self-learning mechanism that combines prior weight acquisition using the analytic hierarchy process with adaptive optimization. The scores for each stage are then weighted and fused based on these weights to obtain a comprehensive score. A reverse tool leaderboard is generated based on the comprehensive score and preset sorting rules, and the leaderboard results and weight sensitivity report are output.

[0010] Furthermore, the hierarchical standardized benchmark dataset includes at least two tiers: Tier 1 and Tier 2. Tier 1 contains simple industrial control protocols with fixed message lengths and clear field boundaries, while Tier 2 contains advanced industrial control protocols with variable-length fields, nested structures, and complex state machines.

[0011] Furthermore, the hierarchical standardized benchmark dataset includes Modbus and DNP3 protocol traffic in Tier 1, and CIP, S7Comm, and S7Comm Plus protocol traffic in Tier 2.

[0012] Furthermore, a protocol coverage matrix is ​​constructed, which is a two-dimensional matrix with protocols as columns and structural features as rows. The structural features include at least request-response patterns, length fields, address fields, function codes / service codes, serial numbers / transaction IDs, state machine interactions, and variable length / nesting / encryption. When each structural feature dimension is covered by at least 40% of the protocols, the coverage sufficiency is determined to meet the baseline requirements.

[0013] Furthermore, the standard annotation file includes at least: metadata object, packet_annotations object, and state_machine object; wherein the field-level annotation object includes at least field_name, bit_offset, bit_length, field_type, and semantic_label.

[0014] Furthermore, the message clustering stage uses the V-Measure index to calculate the stage score, and the V-Measure comprehensively measures the homogeneity and completeness of the clustering results.

[0015] Furthermore, the format inference stage employs the Correctness and Perfection indices, with the stage score being the arithmetic mean of the two.

[0016] Furthermore, in the semantic inference stage, the control field identification confidence index (CFIC) is calculated as follows: for the subset C of fields marked as control fields in the annotation, Where P(c) is the location precision, R(c) is the semantic recall, and B(c) is the boundary accuracy; the semantic inference stage score is a linear fusion of semantic F1 and CFIC, which measures the comprehensive recognition ability of the reverse engineering tool for key control fields.

[0017] Furthermore, the calculation method for the state machine behavior similarity index (SMBS) is as follows: perform L-step random walks on both the inferred state machine and the labeled state machine to generate a message sequence set. and , The equivalence of two sets at the dynamic behavior level is evaluated by calculating the Jaccard similarity between the two sets; the state machine reconstruction stage score is the arithmetic mean of four indicators: state transition accuracy, path coverage, standardized edit distance, and SMBS.

[0018] Furthermore, if a reverse engineering tool fails to complete a certain stage or does not provide the calculation results for the corresponding stage, the score for that stage will be treated as a missing value and recorded as 0 points, without affecting the calculation of other stages.

[0019] Furthermore, the weight self-learning mechanism includes the following steps: S1: Using the AHP method, domain experts conduct pairwise comparisons of the importance of the four stages using the Delphi workflow and construct a comparison matrix. After consistency verification, the prior weight vector w is obtained. 0 ; S2: Using the prior weight vector As the initial solution, with the joint objective of maximizing the inter-tool integrated score discrimination D(w) and minimizing the cross-protocol ranking volatility V(w), the optimal weights are solved under constraints. Specifically: The message clustering, format inference, semantic inference, and state machine reconstruction stages are respectively denoted as... The corresponding weights are denoted as follows: , Let K be the weight vector; there are K tools to be evaluated and P protocols. The score of tool k on protocol p at stage j is denoted as . ; The overall score of tool k on protocol p: The cross-protocol aggregation score of the calculation tool k: ; The formula for calculating the inter-tool composite score discrimination index D(w) is as follows: ; The calculation process for cross-protocol ranking volatility V(w) is as follows: First, for each... according to Descending order ranking Then calculate V(w): ;in It is the average rank of tool k across protocols; The objective function is: ,in These are the normalized discrimination and volatility, respectively. The hyperparameters are defined by the following constraints: weight vectors for the four stages. With the prior weight vector w 0 The L2 norm is not greater than the preset control trust radius; S3: Sensitivity Verification: For the optimal weight Perform perturbation analysis and output a weighted sensitivity report.

[0020] Furthermore, the formula for calculating the overall score is as follows: ,in , , , The optimal weights are output by the weight self-learning mechanism.

[0021] Furthermore, the ranking rules are as follows: first, sort by comprehensive score in descending order; when the comprehensive scores are the same, compare the scores of message clustering stage, format inference stage, semantic inference stage, and state machine reconstruction stage in sequence until the order is distinguished.

[0022] According to a second aspect of this specification, a standardized evaluation system for reverse engineering of industrial control protocols oriented towards static network traffic is provided. This system is used to implement the standardized evaluation method for reverse engineering of industrial control protocols as described in the first aspect. The system includes: The system comprises a dataset and annotation management module, a standard result adaptation module, an indicator calculation module, a weight learning and fusion module, a ranking generation module, and an audit output module. The indicator calculation module performs a four-stage scoring process, including message clustering, format inference, semantic inference, and state machine reconstruction. The weight learning and fusion module performs adaptive weight optimization under AHP prior constraints. The audit output module outputs the final weights, leaderboard, weight sensitivity report, and audit chain.

[0023] According to a third aspect of this specification, an electronic device is provided, including a memory and a processor, the memory being coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the industrial control protocol reverse engineering standardized evaluation method as described in the first aspect.

[0024] According to a fourth aspect of this specification, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the industrial control protocol reverse engineering standardized evaluation method as described in the first aspect.

[0025] According to a fifth aspect of this specification, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the industrial control protocol reverse engineering standardized evaluation method as described in the first aspect.

[0026] The beneficial effects of this invention are as follows: It improves the comparability of reverse engineering tools for different protocols, achieving fair horizontal evaluation under unified data, unified annotation, and unified indicators, eliminating conclusion bias caused by differences in evaluation conditions. It enhances reproducibility; result files, annotation files, and scoring processes can all be machine-verified and automatically executed, allowing any third party to independently reproduce the evaluation results. It has good scalability, supporting the addition of new protocol layers, tool results, weighting strategies, and ranking dimensions, with a loosely coupled framework design. Audit traceability is clear, forming a complete and traceable chain from dataset, annotation files, indicator calculation to ranking output. Attached Figure Description

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

[0028] Figure 1 This is a schematic diagram of the overall standardized evaluation process of this invention; Figure 2 This demonstrates the complete path from the scoring matrix to the final ranking output; Figure 3 This is a schematic diagram of the structure of an electronic device as shown in an embodiment. Detailed Implementation

[0029] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0030] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0031] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0032] This invention provides a standardized evaluation method for reverse engineering of industrial control protocols (ICPs) based on static network traffic. This method, centered on the same data, the same annotations, the same indicators, the same calibrable weights, and the same audit chain, achieves automated, fair, and reproducible evaluation of different ICP reverse engineering tools under unified conditions. For example... Figure 1 , Figure 2 As shown, the method includes the following steps: S1: Construct a hierarchical standardized benchmark dataset (SBD) to cover typical industrial control scenarios in layers from dimensions such as protocol structure, message length, and nesting level; S2: Perform fine-grained structural and semantic annotations on the messages corresponding to the benchmark dataset, generate standard annotation files, and perform consistency verification through annotation schema (JSON schema), including type verification, structural integrity verification, and scope reasonableness verification, etc. S3: Construct a unified evaluation metric system (UEMS) to divide the reverse engineering evaluation process into four stages: message clustering, format inference, semantic inference, and state machine reconstruction. Among them, the semantic inference stage sets the control field identification confidence (CFIC) metric to highlight the importance of control fields in the reverse engineering of industrial control protocols. The state machine reconstruction stage sets the state machine behavior similarity (SMBS) metric to evaluate whether the inferred state machine is equivalent to the real state machine from the perspective of "dynamic behavior", rather than just comparing whether the structures are the same. S4: Receives the output of various protocol reverse engineering tools, unifies the standard result file format (JSON structure), and realizes a unified mapping of heterogeneous outputs to the same standard space; S5: After performing a validity check on the standard result file, calculate the score for each stage; S6: The weights of each stage are determined by a weight self-learning mechanism that combines prior weight acquisition using the Analytic Hierarchy Process (AHP) with adaptive optimization solution. The scores of each stage are then weighted and fused based on the weights to obtain a comprehensive score. S7: Generate a reverse tool leaderboard based on the comprehensive score and preset sorting rules, and output the leaderboard results and weight sensitivity report.

[0033] Example 1: Construction of Standardized Data and Labels At the data layer, a hierarchical standardized benchmark dataset SBD is constructed. SBD is divided into two levels based on protocol complexity: Tier 1 (Simple Industrial Control Protocols): Includes network traffic capture files (.pcap format) for Modbus and DNP3 protocols. These protocols feature fixed message lengths, clear field boundaries, and simple state machines, making them suitable as a basic benchmark for evaluation.

[0034] Tier 2 (Advanced Control System Protocols): Includes network traffic capture files for CIP, S7Comm, and S7Comm Plus protocols. These protocols feature variable-length fields, nested data structures, and complex multi-stage state machines, enabling comprehensive testing of reverse engineering tools' ability to handle advanced protocol characteristics.

[0035] To demonstrate the structural representativeness of the SBD as a standardized benchmark, this invention constructs a protocol coverage matrix. This matrix has 5 protocols as columns and 7 structural feature dimensions as rows: (1) request-response pattern; (2) length field; (3) address field; (4) function code / service code; (5) sequence number / transaction ID; (6) state machine interaction; and (7) variable-length / nested / encrypted fields. Each cell in the matrix indicates whether the protocol possesses the corresponding structural feature. Coverage sufficiency is deemed to meet the benchmark requirements when each feature dimension is covered by at least 3 protocols.

[0036] In this embodiment, 5 out of the 7 dimensions achieve 5 / 5 complete coverage, and 2 dimensions achieve 4 / 5 sufficient coverage, with a total coverage rate of 32 / 35=91.4%, proving that SBD is sufficiently representative of the typical structural features of industrial control protocols.

[0037] Example 2: Unified Evaluation Index System This invention decouples the evaluation process of protocol reverse engineering into four independent and measurable stages, each using a clearly defined evaluation metric: Phase 1: Message Clustering. The V-Measure is used as the evaluation index to comprehensively measure the homogeneity and completeness of the clustering results, with a value range of [0,1].

[0038] Phase Two: Format Inference. Two complementary indicators, Correctness and Perfection, are used, and the phase score is the arithmetic mean of the two.

[0039] Phase Three: Semantic Inference. This invention introduces the Control Field Recognition Confidence Index (CFIC). CFIC specifically measures the recognition accuracy of control fields (such as Modbus function codes, CIP service codes, S7Comm PDU types, etc.) in industrial control protocols. For the subset C of fields marked as control fields in the annotation, Where P(c) is the positional precision (the degree of consistency between the inferred bit offset and bit length and the annotation), R(c) is the semantic recall (the proportion of control fields correctly identified as control-class semantics), and B(c) is the boundary accuracy (the IoU value between the inferred range and the labeled range). Semantic inference stage score. For the linear fusion of semantic F1 and CFIC: This measures the comprehensive ability of reverse engineering tools to identify key control fields; semantics. This is the harmonic mean of precision and recall during the semantic inference stage; The default λ=0.6 is used for the fusion weights.

[0040] Phase Four: State Machine Reconstruction. In addition to the existing state transition accuracy, path coverage, and edit distance metrics, this invention introduces the SMBS (Significant Message Sequence Similarity) metric. SMBS generates acceptable message sequence sets for both the inferred and labeled state machines by performing L-step random walks (default L=5). and Calculate the Jaccard similarity coefficient between the two sets: The innovative value of SMBS lies in the fact that edit distance only measures the structural differences of state machines, while SMBS can capture the equivalence of two state machines at the behavioral semantic level—state machines with different structures but equivalent behaviors will obtain high SMBS scores. The scores in the state machine reconstruction stage are state transition accuracy, path coverage, and standardized edit distance S. edit =1 / (1+ED) is the arithmetic mean of the four SMBS indicators, where ED is the edit distance.

[0041] If a reverse engineering tool fails to perform a certain stage or does not provide the corresponding calculation results, the score for that stage will be treated as a missing value and recorded as 0 points, without affecting the calculation of other stages.

[0042] Example 3: AHP Prior Weights and Adaptive Weights Optimization This invention designs a quantifiable, adaptive, and reproducible weighted self-learning mechanism to replace the traditional fixed equal-weight scheme. First, the symbols are defined: there are K tools to be evaluated, P protocols, and 4 evaluation stages. The message clustering, format inference, semantic inference, and state machine reconstruction stages are denoted as follows: The corresponding weights are denoted as follows: ; This represents the score of tool k in stage j of protocol p. ; This is the weight vector. The mechanism consists of three steps: Step 1: Obtaining AHP Prior Weights. Using the Delphi method, organize n domain experts (n≥5 recommended). Each expert independently compares the relative importance of the four stages: message clustering, format inference, semantic inference, and state machine reconstruction pairwise, constructing a 4×4 comparison matrix A. After aggregating the geometric mean of each expert's matrix, obtain the prior weight vector using the eigenvector method. During this process, a consistency ratio test (CR < 0.10) is performed. If the test fails, experts are required to revise the matrix.

[0043] Step 2: Adaptive optimization solution. Using the prior weight vector... As an initial solution, a bi-objective optimization problem is constructed: with the joint objective of maximizing the inter-tool integrated score discrimination D(w) and minimizing the cross-protocol ranking volatility V(w), the optimal weights are solved under constraints. ; Overall score of tool k on protocol p: ; Cross-protocol aggregation score for tool k: ; Inter-tool composite score discrimination D(w): The larger D(w) is, the more obvious the differences in scores between different tools, and the less likely it is that the rankings will be tied.

[0044] The calculation process for cross-protocol ranking volatility V(w) is as follows: First, for each... according to Descending order ranking Then calculate V(w): ;in V(w) represents the average ranking of tool k across protocols; V(w) represents stability, and the smaller the value, the more consistent the ranking of the same tool is across different protocols.

[0045] Normalize the discrimination and volatility: , ,in These are the maximum and minimum values ​​of the discrimination index, respectively. These represent the maximum and minimum values ​​of volatility, respectively.

[0046] The complete optimization problem is represented as follows: in, The hyperparameter controls the trade-off between discrimination and stability, with a default value of α=0.5; ε controls the trust radius, with a default value of ε=0.15; the third constraint is a "trust domain" to prevent the optimization result from deviating too far from the expert prior weights.

[0047] Step 3: Sensitivity Verification and Audit Output. For the optimal weight w... Perform ±5% perturbation analysis to observe the magnitude of ranking changes; simultaneously, use leave-one-out cross-validation (re-optimizing after removing a protocol one by one) to test the cross-protocol stability of the weights. Final output: optimal weight vector w. Weighted sensitivity report, audit records.

[0048] Example 4: Standard Result Format and Automatic Evaluation The evaluation result file for each protocol reverse engineering tool uses a unified JSON structure, containing basic tool information (name, version), a list of protocol-level evaluation records, and the metric values ​​for each stage in each record. The automated processing flow of the evaluation engine is as follows: (1) JSON Schema validation: Perform JSON Schema validation on the standard result file to ensure that the file format is valid.

[0049] (2) Record parsing and field range verification: parse the evaluation records one by one and verify whether the values ​​of each indicator are within a reasonable range (such as [0, 1]).

[0050] (3) Calculation of scores in stages: Calculate the scores of message clustering, format inference, semantic inference and state machine reconstruction in stages according to the calculation rules defined by UEMS.

[0051] (4) Overall score aggregation and ranking: Calculate the overall score according to the weighted fusion formula and generate a ranking list according to the sorting rules.

[0052] (5) Output ranking list: Export ranking results in CSV format (easy for manual review) and JSON format (easy for machine reading and subsequent integration).

[0053] Example 5: Web Visualization This invention provides a web visualization interface based on the Streamlit framework, supporting the following functions: (1) Data source selection: Users can choose to use built-in sample results, paper reproduction results or custom result file paths.

[0054] (2) Ranking criteria selection: Users can flexibly switch between comprehensive score, cluster score, format score, semantic score and state machine score.

[0055] (3) Chart vertical axis indicator selection: Supports custom chart display indicator dimensions.

[0056] (4) Chinese ranking list display: The rankings of each tool and the scores of each stage are displayed in a Chinese-friendly table format.

[0057] (5) Indicator comparison bar chart: The performance comparison of each tool at different evaluation stages is presented in an intuitive bar chart.

[0058] (6) CSV result export: Supports one-click download of ranking result files.

[0059] This invention provides a standardized, automated, and auditable evaluation infrastructure for industrial protocol reverse engineering tools. It has broad industrial application prospects and can be applied to the following typical scenarios: Industrial Control System (ICS) Security Assessment: Providing a standardized comparative testing platform for protocol reverse engineering tools for security vendors and testing organizations. Protocol Compliance Testing: Evaluating the standardization and consistency of protocol implementations during ICS network access testing. Attack and Defense Exercise Verification: Quantitatively evaluating the analytical accuracy of various reverse engineering tools in ICS attack and defense exercise scenarios. Vulnerability Discovery Assistance: Selecting the optimal reverse engineering tool through standardized evaluation to improve vulnerability discovery efficiency.

[0060] On the other hand, this application also provides a standardized evaluation system for reverse engineering of industrial control protocols for static network traffic, used to implement the above-mentioned standardized evaluation method for reverse engineering of industrial control protocols for static network traffic. The system includes: The dataset and annotation management module is used to build hierarchical standardized benchmark datasets, perform fine-grained structural and semantic annotations on messages, generate standard annotation files, and perform consistency verification. The standard result adaptation module is used to receive the output of various protocol reverse engineering tools and unify the standard result file format. The metrics calculation module is used to perform a four-stage scoring process, including message clustering, format inference, semantic inference, and state machine reconstruction. The weight learning and fusion module is used to perform adaptive weight optimization under AHP prior constraints; The ranking generation module is used to weight and merge the scores of each stage to obtain a comprehensive score, and then generate a tool leaderboard based on preset sorting rules. The audit output module is used to output the final weights, rankings, weight sensitivity reports, and the complete audit chain.

[0061] Regarding the system in the above embodiments, the specific ways in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0062] For the system embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0063] Accordingly, this application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; and, when the one or more programs are executed by the one or more processors, causing the one or more processors to implement the above-described standardized evaluation method for reverse engineering of industrial control protocols for static network traffic. Figure 3 The diagram shown illustrates a hardware structure of any device with data processing capabilities, used in the standardized evaluation method for reverse engineering of industrial control protocols for static network traffic, as provided in this embodiment of the invention. (Except for...) Figure 3 In addition to the processor, memory, and network interface shown, any data processing device in the embodiment may also include other hardware depending on the actual function of the data processing device, which will not be described in detail here.

[0064] Accordingly, this application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the aforementioned standardized evaluation method for reverse engineering of industrial control protocols for static network traffic. The computer-readable storage medium can be an internal storage unit of any data-processing device as described in any of the foregoing embodiments, such as a hard disk or memory. The computer-readable storage medium can also be an external storage device, such as a plug-in hard disk, smart media card (SMC), SD card, flash card, etc., equipped on the device. Furthermore, the computer-readable storage medium can include both internal storage units of any data-processing device and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the data-processing device, and can also be used to temporarily store data that has been output or will be output.

[0065] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only.

[0066] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.

[0067] The above description is merely a preferred embodiment of the present invention. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make many possible variations and modifications to the technical solutions of the present invention using the methods and techniques disclosed above, or modify them into equivalent embodiments with equivalent changes, without departing from the scope of the technical solutions of the present invention. Therefore, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solutions of the present invention shall still fall within the protection scope of the technical solutions of the present invention.

Claims

1. A standardized evaluation method for reverse engineering of industrial control protocols for static network traffic, characterized in that, include: Construct a hierarchical standardized benchmark dataset, perform fine-grained structural and semantic annotation on the messages corresponding to the benchmark dataset, generate standard annotation files, and perform consistency verification; A unified evaluation index system is constructed, dividing the evaluation process of reverse engineering into four independent and measurable stages: message clustering, format inference, semantic inference, and state machine reconstruction. The semantic inference stage sets a confidence index for the identification of control fields, and the state machine reconstruction stage sets a similarity index for state machine behavior. Receive the output of various protocol reverse engineering tools, standardize the result file format, perform legality verification on the standard result file, and calculate the score for each stage; The weights for each stage are determined by a weight self-learning mechanism that combines prior weight acquisition using the analytic hierarchy process with adaptive optimization. The scores for each stage are then weighted and fused based on these weights to obtain a comprehensive score. A reverse tool leaderboard is generated based on the comprehensive score and preset sorting rules, and the leaderboard results and weight sensitivity report are output.

2. The standardized evaluation method for reverse engineering of industrial control protocols for static network traffic as described in claim 1, characterized in that, A protocol coverage matrix is ​​constructed, which is a two-dimensional matrix with protocols as columns and structural features as rows. The structural features include at least request-response mode, length field, address field, function code / service code, sequence number / transaction ID, state machine interaction, variable length / nesting / encryption. When each structural feature dimension is covered by at least 40% of the protocols, the coverage sufficiency is determined to meet the benchmark requirements.

3. The standardized evaluation method for reverse engineering of industrial control protocols for static network traffic as described in claim 1, characterized in that, The standard annotation file includes at least: metadata objects, message field-level annotation objects, and state machine objects; wherein the field-level annotation objects include at least field names, bit offsets, bit lengths, field types, and semantic tags.

4. The standardization evaluation method for reverse engineering of industrial control protocols for static network traffic as described in claim 1, characterized in that, The message clustering stage uses the V-Measure metric to calculate the stage score; the format inference stage uses the Correctness and Perfection metrics, and the stage score is the arithmetic mean of the two.

5. The standardized evaluation method for reverse engineering of industrial control protocols for static network traffic according to claim 1, characterized in that, The confidence index for control field identification (CFIC) is calculated as follows: for the subset C of fields marked as control fields in the annotation, Where P(c) is the position precision, R(c) is the semantic recall, and B(c) is the boundary accuracy; the semantic inference stage score is a linear fusion of semantic F1 and CFIC.

6. The standardized evaluation method for reverse engineering of industrial control protocols for static network traffic according to claim 1, characterized in that, The calculation method for the state machine behavior similarity index (SMBS) is as follows: perform L-step random walks on both the inferred state machine and the labeled state machine to generate a message sequence set. and , The score for the state machine reconstruction phase is the arithmetic mean of four indicators: state transition accuracy, path coverage, standardized edit distance, and SMBS.

7. The standardized evaluation method for reverse engineering of industrial control protocols for static network traffic according to claim 1, characterized in that, The weight self-learning mechanism includes the following steps: S1: Using the AHP method, domain experts conduct pairwise comparisons of the importance of the four stages using the Delphi workflow and construct a comparison matrix. After consistency verification, the prior weight vector w is obtained. 0 ; S2: Using the prior weight vector As the initial solution, with the joint objective of maximizing the inter-tool integrated score discrimination D(w) and minimizing the cross-protocol ranking volatility V(w), the optimal weights are solved under constraints. Specifically: The message clustering, format inference, semantic inference, and state machine reconstruction stages are respectively denoted as... The corresponding weights are denoted as follows: , Let K be the weight vector; there are K tools to be evaluated and P protocols. The score of tool k on protocol p at stage j is denoted as . Firstly, according to and Calculate the overall score of tool k on protocol p Then calculate the cross-protocol aggregation score of tool k. ; The formula for calculating the inter-tool composite score discrimination index D(w) is as follows: ; The calculation process for cross-protocol ranking volatility V(w) is as follows: First, for each... according to Descending order ranking Then calculate V(w): ;in It is the average rank of tool k across protocols; The objective function is: ,in These are the normalized discrimination and volatility, respectively. The hyperparameters are defined by the following constraints: the weight vector for the four stages. With the prior weight vector w 0 The L2 norm is not greater than the preset control trust radius.

8. The standardized evaluation method for reverse engineering of industrial control protocols for static network traffic according to claim 1, characterized in that, The ranking rules are as follows: first, sort by comprehensive score in descending order; when the comprehensive scores are the same, compare the scores of message clustering stage, format inference stage, semantic inference stage, and state machine reconstruction stage in sequence until the order is distinguished.

9. A standardized evaluation system for reverse engineering of industrial control protocols for static network traffic, characterized in that, The system for implementing the industrial control protocol reverse engineering standardization evaluation method as described in any one of claims 1-8 includes: a dataset and annotation management module, a standard result adaptation module, an index calculation module, a weight learning and fusion module, a ranking generation module, and an audit output module; the index calculation module is used to perform a four-stage scoring process of message clustering, format inference, semantic inference, and state machine reconstruction; the weight learning and fusion module is used to perform adaptive weight optimization under AHP prior constraints; and the audit output module is used to output the final weights, leaderboard, weight sensitivity report, and audit chain.

10. An electronic device comprising a memory and a processor, characterized in that, The memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the standardized evaluation method for reverse engineering of industrial control protocols for static network traffic as described in any one of claims 1-8.