A multi-agent scene generation method, device, equipment and storage medium

By employing a multi-agent scenario generation method and utilizing scenario knowledge graphs to complete requirements in parallel execution, the problems of low efficiency and configuration conflicts in cybersecurity test range scenario construction are solved, achieving efficient and reliable scenario generation and verification.

CN123159392APending Publication Date: 2026-11-24JIANGSU BOZHI SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611396865.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

The existing network security test range scenarios are inefficient to build, and the parallel generation of multiple modules is prone to configuration conflicts and data inconsistencies. The lack of systematic quality verification results in insufficient usability for attack and defense scenarios.

Method used

A multi-agent scene generation method is adopted, which completes the generation requirements through scene knowledge graph, splits tasks and executes them in parallel, uses agents to generate scene elements, and performs progressive verification to ensure the structural integrity and logical rationality of the scene.

Benefits of technology

It improves the efficiency of scenario building, reduces configuration conflicts and data inconsistencies, and ensures the structural integrity and practical usability of the scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159392A_ABST
    Figure CN123159392A_ABST
Patent Text Reader

Abstract

This invention discloses a multi-agent scene generation method, apparatus, device, and storage medium. By supplementing scene generation requirements with a scene knowledge graph, implicit elements can be automatically derived based on structured domain knowledge, improving the completeness and accuracy of requirement definitions. Vague natural language requirements are transformed into structured tasks with complete elements and clear constraints, avoiding subsequent generation deviations caused by missing requirements. Decomposing the scene generation task clarifies the functional boundaries of each unit, providing a scheduling basis for multi-agent division of labor and improving task control accuracy. Distributing subtasks to corresponding agents to generate scene elements in parallel allows for collaboration among specialized agents, shortening the overall generation cycle while ensuring the professionalism and configuration accuracy of each scene element. Summarizing and verifying the elements yields the final deployment scene, effectively screening and correcting scene defects, ensuring the structural integrity, logical rationality, and practical usability of the output scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network security, and in particular to a method, apparatus, device, and storage medium for generating multi-agent scenes. Background Technology

[0002] With the increasing popularity of cybersecurity combat drills, the demand for cybersecurity ranges continues to grow. The efficiency and quality of range scenario construction directly affect the effectiveness of drills, and the industry has put forward higher requirements for the architectural fidelity of scenarios, the integrity of attack chains, and compliance adaptability.

[0003] Current target range scenario generation primarily employs two methods: manual customization and template-based semi-automatic generation. The manual method involves technical personnel completing tasks such as topology design, equipment configuration, and vulnerability deployment step-by-step. The template-based method generates scenarios by modifying parameters of pre-set standard templates. Some solutions introduce a single intelligent agent to assist in configuration, but the overall logic remains a single-threaded, serial generation process, lacking a multi-role collaborative automated architecture.

[0004] Existing technologies rely on manual customization. This approach is costly and time-consuming, with template-based architectures that are rigid, poorly adaptable, and unable to meet diverse customization needs. Single-threaded generation is inefficient and lacks global state control; parallel configuration of multiple modules can easily lead to configuration conflicts and data inconsistencies. Furthermore, the lack of a systematic quality verification mechanism often results in connectivity anomalies and unexploitable vulnerabilities in generated scenarios, making it difficult to guarantee practical usability. Summary of the Invention

[0005] This invention provides a method, apparatus, device, and storage medium for generating multi-agent scenarios, which solves the technical problems of low efficiency in building existing network security test range scenarios, easy configuration conflicts and data inconsistencies caused by parallel generation of multiple modules, and insufficient usability of scenarios for attack and defense due to the lack of systematic quality verification.

[0006] According to one aspect of the present invention, a multi-agent scene generation method is provided, the method comprising: Obtain the scene generation requirements, and complete the scene generation requirements using a pre-set scene knowledge graph to obtain the scene generation task; The scene generation task is broken down into sub-tasks for scene generation. Each scene generation subtask is sent to the corresponding scene generation agent, so that each scene generation agent can generate scene elements. The initial scenario is obtained by summarizing the elements of each scenario. The initial scenario is then verified. Once the verification is successful, the final deployment scenario is obtained.

[0007] Optionally, the scenario knowledge graph includes network architecture template knowledge, attack technology mapping knowledge, asset vulnerability association knowledge, and industry compliance constraint knowledge. The scenario generation requirements are supplemented using the pre-defined scenario knowledge graph to obtain the scenario generation task, which includes: parsing the intent of the scenario generation requirements and extracting key entities, including network region type, node role, attack vector, and industry compliance constraints; retrieving corresponding types of knowledge from the scenario knowledge graph based on the key entities to obtain knowledge retrieval results; and performing constraint reasoning on the scenario generation requirements based on the knowledge retrieval results to supplement implicit requirements and obtain the scenario generation task.

[0008] Optionally, the scenario generation task is broken down into scenario generation sub-tasks, including: determining the functional classification of each scenario generation agent, where the functional classification includes topology generation, device configuration, traffic generation, vulnerability deployment, and monitoring configuration; horizontally splitting the scenario generation task according to each functional classification to obtain functional sub-tasks; sorting out the attack chain based on the scenario generation task, and vertically splitting the scenario generation task based on the attack chain to obtain scenario support sub-tasks; assigning each scenario support sub-task to the corresponding functional classification, merging it with the functional sub-tasks, deduplicating it, and refining its granularity to obtain each scenario generation sub-task.

[0009] Optionally, after breaking down the scene generation task into sub-tasks, the method further includes: sorting out the dependencies between the sub-tasks, where the dependencies include data dependencies and logical dependencies; and constructing a directed acyclic dependency graph with each sub-task as a node and the dependencies as directed edges.

[0010] Optionally, each scene generation subtask is sent to the corresponding scene generation agent, including: determining the pre-dependent conditions of each scene generation subtask based on the directed acyclic dependency graph; sending scene generation subtasks without pre-dependent conditions directly to the corresponding scene generation agent in parallel; and when a scene generation subtask has pre-dependent conditions, waiting for the pre-dependent conditions to be completed before sending the scene generation subtask to the corresponding scene generation agent.

