A robot security modeling and attack path analysis method and system

By constructing a trusted unified system model and multi-dimensional verification, the problem of the separation between modeling and path analysis in robot safety analysis is solved, realizing automated and traceable safety analysis, applicable to multiple robot platforms and supporting continuous updates.

CN123184901APending Publication Date: 2026-11-27SUZHOU ANYU INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611332860.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for robot safety analysis suffer from several problems, including the disconnect between system modeling and attack path analysis, reliance on manual data processing, lack of evidence for model results, unreliable path logic, and difficulty in quantifying physical consequences.

Method used

By acquiring raw data from multiple robot sources, performing pre-processing for security modeling and constructing a trusted unified system model, generating candidate attack paths by combining threat scenarios and attacker capability constraints, and conducting multi-dimensional verification and evaluation, the final output is a standardized robot security analysis result.

Benefits of technology

It achieves automated integration of robot security modeling and attack path analysis, ensuring that model results are traceable with evidence, eliminating invalid paths, quantifying physical risks, adapting to multiple robot platforms, and supporting continuous updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184901A_ABST
    Figure CN123184901A_ABST
Patent Text Reader

Abstract

The application discloses a robot security modeling and attack path analysis method and system, relates to the technical field of computers, and builds a trusted unified system model by using multi-source robot original data, relies on a light-weight fine-tuning / retrieval enhanced large model and multi-dimensional verification, automatically fuses heterogeneous robot data, all modeling contents can trace back to original evidence, and model hallucination is effectively inhibited. A primitive dependency graph is constructed and a candidate path is verified relying on threat scenarios and attacker capability constraints, a data link between modeling and path reasoning is connected, and invalid paths with permission jumps and state conflicts are screened out. Path risks are quantified and sorted from three dimensions of preconditions, permission states and physical impacts, network control and robot physical execution risks are synchronously covered, and the dangerous degrees of paths are clearly distinguished. The model is incrementally updated based on verification data, can be iteratively optimized synchronously with devices, reduces the workload of asset link sorting, and finally outputs standardized robot security analysis results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method and system for robot security modeling and attack path analysis. Background Technology

[0002] With the rapid application of embodied intelligent robot technology in scenarios such as industrial manufacturing, warehousing and logistics, medical services, public safety, and home care, robot systems are gradually forming a complex hardware and software system composed of mobile applications, remote controllers, cloud platforms, robot body controllers, sensors, actuators, embedded operating systems, and ROS2 / DDS communication middleware. Compared with traditional information systems, embodied intelligent robots not only need to complete device discovery, identity authentication, session establishment, and data exchange, but also need to further convert network commands into real physical actions such as movement, grasping, rotation, following, and obstacle avoidance. Their safety boundaries are simultaneously affected by communication relationships, functional dependencies, shared states, control permissions, and physical execution consequences.

[0003] Current robot security analysis typically treats system modeling and attack path analysis as two independent stages. The system modeling stage often uses network topology, component architecture, threat models, or knowledge graphs to describe devices, ports, services, and static connections; the attack path analysis stage generates attack graphs based on pre-compiled asset lists, vulnerability lists, and connectivity relationships. Because the two stages use inconsistent object granularity, state semantics, and permission semantics, authentication states, session states, control modes, message propagation, and executor actions from the upstream model are difficult to transmit seamlessly to downstream path reasoning, easily leading to attack path breaks, permission jumps, or missing physical consequences.

[0004] In system modeling, the same security object may appear in protocol documents, SDK interfaces, mobile application code, network packet captures, runtime logs, firmware strings, and ROS2 node diagrams, often with inconsistent names, granularity, and semantics. For example, control APIs in mobile code, message types in network traffic, topics in ROS2, and control functions on the actuator side may all describe the same control link. Traditional methods relying on manual reading and drawing are insufficient for continuously handling robot platforms that are growing in scale and frequently changing in version, and it is also difficult to ensure that the model conclusions have traceable evidence.

[0005] In attack path analysis, traditional attack trees and attack graphs mainly focus on network reachability, vulnerability exploitation, and privilege escalation. They are suitable for enterprise networks with relatively stable topologies, but they struggle to depict the cross-protocol, cross-stage, and cross-component processes in robotic systems, such as "device discovery—authentication—session establishment—control authorization—internal message propagation—dangerous action execution." Especially after an attacker gains control at a certain level, the system needs to determine whether this control can propagate along the call chain or publish-subscribe chain to the ROS2 control node and actuators, and what personnel, equipment, or environmental risks might ultimately result.

[0006] In recent years, large language models have demonstrated strong capabilities in natural language understanding, code analysis, information extraction, and cross-document reasoning, providing a new technological foundation for multi-source system information fusion and automated attack path generation. However, directly using general-purpose large language models may still result in assets or relationships lacking evidentiary support, omission of critical objects in extremely long documents and large-scale code, or generation of paths that do not meet state preconditions, permission constraints, and actual system call relationships. Without structured output, evidentiary backreferences, graph constraint verification, and multi-source consistency checks, the output of large language models is difficult to directly use for security analysis of embodied intelligent robots. Summary of the Invention

[0007] This application provides a robot safety modeling and attack path analysis method and system to at least solve the problems in related technologies such as the separation between system model and attack path, data reliance on manual processing, lack of evidence for model results, unreliable path logic, and difficulty in quantifying physical consequences.

[0008] This application provides a method for robot security modeling and attack path analysis, including:

[0009] Acquire raw data from multiple sources of robots, perform security modeling preprocessing on the raw data of multiple sources of robots and model it, and output a trusted unified system model;

[0010] The threat scenarios and attacker capability constraints are obtained, and the threat scenarios and attacker capability constraints are used as the screening criteria. Attack primitives are abstracted based on the trusted unified system model and a primitive dependency graph is constructed. Candidate attack paths are generated in the primitive dependency graph space in combination with the threat scenarios and attacker capability constraints. Each candidate attack path is verified and invalid attack paths are deleted to obtain a set of compliant attack paths.

[0011] For each compliant attack path in the set of compliant attack paths, an assessment of preconditions, permission status, and physical impact is conducted according to the assessment indicators. Based on the assessment results, the comprehensive risk value of a single path is calculated and the priority is ranked to obtain the ranking results and the set of high-value attack paths. The assessment indicators, the comprehensive risk value of a single path, and the ranking results are simultaneously summarized to form a complete set of risk assessment data.

[0012] Based on the set of high-value attack paths, simulation or controlled entity verification is carried out to generate verification data; the verification data is fed back to the trusted unified system model to perform incremental updates and version management, and the updated trusted unified system model is output.

[0013] Based on the updated trusted unified system model, the set of high-value attack paths, and the complete set of risk assessment data, standardized robot security analysis results are obtained.

[0014] Furthermore, the process of acquiring multi-source robot raw data, performing security modeling preprocessing on the multi-source robot raw data and modeling accordingly, and outputting a trusted unified system model includes:

[0015] The original data from the multi-source robot is subjected to dedicated parsing and semantic slicing, and then evidence alignment is completed based on the parsed and slicing data to output a standardized set of context units.

[0016] Based on a lightweight fine-tuning / retrieval enhancement-generated large language model, hierarchical entity, relation, state, and permission joint extraction is performed on the standardized context unit set, and the initial extraction results are output.

[0017] Based on the initial extraction results, asset standardization, deduplication, and merging are completed, compliant candidate dependency edges are generated and screened, and a unified system model is constructed based on all modeling elements.

[0018] A multi-dimensional consistency check is performed on the unified system model. For content that fails the check, a second retrieval and re-reasoning are performed. After removing invalid modeling objects, a reliable unified system model is output.

[0019] Furthermore, the process of performing specialized parsing and semantic slicing on the original multi-source robot data, followed by evidence alignment based on the parsed and segmented data, and outputting a standardized set of context units includes:

[0020] Collect raw data from multiple sources of robots. Each piece of raw data from multiple sources of robots is marked with a source identifier, collection time, platform version, file, traffic, and corresponding positioning offset in the log. The raw data from multiple sources of robots includes at least one of the following: robot protocol, software development kit documentation, mobile terminal code configuration, network traffic packets, firmware logs, second-generation robot operating system running information, and threat and vulnerability rule data.

[0021] Perform corresponding parsing operations on different types of multi-source robot raw data, complete semantic slicing, and output parsed slicing data; perform chapter and interface semantic slicing on documents; extract functions, application programming interfaces, permission declarations, and call relationships from code; recover sessions, protocol fields, and message sequences from traffic; parse nodes, topics, services, behaviors, and quality of service from the second-generation robot operating system; and extract services, configuration items, and status codes from firmware logs.

[0022] Evidence alignment is performed based on the name, network address, interface identifier, code symbol, and context similarity of the parsed fragmented data. Fragmented data from the same source are integrated into a standardized context unit set, and each standardized context unit is bound to the original cited evidence and the source reliability level.

