Industrial internet of things protocol security statement extraction and formal verification method and system
By employing document intermediate representation and fixed-point propagation techniques, the problems of format heterogeneity and traceability in the analysis of industrial IoT protocol specifications were solved, enabling efficient and accurate extraction and formal verification of security claims, thereby improving analysis efficiency and result verifiability.
Patent Information
- Application Number
- CN202611621961.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-20
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies for industrial IoT protocol specification analysis and formal modeling suffer from problems such as heterogeneous formats, scattered field definitions, complex relationships between protocol specifications, errors in manual analysis, difficulty in formal verification tools to handle natural language and heterogeneous formats, and lack of traceability of verification results, resulting in low analysis efficiency and poor accuracy.
The protocol specification is organized using Document Intermediate Representation, field candidates are extracted and protocol facts are constructed, field closures are calculated through fixed-point propagation, security statements and ProVerif symbolic models are generated, verification queries are executed and analysis reports with chains of evidence are generated, manual review and hierarchical evaluation are supported, and the results are ensured to be traceable and verifiable.
It improves the efficiency and accuracy of industrial IoT protocol analysis, effectively distinguishes the security objectives of fields, reduces the risk of errors in binding protocol analysis, reduces the workload of manually writing formal models, and reduces errors through hierarchical evaluation.
Smart Images