[0011] Optionally, the initial scenario is verified. After the verification is passed, the final deployment scenario is obtained. This includes: performing progressive verification on the initial scenario, wherein the progressive verification is in the following order: structural integrity verification, connectivity logic verification, attack reproducibility verification, and temporal causality rationality verification. After the previous level of verification is passed, the next level of verification is entered. When all levels of progressive verification are passed, the final deployment scenario is obtained.

[0012] Optionally, the method also includes: during the progressive verification process, when any level of verification fails, locating the defective scene element and determining the target intelligent agent based on the defective scene element; generating a repair instruction based on the defective scene element and sending the repair instruction to the target intelligent agent for incremental repair until the verification passes.

[0013] According to another aspect of the present invention, a multi-agent scene generation apparatus is provided, the apparatus comprising: The scene generation requirement completion module is used to obtain scene generation requirements, and complete the scene generation requirements through a preset scene knowledge graph to obtain the scene generation task. The scene generation task splitting module is used to split the scene generation task into various scene generation sub-tasks. The scene element generation module is used to distribute each scene generation subtask to the corresponding scene generation agent, so that each scene generation agent can generate each scene element. The final deployment scenario generation module is used to aggregate all scenario elements to obtain the initial scenario, verify the initial scenario, and obtain the final deployment scenario after the verification is successful.