[0023] Furthermore, the large language model based on lightweight fine-tuning / retrieval enhancement performs hierarchical entity, relation, state, and permission joint extraction on the standardized context unit set, outputting initial extraction results, including:

[0024] Collect a robot domain training dataset, and perform lightweight fine-tuning adaptation processing on the basic general language model based on the robot domain training dataset to obtain a domain fine-tuning model;

[0025] A knowledge base is constructed based on robot industry standards, historical vulnerabilities, expert rules, and implementation cases. The text of the knowledge base is converted into vectors and stored as a vector knowledge base. The domain fine-tuning model is linked and integrated with the vector knowledge base to obtain a large language model based on lightweight fine-tuning / retrieval enhancement and generation enhancement.

[0026] When the large language model performs extraction reasoning, the standardized context unit is sent to the vector knowledge base to retrieve and match relevant reference evidence. The retrieved reference evidence and the standardized context unit are used to fill in a prompt template containing model field definitions, entity constraints, and evidence citation rules, and then sent to the large language model to perform hierarchical extraction. The hierarchical extraction is performed in the following order: coarse-grained asset discovery, fine-grained attribute completion, and cross-segment merging of relationships and state chains.

[0027] The large language model outputs the initial extraction results in a structured manner. The initial extraction results include assets, states, permissions, control actions, physical effects, evidence citations, and confidence levels. Each control action is determined by the preceding state, required permissions, input object, output state, and triggering physical effects.

[0028] Furthermore, the process of standardizing and deduplicating assets based on the initial extraction results, generating and filtering compliant candidate dependency edges, and constructing a unified system model based on all modeling elements includes:

[0029] Based on the initial extraction results, asset standardization, deduplication, and merging are carried out; a unified identifier is assigned to multiple candidate entities that are determined to be the same real asset, and all aliases and related evidence are merged; for candidate entities with conflicts, a decision is made based on the reliability level of the evidence, the number of sources, the version time, and the rule priority, and candidate entities that cannot be decided are marked as items to be confirmed.

[0030] Candidate dependency edges are generated from call chains, data flows, publish-subscribe relationships, configuration references, state read-write, and permission benefits; semantic consistency scores, structural consistency scores, temporal consistency scores, and evidence support scores are calculated respectively, and a weighted summation method is used to calculate the comprehensive score; candidate dependency edges whose comprehensive scores exceed the threshold and meet the pattern constraints are included in the edge set;

[0031] A unified system model is constructed based on asset nodes, dependency edges, state variables, permission entities, control actions, physical effects, evidence, and confidence levels.

[0032] Furthermore, the step of performing multi-dimensional consistency verification on the unified system model, performing secondary retrieval and re-inference on content that fails the verification, and outputting a trustworthy unified system model after removing invalid modeling objects includes:

[0033] The unified system model is subjected to schema verification, evidence verification, graph constraint verification, and cross-source consistency verification in sequence.

[0034] For modeling objects that fail the verification, the vector knowledge base is called to perform a secondary evidence retrieval. The prompt template is reconstructed by combining the retrieved supplementary evidence and then sent back to the large language model for re-inference. For modeling objects that lack evidence support, have low confidence, or whose conflicts cannot be resolved, the confidence level is reduced or they are directly removed.

[0035] Once all verifications are completed and the schema verification constraint, evidence verification constraint, graph constraint verification constraint, and cross-source consistency verification constraint are satisfied, a trusted unified system model is output.

[0036] Furthermore, the acquisition of threat scenarios and attacker capability constraints involves using these constraints as screening criteria, abstracting attack primitives based on a trusted unified system model, constructing a primitive dependency graph, and generating candidate attack paths within the primitive dependency graph space by combining the threat scenarios and attacker capability constraints. Each candidate attack path is then validated, and invalid attack paths are removed to obtain a set of compliant attack paths, including:

[0037] The acquired threat scenarios include target assets, attack entry points, attack exit points, desired control status, dangerous actions, and consequences of damage; the acquired attacker capabilities include network reachability, physical access capabilities, device resources, knowledge level, time window, and stealth requirements.

[0038] The trusted unified system model, threat scenarios, and attacker capability constraints are used as screening inputs to screen key assets in the attack chain.

[0039] Based on the key assets of the attack chain obtained through screening, device discovery, identity impersonation, pairing hijacking, authentication bypass, session reuse, unauthorized control, parameter tampering, robot operating system second generation / data distribution service message injection, and dangerous action triggering behavior are instantiated as attack primitives; each attack primitive includes primitive number, primitive type, associated assets, preconditions, execution action, permission benefits, state change, physical impact, evidence source, and confidence level fields.

[0040] Construct a primitive dependency graph based on the preconditions, privilege benefits, and state changes of the attack primitives;

[0041] The primitive dependency graph, threat scenarios, attacker capability constraints, and historical vulnerability knowledge are integrated to construct a path generation prompt template. The prompt template is input into the large language model, which restricts the retrieval of ordered primitive sequences from the attack entry point to the exit point to the space of the primitive dependency graph, and outputs a set of candidate attack paths.

[0042] The preconditions, permissions, attacker capabilities, time windows, and resource constraints of each candidate attack path in the candidate attack path set are encoded into satisfiability theory / satisfiability modular theory constraint expressions. These expressions are then verified segment by segment by a constraint solver to eliminate invalid attack paths that have permission jumps, missing preconditions, or state conflicts, thus obtaining a set of compliant attack paths.

[0043] Furthermore, the assessment of preconditions, permission status, and physical impact for each compliant attack path in the set of compliant attack paths is conducted according to evaluation indicators. Based on the evaluation results, a comprehensive risk value for each path is calculated, including:

[0044] Based on the verification time window of the set of compliant attack paths, device computing resources, storage resources, network resources, physical environment conditions, and the completeness of information possessed by the attacker, the precondition satisfaction index is output.

[0045] Verify the integrity of the permission benefit chain, the legality of state transitions, and the integrity of permission dependency transit closures based on the set of compliant attack paths, and output the consistency index between state and permission.

[0046] Extract all control action parameters bound to the endpoint of the compliant attack path, including actuator speed, acceleration, torque, clamping force, range of motion, and duration. Combine these parameters with personnel and equipment exposure conditions to assess the severity, probability of occurrence, and controllability of the hazard, and quantify the physical impact indicators.

[0047] The single-path comprehensive risk value is obtained by weighting and summing the precondition satisfaction index, the state and permission consistency index, and the physical impact index, deducting the utilization cost, and superimposing the concealment score.

[0048] Furthermore, the simulation or controlled entity verification based on the set of high-value attack paths generates verification data; the verification data is fed back to the trusted unified system model for incremental updates and version management, and the updated trusted unified system model is output, including:

[0049] Using the set of high-value attack paths as verification input, select high-value attack paths whose single-path comprehensive risk value is greater than the first threshold, and reproduce the complete attack process in sequence on digital twin, hardware-in-the-loop, and authorized controlled entity robot platforms; record real state changes, permission changes, robot operating system second generation / data distribution service message propagation, actuator motion feedback, and security protection mechanism response data to form verification data;

[0050] The verification data is used as correction input and fed back to the trusted unified system model to correct the comprehensive score of the dependent edge, the preconditions of the attack primitive, the privilege benefits, and the physical impact parameters of the trusted unified system model. When the robot firmware, mobile application, cloud interface, robot operating system second-generation node, and configuration file undergo version changes, the difference data is compared and determined, the affected assets, dependent edges, states, and privilege objects are located, and only the local subgraph is remodeled and verified. A version number is assigned to the updated model to achieve incremental updates and version backtracking, and the updated trusted unified system model is output.

[0051] This application also provides a robot security modeling and attack path analysis system, including:

[0052] The unified modeling module is used to acquire raw data from multiple sources of robots, perform security modeling preprocessing on the raw data of multiple sources of robots and then model it, outputting a reliable unified system model.

[0053] The attack path generation module is used to obtain threat scenarios and attacker capability constraints, use threat scenarios and attacker capability constraints as screening criteria, abstract attack primitives based on the trusted unified system model and construct primitive dependency graphs, generate candidate attack paths in the primitive dependency graph space in combination with the threat scenarios and attacker capability constraints, verify each candidate attack path and delete invalid attack paths to obtain a set of compliant attack paths.

[0054] The risk assessment and ranking module is used to conduct precondition, permission status and physical impact assessments on each compliant attack path in the compliant attack path set according to the assessment indicators. Based on the assessment results, it calculates the comprehensive risk value of a single path and completes the priority ranking, obtains the ranking results and the set of high-value attack paths, and simultaneously summarizes the assessment indicators, the comprehensive risk value of a single path and the ranking results to form a complete set of risk assessment data.

[0055] The verification and update module is used to perform simulation or controlled entity verification based on the set of high-value attack paths, generate verification data, feed the verification data back to the trusted unified system model to perform incremental updates and version management, and output the updated trusted unified system model.

[0056] The output module is used to obtain standardized robot security analysis results based on the updated trusted unified system model, the set of high-value attack paths, and the complete set of risk assessment data.

