Method and system for constructing management channel based on third-party application protocol communication quasipattern
By using LLM-based resource abstraction and communication modeling, combined with dynamic testing at the mock layer, the system automatically generates server-side relay modules and controlled-side protocol adaptation modules. This solves the problem of low efficiency in building remote management channels for third-party platform APIs in network security defense systems, and achieves fast, reliable, and scalable channel generation.
Patent Information
- Application Number
- CN202611445402.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2046-09-17
AI Technical Summary
Existing technologies make it difficult to quickly, reliably, and scalably build remote management channels based on third-party platform APIs within a network security defense system. This is especially true in complex communication environments where limitations such as proxies, firewalls, and network isolation exist, leading to low efficiency in manually reading API documentation and developing code.
By using an LLM-based approach for resource abstraction and communication modeling, server-side relay modules and controlled-end protocol adaptation modules are generated. Dynamic testing and repair are performed using a mock layer, enabling automated channel feasibility assessment and code generation.
It improves the reliability, debuggability, and adaptation efficiency of remote management channels based on third-party platform APIs, reduces ineffective development costs, and enhances the traceability and consistency of the generation process.
Smart Images

Figure CN122951889B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network security defense technology, and in particular to a method and system for constructing a management channel based on third-party application protocol communication mimicry. Background Technology
[0002] With the widespread adoption of enterprise network environments, cloud services, SaaS platforms, zero-trust access control, and cross-organizational collaboration tools, the communication environment in network security defense system verification is becoming increasingly complex. While traditional channels such as HTTP, DNS, TCP, or SMB can cover common scenarios, they may be limited by proxies, firewalls, outbound policies, application-layer auditing, or network isolation in some verification networks. To simulate complex communication environments in compliant defense capability testing and adversarial example verification, remote management frameworks need to rapidly expand remote management channels based on third-party platform APIs, such as calendar events, instant messaging, object storage, collaborative documents, or ticket systems, to carry detection tasks and results data.
[0003] Therefore, there is an urgent need for an automated method or system that can automatically complete API information extraction, communication feasibility modeling, dual-end code coordination and generation, and dynamic test repair iteration, in order to meet the needs of quickly, reliably, and scalably adding new remote management channels based on third-party platform APIs in network security defense verification scenarios. Summary of the Invention
[0004] This invention provides a method and system for constructing management channels based on third-party application protocol communication mimicry, which meets the need for fast, reliable, and scalable addition of remote management channels based on third-party platform APIs in network security defense verification scenarios.
[0005] This invention provides a method for constructing a management channel based on third-party application protocol communication mimicry, comprising:
[0006] Based on the resource management-related APIs in the API information of the third-party platform, resource abstraction is performed to obtain abstract objects;
[0007] Relationships between objects are obtained by abstracting relationships between the abstract objects and APIs involving multiple resources from third-party platform API information;
[0008] The abstract objects and relationships are matched with a preset reference communication model;
[0009] If a match is found, model the communication model based on the matching reference model and output the communication model record file.
[0010] The communication model record file is converted into a server relay module file and a controlled end protocol adaptation module file through a preset task workflow.
[0011] The server-side relay module file and the controlled-end protocol adaptation module file are compiled and run, and the running logs of the interaction with the simulated third-party platform are obtained after running.
[0012] If the operation log contains no error messages, then the server relay module file and the controlled end protocol adaptation module file will be output.
[0013] If the running log contains error messages, the corresponding code is repaired according to the error messages until there are no error messages in the running log. Then, the repaired server relay module file and the controlled end protocol adaptation module file are output.
[0014] Specifically, if a match is successful, a model is built based on the matched reference communication model, and a communication model record file is output, including:
[0015] If a match is successful and multiple sets of objects exist that can be used for communication modeling, then modeling is performed based on the matching reference communication model, and the optimal communication model record file is output according to the preset priority criteria.
[0016] Specifically, the step of outputting the optimal communication model record file according to a preset priority standard includes:
[0017] The communication model obtained from modeling is matched with the preset highest priority standard;
[0018] If a match is successful, it will be matched with the preset second-highest priority standard until the communication model record file that can be matched with the highest priority standard is output.
[0019] Specifically, it also includes:
[0020] If the communication model record file cannot be converted into a server relay module file or a controlled end protocol adaptation module file through the preset task workflow, then a server relay module file or a controlled end protocol adaptation module file is generated based on a preset specific instance.
[0021] Specifically, the process of compiling and running the server-side relay module file and the controlled-side protocol adaptation module file, and obtaining runtime logs showing interactions with the simulated third-party platform after execution, includes:
[0022] Generate an adaptation script simulating a third-party platform based on the communication model record file and run it in the compatibility layer;
[0023] The server relay module file is compiled in the compatibility layer and then loaded and run in the intermediate abstraction layer;
[0024] Compile and run the controlled-end protocol adaptation module file in Windows;
[0025] Obtain runtime logs showing the interactions between the code and the simulated third-party platform after execution.
[0026] This invention also provides a management channel construction system based on third-party application protocol communication mimicry, comprising:
[0027] The resource abstraction module is used to abstract resources based on resource management-related APIs from third-party platform API information to obtain abstract objects.
[0028] The relationship abstraction module is used to abstract relationships based on the abstract object and APIs involving multiple resources in the API information of the third-party platform, and to obtain the relationships between objects;
[0029] A matching module is used to match the abstract objects and relationships with a preset reference communication model;
[0030] The modeling module is used to perform modeling based on the matched reference communication model if a match is successful, and to output a communication model record file.
[0031] The file conversion module is used to convert the communication model record file into a server relay module file and a controlled end protocol adaptation module file through a preset task workflow.
[0032] The compilation and execution module is used to compile and run the server relay module file and the controlled end protocol adaptation module file, and obtain the execution logs of the interaction with the simulated third-party platform after execution.
[0033] The result output module is used to output the server relay module file and the controlled end protocol adaptation module file if there are no error messages in the running log.
[0034] The repair module is used to repair the corresponding code according to the error information in the running log if there is any error information in the running log, until there is no error information in the running log, and then output the repaired server relay module file and the controlled end protocol adaptation module file.
[0035] Specifically, the modeling module includes:
[0036] The modeling submodule is used to model based on the matching reference communication model if a match is successful and multiple sets of objects exist that can be used for communication modeling.
[0037] The optimal communication model record file output submodule is used to output the optimal communication model record file according to a preset priority standard.
[0038] Specifically, the optimal communication model record file output submodule is used to match the communication model obtained by modeling with the preset highest priority standard; if the match is successful, it is matched with the preset second highest priority standard until the communication model record file that can be matched with the highest priority standard is output.
[0039] Specifically, it also includes:
[0040] The file generation module is used to generate a server relay module file or a controlled end protocol adaptation module file based on a preset specific instance if the communication model record file cannot be converted into a server relay module file or a controlled end protocol adaptation module file through the preset task workflow.
[0041] Specifically, the compilation and execution module includes:
[0042] The third-party platform simulation submodule is used to generate an adaptation script for simulating a third-party platform based on the communication model record file and run it in the compatibility layer;
[0043] The server relay module file execution submodule is used to compile the server relay module file in the compatibility layer and load and run it in the intermediate abstraction layer;
[0044] The controlled-end protocol adapter module file execution submodule is used to compile and run the controlled-end protocol adapter module file in Windows;
[0045] The runtime log acquisition submodule is used to obtain runtime logs of interactions between the code and the simulated third-party platform after the code runs.
[0046] One or more technical solutions provided in this invention have at least the following technical effects or advantages:
[0047] First, information about the third-party platform API is obtained, followed by resource abstraction and communication modeling. If modeling is successful, several pre-defined task workflows are followed to sequentially generate files for the server-side relay module and the controlled-end protocol adaptation module. After code generation, the generated server-side relay module and controlled-end protocol adaptation module are connected to a mock layer for dynamic runtime testing. This invention can determine the feasibility of remote management channels for third-party platform APIs through communication modeling, thereby reducing ineffective development costs. It can transform API documentation understanding results into communication models and structured intermediate files, improving the traceability of the generation process. It can break down complex two-end communication modules into a series of constrained, auditable, and verifiable fine-grained sub-tasks, and, in conjunction with reference examples, improves the consistency and integrability of large model code generation. It can dynamically test the generated code and fix errors through a mock compilation environment, significantly improving the reliability, debuggability, and adaptation efficiency of remote management channel expansion based on third-party platform APIs. Attached Figure Description
[0048] Figure 1 This is an overall flowchart of the management channel construction method based on third-party application protocol communication mimicry provided in an embodiment of the present invention;
[0049] Figure 2 A flowchart illustrating the channel feasibility analysis in the management channel construction method based on third-party application protocol communication mimicry provided in this embodiment of the invention;
[0050] Figure 3 This is an example diagram of the workflow in the management channel construction method based on third-party application protocol communication mimicry provided in an embodiment of the present invention;
[0051] Figure 4 This is a flowchart illustrating the code generation process in the management channel construction method based on third-party application protocol communication mimicry provided in this embodiment of the invention.
[0052] Figure 5 This is a flowchart of dynamic testing in the management channel construction method based on third-party application protocol communication mimicry provided in the embodiments of the present invention. Detailed Implementation
[0053] This invention provides a method and system for constructing a management channel based on third-party application protocol communication mimicry, which meets the need for fast, reliable, and scalable addition of remote management channels based on third-party platform APIs in network security defense verification scenarios.
[0054] The technical solutions in the embodiments of the present invention are designed to achieve the above-mentioned technical effects, and the overall concept is as follows:
[0055] This invention proposes an adaptive construction method and system for remote management channels based on third-party application protocol communication mimicry. It utilizes LLM's search and crawling capabilities to obtain API documentation from third-party platforms, extracting API information such as interface functions, request parameters, and response structures. Communication modeling is then used to determine whether candidate communication channels can support bidirectional remote management communication. Following a pre-defined, sequentially divided subtask structure, files for the server-side relay module and the controlled-end protocol adaptation module are generated. The generated code is then compiled, verified, and iteratively fixed, and integrated into a mock layer for cross-platform dynamic testing, ultimately resulting in a functional remote management channel module. The server-side relay module (RelayModule) runs on the security management side, connecting to the third-party platform API, reading data written by the controlled detection endpoint, writing detection task data to the controlled detection endpoint, and forwarding the parsed results to the management core for processing. The controlled-end protocol adapter module (Endpoint Protocol Adapter) refers to the communication adapter module running on the controlled detection endpoint side. It connects to the third-party platform API, writes the execution results and heartbeats of the detection endpoint to the third-party platform, reads the detection task data issued by the server-side relay module from the third-party platform, and implements symmetrical message encryption and decryption with the server-side relay module. The code generation subtask workflow (Codegen Workflow Task) refers to the atomic generation units that break down the code generation process of the server-side relay module and the controlled-end protocol adapter module according to file type and responsibility. In this embodiment of the invention, the code generation stage is divided into 17 sequentially executed subtasks. Each subtask corresponds to an independent workflow specification document, defining the target filename, input / output interface specifications, constraint rules, and acceptance checks for that subtask.
[0056] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.
[0057] like Figure 1 and Figure 2 As shown, the management channel construction method based on third-party application protocol communication mimicry provided in this embodiment of the invention includes:
[0058] Based on the resource management-related APIs in the third-party platform's API information, resource abstraction is performed to obtain abstract objects. For example, if the platform has APIs for creating, deleting, and renaming files, then the file resource can be abstracted into a file object with the methods "create" and "delete" and the attribute "filename". If more related APIs exist, more methods and attributes can be obtained. Specifically, the third-party platform's API documentation is retrieved using LLM's search and crawling capabilities, and API information such as interface functions, request parameters, and response structures is extracted from the API documentation.
[0059] Relationships between objects are abstracted based on the APIs involving multiple resources in the abstract objects and third-party platform API information; for example, if the API function is to create a file in a specified directory, then the abstract relationship of the directory containing the file can be abstracted.
[0060] The abstract objects and relationships are matched against pre-defined reference communication models. Specifically, various types of third-party platform communication models are pre-defined as references, including note / document storage, instant messaging / chat, social media platforms, office collaboration, and calendar / event models. These models are pre-modeled according to the characteristics of each platform. The obtained objects and relationships are mapped to the objects and relationships in the reference models. If the mapping is successful, modeling is performed based on that model; otherwise, the next reference model is matched, and modeling fails if no match is found. If modeling is successful, it indicates that the platform can be used for remote management communication.
[0061] If a match is found, model the communication model based on the matching reference model and output the communication model record file.
[0062] This step is explained in detail. If a match is successful, a model is built based on the matched reference communication model, and a communication model record file is output, including:
[0063] If a match is successful and multiple sets of objects exist that can be used for communication modeling, then modeling is performed based on the matching reference communication model, and the optimal communication model record file is output according to the preset priority criteria.
[0064] Specifically, the optimal communication model record file is output according to a preset priority standard, including:
[0065] The communication model obtained from modeling is matched with the preset highest priority standard;
[0066] If a match is successful, it will be matched with the preset second-highest priority standard until the communication model record file that can be matched with the highest priority standard is output.
[0067] Furthermore, if the platform has multiple sets of objects that can be used for communication modeling—for example, the Lark platform can use both group chat-related objects and calendar-related objects for communication modeling—then the LLM is provided with several criteria to select which set of objects to use. These criteria are prioritized as follows: authentication complexity (zero authentication or single authentication credentials), implementation complexity (whether it can be implemented via pure HTTP), load capacity (message body size limit), and sharding feasibility (whether pagination and sorting are supported). These criteria serve as reference information to guide the LLM in selecting a better API combination. For example, the Lark platform can simultaneously build instant messaging and calendar-type communication models. The LLM will judge based on the previously given criteria, first performing a first priority judgment: whether the communication model meets the requirements of zero authentication or a single set of authentication credentials. If both are met, it proceeds to the second priority judgment: whether the communication model is implemented via pure HTTP. If both are met again, it compares the load capacity, which can be obtained from the third-party platform API information acquired at the beginning. The process continues until a final set of objects is selected. Based on this set of objects, the LLM system constructs a communication model and outputs a communication model log file (api_selection.json) and a credential acquisition guide file (auth_setup.md) using a given output format template. The communication model log file records the communication model, protocol name, authentication mode, APIs used, and their request / response structures. The credential acquisition guide file primarily records the required authentication information and how to obtain it.
[0068] The communication model log file is converted into a server-side relay module file and a controlled-side protocol adaptation module file through a pre-defined task workflow; for example... Figure 3 As shown, the task workflow contains several workflow files, each written in a specified format, guiding the generation of a specific part. The target file specifies which file the workflow will generate, outlining the general desired outcome. The task details detail the tasks to be performed, and the checklist is used to inspect the final generated file and eliminate common errors. These workflows are derived from development experience and existing server-side and controlled-side modules. The server-side relay module files specifically include relay module code (pl_main.go, pl_transport.go, etc.), compilation configuration (Makefile), module configuration (config.yaml), frontend configuration (ax_config.axs), and other files. The controlled-side protocol adaptation module files specifically include two files: protocol adaptation module code (ConnectorXxx.h / .cpp).
[0069] This step will be explained in detail, such as Figure 4As shown, the communication model record file is converted into a server-side relay module file and a controlled-end protocol adaptation module file through a preset task workflow, including:
[0070] First, the LLM reads the communication model log file, which records the communication model and the API information used. Then, it reads the task workflow. Each workflow guides the generation of files; for example, a workflow guiding module configuration generation will record that the target generated file is `config.yaml`, which fields the module configuration includes, the meaning of each field, and how the content of each field is obtained. All the necessary information is obtained from the communication model log file. Finally, the LLM generates the specified files based on the guidance of the workflows.
[0071] In order to successfully generate the server-side relay module file and the controlled-side protocol adaptation module file, the following is also included:
[0072] If the communication model log file cannot be converted into a server-side relay module file or a controlled-side protocol adaptation module file through the preset task workflow, then the server-side relay module file or the controlled-side protocol adaptation module file will be generated based on a preset specific instance. For example, if there are any unclear points in the workflow during the generation process, the LLM will read the preset specific instance to learn how to write the file.
[0073] Compile and run the server-side relay module file and the controlled-side protocol adaptation module file, and obtain the running logs of the interaction with the simulated third-party platform after running;
[0074] This step will be explained in detail, such as Figure 5 As shown, the server-side relay module file and the controlled-side protocol adaptation module file are compiled and run, and the running logs of the interaction with the simulated third-party platform are obtained, including:
[0075] The script generates an adaptation script (test_adapter.py) that simulates a third-party platform based on the communication model log file and runs it in the compatibility layer wsl. This script can simulate the request and response structures of the API used by the communication model, which are recorded in the communication model log file.
[0076] In the compatibility layer WSL, the server relay module file is compiled and the output .so file is loaded and run in the intermediate abstraction layer (mock layer); if the compilation fails, the original code is automatically repaired according to the error message, and then the repaired code is compiled and run.
[0077] In Windows, the controlled end protocol adapter module file is compiled and the output exe file is run; if the compilation fails, the original code is automatically repaired based on the error message, and then the repaired code is compiled and run.
[0078] Specifically, this embodiment of the invention pre-constructs a mock layer. This mock layer loads the .so file compiled by the server and supplements the other files needed by the controlled end to generate an independently executable .exe file. It mainly consists of two parts. The first part targets the server-side relay module, simulating the interface between the server and the server-side relay module in the Adaptix remote management platform. Specifically, it simulates loading the .so file, calling the PluginInit function to initialize the object, and then simulating some operations of the relay module, such as creation and command issuance. The second part targets the controlled end protocol adaptation module, storing other files needed for compiling the controlled end protocol adaptation module. These files are directly copied from the original repository. This part combines these files to compile an independently executable .exe file.
[0079] Obtain the runtime logs (Listener.log, Agent.log) of the code's interactions with the simulated third-party platform after execution.
[0080] If the runtime log contains no error messages, the server-side relay module file and the controlled-side protocol adaptation module file will be output.
[0081] If there are error messages in the runtime log, the corresponding code will be repaired according to the error messages until there are no error messages in the runtime log, indicating that the dynamic test has passed. Then, the repaired server relay module file and the controlled end protocol adaptation module file will be output.
[0082] A remote management channel is established between the server-side relay module and the controlled-end protocol adaptation module through server-side relay module files and controlled-end protocol adaptation module files. This channel serves as a communication mechanism between the security management end and the controlled detection endpoint to transmit heartbeats, detection tasks, execution results, and status information. In this embodiment, the remote management channel is specifically manifested as a communication process between the server-side relay module and the controlled-end protocol adaptation module indirectly through a third-party platform API.
[0083] In the defense capability verification, the remote management channel generated by the embodiments of the present invention is deployed in a controlled test environment and used by the security defense team to test whether the existing network detection system can identify such covert communication based on third-party platforms. Specifically: (1) the network intrusion detection system can expand the training dataset by using the channel samples generated by the embodiments of the present invention to improve the detection coverage of non-standard protocol communication; (2) the traffic analysis system can optimize rules and enhance the anomaly detection model based on the channel features generated by the embodiments of the present invention; (3) the security operations team can use the embodiments of the present invention to quickly assess whether newly emerging third-party platforms may be used to build covert communication channels, thereby formulating targeted monitoring strategies. Through this adversarial testing method, the defense system can discover detection blind spots and carry out targeted reinforcement before real threats appear.
[0084] Furthermore, embodiments of the present invention also provide a management channel construction system based on third-party application protocol communication mimicry, comprising:
[0085] The third-party platform API information acquisition module is used to acquire third-party platform API documents based on LLM's search and crawling capabilities, and extract API information such as interface functions, request parameters, and response structures from the API documents;
[0086] The resource abstraction module is used to abstract resources based on resource management-related APIs from third-party platform API information to obtain abstract objects.
[0087] The relationship abstraction module is used to abstract relationships between objects based on abstract objects and APIs involving multiple resources from third-party platform API information.
[0088] The matching module is used to match abstract objects and relationships with a preset reference communication model;
[0089] The modeling module is used to perform modeling based on the matched reference communication model if a match is successful, and to output a communication model record file.
[0090] Specifically, the modeling module includes:
[0091] The modeling submodule is used to model based on the matching reference communication model if a match is successful and multiple sets of objects exist that can be used for communication modeling.
[0092] The optimal communication model record file output submodule is used to output the optimal communication model record file according to a preset priority standard.
[0093] In this embodiment, the optimal communication model record file output submodule is specifically used to match the communication model obtained by modeling with the preset highest priority standard; if the match is successful, it is matched with the preset second highest priority standard until the communication model record file that can be successfully matched with the highest priority standard is output.
[0094] The file conversion module is used to convert communication model record files into server relay module files and controlled end protocol adaptation module files through a preset task workflow.
[0095] Specifically, the file conversion module is used by the LLM to read the communication model record file, which records the communication model and the API information used. It then reads the task workflow, where each workflow guides the generation of files. For example, the workflow guiding module configuration will record that the target generated file is `config.yaml`, which fields the module configuration includes, the meaning of each field, and how the content of each field is obtained. All the necessary information is obtained from the communication model record file. Finally, the LLM generates the specified file based on the guidance of the workflow.
[0096] In order to successfully generate the server-side relay module file and the controlled-side protocol adaptation module file, the following is also included:
[0097] The file generation module is used to generate a server relay module file or a controlled end protocol adaptation module file based on a preset specific instance if the communication model record file cannot be converted into a server relay module file or a controlled end protocol adaptation module file through a preset task workflow.
[0098] The compilation and execution module is used to compile and run the server-side relay module file and the controlled-side protocol adaptation module file, and obtain the execution logs of the interaction with the simulated third-party platform after execution.
[0099] Specifically, compiling and running modules includes:
[0100] The third-party platform simulation submodule is used to generate an adaptation script (test_adapter.py) that simulates a third-party platform based on the communication model log file and run it in the compatibility layer wsl. This script can simulate the request and response structures of the API used by the communication model, which are recorded in the communication model log file.
[0101] The server relay module file execution submodule is used to compile the server relay module file in the compatibility layer WSL and load and run the output .so file in the intermediate abstraction layer (mock layer); if the compilation fails, the original code is automatically repaired according to the error message, and then the repaired code is compiled and run.
[0102] The controlled-end protocol adapter module file execution submodule is used to compile and run the controlled-end protocol adapter module file in Windows and output the exe file; if the compilation fails, the original code is automatically repaired according to the error message, and then the repaired code is compiled and run.
[0103] The runtime log acquisition submodule is used to obtain runtime logs (Listener.log, Agent.log) of interactions between the code and the simulated third-party platform after the code runs.
[0104] The result output module is used to output the server relay module file and the controlled end protocol adaptation module file if there are no error messages in the running log.
[0105] The repair module is used to repair the corresponding code based on the error messages in the runtime log until there are no error messages in the runtime log, indicating that the dynamic test has passed. Then, it outputs the repaired server relay module file and the controlled end protocol adaptation module file.
[0106] In summary, this invention addresses legitimate scenarios such as enterprise network security defense system verification, distributed system communication reliability testing, and adversarial robustness assessment. It aims to solve problems encountered when adding communication channels based on third-party platform APIs to the existing open-source remote management framework Adaptix. These problems include the reliance on manual reading of API documentation, channel feasibility assessment, writing code for both the server-side relay module and the controlled-side protocol adaptation module, and locating runtime errors. This invention provides an adaptive construction method and system for remote management channels based on third-party application protocol communication mimicry. The method takes the third-party platform name, API documentation link, or local documentation as input and executes progressively through three independent stages: channel feasibility analysis, code generation, and dynamic testing. Data is transferred between stages using a pre-defined file system interface specification, ultimately outputting a server-side relay module file and a controlled-side protocol adaptation module file that have passed dynamic testing. This invention introduces a method for determining channel feasibility through resource abstraction and communication modeling before code generation, avoiding blind code generation on platforms lacking communication capabilities. The invention decouples the code generation process from a one-time LLM generation into several sequentially split subtask workflows. Each subtask has its goals, outputs, and constraints defined by an independent workflow specification document, and reference instances are referenced as needed during the generation process. This refined splitting, combined with template constraints, ensures high consistency and accuracy of the LLM across subtasks, solving the problem of decreased output consistency caused by context window information overload in large generation tasks. Furthermore, this invention proposes a mock-based cross-platform dynamic testing method, allowing the LLM to automatically generate simulated third-party server communication models, addressing the lack of automated dynamic testing and iterative repair in existing methods.
[0107] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0108] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0109] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0110] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0111] Any aspects of this invention not described in detail in the embodiments are well-known techniques to those skilled in the art. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this invention and not to limit it. Although this invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this invention without departing from the spirit and scope of this invention, and all such modifications and substitutions should be covered within the scope of the claims of this invention.
Claims
1. A method for constructing a management channel based on third-party application protocol communication mimicry, characterized in that, include: Based on the resource management-related APIs in the third-party platform's API information, resource abstraction is performed to obtain abstract objects; Relationships between objects are obtained by abstracting relationships between the abstract objects and APIs involving multiple resources from third-party platform API information; The abstract objects and relationships are matched with a preset reference communication model; If a match is successful, model the communication model based on the matched reference model and output the communication model record file. If a match is successful, a model is built based on the matched reference communication model, and a communication model record file is output, including: If a match is successful and multiple sets of objects can be used for communication modeling, then modeling is performed based on the matching reference communication model, and the optimal communication model record file is output according to the preset priority criteria. The step of outputting the optimal communication model record file according to a preset priority standard includes: The communication model obtained from modeling is matched with the preset highest priority standard; If a match is successful, it will be matched with the preset second-highest priority standard until the communication model record file that can be matched with the highest priority standard is output. The communication model record file is converted into a server relay module file and a controlled end protocol adaptation module file through a preset task workflow. The server-side relay module file and the controlled-end protocol adaptation module file are compiled and run, and the running logs of the interaction with the simulated third-party platform are obtained after running. If the operation log contains no error messages, then the server relay module file and the controlled end protocol adaptation module file will be output. If the running log contains error messages, the corresponding code is repaired according to the error messages until there are no error messages in the running log. Then, the repaired server relay module file and the controlled end protocol adaptation module file are output. If the communication model record file cannot be converted into a server relay module file or a controlled end protocol adaptation module file through the preset task workflow, then a server relay module file or a controlled end protocol adaptation module file is generated based on a preset specific instance.
2. The management channel construction method based on third-party application protocol communication mimicry as described in claim 1, characterized in that, The process involves compiling and running the server-side relay module file and the controlled-side protocol adaptation module file, and obtaining runtime logs showing interactions with the simulated third-party platform after execution, including: Generate an adaptation script simulating a third-party platform based on the communication model record file and run it in the compatibility layer; The server relay module file is compiled in the compatibility layer and then loaded and run in the intermediate abstraction layer; Compile and run the controlled-end protocol adaptation module file in Windows; Obtain runtime logs showing the interactions between the code and the simulated third-party platform after execution.
3. A management channel construction system based on third-party application protocol communication mimicry, characterized in that, include: The resource abstraction module is used to abstract resources based on resource management-related APIs from third-party platform API information to obtain abstract objects. The relationship abstraction module is used to abstract relationships based on the abstract object and APIs involving multiple resources in the API information of the third-party platform, and to obtain the relationships between objects; A matching module is used to match the abstract objects and relationships with a preset reference communication model; The modeling module is used to perform modeling based on the matched reference communication model if a match is successful, and to output a communication model record file. The modeling module includes: The modeling submodule is used to perform modeling based on the matching reference communication model if a match is successful and multiple sets of objects exist that can be used for communication modeling. The optimal communication model record file output submodule is used to output the optimal communication model record file according to a preset priority standard. The optimal communication model record file output submodule is specifically used to match the communication model obtained by modeling with the preset highest priority standard; if the match is successful, it is matched with the preset second highest priority standard until the communication model record file that can be matched with the highest priority standard is output. The file conversion module is used to convert the communication model record file into a server relay module file and a controlled end protocol adaptation module file through a preset task workflow. The compilation and execution module is used to compile and run the server relay module file and the controlled end protocol adaptation module file, and obtain the execution logs of the interaction with the simulated third-party platform after execution. The result output module is used to output the server relay module file and the controlled end protocol adaptation module file if there are no error messages in the running log. The repair module is used to repair the corresponding code according to the error information if there is an error in the running log until there is no error in the running log, and then output the repaired server relay module file and the controlled end protocol adaptation module file. The file generation module is used to generate a server relay module file or a controlled end protocol adaptation module file based on a preset specific instance if the communication model record file cannot be converted into a server relay module file or a controlled end protocol adaptation module file through the preset task workflow.
4. The management channel construction system based on third-party application protocol communication mimicry as described in claim 3, characterized in that, The compilation and execution module includes: The third-party platform simulation submodule is used to generate an adaptation script for simulating a third-party platform based on the communication model record file and run it in the compatibility layer; The server relay module file execution submodule is used to compile the server relay module file in the compatibility layer and load and run it in the intermediate abstraction layer; The controlled-end protocol adapter module file execution submodule is used to compile and run the controlled-end protocol adapter module file in Windows; The runtime log acquisition submodule is used to obtain runtime logs of interactions between the code and the simulated third-party platform after the code runs.
Citation Information
Patent Citations
Data analysis method based on low-code API
CN116088800A
Artificial intelligence universal application rapid deployment support system
CN121834829A