[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform a multi-agent scene generation method according to any embodiment of the present invention.

[0015] According to another aspect of the present invention, a computer storage medium is provided, the computer storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement a multi-agent scene generation method as described in any embodiment of the present invention.

[0016] The technical solution of this invention supplements scene generation requirements through a scene knowledge graph. It can automatically deduce implicit elements based on structured domain knowledge, improving the completeness and accuracy of requirement definitions. This transforms vague natural language requirements into structured tasks with complete elements and clear constraints, avoiding subsequent generation deviations caused by missing requirements. Decomposing the scene generation task clarifies the functional boundaries of each unit, providing a scheduling basis for multi-agent division of labor and improving task control accuracy. Distributing sub-tasks to corresponding agents to generate scene elements in parallel allows for collaboration among specialized agents, shortening the overall generation cycle while ensuring the professionalism and configuration accuracy of each scene element. Summarizing and verifying the elements yields the final deployment scene, effectively screening and correcting scene defects, ensuring the structural integrity, logical rationality, and practical usability of the output scene.

[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

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

[0019] Figure 1 This is a flowchart of a multi-agent scene generation method provided in Embodiment 1 of the present invention; Figure 2 This is a flowchart of another multi-agent scene generation method provided in Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the structure of a multi-agent scene generation device according to Embodiment 3 of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements a multi-agent scene generation method according to an embodiment of the present invention. Detailed Implementation

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

[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0022] Example 1 Figure 1 This is a flowchart of a multi-agent scene generation method provided in Embodiment 1 of the present invention. This embodiment is applicable to the construction of network security test range scenarios and is implemented based on a three-layer hierarchical multi-agent architecture, covering the collaborative operation of the planning layer, execution layer, and quality assurance layer. This method can be executed by a multi-agent scene generation device, which can be implemented in hardware and / or software and can be configured in a computer controller. Figure 1 As shown, the method includes: S110. Obtain scene generation requirements, and complete the scene generation requirements through a preset scene knowledge graph to obtain the scene generation task.

[0023] The scenario generation requirement refers to the original input for scenario generation. This requirement can be a training objective described by the user in natural language, including preliminary information such as scenario scale, attack type, industry attributes, and training objectives. For example, a typical scenario generation requirement is the user input: "Generate a medium-sized enterprise network testbed scenario, simulating the entire process of an attacker gaining initial privileges through a phishing email, using the internal network MS17-010 vulnerability for lateral movement, and ultimately stealing domain controller credentials." This embodiment uses this scenario as a specific implementation example, hereinafter referred to as this example scenario, to elaborate on the execution logic of each step. The scenario knowledge graph refers to a professional knowledge base with pre-built structured network security scenario knowledge. It supports requirement completion and constraint reasoning, and has built-in constraint reasoning capabilities, allowing for the derivation of implicit requirements based on structured knowledge. The scenario generation task refers to the structured and complete overall scenario generation objective formed after the original scenario generation requirement is completed through intent parsing, entity extraction, and knowledge graph constraint reasoning. It includes all core elements such as clear network partitions, node roles, attack chains, and compliance requirements, and serves as the baseline input for subsequent task decomposition.

[0024] Optionally, the scenario knowledge graph includes network architecture template knowledge, attack technology mapping knowledge, asset vulnerability association knowledge, and industry compliance constraint knowledge. The scenario generation requirements are supplemented using the pre-defined scenario knowledge graph to obtain the scenario generation task, which includes: parsing the intent of the scenario generation requirements and extracting key entities, including network region type, node role, attack vector, and industry compliance constraints; retrieving corresponding types of knowledge from the scenario knowledge graph based on the key entities to obtain knowledge retrieval results; and performing constraint reasoning on the scenario generation requirements based on the knowledge retrieval results to supplement implicit requirements and obtain the scenario generation task.

[0025] Among these, network architecture template knowledge refers to typical network architecture templates covering various industries such as finance, energy, government affairs, and manufacturing, including network partitioning rules, node type requirements, and connection constraints. Attack technique mapping knowledge is organized according to the Adversarial Tactics, Techniques & Common Knowledge (MITRE ATT&CK) framework, mapping various attack techniques to the required network environment, vulnerability tools, traffic characteristics, and other elements. Asset vulnerability association knowledge, i.e., device-vulnerability-exploitation triplet knowledge, is used to establish the association between device type, known common vulnerability disclosures (CVEs), and corresponding exploitation methods, ensuring the actual exploitability of vulnerabilities in the generated scenarios. Industry compliance constraint knowledge consists of industry-specific network architecture compliance rules, such as the requirement for an independent core area in the financial industry and the requirement for security partitioning in the power industry, used to constrain the compliance of the generated scenarios.

[0026] Specifically, the first step is to perform intent parsing on the scenario generation requirements, which are the original training objectives input by the user in natural language. Scenario generation requirements typically only contain core training needs and lack complete configuration elements. Intent parsing refers to the process of semantic understanding and core information extraction from the user's input requirements, extracting key entities for the scenario. Key entities are a set of core elements that define the core attributes of the scenario, specifically including four categories: network zone type, node roles, attack vectors, and industry compliance constraints. Network zone types include different functional network partition categories such as Demilitarized Zone (DMZ), intranet zone, core zone, and isolation zone. Node roles refer to device roles with different functions, such as web servers, domain controllers, database clusters, and firewalls. In this example scenario, node roles such as Exchange mail server, Windows terminal, domain controller, and three boundary firewalls can be extracted. The three firewalls are named FW1, FW2, and FW3 in the deployment order from the outside in, corresponding to the boundary isolation between the external zone and the DMZ zone, the DMZ zone and the intranet office area, and the intranet office area and the management zone, respectively. Attack vectors refer to elements related to the attack chain, such as the initial access method, vulnerability type, lateral movement path, and final attack target. In this example scenario, attack vectors such as phishing email initial access, lateral movement due to the MS17-010 vulnerability, and domain controller credential theft can be extracted. Industry compliance constraints refer to the cybersecurity compliance requirements that a corresponding industry must meet. In this example scenario, compliance constraints such as the requirement for a domain environment within the enterprise intranet and physical isolation between the DMZ and the intranet zone can be extracted.

[0027] Furthermore, based on the extracted key entities of the scenario, corresponding types of knowledge can be retrieved from the scenario knowledge graph to obtain knowledge retrieval results. This includes matching corresponding network architecture templates based on network region type, matching corresponding attack technology mapping relationships based on attack vectors, matching corresponding asset vulnerability association information based on node roles, and matching corresponding compliance constraint rules based on industry attributes. In this example scenario, after the planning layer agent retrieves the scenario knowledge graph, it can match a three-tier enterprise network architecture template, a complete attack chain template from phishing emails to domain controller credential theft, the association between Exchange servers and corresponding vulnerabilities, the association between Windows terminals and the MS17-010 vulnerability, and enterprise network domain environment compliance rules, among other things. Finally, constraint reasoning is performed on the scenario generation requirements based on the knowledge retrieval results. Constraint reasoning refers to the process of deriving implicit elements that are not explicitly stated in the user requirements but are essential to the scenario, based on the structured rules in the knowledge graph. This supplements the implicit requirements missing in the user description, ultimately forming a scenario generation task with complete elements and clear constraints. The scenario generation task, after completion, is a structured overall goal with complete scenario elements, serving as the benchmark for subsequent task decomposition and execution. For example, when a user inputs a requirement to simulate a ransomware attack, constraint reasoning can be used to deduce implicit requirements such as a phishing email entry point, a Windows domain environment, a Server Message Block (SMB) lateral movement channel, and a file-sharing server as an encryption target. This transforms the initially vague requirement into a complete, executable task. In this example scenario, constraint reasoning can be used to complete implicit configuration requirements such as a three-layer firewall deployment, endpoint patch versions, and attack traffic timing, forming a complete scenario generation task.

[0028] S120. The scene generation task is broken down into sub-tasks for each scene generation task.

[0029] The scene generation subtask refers to the smallest executable unit obtained by breaking down the overall scene generation task according to functional dimensions, such as topology generation, device configuration, vulnerability deployment, and traffic generation. There are data dependencies between subtasks, and the execution order is defined by a directed acyclic dependency graph. Subtasks without dependencies can be executed in parallel, thereby improving the overall generation efficiency.

[0030] Optionally, the scenario generation task is broken down into scenario generation sub-tasks, including: determining the functional classification of each scenario generation agent, where the functional classification includes topology generation, device configuration, traffic generation, vulnerability deployment, and monitoring configuration; horizontally splitting the scenario generation task according to each functional classification to obtain functional sub-tasks; sorting out the attack chain based on the scenario generation task, and vertically splitting the scenario generation task based on the attack chain to obtain scenario support sub-tasks; assigning each scenario support sub-task to the corresponding functional classification, merging it with the functional sub-tasks, deduplicating it, and refining its granularity to obtain each scenario generation sub-task.

[0031] The functional classification is based on the responsibilities of the intelligent agents, specifically including topology generation, device configuration, traffic generation, vulnerability deployment, and monitoring configuration. The topology generation agent is responsible for network topology, subnetting, and link and routing design. The device configuration agent is responsible for the system and service configuration of various servers, terminals, and network devices. The traffic generation agent is responsible for generating scripts for attack and background traffic. The vulnerability deployment agent is responsible for setting up vulnerability environments and configuring exploit scripts. The monitoring configuration agent is responsible for configuring elements such as logs and security monitoring rules.

[0032] Specifically, the functional classification of the intelligent agents generating each scenario is first determined, and the responsibilities and output types of various intelligent agents at the execution layer are clearly defined in advance. This provides a clear classification basis for task decomposition, ensuring that the decomposed sub-tasks can accurately match the execution capabilities of the corresponding intelligent agents. Then, the scenario generation tasks are horizontally decomposed according to their functional classifications. This means that the overall task is flattened according to functional dimensions, and the content corresponding to different functional modules in the overall task is separated to obtain sub-tasks of various functional categories. For example, the overall network topology design is classified as a topology generation sub-task, the system and service configuration of various devices is classified as a device configuration sub-task, and the creation of attack and background traffic scripts is classified as a traffic generation sub-task, thus initially forming a sub-task framework divided by function. After this, the attack chain is analyzed based on the scenario generation tasks. The attack chain is the complete attack execution path, covering the entire attack process from initial access, privilege escalation, lateral movement, to the final goal achievement. Then, the scenario generation tasks are vertically decomposed based on the attack chain. This means that along the temporal sequence and dependency logic of the attack chain, the scenario elements required to support each attack action are decomposed to obtain the supporting sub-tasks for each scenario. For example, corresponding to the steps of a phishing email attack, supporting subtasks such as email server configuration and phishing traffic generation are broken down. Similarly, corresponding to the lateral movement attack steps, supporting subtasks such as vulnerability deployment and internal network connectivity rule configuration are broken down, ensuring that each attack chain has corresponding scenario elements for execution support. In this example scenario, vertically splitting along the attack chain yields supporting subtasks distributed along the chain, such as phishing email environment deployment, MS17-010 vulnerability deployment, and domain controller attack support configuration. Finally, each scenario's supporting subtask is categorized into its corresponding functional class. Based on the functional attributes of the subtasks, the vertically split supporting subtasks are matched to their corresponding functional categories, and then merged, deduplicated, and refined in granularity with the previously horizontally split functional subtasks. Merging refers to integrating subtasks with similar content within the same function; deduplication refers to eliminating redundant subtasks with overlapping content; and refining in granularity refers to further breaking down overly coarse-grained subtasks into directly executable atomic-level tasks. Ultimately, all scenario generation subtasks are obtained. In this example scenario, multiple atomic subtasks can be obtained, including topology generation, DMZExchange server configuration, intranet terminal configuration, domain controller configuration, firewall rule configuration, attack traffic generation, and background traffic generation.

[0033] Optionally, after breaking down the scene generation task into sub-tasks, the method further includes: sorting out the dependencies between the sub-tasks, where the dependencies include data dependencies and logical dependencies; and constructing a directed acyclic dependency graph with each sub-task as a node and the dependencies as directed edges.

[0034] Dependency relationships are the execution constraints between different subtasks, categorized into data dependencies and logical dependencies. Data dependencies mean that the execution of a downstream subtask requires specific data output from an upstream subtask as input; without the corresponding upstream output, the downstream task cannot complete accurately. Logical dependencies refer to the inherent logical order of execution between subtasks, independent of specific data and determined by the objective process generated by the scenario. A directed acyclic dependency graph (DAG) is a graph structure where nodes represent independent tasks, directed edges represent dependencies between tasks, and there are no cyclic dependency paths. It is used to clearly define the execution order and parallelizable scope of tasks.

[0035] Specifically, the process begins by meticulously analyzing the dependencies between the subtasks generated in each scenario, distinguishing between data dependencies and logical dependencies. In terms of data dependencies, the source of input data for each subtask is verified, clarifying which subtasks' outputs are necessary inputs for other subtasks. For example, device configuration subtasks require the subnetting results and IP address pool information output by topology generation subtasks as the basis for device IP configuration; traffic generation subtasks require the link information generated by topology generation, the IP and port information configured by devices, and the rule information configured by firewalls as the foundation for writing traffic scripts; and vulnerability deployment subtasks require the device system version information output by device configuration subtasks to match the corresponding vulnerability environment. In terms of logical dependencies, the objective process logic of scenario generation is analyzed, clarifying the execution order of subtasks. For example, the basic network topology must be built first before device configuration of each node; device configuration of nodes within all regions must be completed before configuring cross-region firewall access rules to avoid rules pointing to non-existent nodes. After clarifying all dependencies, each scenario-generated subtask is treated as an independent node in the graph structure. The identified dependencies are represented as directed edges between nodes, with the edges pointing from the upstream subtask to the downstream subtask. Simultaneously, the graph structure is verified to prevent closed loops of cyclic dependencies, ensuring all dependencies are unidirectional and progressive. This ultimately constructs a directed acyclic dependency graph. This graph clearly identifies subtasks without dependencies that can be executed in parallel by their corresponding agents, while subtasks with dependencies must be executed strictly in sequence. This provides a clear basis for task scheduling among multiple agents in the subsequent execution layer, ensuring the orderly execution of multiple agents in parallel and avoiding configuration conflicts and execution errors caused by missing dependencies.

[0036] S130. Distribute each scene generation subtask to the corresponding scene generation agent, so that each scene element can be generated through each scene generation agent.

[0037] The scene generation agent is a role-specific agent in the execution layer, an independent execution unit optimized for a single scene element type. Scene elements refer to the independent scene components output by each scene generation agent after executing its corresponding sub-task; these are the basic units that constitute a complete target range scene, such as network topology descriptions, device configuration file sets, traffic generation scripts, vulnerability environment packages, and monitoring rule configurations. Furthermore, real-time global state synchronization can be achieved during execution through a shared scene state model. The shared scene state model is the core carrier of global state consistency in the execution layer, maintaining a global state field set for the entire scene and using an event bus to achieve real-time state push synchronization, resolving configuration conflict issues in the parallel execution of multiple agents.

[0038] Optionally, each scene generation subtask is sent to the corresponding scene generation agent, including: determining the pre-dependent conditions of each scene generation subtask based on the directed acyclic dependency graph; sending scene generation subtasks without pre-dependent conditions directly to the corresponding scene generation agent in parallel; and when a scene generation subtask has pre-dependent conditions, waiting for the pre-dependent conditions to be completed before sending the scene generation subtask to the corresponding scene generation agent.

[0039] Among them, the prerequisite dependency conditions refer to the set of upstream subtasks that must be completed before a certain subtask can be started and executed. The output data of the upstream subtasks is a necessary input for the execution of the downstream subtasks. All upstream outputs must be synchronized to the shared scenario state model before they can be considered as the completion of the dependency conditions.

[0040] Specifically, firstly, based on the directed acyclic dependency graph, the incoming edge connections of each subtask are analyzed one by one to determine all the prerequisite dependencies for each scenario-generated subtask, distinguishing between starting subtasks without upstream dependencies and non-starting subtasks with one or more upstream dependencies. For example, in the implementation scenario of phishing email lateral penetration, the topology generation subtask has no upstream dependencies, while the prerequisite dependency of the multi-device configuration subtask is the topology generation subtask, and the prerequisite dependencies of the traffic generation subtask include multiple subtasks such as topology generation, multi-device configuration, and firewall configuration. Then, the scenario-generated subtasks without prerequisite dependencies are selected as the first batch of execution tasks and directly distributed in parallel to the corresponding scenario-generating agents. These subtasks are usually infrastructure-level tasks of the scenario and can be executed independently without relying on the output of other tasks. Parallel distribution can fully utilize the parallel execution capabilities of multiple agents and shorten the overall generation cycle. For example, the topology generation subtask will be distributed to the topology generation agent first to start subnetting, link definition, routing planning, and other work, and the generated topology information will be synchronously written into the shared scenario state model. When a scenario generation subtask has prerequisite dependencies, the system monitors the execution progress and status updates of all prerequisite subtasks in real time through a shared scenario state model. Only when all prerequisite dependencies for the subtask have been completed, and global state data such as IP allocation, device identification, interface parameters, and firewall rules generated by upstream tasks have been synchronized and updated to the shared state model, will the scenario generation subtask be officially distributed to the corresponding scenario generation agent for execution. This ensures that downstream agents can read complete and accurate upstream data, avoiding configuration conflicts and invalid references caused by incomplete dependencies or incomplete data. For example, device configuration subtasks will only be distributed after the topology generation subtask is completed and the subnet and IP address pool information is synchronized; traffic generation subtasks will only start execution after the topology, device configuration, and firewall rules are all completed, ensuring that the entire multi-agent execution process is orderly and that global data is consistent.

[0041] Furthermore, during execution, the shared scenario state model maintains five core global state fields: IP address allocation table, device namespace, domain name and DNS records, firewall rule number space, and interface and link identifiers. When any executing agent performs a write operation on any global state field, the shared scenario state model generates a corresponding state update event through the internal event bus and pushes it to all agents that have subscribed to that field in real time. This event-driven push model replaces the traditional polling pull model, eliminating read / write conflicts and update latency issues at the source. In this example scenario, when the topology generation agent divides the DMZ into 10.0.1.0 / 24, the intranet area into 10.0.2.0 / 24, and the management area into 10.0.3.0 / 24, and defines cross-area boundary links—connecting the external area and the demilitarized zone via FW1, the demilitarized zone and the intranet office area via FW2, and the intranet office area and the management area via FW3—and writes all the topology information into the shared scenario state model, the model automatically triggers a subnet change event. All device configuration agents and traffic generation agents subscribed to this event update their internal IP planning data in real time to ensure that subsequent Exchange server configurations and attack traffic scripts use a unified IP address range, avoiding IP conflicts or inconsistent references. After completing their subtasks, each agent outputs the corresponding scenario elements and synchronizes their state to the shared scenario state model. For example, the topology generation agent outputs a topology map description file, the device configuration agent outputs the system and service configuration file sets for each node, the traffic generation agent outputs attack traffic scripts and background traffic scripts, and the vulnerability deployment agent outputs a vulnerability environment package and exploit scripts.

[0042] S140. Summarize the elements of each scenario to obtain the initial scenario, verify the initial scenario, and obtain the final deployment scenario after the verification is successful.

[0043] The initial scenario refers to the complete prototype of the target range scenario formed by integrating all scenario elements, covering all scenario components such as network topology, device configuration, vulnerability environment, and traffic scripts. This version of the scenario has not yet undergone quality verification and may have potential defects such as IP address conflicts, missing firewall rules, and unreachable attack paths. The final deployment scenario refers to the final product that has been converted into a standard format compatible with the target range platform and can be directly deployed after the initial scenario has undergone progressive multi-level verification and automatic repair closed loop, and all verification items have passed.

[0044] The technical solution of this invention supplements scene generation requirements through a scene knowledge graph. It can automatically deduce implicit elements based on structured domain knowledge, improving the completeness and accuracy of requirement definitions. This transforms vague natural language requirements into structured tasks with complete elements and clear constraints, avoiding subsequent generation deviations caused by missing requirements. Decomposing the scene generation task clarifies the functional boundaries of each unit, providing a scheduling basis for multi-agent division of labor and improving task control accuracy. Distributing sub-tasks to corresponding agents to generate scene elements in parallel allows for collaboration among specialized agents, shortening the overall generation cycle while ensuring the professionalism and configuration accuracy of each scene element. Summarizing and verifying the elements yields the final deployment scene, effectively screening and correcting scene defects, ensuring the structural integrity, logical rationality, and practical usability of the output scene.

[0045] Example 2 Figure 2 This is a flowchart of a multi-agent scene generation method provided in Embodiment 2 of the present invention. This embodiment adds a verification process to the initial scene based on Embodiment 1. After successful verification, the final deployment scene is obtained. The specific content of steps S210-S230 is largely the same as steps S110-S130 in Embodiment 1, and therefore will not be repeated in this embodiment. Figure 2 As shown, the method includes: S210. Obtain scene generation requirements, and complete the scene generation requirements using a preset scene knowledge graph to obtain the scene generation task.

[0046] Optionally, the scenario knowledge graph includes network architecture template knowledge, attack technology mapping knowledge, asset vulnerability association knowledge, and industry compliance constraint knowledge. The scenario generation requirements are supplemented using the pre-defined scenario knowledge graph to obtain the scenario generation task, which includes: parsing the intent of the scenario generation requirements and extracting key entities, including network region type, node role, attack vector, and industry compliance constraints; retrieving corresponding types of knowledge from the scenario knowledge graph based on the key entities to obtain knowledge retrieval results; and performing constraint reasoning on the scenario generation requirements based on the knowledge retrieval results to supplement implicit requirements and obtain the scenario generation task.

[0047] S220. The scene generation task is broken down into sub-tasks for each scene generation task.

[0048] Optionally, the scenario generation task is broken down into scenario generation sub-tasks, including: determining the functional classification of each scenario generation agent, where the functional classification includes topology generation, device configuration, traffic generation, vulnerability deployment, and monitoring configuration; horizontally splitting the scenario generation task according to each functional classification to obtain functional sub-tasks; sorting out the attack chain based on the scenario generation task, and vertically splitting the scenario generation task based on the attack chain to obtain scenario support sub-tasks; assigning each scenario support sub-task to the corresponding functional classification, merging it with the functional sub-tasks, deduplicating it, and refining its granularity to obtain each scenario generation sub-task.

[0049] Optionally, after breaking down the scene generation task into sub-tasks, the method further includes: sorting out the dependencies between the sub-tasks, where the dependencies include data dependencies and logical dependencies; and constructing a directed acyclic dependency graph with each sub-task as a node and the dependencies as directed edges.

[0050] S230. Distribute each scene generation subtask to the corresponding scene generation agent, so that each scene element can be generated through each scene generation agent.

[0051] Optionally, each scene generation subtask is sent to the corresponding scene generation agent, including: determining the pre-dependent conditions of each scene generation subtask based on the directed acyclic dependency graph; sending scene generation subtasks without pre-dependent conditions directly to the corresponding scene generation agent in parallel; and when a scene generation subtask has pre-dependent conditions, waiting for the pre-dependent conditions to be completed before sending the scene generation subtask to the corresponding scene generation agent.

[0052] S240. Summarize the elements of each scene to obtain the initial scene.

[0053] The initial scenario refers to the complete target range scenario prototype formed by summarizing various scenario elements after all scenario-generating agents have completed their corresponding sub-tasks. It covers all components such as network topology, device configuration, vulnerability environment, and traffic scripts. It has not yet undergone quality verification and may have potential defects such as configuration conflicts and unreachable paths.

[0054] S250. Perform progressive verification on the initial scenario. The progressive verification includes structural integrity verification, connectivity logic verification, attack reproducibility verification, and temporal causal rationality verification. After the previous level of verification is passed, proceed to the next level of verification.

[0055] The progressive verification mechanism, employed at the quality assurance layer, employs a four-level, progressively deepening verification process. It advances verification in layers, from static structure to dynamic operation, and from basic configuration to attack and defense logic. Only after passing the previous level can the next level be implemented. This allows for early interception of fundamental defects and reduces the ineffective execution of high-cost verification steps. Structural integrity verification (Level 1) is a static structure verification layer, primarily checking the integrity and consistency of scenario elements. Connectivity logic verification (Level 2) is a network logic verification layer, primarily verifying network connectivity and the rationality of rules. Attack reproducibility verification (Level 3) is a runtime practical verification layer, primarily verifying the actual attack and defense availability of the scenario. Temporal causality verification (Level 4) is a temporal logic verification layer, primarily verifying the temporal causal rationality of attacks and traffic.

[0056] Specifically, a progressive verification process is initiated for the initial scenario, starting with structural integrity verification. This involves a combination of structural traversal and pattern validation to check the reachability of all node references, the completeness of various configuration files, and the consistency of interface and link definitions. This confirms that there are no fundamental structural gaps or dangling references in the scenario. In this example scenario, L1 verification checks the completeness of configuration files for all 12 nodes, the consistency of all link and interface definitions, and the global uniqueness of node names. Once no missing items or dangling references are confirmed, this level of verification passes, and the connectivity logic verification phase begins. The connectivity logic verification performs path satisfiability calculations based on the initial scenario's topology and firewall rules. It verifies hop-by-hop reachability of expected attack paths, the existence of conflicting firewall rules, and the consistency of subnetting and routing table configurations. This confirms that there are no connectivity obstacles or rule contradictions at the network logic level. In this example scenario, L2 verification needs to check the connectivity of the entire attack path hop-by-hop, from the external attacker to the Exchange server, from the internal network terminal to other terminals, and from the internal network terminal to the domain controller. It also checks for firewall rule conflicts and whether the routing table matches the subnetting. After successful verification, the attack reproducibility verification phase begins. Attack reproducibility verification deploys a core subset of the initial scenario's functionalities in an isolated sandbox, eliminating the need to deploy the full scenario to improve verification efficiency. It executes verification steps step-by-step according to the preset attack chain, confirming that the vulnerability environment is accurately deployed, the exploit script can be successfully triggered, and that post-penetration steps such as privilege escalation, lateral movement, and persistence can be executed correctly. This verifies that the scenario has real attack and defense training value, rather than just being correctly configured on paper. In this example scenario, L3 verification is performed on a subset of scenarios where an Exchange server, internal network terminal, domain controller, and firewall are deployed in an isolated sandbox. Following a pre-defined attack chain, four steps are executed sequentially: Simple Mail Transfer Protocol (SMTP) phishing email delivery, malicious macro-triggered reverse shell, MS17-010 vulnerability exploit for privilege acquisition, and MimikatzDCSync for domain credential theft. The attack effectiveness is verified step by step. If all steps are successfully executed, the verification passes, and the process proceeds to the temporal and causal plausibility verification stage. This temporal and causal plausibility verification checks temporal constraints and causal consistency to verify whether the complete timeline of the attack events conforms to the causal logic of attack and defense, and whether the interleaved distribution of attack traffic and normal background traffic conforms to the operating rules of a real network. This avoids issues such as reversed attack sequence or traffic distribution that does not conform to business logic. In this example scenario, L4 verification examines the causal sequence of the attack traffic timeline: T+0s phishing delivery, T+300s reverse shell establishment, T+900s lateral scanning exploitation, and T+1500s credential theft. It also verifies that the interleaved distribution of attack traffic and background traffic conforms to the traffic characteristics of daily office work in an enterprise. After confirming that there are no time-series anti-causal issues, the verification is passed.

[0057] Optionally, the method also includes: during the progressive verification process, when any level of verification fails, locating the defective scene element and determining the target intelligent agent based on the defective scene element; generating a repair instruction based on the defective scene element and sending the repair instruction to the target intelligent agent for incremental repair until the verification passes.

[0058] In this context, "defective scenario elements" refer to specific scenario components found to have problems during the verification process. Examples include firewall configurations with missing rules, nodes with address conflicts, and vulnerability environments that cannot be successfully exploited; these are the targets for remediation operations. "Target agent" refers to the corresponding execution agent responsible for generating the defective scenario element. For example, a firewall rule defect corresponds to a device configuration agent, and an unexploitable vulnerability corresponds to a vulnerability deployment agent. "Remediation instructions" are standardized, structured remediation guidelines output by the quality assurance agent, containing three core elements: defect location identifiers, defect type classifications, and parameterized remediation operations. These instructions can be directly recognized and executed by the execution agent. "Incremental remediation" refers to modifying and adjusting only the defective scenario components while retaining all verified, healthy components. This eliminates the need to regenerate the entire scenario's remediation pattern, significantly reducing repetitive work and improving remediation efficiency.

[0059] Specifically, in the progressive verification process, when any level of verification fails, the quality assurance agent first precisely locates the corresponding defective scenario element, clarifying the specific location of the defect, such as the specific node number, configuration item path, traffic time node, etc. Simultaneously, based on the functional type of the defective scenario element, it matches and determines the target agent responsible for generating that element. In this example scenario, if it is detected that the internal firewall FW2 is not allowing SMB traffic, causing lateral movement path blockage, the defective element is located as the corresponding firewall's forwarding rule configuration, and the target agent is determined to be the firewall configuration agent in the device configuration class. Then, based on the specific problem of the defective scenario element, the quality assurance agent generates standardized structured repair instructions. These instructions include a unique defect identifier, precise defect location, clear defect classification such as IP conflict, missing rule, unexploitable vulnerability, unreachable route, and time-series reverse causality, as well as parameterized specific repair operations. For example, adding Transmission Control Protocol (TCP) port allow rules for specified source and destination network segments, correcting conflicting IP address allocations, and supplementing corresponding exploit scripts; in this example scenario, the repair instructions include the defect number, firewall identifier and rule chain location, rule missing category, and parameterized operation instructions to allow SMB traffic on the internal network segment. Then, the repair instructions are directly sent to the corresponding target agent. After receiving the instructions, the target agent performs incremental repair, modifying only the defective components while retaining all verified scenario elements unchanged, without needing to regenerate the complete scenario. For example, only adding SMB allow rules to the forwarding rules of FW2, without changing the original topology, device configuration, or other firewall rules. After the repair is completed, the updated scene elements are resubmitted to the quality assurance layer, and the verification is restarted from the current failed verification level. This process is repeated iteratively. At the same time, the system will set a maximum number of iterations and a loop detection mechanism. For example, the maximum number of iterations is set to 5. When the same defect occurs repeatedly and exceeds the set threshold, an abnormal alarm is triggered to avoid the verification and repair loop from getting stuck in an infinite loop. This process continues until all progressive verifications at all levels are passed, and finally a qualified final deployment scene is formed.

[0060] S260. After all levels of progressive verification have passed, the final deployment scenario is obtained.

[0061] The final deployment scenario refers to the final scenario product that has passed full verification and has been converted into a standard format compatible with the test range platform, and can be directly deployed and run.

[0062] Specifically, after all four progressive verifications—structural integrity verification, connectivity logic verification, attack reproducibility verification, and temporal causality verification—are passed, the set of scenario elements is converted into target range standard formats such as YAML (Ain't Markup Language) topology descriptions, container orchestration files, configuration management scripts, traffic data packets, and attack script packages. This results in a final deployment scenario that can be directly deployed and used, and can be directly imported into the corresponding cybersecurity target range platform for deployment and online launch.

[0063] The technical solution of this invention employs a progressive verification mechanism, performing step-by-step verification from static structure to dynamic operation. This allows for early interception of basic configuration defects, reducing the ineffective execution of high-cost verification steps, and comprehensively covering multi-dimensional quality verification of structural integrity, connectivity logic, attack reproduction, and temporal causality. When verification fails, the defective element and its corresponding target agent can be precisely located, generating structured repair instructions for incremental repair without requiring a full regeneration of the scenario. This significantly improves defect repair efficiency, forming an automatic closed loop for verification and repair, effectively ensuring the practical usability and delivery quality of the final deployment scenario.

[0064] Example 3 Figure 3 This is a schematic diagram of the structure of a multi-agent scene generation device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a scene generation requirement completion module 310, which is used to obtain scene generation requirements, complete the scene generation requirements through a preset scene knowledge graph, and obtain a scene generation task; The scene generation task splitting module 320 is used to split the scene generation task into various scene generation sub-tasks. The scene element generation module 330 is used to distribute each scene generation subtask to the corresponding scene generation intelligent agent so that each scene element can be generated by each scene generation intelligent agent. The final deployment scenario generation module 340 is used to summarize the various scenario elements to obtain the initial scenario, verify the initial scenario, and obtain the final deployment scenario after the verification is successful.

[0065] Optionally, the scenario knowledge graph includes network architecture template knowledge, attack technology mapping knowledge, asset vulnerability association knowledge, and industry compliance constraint knowledge. The scenario generation requirement completion module 310 is specifically used for: performing intent parsing on the scenario generation requirements, extracting key entities of the scenario, including network area type, node role, attack vector, and industry compliance constraints; retrieving knowledge of the corresponding type from the scenario knowledge graph based on the key entities of the scenario to obtain knowledge retrieval results; and performing constraint reasoning on the scenario generation requirements based on the knowledge retrieval results to supplement implicit requirements and obtain the scenario generation task.

[0066] Optionally, the scenario generation task splitting module 320 is specifically used for: determining the functional classification of each scenario generation agent, wherein the functional classification includes topology generation, device configuration, traffic generation, vulnerability deployment, and monitoring configuration; horizontally splitting the scenario generation task according to each functional classification to obtain sub-tasks of each functional category; sorting out the attack chain based on the scenario generation task, and vertically splitting the scenario generation task based on the attack chain to obtain sub-tasks supporting each scenario; assigning each sub-task supporting the scenario to the corresponding functional classification, merging it with the sub-tasks of each functional category, deduplicating it, and refining its granularity to obtain sub-tasks generating each scenario.

[0067] Optionally, the device also includes: a directed acyclic dependency graph construction module, used to sort out the dependency relationships between the scene generation sub-tasks after splitting the scene generation task into each scene generation sub-task, wherein the dependency relationships include data dependency and logical dependency; and to construct a directed acyclic dependency graph by taking each scene generation sub-task as a node and the dependency relationships as directed edges.

[0068] Optionally, the scene element generation module 330 is specifically used for: determining the pre-dependent conditions of each scene generation subtask based on the directed acyclic dependency graph; directly and in parallel distributing scene generation subtasks without pre-dependent conditions to the corresponding scene generation agents; and when a scene generation subtask has pre-dependent conditions, waiting for the pre-dependent conditions to be completed before distributing the scene generation subtask to the corresponding scene generation agent.

[0069] Optionally, the final deployment scenario generation module 340 is specifically used to: perform progressive verification on the initial scenario, wherein the progressive verification is in the following order: structural integrity verification, connectivity logic verification, attack reproducibility verification, and temporal causal rationality verification. After the previous level of verification is passed, the next level of verification is entered; when all levels of progressive verification are passed, the final deployment scenario is obtained.

[0070] Optionally, the device also includes an incremental repair module, used to: locate the defective scene element when any level of verification fails during the progressive verification process, and determine the target intelligent agent based on the defective scene element; generate a repair instruction based on the defective scene element, and send the repair instruction to the target intelligent agent for incremental repair until the verification is passed.

[0071] The technical solution of this invention supplements scene generation requirements through a scene knowledge graph. It can automatically deduce implicit elements based on structured domain knowledge, improving the completeness and accuracy of requirement definitions. This transforms vague natural language requirements into structured tasks with complete elements and clear constraints, avoiding subsequent generation deviations caused by missing requirements. Decomposing the scene generation task clarifies the functional boundaries of each unit, providing a scheduling basis for multi-agent division of labor and improving task control accuracy. Distributing sub-tasks to corresponding agents to generate scene elements in parallel allows for collaboration among specialized agents, shortening the overall generation cycle while ensuring the professionalism and configuration accuracy of each scene element. Summarizing and verifying the elements yields the final deployment scene, effectively screening and correcting scene defects, ensuring the structural integrity, logical rationality, and practical usability of the output scene.

[0072] The multi-agent scene generation device provided in this embodiment of the invention can execute a multi-agent scene generation method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0073] Example 4 Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0074] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) or random access memory (RAM), communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from the storage unit 18. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. Input / output (I / O) interfaces are also connected to the bus 14.