[0057] This application utilizes multi-source robot raw data to build a trusted unified system model. Leveraging lightweight fine-tuning / retrieval to enhance the large model and multi-dimensional verification, it automatically integrates heterogeneous robot data. All modeling content is traceable to original evidence, effectively suppressing model illusions. Based on threat scenarios and attacker capability constraints, a primitive dependency graph is constructed and candidate paths are verified, establishing a data link between modeling and path reasoning, and filtering out invalid paths with permission jumps and state conflicts. Path risks are quantified and ranked from three dimensions: preconditions, permission status, and physical impact, simultaneously covering network control and robot physical execution risks, clearly distinguishing the degree of danger for each path. Incremental model updates based on verification data allow for synchronous optimization along with device iterations, significantly reducing the workload of manually analyzing asset links, and ultimately outputting standardized robot safety analysis results. Attached Figure Description

[0058] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0059] Figure 1 This is a logic diagram of a robot security modeling and attack path analysis method in one embodiment of this application;

[0060] Figure 2 This is a schematic diagram of the data structure of the unified system model in one embodiment of this application;

[0061] Figure 3 This is a flowchart of multi-source information semantic extraction and asset attribute identification in one embodiment of this application;

[0062] Figure 4 This is a flowchart of asset dependency recovery and graph structure construction in one embodiment of this application;

[0063] Figure 5 This is a flowchart of generalization enhancement and hallucination suppression for a large language model in one embodiment of this application;

[0064] Figure 6 This is a flowchart of candidate attack path generation and logical constraint verification in one embodiment of this application;

[0065] Figure 7 This is a flowchart of the feasibility and physical risk assessment of candidate attack paths in one embodiment of this application;

[0066] Figure 8 This is a schematic diagram of an embodiment of the security modeling and attack path analysis of a quadruped robot platform in this application;

[0067] Figure 9 This is a flowchart of a robot security modeling and attack path analysis method in one embodiment of this application;

[0068] Figure 10 This is a structural block diagram of a robot security modeling and attack path analysis system in one embodiment of this application;

[0069] Figure 11 This is an internal structural diagram of a computer device in one embodiment of this application. Detailed Implementation

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

[0071] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.

[0072] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0073] Example 1

[0074] The embodiments of this application provide a robot safety modeling and attack path analysis method, which combines multi-source security information fusion, unified system modeling, attack path generation, feasibility assessment, physical risk analysis and verification backfeeding into a continuous and mutually constrained technical process to solve the problems in the prior art such as the separation between system model and attack path, data reliance on manual processing, lack of evidence for model results, unreliable path logic and difficulty in quantifying physical impact.

[0075] This invention constructs a unified semantic model of "asset-channel-dependency-state-authority-action-physical impact-evidence," enabling network semantics, control semantics, and physical semantics to be expressed in a unified graph structure. This addresses the problem of insufficient expressive power in traditional network topology models.

[0076] This invention addresses the challenge of automatically fusing multi-source heterogeneous information by performing specialized parsing, semantic slicing, evidence alignment, entity relationship joint extraction, standardized merging, and conflict resolution on protocol documents, SDKs, mobile code, network traffic, device discovery messages, firmware, ROS2 / DDS runtime information, and logs.

[0077] This invention addresses the problems of illusion, omission, and unstable output in large language models by employing LoRA domain adaptation, RAG evidence retrieval, structured output patterns, rule constraints, cross-source evidence voting, confidence fusion, and secondary retrieval, enabling each asset, relation, state, and attack primitive to refer back to the original evidence.

[0078] This invention filters key assets relevant to threat scenarios from a unified system model, instantiates system states, privilege gains, actions, and physical effects into composable attack primitives, and constructs an attack primitive dependency graph based on prerequisite dependencies and privilege propagation relationships. This addresses the problem that a unified system model cannot directly support attack inference.

[0079] This invention converts candidate attack paths generated by a large language model into constraint expressions. It then uses state transition rules, permission dependency closures, attacker capability constraints, and constraint solvers to check the executability of the paths, eliminating paths with permission jumps, state conflicts, or missing preconditions. This addresses the problem of unsatisfactorable candidate attack path logic.

[0080] This invention correlates the hazardous actions corresponding to the end point of a path with actuator speed, acceleration, torque, clamping force, range of motion, and personnel or equipment exposure conditions to comprehensively evaluate the severity, probability of occurrence, and controllability of the hazard. This addresses the problem of traditional network risk assessment neglecting physical impacts.

[0081] This invention updates the unified system model, attack primitive library, and risk parameters through incremental data access, difference detection, local subgraph reconstruction, simulation or controlled entity verification, and result feedback. This addresses the problem of models and paths being difficult to continuously update as the platform evolves.

[0082] This invention does not simply juxtapose "system modeling" and "attack path analysis," but rather uses a unified system model generated in the previous stage as a necessary input for attack reasoning in the subsequent stage, and transmits this model bidirectionally between the two stages through evidence, status, permissions, and verification results. Figure 1 As shown, the present invention sequentially performs the following steps: multi-source robot raw data acquisition and preprocessing, unified system modeling of evidence constraints, attack primitive abstraction, candidate attack path generation, logic and feasibility verification, physical risk assessment, path sorting and verification backfeeding.

[0083] The raw data input to this invention includes one or more of the following: robot protocol documents, product manuals, interface specifications, and SDK documents; mobile application code, front-end resources, decompiled code, API call records, and configuration files; network traffic and device discovery messages such as BLE, Wi-Fi, HTTP, WebSocket, MQTT, CAN, and DDS; robot firmware, executable file strings, service lists, container configurations, permission configurations, and security credentials; ROS2 nodes, topics, services, actions, DDS participants, QoS configurations, and namespaces; operation logs, audit logs, error logs, controller status records, and actuator feedback; threat scenarios, attacker capability constraints, historical vulnerability samples, domain standards, attack cases, and expert rules.

[0084] For each raw data record, specify the source identifier, collection time, platform version, file location, line number, log offset, or traffic offset.

[0085] like Figure 2 As shown, a unified system model is constructed based on asset nodes, dependency edges, state variables, permission entities, control actions, physical impacts, evidence, and confidence levels. The unified system model is defined as G=(V,E,S,P,A,C,Q). Here, V represents the set of asset nodes; E represents the set of dependency edges between assets; S represents the set of state variables; P represents the set of permission entities and permission levels; A represents the set of control actions; C represents the set of physical impacts; and Q represents the set of evidence, time information, and confidence levels.

[0086] The asset node V includes at least devices, applications, processes, services, interfaces, communication endpoints, sensors, actuators, ROS2 nodes, DDS participants, cloud resources, data objects, configuration files, and security credentials. The dependency edge E includes at least communication dependencies, call dependencies, data dependencies, functional dependencies, state dependencies, permission dependencies, and physical control dependencies. The state variable S includes at least device discovery state, authentication state, session state, control mode, network connection state, sensor state, task orchestration state, and actuator state. The permission set P includes at least guest permissions, authenticated user permissions, restricted control permissions, motion control permissions, device management permissions, and high system permissions. The action set A is described by the preceding state Pre(a), the required permission Req(a), the input object In(a), the output state Post(a), and the physical effect Effect(a).

[0087] Each asset node, dependency edge, state variable, permission entity, control action, and physical impact in the unified system model is recorded with a unique identifier, standardized name, alias, source evidence, timestamp, applicable version, and confidence level; thereby ensuring that the evidence source, state prerequisites, permission requirements, and possible consequences of a certain attack step can be directly queried during the path analysis phase.

[0088] Specialized parsing is performed for different data types. For natural language documents, semantic slicing is performed according to chapters, interfaces, and message formats; for source code and decompiled results, functions, classes, APIs, permission declarations, constants, and call relationships are extracted; for network traffic, sessions, protocol fields, message directions, and timing are recovered; for ROS2 / DDS runtime information, nodes, topics, services, actions, QoS, and namespaces are parsed; for firmware and logs, service names, paths, configuration items, status codes, and key strings are extracted.

[0089] Evidence alignment is performed based on time, name, network address, interface identifier, code symbol, protocol fields, and context similarity. Document fragments, code locations, message fields, log events, and ROS2 node information that may describe the same object are organized into standardized context units. Each context unit contains original evidence references and source reliability levels for subsequent joint extraction by a large language model.

[0090] A structured prompt template is constructed for each standardized context unit. This prompt template includes at least the unified system model field definitions, allowed entity and relation types, state and permission representation rules, positive and negative examples, evidence citation rules, and constraints prohibiting the completion of evidence without evidence. The large language model outputs the entity name, entity type, attributes, candidate relations, state preconditions, permission requirements, triggerable actions, possible physical impact, evidence location, and confidence level in JSON or an equivalent structure.