Figure CN123145347A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of industrial Internet of Things (IIoT) protocol security analysis, automatic protocol specification parsing, security requirement mapping, and formal verification model generation. Specifically, it is a method and system for extracting field-level security declarations from IIoT protocol specifications and automatically generating formal verification models. Background Technology
[0002] Protocols such as Modbus / TCP, OPC UA, CoAP, MQTT, LoRaWAN, and LwM2M are widely used in industrial control systems and industrial IoT systems. These protocol specifications are typically published by different standards organizations, and the documentation formats include RFC texts, HTML-formatted protocol specification documents, PDF documents, and draft protocol extensions. Security mechanisms within these protocols are often described in sections on message formats, parameter definitions, security modes, protocol extensions, and transport bindings.
[0003] Currently, protocol security analysis typically involves experts manually reading specifications to identify message structures, security mechanisms, and their applicable conditions, and then manually building formal verification models based on this. While formal verification tools can rigorously analyze the security properties in protocol models, they usually cannot directly handle protocol specifications in natural language or heterogeneous formats. Instead, personnel familiar with protocol details and formal syntax are needed to convert the specification content into a formal model. This process requires a significant investment of professionals with interdisciplinary knowledge and considerable time. When protocol specifications are large, heterogeneous in format, have scattered field definitions, or involve multiple extended documents, manual conversion is prone to omissions, duplications, or incorrect abstractions, making it difficult to support batch analysis of multiple protocols.
[0004] Existing technologies have the following main shortcomings in the analysis of industrial IoT protocol specifications and formal modeling:
[0005] First, the protocol specifications are heterogeneous. Field definitions may appear in message format diagrams, ASCII diagrams, parameter tables, resource definition tables, protocol option tables, or natural language descriptions, lacking a unified field-level evidentiary representation.
[0006] Second, there are composite relationships among protocol specifications, including base protocols, extended protocols, binding protocols, configuration specifications, and security libraries. Base protocols define general message structures and fields; extended protocols typically only describe newly added or modified fields and behaviors, and need to inherit the content of the base protocol during analysis; binding protocols may remove, replace, or reinterpret fields of the base protocol depending on the specific transmission method; configuration specifications are used to select or restrict protocol options, security modes, and parameter combinations; and security libraries provide authentication, integrity, or confidentiality mechanisms and their applicable conditions, but adopting these mechanisms does not necessarily mean inheriting the message fields defined by the security library itself. Relying entirely on manual identification and organization of these relationships can easily lead to missing fields, incorrect inheritance, or incorrect application of security mechanisms.
[0007] Third, traditional keyword matching security analysis cannot accurately distinguish between different semantics such as fields being protected for integrity, fields being protected for confidentiality, fields being protected only under specific security modes, and fields not being security targets, thus making it difficult to support field-level security analysis.
[0008] Fourth, formal verification tools such as ProVerif require explicit symbolic models and verification queries as input. There is a lack of a traceable automatic conversion link between the protocol specification text and the formal verification model, and it is also difficult to trace the original specification text on which the verification results are based.
[0009] Fifth, when using rules or large language models to assist in the extraction of natural language norms, candidate fields may lack clear message attribution or original text basis. If the source chapter, original text content, and extraction method cannot be preserved, it will be difficult to distinguish between the facts directly given in the document and the assumptions inferred by the model.
[0010] Therefore, for heterogeneous protocol specifications, it is necessary to establish a correspondence from original evidence, field facts, protocol dependencies to symbolic models, and handle the inheritance, replacement, and removal of basic fields in extended or bound protocols. Based on this, a traceable analysis chain is formed: "specification original text—field facts—security statement—verification target—symbolic model—query results," preserving source evidence at each stage, thereby improving the verifiability and repeatability of formal analysis results. Summary of the Invention
[0011] This invention provides a method and system for extracting and formally verifying security claims for industrial Internet of Things (IoT) protocols. The method organizes heterogeneous protocol specifications into a Document Intermediate Representation (DocumentIR), extracts field candidates from locatable document evidence, and constructs protocol facts. It then computes field closures of the base protocol, extended protocols, and binding protocols through fixed-point propagation. Based on field scope, security mechanisms, and applicable conditions, it generates security claims and ProVerif symbolic models, performs verification queries, and generates an analysis report with a chain of evidence. Finally, it separately saves the automatic analysis results before manual review for hierarchical comparison and error analysis with the manual decision-making results.
[0012] The specific technical solution for achieving the objective of this invention is as follows:
[0013] A method for extracting and formally verifying security claims of industrial Internet of Things (IoT) protocols, comprising the following steps:
[0014] Step 1: Obtain the Industrial Internet of Things (IIoT) protocol specification document, normalize the format and parse the chapters of the protocol specification document, and generate an intermediate representation of the document that retains the original source location;
[0015] Step 2: Extract message field candidates from the intermediate representation of the document, and record the source chapter and original text content corresponding to each candidate. After evidence verification and field normalization, generate a direct field set.
[0016] Step 3: Construct a protocol fact set based on the document intermediate representation and the direct field set. The protocol fact set includes document type facts, field facts, protocol dependency facts, security mechanism facts, and field overriding facts.
[0017] Step 4: Construct an initial field set based on the field facts, propagate fields according to the protocol dependency facts, and handle the removal, replacement, or overriding of fields according to the field overriding facts, iteratively generating a field closure set, while retaining the direct source, inherited source, or overriding source of the fields;
[0018] Step 5: With identity recognition and authentication, field integrity, and field confidentiality as preset security objectives, classify the fields in the field closure set by scope; generate field-level integrity statements and field-level confidentiality statements based on field scope, security mechanism facts, and their applicable conditions; determine the authentication method, authentication credentials, and their applicable conditions as specified in the security mechanism facts, and generate an identity recognition and authentication statement; the field-level integrity statement, field-level confidentiality statement, and identity recognition and authentication statement are collectively referred to as security statements;
[0019] Step 6: Convert the security statement into a formal verification target, and generate a formal verification model based on the formal verification target; when generating the formal verification model, simultaneously record the symbolic abstraction of the identity authentication, integrity protection and confidentiality protection mechanisms involved in the security statement, as well as the initial visibility of the key and the range of messages observable by the attacker, as model assumptions; determine the expected query results of the verification target based on the protection status and applicable conditions of the security statement;
[0020] Step 7: Execute the verification query in the formal verification model, obtain the actual query results returned by the verification tool, and compare them with the expected query results determined in Step 6 based on the security statement to generate an analysis report containing field sources, statement sources, model assumptions, query results, and comparison results;
[0021] Step 8: Retain field candidates, field sets, security statements, and comparison results, and compile items to be reviewed; generate a candidate field review table based on the field candidates and their source evidence, and provide a supplementary table for missing fields; receive the independent review results of two annotators on the validity of candidate fields, field roles, and missing fields, calculate the consistency of the annotations of the jointly reviewed items by both parties, manually adjudicate the disagreeing items, and form standard field data; compare the automatically generated field set with the standard field data, evaluate the field recovery results, and review the protection status and applicable conditions of the security statement; based on the comparison results, count the number of consistent, inconsistent, and undetermined items, and output the hierarchical evaluation results and error types.
[0022] Furthermore, the protocol specification document mentioned in step 1 includes one or more of the following: RFC text, HTML document published by the standards organization, or PDF converted text, and retains the original text's chapter identifiers, tables or formatted field diagrams, and source location.
[0023] Furthermore, the message field candidates mentioned in step 2 are obtained by extracting fields from the message format diagram, ASCII field diagram, field table, parameter table, resource definition table, protocol option table, attribute table, or natural language field description contained in the document, and associating each candidate with the message and original content.
[0024] Furthermore, the protocol dependency facts mentioned in step 3 record the current protocol specification document, the dependent document, and their dependency relationship; the dependency relationship includes one or more of the following: inheritance of the base protocol or extended protocol, protocol binding, configuration file reference, or security library use; the field overriding facts record the removal, replacement, or overriding of fields in the dependent document by the current protocol specification document, including the processed fields and processing methods, and also record the new field definition when replacement or overriding occurs.
[0025] Furthermore, the iteration described in step 4 employs fixed-point propagation, which means that, based on the protocol dependency facts, the inheritable fields in the dependent protocol documents are added to the field set of the current protocol document round by round, while the source of the fields is recorded, until neither the field record nor the source record is added.
[0026] Furthermore, the security statement described in step 5 includes at least a protocol identifier, statement level, security objective, protection status, field scope, applicable conditions, security mechanism, and evidence chain; wherein, the protection status of the field-level integrity statement and the field-level confidentiality statement is distinguished as covered, conditionally protected, uncovered, or pending confirmation; fields that do not belong to the corresponding security objective are further marked as non-security objective fields.
[0027] Furthermore, the formal verification model described in step 6 is the ProVerif model; verification queries are set according to the security statements: for identity recognition and authentication statements, a correspondence query between authentication initiation events and authentication acceptance events is set; for field-level integrity statements, a field integrity event correspondence query is set; for field-level confidentiality statements, an attacker derivability query is set; when the same field has both integrity and confidentiality statements, a field integrity event correspondence query and an attacker derivability query are set in the model of the same verification scenario.
[0028] Furthermore, the analysis report described in step 7 records the actual query results, expected query results, and comparison results of each verification target, as well as the field sources, claim sources, and model assumptions upon which the verification target is based; the comparison results are categorized as consistent, inconsistent, and indeterminate.
[0029] Furthermore, the hierarchical evaluation results in step 8 include field recovery evaluation results, security statement review results, and model consistency evaluation results; the error types include field omissions or extra extractions between the automatically generated field set and the standard field data, differences in role classification of matched fields, and differences in protection status or applicable conditions between the automatically generated security statement and the manual review results; the model consistency evaluation results are based on the comparison results, and the number of consistent, inconsistent, and undetermined results are counted respectively.
[0030] An industrial IoT protocol security assertion extraction and formal verification system implementing the above method includes the following modules:
[0031] The document normalization module is used to generate intermediate representations of documents that retain the original source location;
[0032] The field set recovery module is used to extract candidate fields from messages and generate a direct field set;
[0033] The protocol fact construction module is used to construct document type facts, field facts, protocol dependency facts, security mechanism facts, and field overriding facts;
[0034] The field closure calculation module is used to perform fixed-point propagation based on protocol dependency facts and field coverage facts to generate a set of field closures.
[0035] The security statement generation module is used to generate security statements based on the set of field closures and the facts of security mechanisms.
[0036] The verification target and model generation module is used to generate verification targets and formal verification models based on security statements, and to determine the expected query results;
[0037] The query execution and reporting module is used to execute verification queries, compare the actual query results with the expected query results, and generate an analysis report.
[0038] The manual review and stratified evaluation module is used to receive manually annotated results and perform stratified evaluation on the automatic analysis results;
[0039] Specifically, the output of the document normalization module is provided to the field set recovery module and the protocol fact construction module; the field set recovery module provides the direct field set to the protocol fact construction module; the protocol fact construction module provides the field facts, protocol dependency facts, and field coverage facts to the field closure calculation module, and provides the security mechanism facts to the security statement generation module; the field closure calculation module provides the field closure set to the security statement generation module; the security statement generation module, the verification target and model generation module, and the query execution and reporting module sequentially transmit the security statement, verification target and formal verification model, and comparison results; the manual review and hierarchical evaluation module receives the field set, security statement, comparison results, and items to be reviewed generated by the aforementioned modules.
[0040] Through the above technical solution, this invention establishes a correspondence between the protocol specification text, field facts, security statements, verification targets, and query results, enabling each query result to be traced back to the security statement, field facts, and specification text upon which it is based, and producing at least the following beneficial effects:
[0041] 1) By using document evidence units and field evidence references, the original text of the standard on which the field candidate is based can be located, thereby improving the traceability and verifiability of the field extraction results.
[0042] 2) By using message fields as the analysis object, it is possible to distinguish whether a field belongs to the integrity or confidentiality target, and avoid judging all fields of the protocol as protected simply because the specification mentions security mechanisms.
[0043] 3) Record the direct source, inherited source, covered source and model assumption of the fields respectively, and be able to distinguish between document facts, protocol combination results and modeling settings.
[0044] 4) Based on the protocol dependency facts, the underlying protocol fields are propagated so that the extended specification, which only describes incremental content, can be analyzed in conjunction with the underlying message structure.
[0045] 5) Based on the field coverage facts, the underlying fields that are removed, replaced, or covered are processed to reduce the risk of retaining inapplicable fields in binding protocol analysis.
[0046] 6) Generate corresponding ProVerif verification targets and symbolic models based on the security statement and its applicable conditions, reducing the workload of manually writing formal models and maintaining the correspondence between verification targets and normative evidence.
[0047] 7) Output materials for manual review and save the automatic analysis results before manual review, supporting stratified evaluation and error analysis. Attached Figure Description
[0048] Figure 1 This is a schematic diagram of the overall process of the present invention;
[0049] Figure 2 This is a flowchart for constructing an intermediate document representation in this invention;
[0050] Figure 3 This is a flowchart illustrating the process of restoring the complete set of fields in this invention;
[0051] Figure 4 This is a flowchart illustrating the construction of the protocol fact set and the computation field closure in this invention;
[0052] Figure 5 This is a flowchart illustrating the process of generating a security statement, generating a formal verification model, executing queries, and generating an analysis report in this invention.
[0053] Figure 6 This is a flowchart of the manual review and stratified evaluation of the automatic analysis results in this invention;
[0054] Figure 7 This is a system architecture diagram of the present invention. Detailed Implementation
[0055] See Figure 1 The present invention provides a method for extracting and formally verifying security claims of industrial Internet of Things (IoT) protocols, which specifically includes the following steps:
[0056] Step 1: Construct the intermediate representation of the document
[0057] The system inputs an Industrial Internet of Things (IIoT) protocol specification document, performs standardization processing on the document, identifies chapters, titles, body text, tables, formatted field diagrams, and source locations, and generates an intermediate representation of the document. This intermediate representation consists of multiple indexable and verifiable document evidence units. Each document evidence unit corresponds to a chapter or segmented chapter in the protocol specification and is associated with the source document, chapter identifier, chapter title, original content, and source location.
[0058] Step 2: Restore the complete set of fields
[0059] Document evidence units related to message format, field definition, parameter definition, resource definition, and protocol options are selected from the intermediate representation of the document. For content with headers, field boundaries, or option numbers, message field candidates are generated using rules matching the corresponding format; for fields described in natural language, rule extraction or large language model-assisted extraction is used. Each message field candidate records the protocol identifier, the message it belongs to, the field name, the field type, the field length, the field role, and the confidence level, and establishes a field evidence reference, associating the candidate with the supporting document evidence unit, and recording the source chapter, original content, source type, and extraction method. After evidence verification and field normalization, a direct field set is generated. For fields lacking locatable original text evidence, with unclear message attribution, or whose candidate content is inconsistent with the source evidence, a pending review status is maintained, and a positive security statement is generated not only based on the field name.
[0060] Step 3: Construct the protocol fact set
[0061] Based on the document's intermediate representation and direct field set, a protocol fact set is constructed. This protocol fact set includes document type facts, field facts, protocol dependency facts, security mechanism facts, and field overriding facts. Document type facts indicate whether the protocol specification belongs to a base protocol, extended protocol, binding protocol, configuration file, framework specification, object model specification, or security library. Protocol dependency facts indicate inheritance, extension, binding, or security library usage relationships between protocols. Field overriding facts indicate the removal, replacement, or overriding of base protocol fields by a particular protocol document.
[0062] Step 4: Calculate field closure
[0063] Starting with the direct field set of the current protocol document as the initial field set, the system propagates allowed inherited fields round by round based on protocol dependency facts. During propagation, it handles field overriding based on the following: removed fields are not added to the current field set; replaced fields use the replaced fields; and overridden fields use the field definitions specified in the current protocol document. This process is repeated until no more field records or source records are added, and the system outputs the field closure set and the direct, inherited, and overriding sources of each field.
[0064] Step 5: Generate a security statement
[0065] This step takes the security objective configuration as input and classifies the fields in the field closure by scope. For integrity and confidentiality objectives, it determines whether fields in specific messages or data structures are within the protection scope of the corresponding security mechanism, generating field-level integrity statements or field-level confidentiality statements. For identity authentication objectives, it determines the authentication method, authentication credentials, and their applicable conditions based on the identity binding and credential verification content recorded in the security mechanism facts, generating an identity authentication statement. Security statements are divided into field-level statements and mechanism-level statements according to the analysis object: field-level statements target specific fields, while mechanism-level statements target the authentication mechanism specified in the protocol. Each security statement records the security objective, analysis object, protection status, applicable conditions, and security mechanism, and traces back to the corresponding document evidence unit through field evidence citations, source evidence of security mechanism facts, and field source records. The above associations constitute the evidence chain of the statement. When the evidence is insufficient or the applicable conditions cannot be determined, the corresponding statement is marked as pending review.
[0066] Step 6: Generate a formal verification model
[0067] The security statements are compiled into formal verification objectives. For identity recognition and authentication objectives, an event correspondence query is generated; for field-level confidentiality objectives, a confidentiality query is generated; for field-level integrity objectives, a field integrity event correspondence query is generated; and for fields involving both integrity and confidentiality, a combined security query is generated. Furthermore, a symbolic model executable by formal verification tools such as ProVerif is generated based on the verification objectives.
[0068] Step 7: Execute the query and generate an analysis report.
[0069] Perform formal verification queries, parse the query results, and output a report containing field sources, direct or inherited sources, security statements, applicable conditions, model assumptions, and query results. The report results are used to illustrate whether the generated symbolic model is consistent with the security statements, and are not directly equivalent to an automatic compliance determination of the protocol as a whole with IEC 62443.
[0070] Step 8: Manually review and stratified evaluate the automated analysis results.
[0071] Before manual correction, retain the direct field set, field closures, security statements, and model query results; simultaneously export the candidate field review table and the missing field supplement table for independent review by two annotators. Calculate annotation consistency based on the annotation results from both parties, manually adjudicate discrepancies, and form standard field data; evaluate the field restoration results accordingly, and conduct statement verification and model consistency checks on the security statements and model query results respectively, outputting the evaluation results and error types for each layer.
[0072] Preferably, the field roles include header, option, payload, parameter, identifier, token, nonce, key material, status, property, flag, or metadata; the determination status of the field role includes confirmed or pending confirmation, and pending confirmation is not considered as a field role category.
[0073] Preferably, the security mechanism includes one or more of the following: digital certificate, pre-shared key, message authentication code, digital signature, AEAD, MIC, TLS, DTLS, OSCORE, COSE, JOSE, or key derivation mechanism.
[0074] Preferably, the protection status of the field-level integrity declaration and the field-level confidentiality declaration includes covered, conditionally protected, uncovered, or pending confirmation; fields that are clearly not part of the integrity or confidentiality protection target are separately marked as non-security target fields under the corresponding security target.
[0075] Example
[0076] The specific processing flow for each step in this embodiment is shown below. Figures 2 to 6 And the following specific implementation methods.
[0077] Step 1: Construct the intermediate representation of the document
[0078] Referring to Figure 2, heterogeneous protocol specifications are converted into a unified intermediate document representation, so that subsequent field extraction and security declaration generation can be traced back to the original specification text.
[0079] S100: Input Protocol Specification Document
[0080] Receive Industrial Internet of Things (IIoT) protocol specification documents. These documents can be RFC text, HTML-formatted protocol specification documents, PDF-converted text, extended protocol documents, protocol binding documents, configuration file documents, or object model documents. The protocols may include Modbus / TCP, OPC UA, CoAP, MQTT, LoRaWAN, LwM2M, and their extended protocols.
[0081] S101: Identify document format and chapter structure
[0082] Based on document format, it identifies chapter numbers, chapter titles, body paragraphs, tables, lists, formatted field diagrams, and cross-references. For RFC text, it divides chapters according to numbered titles and identifies ASCII field diagrams and formatted text blocks; for HTML documents, it parses page elements such as titles, body text, lists, tables, formatted text blocks, and hyperlinks, reconstructs the chapter structure according to the title hierarchy, and preserves the row and column relationships of tables and the source addresses of each chapter; when the HTML entry page only contains a chapter index, it obtains the corresponding body text based on the chapter links and merges the body text content into the corresponding chapter; for PDF converted text, it restores the body text according to page and paragraph order and identifies table text and formatted field diagrams.
[0083] S102: Generate intermediate representation of the document
[0084] The identified chapter content is organized into document evidence units and aggregated into DocumentIR. Each document evidence unit records the source document, chapter identifier, chapter title, source location, and corresponding text, tables, or formatted text.
[0085] S103: Establish an evidence index
[0086] Assign a unique identifier to each document evidence unit in the intermediate document representation, and record its source document, chapter identifier, chapter title, content type and source location, so that the subsequently generated field candidates can locate and reference the corresponding document evidence unit.
[0087] Step 2: Restore the complete set of fields
[0088] See Figure 3 The field set recovery is used to extract protocol messages, parameters, options, and resource fields from the intermediate representation of the document and generate a direct field set.
[0089] S200: Select Document Evidence Unit
[0090] Select document evidence units related to message format, field definition, parameter definition, resource definition, protocol options, security parameters, and message semantics from the intermediate representation of the document. These document evidence units may originate from message format diagrams, ASCII field diagrams, field tables, parameter tables, resource definition tables, protocol option tables, attribute tables, or natural language field descriptions.
[0091] S201: Perform format-aware field extraction
[0092] For structured field diagrams, candidates are formed based on field boundaries, bit width markers, and field names; for tables, the table header and data rows are identified first, and then the field names, types, lengths, and descriptions are extracted; for protocol option tables, candidates are determined by combining option names, numbers, formats, and lengths.
[0093] For natural language descriptions, rule-based extraction or large language models are used to assist extraction. When using a large language model, the text, chapter identifiers, and relevant context of the selected document evidence unit are used as input. Prompts are used to clarify the extraction scope, output content, and evidence requirements. An example of a prompt is as follows: "Please extract the explicitly defined message fields from the following protocol specifications and return the corresponding message, field name, field type, field length, and a summary of the original text supporting the field in JSON format. Extraction is based solely on the input content; fields are not supplemented based on protocol common sense. Information not specified in the original text is left blank, and ambiguous content is marked as pending confirmation."
[0094] Parse the candidate records returned by the large language model, check the output structure, and verify whether the attached original text excerpt can be located in the input document evidence unit. Candidates lacking locatable evidence or with unclear messages are retained as items to be reviewed later.
[0095] S202: Generate message field candidates
[0096] Candidates obtained from field diagrams, tables, and natural language extraction are merged into a candidate set, and their roles are determined based on the field definitions and associated messages in the original text. Each candidate records a protocol identifier, associated message, field name, field type, field length, field role, and confidence level. Simultaneously, a field evidence reference is created for each candidate, associating it with a supporting document evidence unit, and recording the original text extract supporting the candidate, the evidence source type, and the extraction method. Candidates for which a clear original text extract cannot be associated or whose associated message cannot be determined are marked as pending review, and the reasons for pending review are recorded in the review form.
[0097] S203: Normalized field names
[0098] Field names are standardized, including case unification, abbreviation expansion, whitespace normalization, merging of equivalent fields, and deduplication of duplicate fields. Candidates with verifiable original text evidence and clearly defined message affiliations are included in the direct field set; candidates lacking evidence or with unclear message affiliations are retained as pending review items and are not used to generate affirmative security statements. The direct field set only represents fields that appear directly in the specification and does not indicate that the fields have met integrity or confidentiality objectives.
[0099] Step 3: Construct the protocol fact set
[0100] See Figure 4 This step corresponds to the processing stages of constructing the protocol fact set, determining the document type, and defining inheritance and overriding rules. Based on the direct field set and document evidence, document types, fields, dependencies, security mechanisms, and field overriding facts are constructed. The field closure calculation, fixed point propagation, stability judgment, and field closure output stages in the diagram are executed by step 4.
[0101] S300: Constructing a set of protocol facts
[0102] A protocol fact set is constructed based on the intermediate representation of the document, the direct field set, and the identifiers, types, and inter-document references of the protocol specification document. This protocol fact set includes document type facts, field facts, protocol dependency facts, security mechanism facts, and field overriding facts. Document type facts indicate whether the current document is a base protocol, extended protocol, binding protocol, configuration file, framework specification, object model specification, or security library. Field facts indicate the field name, associated message, field role, and source evidence. Protocol dependency facts indicate whether a protocol extends, binds to, or depends on another protocol. Security mechanism facts indicate the authentication, integrity, or confidentiality mechanisms employed by the protocol. Field overriding facts indicate the removal, replacement, or overriding of base protocol fields by the current protocol; these are protocol structural change facts and differ from the protected status in security statements.
[0103] S301: Identifying Document Types and Propagation Rules
[0104] The propagation rules are determined based on document type facts and protocol dependency facts. For base protocols, their direct fields are retained; for extended protocols, fields from the base protocols they depend on are inherited based on their direct fields; for binding protocols, field removal, replacement, or overriding facts are applied after inheriting base fields; when the protocol specification explicitly declares the use of a certain security library, the security mechanisms used in that library and their applicable conditions are extracted for subsequent security statement generation. Message fields defined by the security library itself are not therefore incorporated into the protocol's field set; relevant fields are only processed when the binding specification explicitly provides field correspondences.
[0105] Step 4: Calculate field closure
[0106] S400: Initialize field propagation state
[0107] The field facts directly extracted from the current protocol document are used as the initial field set. The dependency facts and overriding facts of the current protocol document are read to determine the dependency relationships that allow field inheritance and the rules for field removal, replacement or overriding.
[0108] S401: Perform fixed-point propagation
[0109] For each extended or bound protocol, field inheritance, removal, replacement, and overriding are handled according to Algorithm 1, and the field closure is output after the field set is stable. When the dependent document belongs to a security library, message fields defined by that security library itself are not added to the field set of the current protocol.
[0110] Algorithm 1: Field closure propagation with field coverage constraints
[0111] The input consists of a finite set of protocol documents, the set of direct fields of each document, the parsed protocol dependencies, and the facts of field removal, replacement, and overriding; the output consists of the field closures and source records of each document.
[0112] (1) Initialization: The initial field set is the direct field set of each document, and the field key is the message to which it belongs and the normalized field name. Read the field removal, replacement and overwriting facts explicitly defined in each document, and keep these processing rules unchanged during this propagation process.
[0113] (2) Propagation: Process dependencies that allow field inheritance and whose dependent documents have been resolved one by one. For each field in the dependent document, first check the processing rules of the current document: fields that are explicitly removed are not added to the current collection; fields that are explicitly replaced are replaced with the replaced field; fields that are explicitly overridden are defined using the definition specified in the current document; the remaining fields retain their original definitions. After processing, the fields are added to the current collection after deduplication by field key and field definition, and their source documents, the dependencies they have passed through, and the applicable replacement or overriding records are recorded. When different sources give conflicting definitions for the same field and there is no clear basis for processing, the conflict record is retained and marked as pending review, and is not arbitrarily selected according to the traversal order.
[0114] (3) Stability and Termination: After completing one round of propagation, if any document adds a new field record or source record, then repeat step (2); otherwise, terminate and output the field closure and source record of each document. The source record is deduplicated by field, source document, and dependency. For external dependencies that cannot be resolved, only the dependency relationship and the reason to be supplemented are recorded, and its fields are not inferred. Since the number of documents, field definitions, and dependencies involved in the propagation is limited, the processing rules remain unchanged, and only records that have not yet appeared after deduplication are added in each round, the propagation process can terminate after a limited number of rounds.
[0115] S402: Output field closure
[0116] After the field closure calculation is completed, the direct field, inherited field, overriding field, and final field closures are output, and the source information of each field is retained. For inherited fields, the underlying protocol from which they originate is recorded; for overriding fields, the protocol document from which they were removed, replaced, or overridden is recorded.
[0117] S403: CoAP Observe Extended Example
[0118] Taking RFC7252 and RFC7641 as examples, RFC7252 is the basic CoAP protocol document, and RFC7641 is the CoAPObserve extension document. Basic fields such as Type, Code, MessageID, Token, Options, and Payload are extracted from RFC7252, and Observe fields are extracted from the option attribute table of RFC7641. Since RFC7641 depends on RFC7252, the basic fields of RFC7252 are propagated to RFC7641 through fixed-point propagation and merged with the Observe fields to obtain the field closure of the Observe extension protocol. This example illustrates that this method can propagate fields according to protocol dependencies and calculate a stable field closure while preserving the field source record.
[0119] S404: CoAPBlock-Wise Extension Example
[0120] Taking RFC7252 and RFC7959 as examples, RFC7959 is an extension document for CoAPBlock-Wise. It extracts the Block1, Block2, and option value subfields such as NUM, M, and SZX from RFC7959 and inherits these from the CoAP base fields through dependency propagation. This example illustrates that this method can handle extension protocol documents that only define incremental fields.
[0121] S405: Example of CoAPoverTCP / TLS / WebSockets Binding
[0122] Taking RFC7252 and RFC8323 as examples, RFC8323 is a CoAPoverTCP / TLS / WebSockets binding document. This binding document has a binding relationship with RFC7252, but no longer uses some fields from CoAPoverUDP, such as Type and MessageID. The field overriding fact record removes or replaces these fields, and prevents these fields from entering the field closure set of RFC8323 during fixed-point propagation. This example illustrates that this method can handle field overriding and removal in binding protocols.
[0123] Step 5: Generate a security statement
[0124] Each security statement records the security objective, the object of analysis, the protection status, the field scope, applicable conditions, the security mechanism, and the chain of evidence. The applicable conditions refer to the prerequisites, as determined by the original specification, for the corresponding security mechanism to take effect or for the security statement to be valid, including the activation of a specific security mode, a specific message type, or a message transmission direction. See also... Figure 5 , Figure 5The section from the input field closures and security objectives to the generation of FR1, FR3, and FR4 security statements illustrates the security statement generation process; this process maps field closures and security mechanism facts to field-level or mechanism-level statements under the security objectives.
[0125] S500: Input security target configuration
[0126] This step takes security objective configuration as input. The security objectives include those related to identity verification and authentication, system integrity, and data confidentiality in IEC 62443. In this embodiment, these objectives are mapped to FR1 identity verification and authentication objectives, FR3 field-level integrity objectives, and FR4 field-level confidentiality objectives.
[0127] S501: Determine the scope of a field
[0128] The scope of a field is determined based on its role, the message it belongs to, the source section, and the protocol semantics. Field scope includes wire message fields, operation parameters, message payloads, metadata, security parameters, security materials, and resource / config data. Field scope describes the field's location or usage range within the protocol, providing a basis for subsequent determinations of whether it falls under integrity or confidentiality protection targets, but it does not directly indicate whether the field is protected. When existing evidence is insufficient to determine the field's scope, the field's scope determination status is marked as "pending confirmation." "Pending confirmation" only indicates that further verification is needed and does not belong to the field scope category.
[0129] S502: Generate an integrity declaration
[0130] For FR3 field-level integrity targets, first determine whether the field falls within the scope of integrity protection under the corresponding message and security mode, then associate it with evidence of message authentication codes, digital signatures, AEAD, MIC, TLS / DTLS channel integrity, or object security mechanisms. Based on the original specification, determine whether the field is within the protection scope of the corresponding security mechanism, and determine the activation requirements and applicable conditions of that mechanism. If the field is within the protection scope and the specification requires that the mechanism be enabled, generate a covered declaration; if the specification only requires that the mechanism be enabled under specific conditions, generate a conditional protection declaration. For fields determined to be integrity protection targets, if the specification explicitly states that they are not protected by the integrity mechanism, generate an uncovered declaration; fields explicitly not belonging to integrity protection targets are marked as non-security target fields; fields whose belonging to integrity protection targets, whether they are protected by integrity, or the applicable conditions of the protection mechanism cannot be determined are marked as pending confirmation.
[0131] S503: Generate a confidentiality statement.
[0132] For FR4 field-level confidentiality targets, based on the original text extract associated with the field evidence citation, determine whether the field contains identity credentials, keys, business data, or other information that the specification requires to be kept confidential. For confidentiality target fields, based on the security mechanism facts and their source evidence, determine whether the protection scope of transport layer encryption, object-level encryption, or AEAD protection mechanisms includes the field and its associated message. If the specification requires the use of the corresponding confidentiality mechanism, generate a covered statement; if it is only protected when TLS, DTLS, OSCORE, or other specific security modes are enabled, generate a conditional protection statement; if the specification explicitly states that the field is transmitted in plaintext or is not protected by a confidentiality mechanism, generate an uncovered statement; for fields that are explicitly public and do not have confidentiality requirements, generate a non-secure target field statement. If it cannot be determined whether a field belongs to a confidentiality target, or if the protection scope and applicable conditions of the confidentiality mechanism cannot be determined, mark it as pending confirmation.
[0133] S504: Generate Identity Recognition and Authentication Statement
[0134] For FR1 identity recognition and authentication targets, a field-level or mechanism-level authentication claim is generated based on the certificate, pre-shared key (PSK), token, authentication identifier, session identity, and key verification mechanism. This claim describes whether identity binding, entity authentication, or credential verification mechanisms exist in the protocol specification.
[0135] S505: Output Security Statement
[0136] Security statements should include at least the protocol identifier, statement level, security objective, protection status, scope, applicable conditions, security mechanism, and chain of evidence; field-level statements should also include message name and field name. Each statement is associated with source evidence in the document's intermediate representation. The portions of the security statement containing the information needed to generate the verification objective and model proceed to step 6; portions lacking sufficient evidence or necessary parameters are recorded as items pending review.
[0137] Step 6: Generate a formal verification model
[0138] A pre-configured formal verification template library is provided. This library includes ProVerif code structures for authentication, field integrity, field confidentiality, and combined verification, and specifies the participants, channels, cryptographic primitives, events, queries, and parameters to be filled for each type of verification. This template library is used to convert security claims into formal verification models and is not part of the extracted results of the protocol specification. See also... Figure 5 The part of generating the verification target from the security statement and compiling it into the ProVerif symbol model corresponds to this step.
[0139] S600: Generate verification target
[0140] The security claims are compiled into verification targets. For identity recognition and authentication targets, an identity authentication event correspondence query is generated; for confidentiality targets, a confidentiality query is generated; for integrity targets, a field integrity event correspondence query is generated; for fields that have both integrity and confidentiality claims, corresponding integrity and confidentiality queries are generated in the same model.
[0141] S601: Compiler Security Declaration
[0142] For each security claim, read the claim level, security objective, protection status, field scope, applicable conditions, security mechanism, and source of evidence, and then perform the following processing in sequence:
[0143] (1) Select a formal verification template for identity authentication, integrity, confidentiality, or a combination thereof based on the security objectives;
[0144] (2) Determine the query object and expected query results based on the analysis object and protection status;
[0145] (3) If the security statement includes applicable conditions, a ProVerif symbol model shall be constructed for each different condition, and the security mode, algorithm selection or transport binding settings shall be specified in each model to limit the scope of application of the verification target;
[0146] (4) Obtain messages, fields, security mechanisms, communication participants, and key parameters from the security statement and its source evidence. The participants are determined based on the sending, receiving, or authentication relationship, and the key parameters are determined based on the key type, holder, and sharing relationship. Fill the above information into the template to generate a ProVerif code snippet with an evidence chain identifier. The settings preset in the template rather than provided in the original text are model assumptions. If necessary information is missing, they are listed as items to be reviewed, and this part of the model is not generated at this time.
[0147] (5) For multiple fields to be verified under the same applicable conditions in the same protocol interaction, their ProVerif code snippets are merged into a single ProVerif symbol model. Among them, the common participants, channels and cryptographic operations are defined only once, and the events and queries of each field are retained separately.
[0148] Table 1 shows an example of the conversion rules from security claims to ProVerif verification targets. The events in this table are process flags set in the ProVerif process to indicate key moments such as authentication start, authentication success, field sending, or field validation passing.
[0149] Table 1. Rules for converting security claims to ProVerif verification targets
[0150]
[0151] S602: Generating Symbolic Models
[0152] A symbolic model is generated based on the verification objective. This symbolic model includes communication channels, protocol participants, identities and credentials, protected fields, attacker-observable messages, security mechanism abstractions, event declarations, and query declarations. For different protocols, corresponding model fragments are generated based on field closures and security declarations.
[0153] Step 7: Execute the query and generate an analysis report.
[0154] S700: Execute query
[0155] The formal verification tool is invoked to execute the query, and the query results are parsed. For the ProVerif model, the query results are used to determine whether an attacker can obtain the confidential fields, whether tampering with the fields is acceptable, and whether the event correspondence is valid.
[0156] S701: Compare the actual query results with the expected query results
[0157] For each formal verification objective, read the expected query result determined in step 6 based on the security objective, protection status, and applicable conditions; that is, whether the security property to be verified by the objective is true or false. After executing the ProVerif query, obtain the actual query result, i.e., the result given by the verification tool indicating whether the security property is true, false, or cannot be determined. If the actual query result matches the expected query result, record it as model consistent; if they do not match, record it as model inconsistent; if the query tool cannot give a definite result, or the relevant applicable conditions are still not resolved, record it as undetermined. Simultaneously record the verification objective, applicable conditions, expected query result, actual query result, evidence chain, and model assumptions. For results that are inconsistent with the model or undetermined, generate items to be reviewed, recording the corresponding verification objective, applicable conditions, expected query result, actual query result, evidence chain, model assumptions, and possible reasons for inconsistency. These items to be reviewed, along with the items to be reviewed retained in steps 2 to 6 due to insufficient field evidence, unclear message attribution, unresolved protocol dependencies, unclear declaration applicable conditions, or missing parameters required for model generation, are submitted to step 8 for manual review.
[0158] S702: Generate a traceability analysis report
[0159] The analysis report should record security statements, field evidence citations, field source records, security mechanism facts and their source evidence, applicable conditions, model assumptions, expected query results, actual query results, and comparison results, ensuring that all verification results can be traced back to the original protocol specifications. For results that are inconsistent with the model or cannot be determined, the report should also record the reasons for the need for review and any additional information required.
[0160] Step 8: Manually review and stratified evaluate the automated analysis results.
[0161] See Figure 6 After automatic analysis, the results are split into two paths: one path retains the uncorrected set of fields, security statements, and model query results; the other path exports a candidate field review table and a missing field supplement table for annotation personnel to independently review and form a decision. The results from both paths are then combined for stratified comparative evaluation and error analysis.
[0162] S800: Generate candidate field review table and missing field supplement table
[0163] A candidate field review table is generated based on the automatic extraction results. The annotator uses this table to determine whether a candidate is a valid field, verifies the role classification of valid fields, and records the name, message, source chapter, original text content, and reason for any fields not covered by the automatic extraction in the missing fields supplement table. Both tables serve as... Figure 6 Input for the left-hand labeled branch.
[0164] S801: Implement independent annotation by two people and manual adjudication.
[0165] Annotator A and Annotator B independently review candidate and missing fields, and do not exchange annotation results before the review is completed. Cohen's Kappa is calculated based on the items jointly reviewed by both parties; items with disagreements are manually decided to form standard field data. Undisputed items are included according to the results agreed upon by both parties.
[0166] S802: Conduct stratified comparative evaluation and error analysis.
[0167] The retained, uncorrected automatic results are compared with the standard field data from manual adjudication, first comparing the field sets and field roles. After the field candidate review is completed, the annotator reviews the protection status and applicable conditions of the security statement based on the corresponding chain of evidence, and then checks whether the statement is consistent with the symbolic model in conjunction with the model query results. Differences such as field omissions, inconsistencies in granularity, ambiguities in scope, omissions in protection conditions, errors in inheritance or coverage relationships, and inconsistencies in model assumptions are recorded separately, and linked to the original evidence and generation steps. The calculation methods for each level of indicators are shown in S803 to S805.
[0168] S803: Field Complete Set Recovery Assessment
[0169] The automatically extracted field set is compared with the standard field set determined by humans, and the field recall rate, precision rate, role classification accuracy rate, and number of missing fields are calculated respectively; for inconsistent entries, the original text position in the chapter, table row, or field graph is checked. This comparison is used to locate differences in the field extraction and normalization process.
[0170] S804: Safety Statement Classification Assessment
[0171] The automatically generated FR1 identity recognition and authentication statement, FR3 field-level integrity statement, and FR4 field-level confidentiality statement are compared with the corresponding manual review results to verify the protection status and applicable conditions; for field-level statements, the target category of the field is also verified. Field extraction omissions and security statement classification errors are recorded separately, and only the security statement classification results of successfully matched fields are compared.
[0172] S805: Formal Model Consistency Check
[0173] In the model consistency assessment, based on the control results generated in step 7, the number of models that are consistent, inconsistent, and cannot be determined are counted respectively, and error analysis is performed in conjunction with the reasons for the need to be reviewed.
[0174] Implementation results:
[0175] Through the above implementation methods, this invention can uniformly process industrial IoT protocol specifications of different formats, and sequentially complete message field extraction, protocol dependency processing, security declaration generation, and ProVerif model generation, reducing repetitive work such as manually reading specifications, organizing fields, and writing formal models. For extended and binding protocols, this method can handle the inheritance, removal, replacement, and overriding of basic fields, reducing field omissions and erroneous inheritance. By generating security declarations within specific fields and applicable conditions, it avoids making general protection conclusions based solely on the name of security mechanisms. The source evidence and items to be verified saved during the analysis process allow field conclusions, verification targets, and query results to be traced back to the original specification text, facilitating manual verification and problem localization. Therefore, this invention can improve the completeness, reliability, verifiability, and repeatability of protocol security analysis.
[0176] System Implementation Method:
[0177] like Figure 7 As shown, the system implementing the above method includes a document normalization module, a field set recovery module, a protocol fact construction module, a field closure calculation module, a security statement generation module, a verification target and model generation module, a query execution and reporting module, and a manual review and hierarchical evaluation module. Each module performs the processing described in steps 1 to 8 respectively.
[0178] The document normalization module receives the protocol specification document, generates an intermediate representation of the document, and provides it to the field set recovery module and the protocol fact construction module. The field set recovery module extracts candidate message fields, establishes field evidence references, and provides the generated direct field set to the protocol fact construction module. The protocol fact construction module combines the intermediate document representation and the direct field set to construct protocol facts, and provides the field facts, protocol dependency facts, and field coverage facts to the field closure calculation module, and provides the security mechanism facts to the security statement generation module.
[0179] The field closure calculation module performs fixed-point propagation and provides the generated set of field closures to the security statement generation module. The security statement generation module receives the security target configuration, combines the field closure set, security mechanism facts, and their applicable conditions to generate a security statement, and provides this statement to the verification target and model generation module. The verification target and model generation module generates verification targets and a formal verification model, determines the expected query results, and records the model assumptions. The query execution and reporting module executes the queries in the model, compares the actual query results with the expected query results, and generates an analysis report.
[0180] The manual review and stratified assessment module collects and retains the automatic analysis results and items to be reviewed that have not been manually corrected, exports the candidate field review table and the missing field supplement table, receives the independent review results and disagreement resolution results from the annotators, and forms standard field data. Based on this, the field restoration assessment, safety statement review and model consistency assessment are performed according to step 8, and the stratified assessment results and error analysis are output. Figure 7 The converging lines on the right indicate that each module provides automatic analysis results and items to be reviewed to this module, without changing the execution order of the above methods.
Claims
1. A method for extracting and formally verifying security claims for industrial Internet of Things (IoT) protocols, characterized in that, The method includes the following steps: Step 1: Obtain the Industrial Internet of Things (IIoT) protocol specification document, normalize the format and parse the chapters of the protocol specification document, and generate an intermediate representation of the document that retains the original source location; Step 2: Extract message field candidates from the intermediate representation of the document, and record the source chapter and original text content corresponding to each candidate. After evidence verification and field normalization, generate a direct field set. Step 3: Construct a protocol fact set based on the document intermediate representation and the direct field set. The protocol fact set includes document type facts, field facts, protocol dependency facts, security mechanism facts, and field overriding facts. Step 4: Construct an initial field set based on the field facts, propagate fields according to the protocol dependency facts, and handle the removal, replacement, or overriding of fields according to the field overriding facts, iteratively generating a field closure set, while retaining the direct source, inherited source, or overriding source of the fields; Step 5: With identity recognition and authentication, field integrity, and field confidentiality as preset security objectives, classify the fields in the field closure set by scope; generate field-level integrity statements and field-level confidentiality statements based on field scope, security mechanism facts, and their applicable conditions; determine the authentication method, authentication credentials, and their applicable conditions as specified in the security mechanism facts, and generate an identity recognition and authentication statement; the field-level integrity statement, field-level confidentiality statement, and identity recognition and authentication statement are collectively referred to as security statements; Step 6: Convert the security statement into a formal verification target, and generate a formal verification model based on the formal verification target; when generating the formal verification model, simultaneously record the symbolic abstraction of the identity authentication, integrity protection and confidentiality protection mechanisms involved in the security statement, as well as the initial visibility of the key and the range of messages observable by the attacker, as model assumptions; determine the expected query results of the verification target based on the protection status and applicable conditions of the security statement; Step 7: Execute the verification query in the formal verification model, obtain the actual query results returned by the verification tool, and compare them with the expected query results determined in Step 6 based on the security statement to generate an analysis report containing field sources, statement sources, model assumptions, query results, and comparison results; Step 8: Retain field candidates, field sets, security statements, and comparison results, and compile items to be reviewed; generate a candidate field review table based on the field candidates and their source evidence, and provide a supplementary table for missing fields; receive the independent review results of two annotators on the validity of candidate fields, field roles, and missing fields, calculate the consistency of the annotations of the jointly reviewed items by both parties, manually adjudicate the disagreeing items, and form standard field data; compare the automatically generated field set with the standard field data, evaluate the field recovery results, and review the protection status and applicable conditions of the security statement; based on the comparison results, count the number of consistent, inconsistent, and undetermined items, and output the hierarchical evaluation results and error types.
2. The method for extracting and formally verifying security claims of industrial IoT protocols according to claim 1, characterized in that, The protocol specification document mentioned in step 1 includes one or more of the following: RFC text, HTML document published by the standards organization, or PDF converted text, and retains the original text's chapter identifiers, tables or formatted field diagrams, and source location.
3. The method for extracting and formally verifying security claims of industrial IoT protocols according to claim 1, characterized in that, The message field candidates mentioned in step 2 are obtained by extracting fields from the message format diagram, ASCII field diagram, field table, parameter table, resource definition table, protocol option table, attribute table, or natural language field description contained in the document, and associating each candidate with the message and original content.
4. The method for extracting and formally verifying security claims of industrial IoT protocols according to claim 1, characterized in that, Step 3 describes the protocol dependency facts, which record the current protocol specification document, the dependent document, and their dependency relationship; the dependency relationship includes one or more of the following: inheritance of the base protocol or extended protocol, protocol binding, configuration file reference, or security library use; The field coverage facts record the removal, replacement, or overwriting of fields in the dependent documents by the current protocol specification document, including the fields being processed and the processing methods. When a replacement or overwriting occurs, the new field definition is also recorded.
5. The method for extracting and formally verifying security claims of industrial IoT protocols according to claim 1, characterized in that, The iteration described in step 4 uses fixed-point propagation, which means that based on the protocol dependency facts, the inheritable fields in the dependent protocol documents are added to the field set of the current protocol document round by round, while the source of the fields is recorded, until neither the field record nor the source record is added.
6. The method for extracting and formally verifying security claims of industrial IoT protocols according to claim 1, characterized in that, The security statement described in step 5 includes at least a protocol identifier, statement level, security objective, protection status, field scope, applicable conditions, security mechanism, and chain of evidence; wherein, the protection status of the field-level integrity statement and the field-level confidentiality statement is distinguished as covered, conditionally protected, uncovered, or pending confirmation; fields that do not belong to the corresponding security objective are marked as non-security objective fields.
7. The method for extracting and formally verifying security claims of industrial IoT protocols according to claim 1, characterized in that, The formal verification model described in step 6 is the ProVerif model; verification queries are set according to the security statements: for identity recognition and authentication statements, a correspondence query between authentication initiation events and authentication acceptance events is set; for field-level integrity statements, a field integrity event correspondence query is set; for field-level confidentiality statements, an attacker derivability query is set; when the same field has both integrity and confidentiality statements, a field integrity event correspondence query and an attacker derivability query are set in the model of the same verification scenario.
8. The method for extracting and formally verifying security claims of industrial IoT protocols according to claim 1, characterized in that, The analysis report described in step 7 records the actual query results, expected query results, and comparison results of each verification target, as well as the field sources, claim sources, and model assumptions on which the verification target is based; the comparison results are divided into consistent, inconsistent, and indeterminate.
9. The method for extracting and formally verifying security claims of industrial IoT protocols according to claim 1, characterized in that, The stratified evaluation results in step 8 include field recovery evaluation results, security statement review results, and model consistency evaluation results; the error types include field omissions or extra extractions between the automatically generated field set and the standard field data, differences in role classification of matched fields, and differences in protection status or applicable conditions between the automatically generated security statement and the manual review results. Based on the comparison results, the model consistency evaluation results are statistically analyzed to count the number of consistent, inconsistent, and indeterminate models.
10. A system for extracting and formally verifying security claims of an industrial Internet of Things (IoT) protocol, implementing the method of claim 1, characterized in that, Includes the following modules: The document normalization module is used to generate intermediate representations of documents that retain the original source location; The field set recovery module is used to extract candidate fields from messages and generate a direct field set; The protocol fact construction module is used to construct document type facts, field facts, protocol dependency facts, security mechanism facts, and field overriding facts; The field closure calculation module is used to perform fixed-point propagation based on protocol dependency facts and field coverage facts to generate a set of field closures. The security statement generation module is used to generate security statements based on the set of field closures and the facts of security mechanisms. The verification target and model generation module is used to generate verification targets and formal verification models based on security statements, and to determine the expected query results; The query execution and reporting module is used to execute verification queries, compare the actual query results with the expected query results, and generate an analysis report. The manual review and stratified evaluation module is used to receive manually annotated results and perform stratified evaluation on the automatic analysis results; Specifically, the output of the document normalization module is provided to the field set recovery module and the protocol fact construction module; the field set recovery module provides the direct field set to the protocol fact construction module; the protocol fact construction module provides the field facts, protocol dependency facts, and field coverage facts to the field closure calculation module, and provides the security mechanism facts to the security statement generation module; the field closure calculation module provides the field closure set to the security statement generation module; the security statement generation module, the verification target and model generation module, and the query execution and reporting module sequentially transmit the security statement, verification target and formal verification model, and comparison results; the manual review and hierarchical evaluation module receives the field set, security statement, comparison results, and items to be reviewed generated by the aforementioned modules.