[0075] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0076] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a multi-agent scene generation method.

[0077] In some embodiments, a multi-agent scene generation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the multi-agent scene generation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a multi-agent scene generation method by any other suitable means (e.g., by means of firmware).

[0078] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0079] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0080] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0081] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0082] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0083] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0084] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0085] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for generating multi-agent scenes, characterized in that, include: Obtain the scene generation requirements, and complete the scene generation requirements using a preset scene knowledge graph to obtain the scene generation task; The scene generation task is broken down into sub-tasks for scene generation. Each of the aforementioned scene generation subtasks is sent to the corresponding scene generation intelligent agent, so that each scene element can be generated through the aforementioned scene generation intelligent agent; The initial scenario is obtained by summarizing the elements of each scenario. The initial scenario is then verified. Once the verification is successful, the final deployment scenario is obtained.

2. The method according to claim 1, characterized in that, The scenario knowledge graph includes network architecture template knowledge, attack technique mapping knowledge, asset vulnerability association knowledge, and industry compliance constraint knowledge. The scenario generation task is obtained by supplementing the scenario generation requirements using the pre-set scenario knowledge graph, including: The intent of the scenario generation requirement is parsed to extract key entities of the scenario, including network area type, node role, attack vector and industry compliance constraints. Based on the key entities of the scenario, knowledge of the corresponding type in the scenario knowledge graph is retrieved to obtain knowledge retrieval results; Based on the knowledge retrieval results, constraint reasoning is performed on the scene generation requirements to supplement implicit requirements and obtain the scene generation task.