[0091] like Figure 3 As shown, to reduce omissions caused by long contexts, this invention adopts a hierarchical extraction strategy: first, coarse-grained asset discovery is performed on all data; then, fine-grained attribute completion is performed by retrieving relevant contexts around each candidate asset; finally, cross-segment relationship merging and state chain completion are performed, outputting an asset entity list, attribute labels, state objects, permission objects, evidence references, and confidence scores. The large language model can be combined with LoRA domain adaptation and RAG retrieval results to enhance the recognition capabilities of robot protocols, ROS2 / DDS terminology, embedded permissions, and actuator control semantics.

[0092] The system determines whether multiple candidate entities correspond to the same real asset based on name similarity, network address, interface identifier, code symbol, message format, upstream and downstream relationships, and time consistency. If so, the multiple candidate entities corresponding to the same real asset meet the merging criteria. For multiple candidate entities that meet the merging criteria, a unified asset identifier is generated, and all aliases and evidence are retained. For conflicting attributes, a decision is made based on the reliability level of the evidence, the number of sources, version time, and rule priority. Conflicts that cannot be automatically decided are marked as pending confirmation.

[0093] like Figure 4 As shown, candidate dependency edges are generated from call chains, data flows, message sequences, publish-subscribe relationships, configuration references, state read-write operations, and permission gains. For any candidate dependency edge e=(v_i,r,v_j), the system calculates a semantic consistency score S_sem, a structural consistency score S_str, a temporal consistency score S_time, and an evidence support score S_evi, which can be weighted using the formula Score(e)=w1×S_sem+w2×S_str+w3×S_time+w4×S_evi, where the sum of each weight is 1. Candidate dependency edges are written into the unified system model only when the score exceeds a threshold and does not violate pattern constraints.

[0094] This invention abstracts the robot control process into computable state transitions. For action 'a', the preceding state Pre(a) describes conditions such as device discovery, successful authentication, session establishment, or control mode switching; the required permissions Req(a) describes the authentication user's permissions, motion control permissions, or high system permissions; the input object In(a) describes messages, parameters, or sensor data; the output state Post(a) describes the control command entering a node, the actuator being started, or the safety mode being turned off; and the physical effect Effect(a) describes chassis movement, joint rotation, gripper closure, navigation deviation, or device collision.

[0095] Through the above description, the present invention connects the network layer authentication result, control layer permission change, internal message propagation and execution layer physical action, so that subsequent path reasoning can determine whether "the state or permission obtained in the previous step can satisfy the next step", and can directly analyze the possible physical impact from the end point of the attack path.

[0096] The output (modeling objects) of the large language model are subjected to schema validation, evidence validation, graph constraint validation, and cross-source consistency validation. Schema validation checks whether fields, types, and relations conform to the unified system model definition; evidence validation confirms that each asset and relation can point back to at least one original evidence location; graph constraint validation checks whether the start and end points of edges and relation types are reasonable; and cross-source consistency validation compares duplicate descriptions in documents, code, traffic, firmware, runtime graphs, and logs.

[0097] like Figure 5 As shown, for outputs with low confidence or conflicting results, the system triggers secondary retrieval and re-inference (ensuring that each asset, dependency, state, and attack primitive can point back to the original evidence); for outputs lacking supporting evidence, the confidence level is reduced or they are rejected from being written into the unified system model. This invention can also utilize robot protocols, ROS2 / DDS security specifications, historical vulnerability samples, and manually annotated samples to perform LoRA lightweight domain adaptation on the basic large language model, and retrieve relevant specifications, samples, and expert rules through RAG during inference.

[0098] When robot software, firmware, mobile applications, cloud interfaces, ROS2 nodes, or configurations change, the system calculates the differences between the old and new data, locates affected assets, dependencies, states, and permissions, and only re-extracts, merges, and verifies the relevant subgraphs. The model version records added, deleted, and modified nodes, edges, states, evidence, and confidence levels, supporting backtracking by platform version or time.

[0099] Threat scenarios include at least the target asset, compromised security attributes, attack entry point, attack exit point, desired state of control, potentially dangerous actions, and harmful consequences. Attacker capability constraints include at least network reachability, physical access capabilities, equipment resources, knowledge level, existing information, time window, and stealth requirements. The above information, together with the unified system model, determines the starting point, ending point, and search boundaries for attack paths.

[0100] Based on the threat scenario, key assets located on potential links from the attack entry point to the attack exit point are selected from the unified system model, and nodes and edges related to control propagation, state changes, and physical action triggering are also selected.

[0101] The attack primitives instantiate behaviors such as device discovery, identity impersonation, pairing hijacking, authentication bypass, session reuse, unauthorized control, parameter tampering, media theft, ROS2 / DDS node or message injection, and triggering dangerous actions. Each attack primitive includes at least the fields primitive_id, primitive_type, involved_assets, prerequisites, action, permission_gain, state_change, physical_effect, evidence, and confidence.

[0102] An attack primitive dependency graph is constructed based on the preconditions, required permissions, permission gains, and state changes of the attack primitives. If the execution result of attack primitive A satisfies any precondition of attack primitive B, and there is a verifiable asset dependency or message propagation relationship between the two in the unified system model, then a directed edge from A to B is established. The attack primitive dependency graph compresses the complex system model into a semantic space oriented towards path reasoning, while preserving the backreferences to the original evidence and nodes of the unified model.

[0103] The attack primitive dependency graph, threat scenarios, attacker capability constraints, and historical vulnerability knowledge are embedded into the path generation prompt template to guide the large language model to search for directed paths from the attack entry primitive to the attack exit primitive only within the instantiated attack primitive space. The large language model outputs one or more candidate attack paths, each containing an ordered sequence of attack primitives, a sequence of key assets, evidence citations, and reasoning explanations.

[0104] like Figure 6 As shown, the state conditions, permission conditions, attacker capabilities, time windows, and resource conditions in candidate attack paths are encoded as SAT, SMT, or equivalent constraints. The constraint solver progressively checks whether the preconditions of each attack primitive in the path are satisfied by the initial conditions or the output of the preceding attack primitives, checks whether the permission gains form a continuous permission escalation chain, and checks whether the state transitions conform to the state transition rules in the unified system model. Paths with permission jumps, state conflicts, missing dependency edges, or insufficient attacker capabilities are eliminated or marked as pending verification.

[0105] Candidate paths that pass logical validation are evaluated from three dimensions. The first dimension is the satisfaction of preconditions, including time window, device resources, communication distance, environmental conditions, and information already possessed by the attacker. The second dimension is the consistency between state and permissions, including the integrity of the permission escalation chain, the legality of state transitions, and permission dependency transitive closures. The third dimension is physical risk, including the types of actions that may be triggered at the path endpoint, action parameters, and personnel or equipment exposure conditions.

[0106] like Figure 7As shown, the physical risk assessment module extracts actions such as joint motor overspeed rotation, high-speed movement or uncontrolled collision of the mobile chassis, abnormal closure or release of the gripper, overtravel of the robotic arm end effector, and navigation deviation from the attack primitives at the attack exit point. It then combines these with speed, acceleration, torque, gripping force, range of motion, and duration to assess the severity, probability of occurrence, and controllability of the harm. The system maps network attack paths to consequences such as personal injury, equipment damage, environmental disruption, or service interruption, and generates a path-level physical risk score.

[0107] Candidate paths are comprehensively scored based on the satisfaction of preconditions (F_pre), consistency between state and permissions (F_state), physical risk (F_physical), exploitation cost (Cost), and stealth (Stealth). The score can be expressed as R_path = αF_pre + βF_state + γF_physical − δCost + εStealth, where each weight is configured according to the robot's application scenario, personnel exposure level, and safety objectives.

[0108] The candidate paths are sorted according to the comprehensive score, and the output includes high-risk and high-feasibility paths, structured attack trees or path graphs, evidence chains, risk levels, unmet conditions, verification suggestions, and remediation priorities.

[0109] For paths prioritized in the ranking, the system can perform verification in digital twins, simulation environments, hardware-in-the-loop environments, or authorized controlled entity platforms. The verification module records the actual state changes, permission changes, message propagation, executor feedback, and security mechanism responses at each step, and feeds the verification results back into the unified system model, attack primitive library, and historical vulnerability knowledge base to correct dependency edge confidence, attack primitive preconditions, permission gains, and physical effect parameters.

[0110] Compared with the prior art, the present invention has at least the following beneficial effects:

[0111] (1) Forming a complete technical closed loop. This invention treats security modeling and attack path analysis as dependent stages within the same invention. The unified model is both the modeling result and the direct data basis for attack primitives and path reasoning, avoiding semantic loss between two independent systems.

[0112] (2) More complete modeling semantics. This invention simultaneously represents assets, channels, dependencies, states, permissions, actions, physical influences and evidence, which can reflect the complete functional closed loop of the robot from external interaction and internal control to physical execution.

[0113] (3) Reduce labor costs. This invention can automatically extract and merge security objects from protocol documents, code, traffic, firmware, ROS2 / DDS operation information and logs, reducing the workload of manual reading, manual input, repetitive drawing and manual writing of attack graph rules.

