An industrial network terminal dynamic trusted access credential generation method and system
By generating dynamic trusted access credentials that are bound to the state of industrial network terminals and target resources, the problem of credentials not being bound to the state of industrial processes in existing technologies is solved, achieving higher access authentication consistency and security, and reducing the risk of credential reuse and replay.
Patent Information
- Application Number
- CN202611571019.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-12
- Publication Date
- 2026-11-27
AI Technical Summary
Existing industrial network access credentials do not bind the current industrial process state of the target industrial resource, the allowed state migration constraints, and the actual state migration results after industrial operations to the credential verification. This results in the credentials still being used for unsuitable operations after the resource state changes, affecting the state consistency and security of access authentication.
By acquiring and verifying the trusted state of industrial network terminals and the operating state of target resources, a trusted state summary of the terminal and a current industrial state summary are generated. A migration constraint summary is generated by combining industrial state migration rules. Dynamic trusted access credentials are generated based on shared secrets and these summaries. After the operation, it is verified whether the actual state migration meets the constraints, and the credential epoch is updated to ensure that the credential is consistent with the state.
It improves the consistency of access authentication status and the security control capabilities under abnormal conditions in industrial control networks, reduces the risk of credential reuse and replay, and enhances the security of industrial operations.
Smart Images

Figure CN123184835A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of industrial network security and industrial control network access authentication technology, specifically to a method and system for generating dynamic trusted access credentials for industrial network terminals. Background Technology
[0002] With the development of the Industrial Internet and industrial control networks, industrial network terminals such as engineering workstations, operator workstations, industrial computers, and industrial edge terminals need to frequently access target industrial resources such as PLCs, DCS controllers, industrial servers, industrial robot controllers, and CNC systems. To prevent unauthorized terminals from accessing the industrial control network, existing technologies typically use methods such as account passwords, digital certificates, access control lists, role permissions, session tokens, or trusted measurement verification to authenticate and control the identity, device status, or access permissions of industrial network terminals.
[0003] However, in industrial control scenarios, whether a target industrial resource is allowed to be accessed depends not only on the trustworthiness of the industrial network terminal, but also on the current industrial process state, current process step, safety interlock state, pending industrial operation, and the next industrial process state allowed after the operation. For example, the same startup operation may be allowed when the equipment is in the READY state and the safety interlock conditions are met, but should not continue if the equipment is already in the RUNNING or FAULT state.
[0004] Existing access credentials or dynamic tokens typically bind primarily to terminal identity, session duration, device trust status, or access permissions. They fail to integrate the current industrial process state of the target industrial resource, allowed state transition constraints, and the actual state transition results after industrial operations into the credential verification and evolution process. Therefore, after credential generation, if the state of the target industrial resource changes, the original credential may still be used for industrial operations that are no longer suitable; or, if the industrial communication protocol layer returns a success message but the industrial equipment has not actually entered the expected state, the system may still continue to accept subsequent access requests.
[0005] Therefore, it is necessary to provide a method and system for generating dynamic trusted access credentials for industrial network terminals, so that the access credentials are not only related to the trusted state of the industrial network terminal, but also to the current industrial process state of the target industrial resource, the industrial operation to be executed, the allowed state transition constraints, and the actual state transition result after the operation, thereby improving the state consistency, anti-replay capability, and security control capability under abnormal conditions of industrial control network access authentication. Summary of the Invention
[0006] The purpose of this invention is to provide a method and system for generating dynamic trusted access credentials for industrial network terminals, which solves the technical problem in existing industrial network access authentication where access credentials are mainly bound to terminal identity, device trusted status, or session time, but do not bind the current industrial process status of the target industrial resource, allowed state transition constraints, and actual state transition results after industrial operation to the credential verification and credential evolution process.
[0007] To achieve the above objectives, this invention employs a method for generating dynamic trusted access credentials for industrial network terminals, comprising the following steps: Acquire and verify the trusted status of industrial network terminals and generate a trusted status summary; acquire target industrial resource operation status data and form the current industrial process status and current industrial status summary; Obtain the industrial state transition rules corresponding to the target industrial resources, and match the allowed state transition constraints in the industrial state transition rules and generate a transition constraint summary based on the industrial operations to be executed submitted by the industrial network terminal. Establish a shared secret with industrial network terminals, and generate a credential verification key based on the shared secret, terminal trusted state digest, current industrial state digest, migration constraint digest, and industrial operation to be executed, and generate dynamic trusted access credentials; Receive dynamic trusted access credentials, industrial operation requests and request proof values. After successful verification, reread the current operating status of the target industrial resource to form an industrial status summary to be verified. When the industrial status summary to be verified is consistent with the current industrial status summary and the industrial operation request meets the allowed state transition constraints, forward the industrial operation request. Acquire industrial operation response and post-operation operational status data to form the actual next industrial process state, determine the actual state transition corresponding to this industrial operation, and compare the actual state transition with the allowed state transition constraints; if satisfied, generate a state transition witness, and derive the next credential verification key based on the previous credential verification key, the state transition witness, and the actual next industrial state digest; if not satisfied, update the credential epoch to invalidate the original dynamic trusted access credential.
[0008] Furthermore, obtaining and verifying the trusted state of the terminal includes: the trusted access node sending a first random number as a trusted proof challenge to the industrial network terminal, receiving trusted measurement data, the terminal's temporary public key, and trusted proof data; and generating a trusted state summary of the terminal when the trusted proof data is verified and the trusted measurement data meets the trusted baseline.
[0009] Furthermore, the operational status data is obtained through status variables provided by the target industrial resources, industrial communication messages, or industrial controller status interfaces; the current industrial process status is formed by the current working mode, current production step, safety interlock status, target industrial resource operational status, and the execution result of the previous industrial operation; the current industrial status summary is generated by encoding the above fields in a fixed field order.
[0010] Furthermore, the industrial operation to be executed includes the target industrial resource identifier, operation type, target industrial object, and operation parameters when operation parameters exist; when matching allowed state transition constraints, the current industrial process state is compared with the pre-operation state conditions in the rule record, and the industrial operation to be executed is compared with the target industrial resource, operation type, target industrial object, and allowed operation parameter range in the rule record.
[0011] Furthermore, the dynamic trusted access credential includes a credential body and a credential authentication value; the credential body includes a credential identifier, an industrial network terminal identifier or an anonymous terminal identifier, a target industrial resource identifier, a permitted industrial operation, a target industrial object, a current industrial state summary, a migration constraint summary, a current credential epoch, a credential sequence number, and a credential validity period; the credential authentication value is generated based on the credential verification key against the credential body.
[0012] Furthermore, the industrial network terminal generates a request proof value based on the credential verification key, credential sequence number, and industrial operation request; the trusted access node verifies the integrity of the dynamic trusted access credential, the request proof value, the current credential epoch, the credential validity period, and the credential sequence number, and rejects the industrial operation request if the current credential epoch is invalid, the credential has exceeded its validity period, or the credential sequence number has been used.
[0013] Furthermore, after rereading the current operating status of the target industrial resource, if the current operating status data is not obtained within the preset status reading time window, or if the key status fields are incomplete, conflicting, or communication is abnormal, the current industrial status is determined to be unconfirmable and forwarding is refused; if the verification passes, a short-term operation lock is established for the target industrial resource and the target industrial object.
[0014] Furthermore, the state transition witness is formed based on the pre-operation industrial state summary, industrial operation request summary, industrial operation response summary, actual next industrial state summary, credential identifier, credential sequence number, and current credential epoch; the trusted access node sends the integrity-protected state transition witness to the industrial network terminal, enabling both parties to obtain the next credential verification key.
[0015] The present invention also employs a dynamic trusted access credential generation system for industrial network terminals, including a trusted state acquisition module, a migration constraint determination module, a credential generation module, an access verification module, a migration verification module, and a credential evolution module; The trusted status acquisition module is used to acquire and verify the trusted status of the terminal, generate a trusted status summary of the terminal, and acquire operating status data to form the current industrial process status and the current industrial status summary. The migration constraint determination module is used to match permissible state migration constraints based on the industrial operation to be performed and generate a migration constraint summary. The credential generation module is used to establish a shared secret and generate credential verification keys and dynamic trusted access credentials; The access verification module is used to verify dynamic trusted access credentials, industrial operation requests and request proof values, and controls the forwarding of industrial operation requests after reconfirming the current industrial status of the target industrial resource. The migration verification module is used to determine the actual state migration and generate state migration witnesses based on the industrial operation response and post-operation operating status data. The credential evolution module is used to derive the next credential verification key when the actual state transition meets the allowed state transition constraints, and to update the credential epoch to invalidate the original dynamic trusted access credential when the constraints are not met.
[0016] Furthermore, the access verification module is also used to establish a short-term operation lock for the same target industrial resource and target industrial object after the current industrial state verification of the target industrial resource has passed; the migration verification module is also used to determine that the actual state migration does not meet the allowed state migration constraints when there is a read timeout, a state field conflict, or the target industrial resource is in an unconfirmable state; the credential evolution module is also used to require the re-execution of the terminal trusted state verification when the terminal trusted measurement data changes, the number of consecutive credential evolutions reaches a preset number, or the trusted proof time threshold is exceeded.
[0017] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: 1. This invention uses the terminal trusted state digest, the current industrial state digest, and the migration constraint digest together to derive the credential verification key, so that the dynamic trusted access credential is not only bound to the trusted state of the industrial network terminal, but also to the current industrial process state of the target industrial resource and the allowed state migration constraint corresponding to this industrial operation, thereby helping to reduce the risk of the credential being reused across resources, states, or operations. 2. This invention binds dynamic trusted access credentials with specific industrial operation requests, credential identifiers, and credential serial numbers through a request proof value, and verifies the credential epoch, credential validity time, and credential serial number on the trusted access node side, thereby reducing the risks of credential duplication, request tampering, and repeated replays; 3. Before forwarding an industrial operation request, this invention rereads the current operating state of the target industrial resource, forms a summary of the industrial state to be verified, and compares it with the current industrial state summary in the certificate. The request is forwarded only if the industrial resource is still in the industrial process state corresponding to the certificate generation and the request meets the allowed state transition constraints, thereby improving the state consistency before the execution of industrial control operations. 4. After an industrial operation is executed, this invention generates a state transition witness based on the industrial operation request, industrial operation response, pre-operation industrial state, and actual next industrial state, and derives the next credential verification key based on the state transition witness; when the actual state transition does not meet the allowed state transition constraints, the credential epoch is updated to invalidate the original credential, thereby forming a credential evolution chain bound to the industrial state transition result, improving the security convergence capability under abnormal conditions. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating a method for generating dynamic trusted access credentials for industrial network terminals according to the present invention. Figure 2 This is a schematic diagram of the structure of an industrial network terminal dynamic trusted access credential generation system according to the present invention; Figure 3 This is a schematic diagram illustrating the process of determining the state transition constraints permitted by the present invention. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] In this embodiment, the industrial network includes industrial network terminals, trusted access nodes, and target industrial resources. The industrial network terminals are engineering workstations, operator workstations, industrial computers, industrial edge terminals, or other terminals that need to access the industrial control network. The target industrial resources are PLCs, DCS controllers, industrial servers, industrial robot controllers, CNC systems, or other industrial network nodes capable of changing their operating state according to industrial control requests. The trusted access nodes are located between the industrial network terminals and the target industrial resources. Some control requests issued by the industrial network terminals to the target industrial resources are verified by the trusted access nodes. The trusted access nodes pre-store the industrial state transition rules corresponding to the target industrial resources. These industrial state transition rules are generated by industrial control programs, process flows, safety interlock rules, or industrial equipment permission operation rules.
[0021] Industrial state transition rules are not used to simply evaluate the level of terminal risk, but rather to describe what industrial operations can be performed on a given industrial resource under a given industrial process state, and what next industrial process state the industrial resource is allowed to be in after performing the industrial operation; for example, for an industrial motor, its industrial process states are divided into STOPPED, READY, STARTING, RUNNING, and FAULT.
[0022] When the industrial motor is in the READY state and the safety interlock meets the starting conditions, the starting operation is allowed, and the industrial motor is allowed to enter the STARTING or RUNNING state after the starting operation is performed; when the industrial motor is in the RUNNING state, the starting operation is no longer allowed, but the operation of reading running data or stopping operation is allowed.
[0023] Trusted access nodes utilize the aforementioned industrial state transition rules to restrict terminal access permissions to specific industrial process state transitions.
[0024] Example 1: like Figure 1 As shown in the figure, this embodiment provides a method for generating dynamic trusted access credentials for industrial network terminals, including the following steps.
[0025] Step S1: Obtain the terminal's trusted status and the current industrial process status. When an industrial network terminal needs to access a target industrial resource, it first sends an access request to a trusted access node; the access request includes the terminal identifier. and the identifiers of the target industrial resources to be visited .
[0026] The trusted access node generates a first random number after receiving the access request. and the first random number The challenge to prove trust is sent to the industrial network terminal; the industrial network terminal obtains its current trust measurement data. .
[0027] In this embodiment, reliable measurement data This includes the metrics corresponding to the current startup environment of the industrial network terminal and the metrics corresponding to the industrial communication program; in other embodiments, it further includes the firmware version, the summary of key operating system files, the summary of industrial communication configuration files, or the security policy version.
[0028] The industrial network terminal further generates a temporary key pair for this access: ;in, This represents the terminal's temporary private key. This represents the terminal's temporary public key.
[0029] When an industrial network terminal is equipped with a TPM, TCM, Trusted Execution Environment, or security chip, the terminal's temporary private key... Preferably, the data is generated and stored within the corresponding trusted area; industrial network terminals use trusted measurement data... Terminal temporary public key and the first random number Generate trusted proof data .
[0030] One possible implementation method is as follows: ;in, This represents the private key used by the industrial network terminal for trusted authentication. This represents a cryptographic hash operation. Indicates a data connection.
[0031] Industrial network terminals will transmit trusted measurement data. Terminal temporary public key and trusted proof data Send to the trusted access node; the trusted access node verifies using the public key corresponding to the industrial network terminal. and trusted measurement data Compare with an allowed credible baseline.
[0032] When the trusted proof data verification fails, or the trusted measurement data does not meet the pre-set trusted baseline, the trusted access node terminates the current access process; when the verification passes, the trusted access node generates a terminal trusted state summary. ,For example: .
[0033] Terminal Trusted State Summary It is used for generating cryptographic material for subsequent dynamic trusted access credentials, rather than just for determining whether to issue credentials after obtaining a trust score.
[0034] The trusted access node also obtains the current operating status data of the target industrial resource; the operating status data is obtained through the status variables provided by the target industrial resource itself, or from industrial communication messages and industrial controller status interfaces.
[0035] For example, when the target industrial resource is a PLC, the operating status data includes: the PLC's current operating mode; the target equipment's current operating status; the safety interlock status; the current process or control step; and the execution result of the previous industrial operation.
[0036] The trusted access node normalizes the above-mentioned operational status data according to a predefined order of status fields to obtain the current industrial process status. ;For example: ;in: Indicates the current working mode; Indicates the current production step; Indicates the safety interlock status; This indicates the current operating status of the target industrial resources or target industrial equipment.
[0037] Trusted access nodes further generate a summary of the current industrial status. : ;in, This indicates the current industrial process status according to predetermined coding rules. Encode, This indicates the current version of the industrial state migration rule.
[0038] in, Deterministic field encoding is used to generate a summary of the current industrial status. The encoding field order is fixed as follows: Target Industrial Resource Identifier Current industrial state migration rule version The current working mode (Modet), current production step (Staget), safety interlock status (Interlockt), target industrial resource operation status (ResourceStatet), and the previous industrial operation execution result (LastOpResultt) are all specified.
[0039] Each field is encoded in the order of field type, field length, and field value; strings use UTF-8 encoding, integers use big-endian fixed-length encoding, boolean values use 0 or 1 encoding, enumeration values are encoded according to a pre-set enumeration dictionary, and empty fields are encoded as fields of length 0; the order of each field is fixed during encoding, and field lengths are not omitted; the hash operation... Use SM3-256 or SHA-256.
[0040] The purpose of using standardized coding is to ensure that the same industrial process state has a definite state summary, while different industrial process states will in principle form different state summaries.
[0041] At this point, the trusted access node simultaneously obtains a terminal trusted state summary, which characterizes the current trusted state of the industrial network terminal. and a summary of the current industrial state used to characterize the current operating state of the target industrial resources. .
[0042] Step S2: Determine the permissible state transition constraints corresponding to this industrial operation. like Figure 3 As shown, the industrial network terminal submits an industrial operation to be executed to the trusted access node; the industrial operation to be executed includes: a target industrial resource identifier. Operation type Target industrial objects For industrial operations with operating parameters, this also includes the operating parameters. .
[0043] For example, in a Modbus / TCP industrial control network: the target industrial resource is PLC01; the operation type is write holding register; the target industrial object is holding register 40020; and the operation parameter is write value 1.
[0044] The trusted access node determines the current industrial process state in step S1. Search for relevant rules in the pre-saved industrial state transition rules. , as well as Matching industrial state transition rules.
[0045] When performing rule matching, the trusted access node will determine the current industrial process status. The working mode, production steps, safety interlock status, and resource operation status in the rule record are compared with the pre-operation status conditions in the rule record. The target industrial resources, operation type, target industrial object, and operation parameters in the industrial operation to be executed are then compared with those in the rule record. , , Compare with ParamRange.
[0046] When multiple industrial state transition rules are matched, the trusted access node prioritizes the rule with the latest RuleVersion, the highest Priority, and the most specific constraints. If the allowed next industrial process state set or allowed operating parameter range differs among the multiple rules, their intersection is determined according to the conflict resolution method. If the intersection is empty, it is determined that there are no usable allowed state transition constraints, and the generation of dynamic trusted access credentials is refused. The trusted access node forms allowed state transition constraints based on the finally matched rule records. And use the same deterministic coding method as in step S1 to generate a migration constraint summary. .
[0047] In this embodiment, an industrial state transition rule includes: pre-operation state conditions; target industrial resources; permitted industrial operation; permitted operation objects; permitted next industrial process state; when it is necessary to restrict operation parameters, it also includes the permitted range of operation parameters; when it is necessary to meet industrial safety conditions, it may also include safety interlock conditions or maximum state transition time.
[0048] Specifically, an industrial state transition rule is represented by a rule record, which includes: a rule identifier (RuleID) and the target industrial resource. Pre-operation working mode Production steps before operation Safety interlock status before operation Resource running status before operation Operation type Target industrial objects The following parameters are specified: ParamType (operation parameter type), ParamRange (allowed operation parameter range), NextStateSet (allowed next industrial process state set), MaxTransitionTime (maximum state transition time), RuleVersion (rule version), Priority (rule priority), and ConflictPolicy (conflict handling method).
[0049] The industrial state transition rules are formed by parsing, configuring, or importing industrial control programs, process flows, safety interlock rules, or industrial equipment operation permission rules, and are stored in the trusted access node in the form of rule records.
[0050] For example, a state transition rule can be expressed as follows: when the industrial equipment corresponding to the target industrial resource PLC01 is in the READY state and the safety interlock is closed, it is allowed to write the value 1 to register 40020, and after the industrial operation is performed, the target equipment is allowed to enter the STARTING state or RUNNING state.
[0051] Trusted access nodes will display the current industrial process status. The current industrial process state is compared with the pre-operation state conditions of the aforementioned state transition rules. If the current industrial process state does not meet the pre-operation state conditions, or if there is no state transition rule that allows the current industrial operation to be executed, then no dynamic trusted access credential is generated, and the current industrial operation is rejected. If a matching state transition rule exists, then a state transition constraint corresponding to this access is formed according to the state transition rule. .
[0052] Allowing state transition constraints Includes: current state conditions Target industrial resources Operation type Target industrial objects ; Allow the next industrial process state When there are parameter limitations in industrial operations, It also includes the range of allowed operating parameters. When industrial operations have response time requirements, It may also include the allowed state transition time. .
[0053] Trusted access node's constraints on allowed state transitions Perform normalized coding and compute the migration constraint summary. : Allow state transition constraints and migration constraint summary Used for generating subsequent dynamic trusted access credentials.
[0054] Therefore, this invention does not merely determine whether the industrial network terminal has PLC access rights, but further determines: whether the industrial network terminal is allowed to execute the current industrial operation in the current industrial process state of the target industrial resource, and the next industrial process state that the target industrial resource is allowed to enter after executing the industrial operation.
[0055] Step S3: Generate a dynamic trusted access credential bound to this industrial state migration. After the terminal's trusted state is verified and the allowed state transition constraints are determined, the trusted access node establishes a shared secret with the industrial network terminal for this access.
[0056] Trusted access nodes generate gateway temporary key pairs: Trusted access nodes use the gateway's temporary private key. and terminal temporary public key Perform key negotiation to obtain the shared secret Industrial network terminals use the terminal's temporary private key. and gateway temporary public key Obtain the same shared secret .
[0057] Key negotiation can be conducted using the elliptic curve Diffie-Hellman method, or other key negotiation methods that enable both parties to establish a shared secret.
[0058] Trusted access nodes maintain the current credential epoch for industrial network terminals. An initial credential epoch is generated when an industrial network terminal first completes trusted access; the credential epoch is used to distinguish different trusted access cycles.
[0059] Trusted access nodes are based on: shared secrets Terminal Trusted Status Summary Current Industrial Status Summary Summary of migration constraints Target industrial resource identification Industrial operations to be performed Current Evidence Era First random number Derive the credential verification key corresponding to this access. .
[0060] For example: ;in, This represents the key derivation function.
[0061] The aforementioned key derivation relationship embodies an important technical feature of this invention: the current industrial process state and the allowed state transition constraints corresponding to this industrial operation are not merely ordinary descriptive fields in the access credential, but are represented by the current industrial state digest. Summary of migration constraints Participation credential verification key The formation of.
[0062] Therefore, for the same industrial network terminal, the corresponding credential verification key can change when the target industrial resources are different, the current industrial process status of the industrial resources is different, the industrial operation to be executed is different, or the next industrial process status is different.
[0063] Trusted access nodes further generate dynamic trusted access credentials. Dynamic trusted access credentials This includes the document subject and the document authentication value.
[0064] The main body of the voucher includes: voucher identifier Industrial network terminal identifier Or with Corresponding terminal anonymity identifier; target industrial resource identifier Industrial operation is permitted. Target industrial objects Current Industrial Status Summary Summary of migration constraints Current Evidence Era ; Voucher number ;Validity period of the voucher.
[0065] Trusted access nodes verify keys based on credentials Calculate the message authentication value for the credential subject: By the subject of the certificate and message authentication value constitute: .
[0066] In other implementations, the trusted access node digitally signs the credential subject, but the current state of industry digest and migration constraint digest still participate in the formation of the cryptographic verification material corresponding to the credential; the trusted access node will and gateway temporary public key Send to the industrial network terminal; the industrial network terminal according to... and Obtain the shared secret And form using the same derived parameters as the trusted access node. .
[0067] Therefore, both the industrial network terminal and the trusted access node can obtain the credential verification key corresponding to this industrial operation. .
[0068] Step S4: Verify the dynamic trusted access credential and control industrial operation forwarding. Industrial network terminals obtain Then, an industrial operation request is generated based on the industrial operations to be performed. .
[0069] To prevent attackers from only copying This embodiment can then construct new industrial operation requests, and further utilizes... Generate proof of possession for industrial operation requests.
[0070] Industrial network terminals according to and voucher serial number Derivative request to prove key : Then calculate the industrial operation request summary: Prove the key as requested. Generate request proof value : .
[0071] Industrial network terminals send the following to trusted access nodes: Industrial operation request ; Request proof value After receiving the above data, the trusted access node first obtains the industrial network terminal identifier, target industrial resource identifier, current industrial status summary, migration constraint summary, credential epoch, and credential serial number from the credential subject.
[0072] The credential epoch in trusted access node verification credentials Is it equal to the current valid credential epoch stored for the industrial network terminal? If the two are inconsistent, the industrial operation request will be rejected directly.
[0073] The trusted access node further confirms that the credential has not expired and checks the credential serial number. Whether it has already been used; for credential numbers that have already been used, new industrial operation requests corresponding to the same credential number will no longer be accepted, thereby reducing the possibility of the same industrial request being replayed repeatedly; trusted access nodes based on verify and .
[0074] After the above verification is passed, the trusted access node rereads the current operating status of the target industrial resources and forms the industrial process status to be verified according to the same method as in step S1. Summary of its industrial status .Compare and the current industrial status summary in dynamic trusted access credentials Only when both conditions are met is the target industrial resource considered to still be in the process of generation. The corresponding industrial process state at that time.
[0075] To avoid summarizing the industrial state to be verified After verification, industrial operation request. Before forwarding, the target industrial resource status was changed by other requests, and the trusted access node was... and After reaching an agreement, the target industrial resources and target industrial objects Establish a short-time operation lock; the short-time operation lock covers industrial operation requests. Forwarding, industrial operation response The process of receiving and reading post-operation running status data. Before the short-time operation lock is released, the trusted access node refuses to access the same... and Other write operation requests or operation requests that can cause state transitions; for requests that only read state data and do not cause state transitions, trusted access nodes may allow parallel processing.
[0076] Further analysis of industrial operation requests ,Sure The actual target industrial resources, operation type, industrial object, and operation parameters are determined, and it is judged whether they meet the allowable state transition constraints determined in step S2. .
[0077] If the trusted access node fails to obtain the current operating status data of the target industrial resource within the preset status reading time window, or if the key status fields read are incomplete, there are conflicts between status fields, or the target industrial resource returns a communication error, the trusted access node determines that the current industrial status is unconfirmable and refuses to forward the industrial operation request. .
[0078] The trusted access node allows industrial operation requests when all of the following conditions are met. pass: Cryptographic verification passed; current credential epoch valid; credential serial number unused; current industrial state consistent with generation. It matches the corresponding industrial state at that time; The target industrial resources visited The target industrial resources are the same; The corresponding industrial operations and industrial objects satisfy the permissible state transition constraints; when it is necessary to restrict industrial operation parameters, the actual operation parameters are within the permissible parameter range.
[0079] The trusted access node will then send the industrial operation request. Forward to target industrial resources, and Marked as used.
[0080] Even if the attacker gains access through the methods described above... It cannot be achieved simply by modifying External industrial operation requests may be used to access other industrial resources or for other industrial operations.
[0081] Step S5: Determine the actual state transition and generate state transition witnesses. The target industrial resource received an industrial operation request. The corresponding industrial operation will then be executed, and an industrial operation response will be returned. Trusted access nodes acquire industrial operation responses. A successful operation response from the industrial communication protocol layer alone does not always prove that industrial equipment has actually reached the desired industrial process state.
[0082] Therefore, this embodiment further acquires the operational status data of the target industrial resources after the industrial operation is executed.
[0083] Operational status data comes from industrial operation response. It can also be obtained by reading the pre-specified state variables of the target industrial resources; for example, for a PLC that controls the start of an industrial motor, after sending the start command, the PLC registers representing the motor's operating status, safety interlock status, or fault status can be further read.
[0084] The post-operation operational status data is received by the trusted access node in the industrial operation response. Read later; when state transition constraints are allowed. The maximum state transition time is set in the middle. At that time, trusted access nodes shall not exceed Read the operational status data of the target industrial resources within the specified time frame; if the target industrial resources are within... Not entered The specified allowed next industrial process status, or the industrial communication protocol layer returning an operation success but the actual next industrial process status... If no corresponding change occurs, a fault state is entered, or an unacknowledged state is reached, then the actual state transition is determined to not meet the permissible state transition constraints. .
[0085] Trusted access nodes, following the same state construction rules as in step S1, form the actual next industrial process state based on the operational state data after the operation. And form a summary of the actual next industrial state. Trusted access nodes then compare: The actual state transitions and allowed state transition constraints are represented. .
[0086] Judgment: Whether the actual industrial operations performed are consistent with... Consistent with prescribed industrial operations; whether actual operating parameters are within acceptable limits. Specified parameter range; actual state of the next industrial process Does it belong to The specified permitted state of the next industrial process ; Set the maximum state transition time Does the actual time taken for the state change satisfy the condition? When the above conditions are met, the industrial operation is deemed to have constituted a legitimate state transition; the trusted access node generates a state transition witness corresponding to this industrial operation. .
[0087] Specifically, calculate the industrial operation request summary separately: ; and a summary of industrial operation response: Then, based on: a summary of the industrial state before operation. Industrial Operation Request Summary Industrial Operation Response Summary Summary of the actual next industrial state Current voucher identifier ; Voucher number Current Evidence Era This forms witness data for state transitions.
[0088] For example: .
[0089] To prevent unauthorized modification of the state transition witness, the trusted access node further utilizes the trusted access node's signature key pair. Perform digital signatures; witness state transitions This allows us to characterize: the industrial process state of the target industrial resource before the industrial operation is executed; the industrial operation actually executed; the response of the target industrial resource to the industrial operation; and the industrial process state that the target industrial resource actually enters after the industrial operation is completed.
[0090] State transition witness It is not a pre-predicted change in industrial status, but rather a result of the actual industrial operation response and operational status generated after the completion of industrial operations, based on the actual industrial resources.
[0091] Step S6: Based on the actual state, perform credential evolution or expiration. When step S5 determines that the actual state transition satisfies the permissible state transition constraint... At that time, the trusted access node allows the current trusted access relationship to continue.
[0092] Trusted access nodes verify keys based on previous credentials State transition witness and a summary of the actual next industrial state Derive the next credential verification key ;For example: Trusted access nodes will witness state transitions protected by integrity. Send to the industrial network terminal; the industrial network terminal, based on its stored... And what was received Obtained according to the same rules .
[0093] This ensures the consistency of the next credential verification key between industrial network terminals and trusted access nodes.
[0094] When industrial network terminals need to be in the actual next industrial process state When continuing to access the target industrial resource, the trusted access node re-executes step S2 based on the new industrial process state and the next industrial operation to be executed, to determine the next allowed state transition constraints. .
[0095] Subsequently, based on the actual next industrial state summary , as well as Forming the next dynamic trusted access credential .
[0096] Therefore, the following relationship is formed between consecutive vouchers: .
[0097] Next dynamic trusted access credential The formation of a new industrial state depends on the actual occurrence of the previous industrial operation and the resulting change in industrial state that conforms to the permissible state transition constraints, rather than simply refreshing old documents according to a predetermined time.
[0098] For example, after an industrial device transitions from the READY state to the RUNNING state via a valid startup operation, the newly generated... It is bound to the RUNNING state.
[0099] Formed in READY state It can no longer be used to re-execute startup operations that are only allowed in the READY state while in the RUNNING state.
[0100] When step S5 determines that the actual state transition does not meet the allowed state transition constraints... At that time, the trusted access node does not generate normal state transition witnesses, nor does it base its actions on... Generate the next dynamic trusted access credential; simultaneously, reset the current credential epoch of the industrial network terminal. Updated to the new Evidence Era The new epoch is obtained by either incrementing the epoch or regenerating a random epoch value.
[0101] The trusted access node then stopped accepting. The corresponding dynamic trusted access credential; since the credential verification key generated in step S3 and the dynamic trusted access credential are both... Therefore, after the change of the credential epoch, the dynamic trusted access credential under the original credential epoch cannot be used as a valid access basis for new industrial operation requests.
[0102] If an industrial network terminal needs to continue accessing the industrial network, it needs to re-perform the terminal's trusted state verification and redetermine the allowed state transition constraints based on the current actual industrial process state of the target industrial resource.
[0103] In addition to actual state migration anomalies, the credential epoch can also be changed when a change in terminal trusted measurement data is detected. For example, after the industrial communication program, firmware or critical security configuration of an industrial network terminal is changed, the trusted access node stops the original credential evolution process and requires the re-execution of steps S1 to S3.
[0104] To prevent continuous credential evolution indefinitely, this implementation can also set a threshold for the number of credential evolutions or a threshold for the time of trusted proof. When the number of continuous credential evolutions reaches a preset number, or when the time since the last trusted proof of the terminal has exceeded a preset time, the trusted access node requires the industrial network terminal to re-execute the trusted status verification in step S1.
[0105] Therefore, under normal continuous industrial processes, state transition witnesses can be used to achieve continuous evolution of credentials, while trust relationships can be re-established when the trusted state of the terminal or the state of industrial resources becomes abnormal.
[0106] Example 2: like Figure 2 As shown, the present invention also provides a dynamic trusted access credential generation system for industrial network terminals; the system is set in a trusted access node between the industrial network terminal and the target industrial resource.
[0107] The system includes a trusted state acquisition module, a migration constraint determination module, a credential generation module, an access verification module, a migration verification module, and a credential evolution module.
[0108] 1. Trusted Status Acquisition Module The trusted status acquisition module is used to acquire the trusted status of industrial network terminals and the current industrial process status of target industrial resources.
[0109] The trusted state acquisition module sends a trusted proof challenge to the industrial network terminal, receives trusted measurement data, the terminal's temporary public key, and trusted proof data returned by the industrial network terminal, and verifies the trusted proof data; after the trusted proof data is verified, a trusted state summary of the terminal is generated. .
[0110] The trusted status acquisition module also obtains operational status data from the target industrial resources and forms the current industrial process status according to the pre-set industrial status field construction rules. and a summary of the current state of industry .
[0111] After the industrial operation is completed, the trusted state acquisition module can also reacquire the operating status of the target industrial resources so that the migration verification module can determine the actual state of the next industrial process.
[0112] 2. Migration Constraint Determination Module The migration constraint determination module saves or accesses the industrial state migration rules corresponding to the target industrial resource.
[0113] The migration constraint determination module receives the current industrial process state. The system also collects information on industrial operations to be performed by industrial network terminals, and determines the allowed state transition constraints for this access based on: the current industrial process status; the target industrial resource; the type of industrial operation; the target industrial object; and, if necessary, the operation parameters. .
[0114] If no matching allowed state transition constraint exists, a message denying credential generation is output to the credential generation module; if a matching allowed state transition constraint exists, a transition constraint summary is generated. And send it to the voucher generation module.
[0115] 3. Voucher Generation Module The credential generation module is used to establish a shared secret between trusted access nodes and industrial network terminals, and to generate credentials based on the shared secret and the terminal's trusted state digest. Current Industrial Status Summary Summary of migration constraints The target industrial resources and the current credential epoch generate the credential verification key. .
[0116] The voucher generation module further... Generate dynamic trusted access credentials The dynamic trusted access credentials generated by the credential generation module are cryptographically linked to the current industrial state of the target industrial resource and the state transitions allowed during this industrial operation.
[0117] 4. Access Verification Module The access verification module is used to receive dynamic trusted access credentials, industrial operation requests, and request proofs submitted by industrial network terminals.
[0118] The access verification module verifies: the integrity of the dynamic trusted access credential; whether the credential epoch is valid; whether the credential sequence number has been used; whether the current industrial state of the target industrial resource is still consistent with the industrial state corresponding to the generation of the credential; and whether the actual industrial operation meets the allowed state transition constraints.
[0119] After successful verification, the access verification module forwards the industrial operation request to the target industrial resource. The access verification module is also used to establish a short-term operation lock for the same target industrial resource and target industrial object after the current industrial status of the target industrial resource has been verified, and to release the short-term operation lock after the industrial operation response and post-operation running status data have been obtained.
[0120] 5. Migration Verification Module The migration verification module is used to obtain the industrial operation response and operating status data after the target industrial resource performs industrial operations.
[0121] The migration verification module is also used to read the running status data after the operation within a preset state migration time, and to determine that the actual state migration does not meet the allowed state migration constraints when the reading times out, the status field conflicts, or the target industrial resource is in an unconfirmable state.
[0122] The migration verification module determines the actual state of the next industrial process based on the operational status data. And transfer the actual state: With allowable state transition constraints Compare them.
[0123] When the actual state transition meets the allowed state transition constraints, the transition verification module generates a state transition witness based on the pre-operation industrial state summary, the industrial operation request summary, the industrial operation response summary, and the actual next industrial state summary. .
[0124] 6. Voucher Evolution Module The credential evolution module controls the subsequent processing of dynamic trusted access credentials based on the judgment result of the migration verification module.
[0125] When the actual state transition meets the allowed state transition constraints, the credential evolution module verifies the key based on the previous credential. State transition witness and a summary of the actual next industrial state Derive the next credential verification key .
[0126] After the migration constraint determination module determines the new allowed state migration constraints based on the actual next industrial process state and the next industrial operation to be executed, the credential evolution module or credential generation module further generates the next dynamic trusted access credential. .
[0127] When the actual state transition does not meet the allowed state transition constraints, the credential evolution module stops the normal evolution of the current credential chain and modifies the current credential epoch corresponding to the industrial network terminal to a new credential epoch, making the dynamic trusted access credential corresponding to the original credential epoch invalid.
[0128] The modules mentioned above, through the aforementioned data processing relationships, collectively form a closed loop for the generation, use, state transition verification, and evolution of dynamic trusted access credentials.
[0129] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for generating dynamic trusted access credentials for industrial network terminals, characterized in that, Includes the following steps: Acquire and verify the trusted status of industrial network terminals and generate a trusted status summary; acquire target industrial resource operation status data and form the current industrial process status and current industrial status summary; Obtain the industrial state transition rules corresponding to the target industrial resources, and match the allowed state transition constraints in the industrial state transition rules and generate a transition constraint summary based on the industrial operations to be executed submitted by the industrial network terminal. Establish a shared secret with industrial network terminals, and generate a credential verification key based on the shared secret, terminal trusted state digest, current industrial state digest, migration constraint digest, and industrial operation to be executed, and generate dynamic trusted access credentials; Receive dynamic trusted access credentials, industrial operation requests and request proof values. After successful verification, reread the current operating status of the target industrial resource to form an industrial status summary to be verified. When the industrial status summary to be verified is consistent with the current industrial status summary and the industrial operation request meets the allowed state transition constraints, forward the industrial operation request. Acquire industrial operation response and post-operation operational status data to form the actual next industrial process state, determine the actual state transition corresponding to this industrial operation, and compare the actual state transition with the allowed state transition constraints; if satisfied, generate a state transition witness, and derive the next credential verification key based on the previous credential verification key, the state transition witness, and the actual next industrial state digest; if not satisfied, update the credential epoch to invalidate the original dynamic trusted access credential.
2. The method for generating dynamic trusted access credentials for industrial network terminals according to claim 1, characterized in that, The process of obtaining and verifying the trusted state of a terminal includes: the trusted access node sending a first random number as a trusted proof challenge to the industrial network terminal, receiving trusted measurement data, the terminal's temporary public key, and trusted proof data; and generating a trusted state summary of the terminal when the trusted proof data is verified and the trusted measurement data meets the trusted baseline.
3. The method for generating dynamic trusted access credentials for industrial network terminals according to claim 1, characterized in that, The operational status data is obtained through status variables provided by the target industrial resources, industrial communication messages, or industrial controller status interfaces; the current industrial process status is formed by the current working mode, current production step, safety interlock status, target industrial resource operational status, and the execution result of the previous industrial operation; the current industrial status summary is generated by encoding the above fields in a fixed field order.
4. The method for generating dynamic trusted access credentials for industrial network terminals according to claim 1, characterized in that, The industrial operation to be executed includes the target industrial resource identifier, operation type, target industrial object, and operation parameters when operation parameters exist; when matching the allowed state transition constraints, the current industrial process state is compared with the pre-operation state conditions in the rule record, and the industrial operation to be executed is compared with the target industrial resource, operation type, target industrial object, and allowed operation parameter range in the rule record.
5. The method for generating dynamic trusted access credentials for industrial network terminals according to claim 1, characterized in that, The dynamic trusted access credential includes a credential body and a credential authentication value. The credential body includes a credential identifier, an industrial network terminal identifier or an anonymous terminal identifier, a target industrial resource identifier, a permitted industrial operation, a target industrial object, a current industrial state summary, a migration constraint summary, the current credential epoch, a credential sequence number, and a credential validity period. The credential authentication value is generated based on the credential verification key to the credential body.
6. The method for generating dynamic trusted access credentials for industrial network terminals according to claim 1, characterized in that, The industrial network terminal generates a request proof value based on the credential verification key, credential serial number, and industrial operation request. The trusted access node verifies the integrity of the dynamic trusted access credential, the request proof value, the current credential epoch, the credential validity period, and the credential serial number, and rejects the industrial operation request if the current credential epoch is invalid, the credential has exceeded its validity period, or the credential serial number has been used.
7. The method for generating dynamic trusted access credentials for industrial network terminals according to claim 1, characterized in that, If the current operating status data is not obtained within the preset status reading time window after rereading the target industrial resource, or if the key status fields are incomplete, conflicting, or communication is abnormal, the current industrial status is determined to be unconfirmable and forwarding is refused. If the verification passes, a short-term operation lock is established for the target industrial resource and the target industrial object.
8. The method for generating dynamic trusted access credentials for industrial network terminals according to claim 1, characterized in that, The state transition witness is formed based on the pre-operation industrial state summary, industrial operation request summary, industrial operation response summary, actual next industrial state summary, credential identifier, credential sequence number, and current credential epoch. The trusted access node sends the integrity-protected state transition witness to the industrial network terminal, enabling both parties to obtain the next credential verification key.
9. A dynamic trusted access credential generation system for industrial network terminals, characterized in that, It includes a trusted state acquisition module, a migration constraint determination module, a credential generation module, an access verification module, a migration verification module, and a credential evolution module; The trusted status acquisition module is used to acquire and verify the trusted status of the terminal, generate a trusted status summary of the terminal, and acquire operating status data to form the current industrial process status and the current industrial status summary. The migration constraint determination module is used to match permissible state migration constraints based on the industrial operation to be performed and generate a migration constraint summary. The credential generation module is used to establish a shared secret and generate credential verification keys and dynamic trusted access credentials; The access verification module is used to verify dynamic trusted access credentials, industrial operation requests and request proof values, and controls the forwarding of industrial operation requests after reconfirming the current industrial status of the target industrial resource. The migration verification module is used to determine the actual state migration and generate state migration witnesses based on the industrial operation response and post-operation operating status data. The credential evolution module is used to derive the next credential verification key when the actual state transition meets the allowed state transition constraints, and to update the credential epoch to invalidate the original dynamic trusted access credential when the constraints are not met.
10. The industrial network terminal dynamic trusted access credential generation system according to claim 9, characterized in that, The access verification module is also used to establish a short-term operation lock for the same target industrial resource and target industrial object after the current industrial state verification of the target industrial resource has passed; the migration verification module is also used to determine that the actual state migration does not meet the allowed state migration constraints when the read timeout occurs, the state field conflicts, or the target industrial resource is in an unconfirmable state; the credential evolution module is also used to require the re-execution of the terminal trusted state verification when the terminal trusted measurement data changes, the number of consecutive credential evolutions reaches a preset number, or the trusted proof time threshold is exceeded.