3. The method according to claim 1, characterized in that, The process of breaking down the scene generation task into sub-tasks includes: The functional classification of each scenario-generating intelligent agent is determined, wherein the functional classification includes topology generation, device configuration, traffic generation, vulnerability deployment, and monitoring configuration. The scene generation task is horizontally divided according to the functional categories to obtain sub-tasks of each functional category. Based on the scenario generation task, the attack chain is sorted out, and based on the attack chain, the scenario generation task is vertically split to obtain the supporting sub-tasks for each scenario. Each scenario support subtask is assigned to a corresponding functional category, and then merged, deduplicated, and refined in granularity with each functional category subtask to obtain the scenario generation subtask.

4. The method according to claim 3, characterized in that, After breaking down the scene generation task into sub-tasks, the method further includes: The dependencies between the subtasks generated in each scenario are identified, including data dependencies and logical dependencies. By treating the subtasks generated in each scenario as nodes and the dependencies as directed edges, a directed acyclic dependency graph is constructed.

5. The method according to claim 4, characterized in that, The step of distributing each of the scene generation subtasks to the corresponding scene generation agent includes: Based on the directed acyclic dependency graph, the prerequisite dependency conditions for generating subtasks in each scenario are determined respectively; The scene generation subtasks without any prerequisites are directly and in parallel distributed to the corresponding scene generation agents. When the scene generation subtask has prerequisite dependencies, wait for the prerequisite dependencies to be completed before sending the scene generation subtask to the corresponding scene generation agent.