[0114] (4) Improve accuracy and auditability. Through evidence backreference, cross-source voting, structured output, pattern constraints, graph constraints and confidence fusion, each node, relation, attack primitive and path can be traced back to the original evidence, which can identify and suppress the illusion of large language models.

[0115] (5) Improve the feasibility of attack paths. Attack primitive dependency graphs, constraint solving, state transition checks, and permission dependency closures can eliminate candidate paths that lack preconditions, have state conflicts, or involve permission jumps, thereby reducing the proportion of invalid paths.

[0116] (6) Highlighting the physical risks of embodied intelligence. This invention not only assesses confidentiality, integrity and availability, but also maps attack paths to physical actions such as chassis movement, joint rotation, gripper closure, robotic arm overtravel and navigation deviation, and combines motion parameters to evaluate personnel, equipment and environmental risks.

[0117] (7) Adaptable to multiple robot platforms. LoRA domain adaptation, RAG retrieval enhancement and configurable unified model enable the present invention to be applicable to quadruped robots, humanoid robots, mobile robots, robotic arms, unmanned delivery robots and medical service robots.

[0118] (8) Supports continuous updates. Through difference detection, local subgraph reconstruction, simulation or controlled entity verification and result feedback, the model and path can be continuously corrected as the software, firmware, interface and ROS2 nodes change.

[0119] Example 2

[0120] like Figure 9 As shown, the following section uses a ROS2-based quadruped robot platform as an example to illustrate the implementation process of robot security modeling and attack path analysis. This platform includes a mobile control app, BLE communication interface, Wi-Fi image transmission service, cloud account service, robot body controller, ROS2 motion control node, camera node, joint actuators, and chassis actuators. The threat scenario is set as follows: an attacker attempts to gain motion control privileges through the BLE communication interface and may cause the robot to perform abnormally high-speed movements, thereby creating a collision risk.

[0121] Step E1: Acquisition of raw robot data from multiple sources. This embodiment collects decompiled code from a mobile app, BLE GATT service definitions, Wi-Fi packet captures, cloud API descriptions, robot firmware strings, ROS2 node graphs, DDS configurations, and control logs, and records the source, version, time, and location for each data item.

[0122] Step E2: Preprocessing and Evidence Alignment. The system extracts the BLE service UUID, control API, and permission declarations from the App code; reconstructs the scanning, connection, pairing, and feature writing processes from BLE packet captures; extracts motion control nodes, topics, and message types from the ROS2 node graph; and extracts control mode switching, command reception, and executor responses from logs. The system groups relevant evidence into the same context unit based on UUID, message fields, time, and call relationships.

[0123] Step E3: Joint Extraction and Asset Merging. The large language model identifies assets such as mobile control apps, BLE interfaces, robot control services, ROS2 motion control nodes, joint actuators, and chassis actuators, and identifies status or permission objects such as "BLE discovered," "Pairing successful," "Control session established," "Motion control permission obtained," "Motion command issued," and "Actuator has acted."

[0124] Step E4: Dependency Recovery. The system establishes the calling dependency of "Mobile App calling BLE interface" based on App function calls and BLE message timing; establishes the communication and functional dependency of "BLE interface triggering robot control service" based on BLE feature value writing and control logs; establishes the message dependency of "Control service issuing instructions to motion control node" based on ROS2 publish-subscribe relationship; and establishes the physical control dependency of "Motion control node driving joint actuator and chassis" based on actuator feedback.

[0125] Step E5: Unified System Model Construction. The system writes the aforementioned assets, dependencies, states, permissions, actions, physical impacts, and their evidence into G=(V,E,S,P,A,C,Q), and performs cross-source consistency checks through documents, code, traffic, ROS2 runtime information, and logs. If multiple types of evidence are consistent, the confidence of the corresponding node or edge is increased; if evidence conflicts, the conflict information is retained and a secondary retrieval is triggered.

[0126] Step E6: Attack Primitive Instantiation. The system filters BLE communication links, robot control services, ROS2 motion control nodes, and actuator-related assets from the unified system model, and instantiates attack primitives such as device discovery, pairing or authentication vulnerability exploitation, control session establishment, unauthorized control, ROS2 control message propagation, and dangerous action triggering. Each attack primitive refers back to assets and evidence in the unified system model.

[0127] Step E7: Candidate Path Generation. The system constructs an attack primitive dependency graph based on the attack primitive preconditions and privilege gains, and the large language model generates candidate paths from the BLE entry attack primitive to the dangerous action exit attack primitive in this graph. The candidate path can be expressed as "Device discovery — Pairing or authentication conditions met — Control session established — Motion control privileges obtained — Control command issued — ROS2 motion node received — Actuator action".

[0128] Step E8: Logical and State Permission Verification. The constraint solver checks whether the preceding state for each step is satisfied by the preceding steps, whether the attacker has the corresponding network reachability and device resources, whether motion control permissions were obtained before issuing motion commands, and whether ROS2 message propagation relationships exist in the unified system model. Paths lacking evidence or containing permission jumps are eliminated or marked as pending verification.

[0129] Step E9: Physical Risk Assessment. The system combines chassis speed, joint range of motion, duration of movement, personnel activity area, and emergency stop mechanism to assess the severity, probability, and controllability of a collision that may be caused by abnormal high-speed movement, and generates a physical risk level.

[0130] Step E10: Sorting and Verification. The system sorts paths based on precondition satisfaction, state and permission consistency, physical risks, exploitation costs, and concealment. For higher-priority paths, message propagation and state transitions can be verified first in a digital twin or simulation environment, and then the security mechanism response can be verified in an authorized, controlled platform.

[0131] Step E11: Result Feedback. The system feeds back the verified real state changes, permission changes, executor feedback, and security mechanism responses to the unified system model and attack primitive library, corrects the dependency edge confidence, attack primitive preconditions, and physical risk parameters, and forms a new version of the model.

[0132] Step E12: Output Results. The system outputs the unified system model, asset and dependency list, state and permission dictionary, high-value attack paths, path evidence chain, feasibility report, physical risk report, verification suggestions, and remediation priority for the quadruped robot.

[0133] Example 3

[0134] like Figure 10 As shown, embodiments of this application provide a robot security modeling and attack path analysis method, including the following steps:

[0135] S1. Obtain the original data of the multi-source robot, perform security modeling preprocessing on the original data of the multi-source robot and model it, and output a trusted unified system model.

[0136] Specifically, based on the original data of multi-source robots, the system performs parsing and slicing, evidence alignment, joint extraction of large models, asset merging and consistency verification. A unified system model is constructed based on asset nodes, dependency edges, state variables, permission entities, control actions, physical influence, evidence and confidence. After consistency verification, a trustworthy unified system model is output.

[0137] S2. Obtain threat scenarios and attacker capability constraints. Using threat scenarios and attacker capability constraints as screening criteria, abstract attack primitives based on the trusted unified system model and construct a primitive dependency graph. Combine the threat scenarios and attacker capability constraints to generate candidate attack paths in the primitive dependency graph space. Verify each candidate attack path and delete invalid attack paths to obtain a set of compliant attack paths.

[0138] S3. For each compliant attack path in the set of compliant attack paths, conduct precondition, permission status and physical impact assessments according to the assessment indicators. Calculate the comprehensive risk value of a single path based on the assessment results and complete the priority ranking to obtain the ranking results and the set of high-value attack paths. Simultaneously summarize the assessment indicators, the comprehensive risk value of a single path and the ranking results to form a complete set of risk assessment data.

[0139] S4. Based on the set of high-value attack paths, conduct simulation or controlled entity verification to generate verification data; feed the verification data back to the trusted unified system model to perform incremental updates and version management, and output the updated trusted unified system model;

[0140] S5. Based on the updated trusted unified system model, the set of high-value attack paths, and the complete set of risk assessment data, obtain standardized robot security analysis results.

[0141] In this embodiment, the steps of acquiring multi-source robot raw data, performing security modeling preprocessing on the multi-source robot raw data and modeling, and outputting a trusted unified system model include:

[0142] The original data from the multi-source robot is subjected to dedicated parsing and semantic slicing, and then evidence alignment is completed based on the parsed and slicing data to output a standardized set of context units.

[0143] Based on the large language model enhanced by Lightweight Fine-Tuning (LoRA) / Retrieval Enhanced Generation (RAG), hierarchical entity, relation, state, and permission joint extraction is performed on the standardized context unit set, and the initial extraction results are output.

[0144] Based on the initial extraction results, asset standardization, deduplication, and merging are completed, compliant candidate dependency edges are generated and screened, and a unified system model is constructed based on all modeling elements.

[0145] A multi-dimensional consistency check is performed on the unified system model. For content that fails the check, a second retrieval and re-reasoning are performed. After removing invalid modeling objects, a reliable unified system model is output.

[0146] In this embodiment, the process of performing dedicated parsing and semantic slicing on the original multi-source robot data, then aligning evidence based on the parsed data slices, and outputting a standardized set of context units includes:

[0147] Collect raw data from multiple sources of robots. Each piece of raw data from multiple sources of robots is marked with a source identifier, collection time, platform version, file, traffic, and corresponding positioning offset in the log. The raw data from multiple sources of robots includes at least one of the following: robot protocol, software development kit (SDK) documentation, mobile terminal code configuration, network traffic packets, firmware logs, Robot Operating System 2 (ROS2) runtime information, and threat and vulnerability rule data.

[0148] Perform corresponding parsing operations on different types of multi-source robot raw data, complete semantic slicing, and output parsed slicing data; perform chapter and interface semantic slicing on documents; extract functions, application programming interfaces (APIs), permission declarations, and call relationships from code; recover sessions, protocol fields, and message sequences from traffic; parse nodes, topics, services, actions, and quality of service (QoS) from the Robot Operating System 2 (ROS2); and extract services, configuration items, and status codes from firmware logs.

[0149] Evidence alignment is performed based on the name, network address, interface identifier, code symbol, and context similarity of the parsed fragmented data. Fragmented data from the same source are integrated into a standardized context unit set, and each standardized context unit is bound to the original cited evidence and the source reliability level.

[0150] In this embodiment, the large language model enhanced by Lightweight Fine-tuning (LoRA) / Retrieval Enhancement Generation (RAG) performs hierarchical entity, relation, state, and permission joint extraction on the standardized context unit set, and outputs the initial extraction results, including:

[0151] Collect a robot domain training dataset, and perform lightweight fine-tuning (LoRA) adaptation processing on the basic general language model based on the robot domain training dataset to obtain a domain fine-tuned model;

[0152] A knowledge base is constructed based on robot industry standards, historical vulnerabilities, expert rules, and implementation cases. The text of the knowledge base is converted into vectors and stored as a vector knowledge base. The domain fine-tuning model is linked and integrated with the vector knowledge base to obtain a large language model enhanced by lightweight fine-tuning (LoRA) / retrieval enhancement generation (RAG).

[0153] When the large language model performs extraction reasoning, the standardized context unit is sent to the vector knowledge base to retrieve and match relevant reference evidence. The retrieved reference evidence and the standardized context unit are used to fill in a prompt template containing model field definitions, entity constraints, and evidence citation rules, and then sent to the large language model to perform hierarchical extraction. The hierarchical extraction is performed in the following order: coarse-grained asset discovery, fine-grained attribute completion, and cross-segment merging of relationships and state chains.

[0154] The large language model outputs the initial extraction results in a structured manner. The initial extraction results include assets, states, permissions, control actions, physical effects, evidence citations, and confidence levels. Each control action is determined by the preceding state, required permissions, input object, output state, and triggering physical effects.

[0155] In this embodiment, the steps of standardizing and deduplicating assets based on the initial extraction results, generating and filtering compliant candidate dependency edges, and constructing a unified system model based on all modeling elements include:

[0156] Based on the initial extraction results, asset standardization, deduplication, and merging are carried out; a unified identifier is assigned to multiple candidate entities that are determined to be the same real asset, and all aliases and related evidence are merged; for candidate entities with conflicts, a decision is made based on the reliability level of the evidence, the number of sources, the version time, and the rule priority, and candidate entities that cannot be decided are marked as items to be confirmed.

[0157] Candidate dependency edges are generated from call chains, data flows, publish-subscribe relationships, configuration references, state read-write, and permission benefits; semantic consistency scores, structural consistency scores, temporal consistency scores, and evidence support scores are calculated respectively, and a weighted summation method is used to calculate the comprehensive score; candidate dependency edges whose comprehensive scores exceed the threshold and meet the pattern constraints are included in the edge set;

[0158] A unified system model is constructed based on asset nodes, dependency edges, state variables, permission entities, control actions, physical effects, evidence, and confidence levels.

[0159] The pattern constraints are a predefined set of graph ontology semantic rules, including entity-relationship type matching rules, edge direction constraint rules, illegal loop edge filtering rules, and robot communication ontology rules. The entity-relationship type matching rules limit the types of node entities that are allowed to establish dependency edges. The edge direction constraint rules limit the directed direction of dependency edges. The illegal loop edge filtering rules eliminate candidate dependency edges with self-loops and causal loops. The robot communication ontology rules constrain the legal edges of publish-subscribe relationships in the Robot Operating System 2 (ROS2) and Data Distribution Service (DDS) scenarios.

[0160] In this embodiment, the step of performing multi-dimensional consistency verification on the unified system model, performing secondary retrieval and re-inference on content that fails the verification, and outputting a reliable unified system model after removing invalid modeling objects includes:

[0161] The unified system model is subjected to schema verification, evidence verification, graph constraint verification, and cross-source consistency verification in sequence.

[0162] For modeling objects that fail the verification, the vector knowledge base is called to perform a secondary evidence retrieval. The prompt template is reconstructed by combining the retrieved supplementary evidence and then sent back to the large language model for re-inference. For modeling objects that lack evidence support, have low confidence, or whose conflicts cannot be resolved, the confidence level is reduced or they are directly removed.

[0163] Once all verifications are completed and the schema verification constraint, evidence verification constraint, graph constraint verification constraint, and cross-source consistency verification constraint are satisfied, a trusted unified system model is output.

[0164] In this embodiment, the acquisition of threat scenarios and attacker capability constraints involves using these constraints as a screening criterion, abstracting attack primitives based on a trusted unified system model and constructing a primitive dependency graph. Candidate attack paths are then generated within the primitive dependency graph space, combining the threat scenarios and attacker capability constraints. Each candidate attack path is validated, and invalid attack paths are removed to obtain a set of compliant attack paths, including:

[0165] The acquired threat scenarios include target assets, attack entry points, attack exit points, desired control status, dangerous actions, and consequences of damage; the acquired attacker capabilities include network reachability, physical access capabilities, device resources, knowledge level, time window, and stealth requirements.

[0166] The trusted unified system model, threat scenarios, and attacker capability constraints are used as screening inputs to screen key assets in the attack chain.

[0167] Based on the key assets of the attack chain obtained through screening, device discovery, identity impersonation, pairing hijacking, authentication bypass, session reuse, unauthorized control, parameter tampering, Robot Operating System 2 (ROS2) / Data Distribution Service (DDS) message injection, and dangerous action triggering behavior instantiation are instantiated as attack primitives; each attack primitive contains primitive ID, primitive type, involved assets, prerequisites, action, permission gain, state change, physical effect, evidence source, and confidence fields;

[0168] Construct a primitive dependency graph based on the preconditions, privilege benefits, and state changes of the attack primitives;

[0169] The primitive dependency graph, threat scenarios, attacker capability constraints, and historical vulnerability knowledge are integrated to construct a path generation prompt template. The prompt template is input into the large language model, which restricts the retrieval of ordered primitive sequences from the attack entry point to the exit point to the space of the primitive dependency graph, and outputs a set of candidate attack paths.

[0170] The preconditions, permissions, attacker capabilities, time windows, and resource constraints of each candidate attack path in the candidate attack path set are encoded into Satisfiability Theory (SAT) / Satisfiability Modular Theory (SMT) constraint expressions. The constraint solver verifies each path segment by segment, eliminating invalid attack paths with permission jumps, missing preconditions, or state conflicts, thus obtaining a set of compliant attack paths.

[0171] In this embodiment, the step of conducting precondition, permission status, and physical impact assessments for each compliant attack path in the compliant attack path set according to evaluation indicators, and calculating the comprehensive risk value of a single path based on the assessment results, includes:

[0172] Based on the verification time window of the set of compliant attack paths, device computing resources, storage resources, network resources, physical environment conditions, and the completeness of information possessed by the attacker, the precondition satisfaction index is output.

[0173] Verify the integrity of the permission benefit chain, the legality of state transitions, and the integrity of permission dependency transit closures based on the set of compliant attack paths, and output the consistency index between state and permission.

[0174] Extract all control action parameters bound to the endpoint of the compliant attack path, including actuator speed, acceleration, torque, clamping force, range of motion, and duration. Combine these parameters with personnel and equipment exposure conditions to assess the severity, probability of occurrence, and controllability of the hazard, and quantify the physical impact indicators.

[0175] The single-path comprehensive risk value is obtained by weighting and summing the precondition satisfaction index, the state and permission consistency index, and the physical impact index, deducting the utilization cost, and superimposing the concealment score.

[0176] In this embodiment, the step of performing simulation or controlled entity verification based on the set of high-value attack paths to generate verification data; feeding the verification data back to the trusted unified system model for incremental updates and version management, and outputting the updated trusted unified system model includes:

[0177] Using the set of high-value attack paths as verification input, select high-value attack paths whose single-path comprehensive risk value is greater than the first threshold, and reproduce the complete attack process in sequence on digital twin, hardware-in-the-loop, and authorized controlled entity robot platforms; record real state changes, permission changes, robot operating system second generation (ROS2) / data distribution service (DDS) message propagation, actuator motion feedback, and security protection mechanism response data to form verification data;