6. The method according to claim 1, characterized in that, The initial scenario is verified, and upon successful verification, the final deployment scenario is obtained, including: The initial scenario is subjected to progressive verification, which consists of structural integrity verification, connectivity logic verification, attack reproducibility verification, and temporal causal rationality verification. The next level of verification is performed after the previous level of verification is passed. Once all levels of progressive verification have passed, the final deployment scenario is obtained.

7. The method according to claim 6, characterized in that, The method further includes: In the progressive verification process, when any level of verification fails, the defective scene element is located, and the target intelligent agent is determined based on the defective scene element. Based on the defective scene elements, a repair instruction is generated and sent to the target intelligent agent for incremental repair until verification is successful.

8. A multi-agent scene generation device, characterized in that, include: The scene generation requirement completion module is used to obtain scene generation requirements, and complete the scene generation requirements through a preset scene knowledge graph to obtain the scene generation task. The scene generation task splitting module is used to split the scene generation task into various scene generation sub-tasks. The scene element generation module is used to distribute each scene generation subtask to the corresponding scene generation agent, so as to generate each scene element through each scene generation agent; The final deployment scenario generation module is used to aggregate all scenario elements to obtain an initial scenario, verify the initial scenario, and obtain the final deployment scenario after the verification is successful.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.

10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions that are used to cause a processor to execute the method of any one of claims 1-7.