[0178] The verification data is used as correction input and fed back to the trusted unified system model to correct the comprehensive score of the dependent edge, the preconditions of the attack primitive, the privilege benefits, and the physical impact parameters of the trusted unified system model. When the robot firmware, mobile application, cloud interface, robot operating system second generation (ROS2) node, and configuration file undergo version changes, the difference data is compared and determined, the affected assets, dependent edges, states, and privilege objects are located, and only the local subgraph is remodeled and verified. A version number is assigned to the updated model to realize incremental updates and version backtracking, and the updated trusted unified system model is output.

[0179] The standardized robot safety analysis results include a trusted unified system model file, an asset dependency list, a state and permission dictionary, an evidence index, a path risk level, a vulnerability remediation priority, and items pending manual confirmation; the output file format supports at least one of JavaScript Object Markup (JSON), GraphML, comma-separated values ​​(CSV), graph database data tables, and visual graphic reports.

[0180] Among them, embodied intelligent robots include at least one of the following: quadruped robots, humanoid robots, mobile chassis robots, industrial robotic arms, and unmanned delivery robots.

[0181] The aforementioned robot security modeling and attack path analysis method utilizes multi-source robot raw data to build a trusted unified system model. It leverages lightweight fine-tuning / retrieval to enhance the large model and multi-dimensional verification, automatically fusing heterogeneous robot data. All modeling content is traceable to original evidence, effectively suppressing model illusions. Based on threat scenarios and attacker capability constraints, a primitive dependency graph is constructed and candidate paths are verified, establishing a data link between modeling and path reasoning, and filtering out invalid paths with permission jumps and state conflicts. Path risks are quantified and ranked from three dimensions: preconditions, permission status, and physical impact, simultaneously covering network control and robot physical execution risks, clearly distinguishing the degree of danger for each path. The model is incrementally updated based on verification data, allowing for synchronous optimization with device iterations, significantly reducing the workload of manually analyzing asset links, and ultimately outputting standardized robot security analysis results.

[0182] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0183] In one embodiment, such as Figure 10 As shown, a robot safety modeling and attack path analysis system 10 is provided, including: a unified modeling module 1, an attack path generation module 2, a risk assessment and ranking module 3, a verification and update module 4, and a result output module 5.

[0184] The unified modeling module 1 is used to acquire the original data of the multi-source robot, perform security modeling preprocessing on the original data of the multi-source robot and model it, and output a reliable unified system model.

[0185] The attack path generation module 2 is used to obtain threat scenarios and attacker capability constraints, use threat scenarios and attacker capability constraints as screening criteria, abstract attack primitives based on the trusted unified system model and construct primitive dependency graphs, generate candidate attack paths in the primitive dependency graph space in combination with the threat scenarios and attacker capability constraints, verify each candidate attack path and delete invalid attack paths to obtain a set of compliant attack paths.

[0186] The risk assessment and ranking module 3 is used to conduct precondition, permission status and physical impact assessments on each compliant attack path in the compliant attack path set according to the assessment indicators. Based on the assessment results, it calculates the comprehensive risk value of a single path and completes the priority ranking, obtains the ranking results and the set of high-value attack paths, and simultaneously summarizes the assessment indicators, the comprehensive risk value of a single path and the ranking results to form a complete set of risk assessment data.

[0187] The verification and update module 4 is used to perform simulation or controlled entity verification based on the set of high-value attack paths, generate verification data, feed the verification data back to the trusted unified system model to perform incremental updates and version management, and output the updated trusted unified system model.

[0188] The output module 5 is used to obtain standardized robot security analysis results based on the updated trusted unified system model, the set of high-value attack paths, and the complete set of risk assessment data.

[0189] The aforementioned robot security modeling and attack path analysis system utilizes multi-source robot raw data to build a trusted unified system model. It leverages lightweight fine-tuning / retrieval to enhance the large model and multi-dimensional verification, automatically fusing heterogeneous robot data. All modeling content is traceable to original evidence, effectively suppressing model illusions. Based on threat scenarios and attacker capability constraints, a primitive dependency graph is constructed and candidate paths are verified, establishing a data link between modeling and path reasoning, filtering out invalid paths with permission jumps and state conflicts. Path risks are quantified and ranked from three dimensions: preconditions, permission status, and physical impact, simultaneously covering network control and robot physical execution risks, clearly distinguishing the degree of danger for each path. The model is incrementally updated based on verification data, allowing for synchronous optimization along with device iterations, significantly reducing the workload of manually analyzing asset links, and ultimately outputting standardized robot security analysis results.

[0190] For a description of the features in the corresponding embodiment of the robot security modeling and attack path analysis system, please refer to the relevant description of the corresponding embodiment of the robot security modeling and attack path analysis method, which will not be repeated here.

[0191] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the robot safety modeling and attack path analysis method embodiments described above.

[0192] In one embodiment, the electronic device may be a server, and its internal structure diagram may be as follows: Figure 11As shown, this electronic device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computational and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores robot safety modeling and attack path analysis data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a robot safety modeling and attack path analysis method.

[0193] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above embodiments of the robot safety modeling and attack path analysis method at runtime.

[0194] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0195] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0196] The above embodiments are only for illustrating the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They should not be construed as limiting the scope of protection of the present invention. All modifications made according to the spirit and essence of the main technical solution of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A method for robot security modeling and attack path analysis, characterized in that, include: Acquire raw data from multiple sources of robots, perform security modeling preprocessing on the raw data of multiple sources of robots and model it, and output a trusted unified system model; The threat scenarios and attacker capability constraints are obtained, and the threat scenarios and attacker capability constraints are used as the screening criteria. Attack primitives are abstracted based on the trusted unified system model and a primitive dependency graph is constructed. Candidate attack paths are generated in the primitive dependency graph space in combination with the threat scenarios and attacker capability constraints. Each candidate attack path is verified and invalid attack paths are deleted to obtain a set of compliant attack paths. For each compliant attack path in the set of compliant attack paths, an assessment of preconditions, permission status, and physical impact is conducted according to the assessment indicators. Based on the assessment results, the comprehensive risk value of a single path is calculated and the priority is ranked to obtain the ranking results and the set of high-value attack paths. The assessment indicators, the comprehensive risk value of a single path, and the ranking results are simultaneously summarized to form a complete set of risk assessment data. Based on the set of high-value attack paths, conduct simulation or controlled entity verification to generate verification data; The verification data is fed back to the trusted unified system model to perform incremental updates and version management, and the updated trusted unified system model is output. Based on the updated trusted unified system model, the set of high-value attack paths, and the complete set of risk assessment data, standardized robot security analysis results are obtained.

2. The robot security modeling and attack path analysis method according to claim 1, characterized in that, The process of acquiring raw data from multiple robot sources, performing pre-processing for security modeling on the raw data, and outputting a trusted unified system model includes: The original data from the multi-source robot is subjected to dedicated parsing and semantic slicing, and then evidence alignment is completed based on the parsed and slicing data to output a standardized set of context units. Based on a lightweight fine-tuning / retrieval enhancement-generated large language model, hierarchical entity, relation, state, and permission joint extraction is performed on the standardized context unit set, and the initial extraction results are output. Based on the initial extraction results, asset standardization, deduplication, and merging are completed, compliant candidate dependency edges are generated and screened, and a unified system model is constructed based on all modeling elements. A multi-dimensional consistency check is performed on the unified system model. For the content that fails the check, a second retrieval and re-reasoning are performed. After removing invalid modeling objects, a reliable unified system model is output.

3. The robot security modeling and attack path analysis method according to claim 2, characterized in that, The process involves performing specialized parsing and semantic slicing on the original multi-source robot data, then aligning the evidence based on the parsed data slices, and outputting a standardized set of context units, including: Collect raw data from multiple sources of robots. Each piece of raw data from multiple sources of robots is marked with a source identifier, collection time, platform version, file, traffic, and corresponding positioning offset in the log. The raw data from multiple sources of robots includes at least one of the following: robot protocol, software development kit documentation, mobile terminal code configuration, network traffic packets, firmware logs, second-generation robot operating system running information, and threat and vulnerability rule data. Perform corresponding parsing operations on different types of multi-source robot raw data, complete semantic slicing, and output parsed slicing data; perform chapter and interface semantic slicing on documents; extract functions, application programming interfaces, permission declarations, and call relationships from code; recover sessions, protocol fields, and message sequences from traffic; parse nodes, topics, services, behaviors, and quality of service from the second-generation robot operating system; and extract services, configuration items, and status codes from firmware logs. Evidence alignment is performed based on the name, network address, interface identifier, code symbol, and context similarity of the parsed fragmented data. Fragmented data from the same source are integrated into a standardized context unit set, and each standardized context unit is bound to the original cited evidence and the source reliability level.

4. The robot security modeling and attack path analysis method according to claim 2, characterized in that, The large language model based on lightweight fine-tuning / retrieval enhancement performs hierarchical entity, relation, state, and permission joint extraction on the standardized context unit set, and outputs initial extraction results, including: Collect a robot domain training dataset, and perform lightweight fine-tuning adaptation processing on the basic general language model based on the robot domain training dataset to obtain a domain fine-tuning model; A knowledge base is constructed based on robot industry standards, historical vulnerabilities, expert rules, and implementation cases. The text of the knowledge base is converted into vectors and stored as a vector knowledge base. The domain fine-tuning model is linked and integrated with the vector knowledge base to obtain a large language model based on lightweight fine-tuning / retrieval enhancement and generation enhancement. When the large language model performs extraction reasoning, the standardized context unit is sent to the vector knowledge base to retrieve and match relevant reference evidence. The retrieved reference evidence and the standardized context unit are used to fill in a prompt template containing model field definitions, entity constraints, and evidence citation rules, and then sent to the large language model to perform hierarchical extraction. The hierarchical extraction is performed in the following order: coarse-grained asset discovery, fine-grained attribute completion, and cross-segment merging of relationships and state chains. The large language model outputs the initial extraction results in a structured manner. The initial extraction results include assets, states, permissions, control actions, physical effects, evidence citations, and confidence levels. Each control action is determined by the preceding state, required permissions, input object, output state, and triggering physical effects.

5. The robot security modeling and attack path analysis method according to claim 2, characterized in that, The process of standardizing and deduplicating assets based on the initial extraction results, generating and filtering compliant candidate dependency edges, and constructing a unified system model based on all modeling elements includes: Based on the initial extraction results, asset standardization, deduplication, and merging are carried out; a unified identifier is assigned to multiple candidate entities that are determined to be the same real asset, and all aliases and related evidence are merged; for candidate entities with conflicts, a decision is made based on the reliability level of the evidence, the number of sources, the version time, and the rule priority, and candidate entities that cannot be decided are marked as items to be confirmed. Candidate dependency edges are generated from call chains, data flows, publish-subscribe relationships, configuration references, state read-write, and permission benefits; semantic consistency scores, structural consistency scores, temporal consistency scores, and evidence support scores are calculated respectively, and a weighted summation method is used to calculate the comprehensive score; candidate dependency edges whose comprehensive scores exceed the threshold and meet the pattern constraints are included in the edge set; A unified system model is constructed based on asset nodes, dependency edges, state variables, permission entities, control actions, physical effects, evidence, and confidence levels.

6. The robot security modeling and attack path analysis method according to claim 2, characterized in that, The process of performing multi-dimensional consistency verification on the unified system model, performing secondary retrieval and re-inference on content that fails the verification, and outputting a trustworthy unified system model after removing invalid modeling objects includes: The unified system model is subjected to schema verification, evidence verification, graph constraint verification, and cross-source consistency verification in sequence. For modeling objects that fail the verification, the vector knowledge base is called to perform a secondary evidence retrieval. The prompt template is reconstructed by combining the retrieved supplementary evidence and then sent back to the large language model for re-inference. For modeling objects that lack evidence support, have low confidence, or whose conflicts cannot be resolved, the confidence level is reduced or they are directly removed. Once all verifications are completed and the schema verification constraint, evidence verification constraint, graph constraint verification constraint, and cross-source consistency verification constraint are satisfied, a trusted unified system model is output.

7. The robot security modeling and attack path analysis method according to claim 1, characterized in that, The process of acquiring threat scenarios and attacker capability constraints involves using these constraints as screening criteria, abstracting attack primitives based on a trusted unified system model, constructing a primitive dependency graph, and generating candidate attack paths within this graph space by combining the threat scenarios and attacker capability constraints. Each candidate attack path is then validated, and invalid attack paths are removed to obtain a set of compliant attack paths, including: The acquired threat scenarios include target assets, attack entry points, attack exit points, desired control status, dangerous actions, and consequences of damage; the acquired attacker capabilities include network reachability, physical access capabilities, device resources, knowledge level, time window, and stealth requirements. The trusted unified system model, threat scenarios, and attacker capability constraints are used as screening inputs to screen key assets in the attack chain. Based on the key assets of the attack chain obtained through screening, device discovery, identity impersonation, pairing hijacking, authentication bypass, session reuse, unauthorized control, parameter tampering, robot operating system second generation / data distribution service message injection, and dangerous action triggering behavior are instantiated as attack primitives; each attack primitive includes primitive number, primitive type, associated assets, preconditions, execution action, permission benefits, state change, physical impact, evidence source, and confidence level fields. Construct a primitive dependency graph based on the preconditions, privilege benefits, and state changes of the attack primitives; The primitive dependency graph, threat scenarios, attacker capability constraints, and historical vulnerability knowledge are integrated to construct a path generation prompt template. The prompt template is input into the large language model, which restricts the retrieval of ordered primitive sequences from the attack entry point to the exit point to the space of the primitive dependency graph, and outputs a set of candidate attack paths. The preconditions, permissions, attacker capabilities, time windows, and resource constraints of each candidate attack path in the candidate attack path set are encoded into satisfiability theory / satisfiability modular theory constraint expressions. These expressions are then verified segment by segment by a constraint solver to eliminate invalid attack paths that have permission jumps, missing preconditions, or state conflicts, thus obtaining a set of compliant attack paths.

8. The robot security modeling and attack path analysis method according to claim 1, characterized in that, The assessment of preconditions, permission status, and physical impact for each compliant attack path in the set of compliant attack paths is conducted according to evaluation indicators. Based on the evaluation results, a comprehensive risk value for each path is calculated, including: Based on the verification time window of the set of compliant attack paths, device computing resources, storage resources, network resources, physical environment conditions, and the completeness of information possessed by the attacker, the precondition satisfaction index is output. Verify the integrity of the permission benefit chain, the legality of state transitions, and the integrity of permission dependency transit closures based on the set of compliant attack paths, and output the consistency index between state and permission. Extract all control action parameters bound to the endpoint of the compliant attack path, including actuator speed, acceleration, torque, clamping force, range of motion, and duration. Combine these parameters with personnel and equipment exposure conditions to assess the severity of the hazard, probability of occurrence, and controllability, and quantify the physical impact indicators. The single-path comprehensive risk value is obtained by weighting and summing the precondition satisfaction index, the state and permission consistency index, and the physical impact index, deducting the utilization cost, and superimposing the concealment score.

9. The robot security modeling and attack path analysis method according to claim 1, characterized in that, The simulation or controlled entity verification is carried out based on the set of high-value attack paths to generate verification data. The verification data is fed back to the trusted unified system model for incremental updates and version management, outputting the updated trusted unified system model, including: Using the set of high-value attack paths as verification input, select high-value attack paths whose single-path comprehensive risk value is greater than the first threshold, and reproduce the complete attack process in sequence on digital twin, hardware-in-the-loop, and authorized controlled entity robot platforms; record real state changes, permission changes, robot operating system second generation / data distribution service message propagation, actuator motion feedback, and security protection mechanism response data to form verification data; The verification data is used as correction input and fed back to the trusted unified system model to correct the comprehensive score of the dependent edge, the preconditions of the attack primitive, the privilege benefits, and the physical impact parameters of the trusted unified system model. When the robot firmware, mobile application, cloud interface, robot operating system second-generation node, and configuration file undergo version changes, the difference data is compared and determined, the affected assets, dependent edges, states, and privilege objects are located, and only the local subgraph is remodeled and verified. A version number is assigned to the updated model to achieve incremental updates and version backtracking, and the updated trusted unified system model is output.

10. A robot security modeling and attack path analysis system, characterized in that, include: The unified modeling module is used to acquire raw data from multiple sources of robots, perform security modeling preprocessing on the raw data of multiple sources of robots and then model it, outputting a reliable unified system model. The attack path generation module is used to obtain threat scenarios and attacker capability constraints, use threat scenarios and attacker capability constraints as screening criteria, abstract attack primitives based on the trusted unified system model and construct primitive dependency graphs, generate candidate attack paths in the primitive dependency graph space in combination with the threat scenarios and attacker capability constraints, verify each candidate attack path and delete invalid attack paths to obtain a set of compliant attack paths. The risk assessment and ranking module is used to conduct precondition, permission status and physical impact assessments on each compliant attack path in the compliant attack path set according to the assessment indicators. Based on the assessment results, it calculates the comprehensive risk value of a single path and completes the priority ranking, obtains the ranking results and the set of high-value attack paths, and simultaneously summarizes the assessment indicators, the comprehensive risk value of a single path and the ranking results to form a complete set of risk assessment data. The verification update module is used to perform simulation or controlled entity verification based on the set of high-value attack paths and generate verification data. The verification data is fed back to the trusted unified system model to perform incremental updates and version management, and the updated trusted unified system model is output. The output module is used to obtain standardized robot security analysis results based on the updated trusted unified system model, the set of high-value attack paths, and the complete set of risk assessment data.