Gradient evaluation method and system for large model plug-in distribution platform audit mechanism
By constructing a malicious plugin to generate an agent, a five-layer gradient evaluation method is used to conduct systematic security testing on the large language model plugin distribution platform. This solves the systemic and hierarchical problems of the security audit mechanism in the existing technology, realizes the accurate identification of complex threats and the location of defense blind spots, and improves the comprehensiveness of security assessment and defense efficiency.
Patent Information
- Application Number
- CN202611389904.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2046-09-09
AI Technical Summary
The existing security audit mechanism of large language model plugin distribution platforms lacks systematicness and comprehensiveness, making it unable to effectively detect complex and collaborative threats. Furthermore, it lacks a layered and progressive defense mechanism, resulting in difficulty in locating defense blind spots.
We construct a malicious plugin generation agent and use a five-layer gradient evaluation method, including text description deception detection, cross-modal text code splitting test, code-level obfuscation and remote API evasion test, semantic masquerade condition trigger test, multi-plugin collaboration and logic decoupling test, to automatically generate test cases and identify platform defense blind spots layer by layer.
It enables systematic, cross-modal joint security detection, accurately locates defense blind spots, improves the comprehensiveness and depth of security assessment, reduces the trial and error costs and deployment risks of security protection, and provides a basis for the iteration of the platform's defense system.
Smart Images

Figure CN122904293B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of security detection technology for large language model plugins, and in particular relates to a gradient evaluation method and system for the review mechanism of large model plugin distribution platforms. Background Technology
[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.
[0003] With the rapid deployment of large language model technology, the plugin ecosystem has become the core carrier for extending model capabilities, and its development paradigm is evolving deeply from traditional API calls to code as a tool. Developers can quickly build agent plugins by uploading Python code snippets, referencing GitHub repositories, depending on PyPI packages, or directly coding in the platform's built-in web IDE, and these plugins are widely deployed on cloud hosting platforms (such as Coze and Dify) and local runtime frameworks (Clawhub). This model allows models to directly load and execute third-party code, which, while improving scalability, significantly expands the system's attack surface, bringing serious risks to code supply chain security and runtime escape.
[0004] Currently, the defense and review systems commonly used by large language model plugin distribution platforms mainly include the following four methods: First, natural language description review, which involves intercepting sensitive words based on a keyword library; second, static code security scanning, which involves extracting dangerous functions based on regular expressions, keyword matching, and abstract syntax tree analysis; third, dependency package legality checks; and fourth, automated sandbox dynamic analysis, which involves placing individual plugins in a sandbox for short-term routine behavior coverage testing.
[0005] However, the aforementioned existing technical solutions have the following significant drawbacks. Firstly, the assessment methods are mostly isolated detections, lacking systematicity and comprehensiveness. Existing security testing for large-scale plugin ecosystems primarily relies on isolated testing of individual plugins or single dimensions (such as scanning only static code defects or verifying only text description compliance). A system-level assessment framework that integrates code logic, text descriptions, and multi-component contextual interactions as a whole has not yet been established, thus failing to effectively probe the capabilities of the audit mechanism. Secondly, existing security testing lacks a hierarchical, progressive approach to defense mechanism detection, often employing a flat, single-verification model. It lacks progressive detection methods that range from surface-level text deception, cross-modal semantic fragmentation, and code-level dynamic fetching to deep multi-component joint scheduling. Due to the lack of such a tiered, systematic detection method, security personnel and platform providers cannot accurately pinpoint the specific failure points and defense blind spots of the audit mechanism when facing obfuscation attacks of varying complexity. Summary of the Invention
[0006] To overcome the shortcomings of the existing technology, this invention provides a gradient evaluation method and system for the review mechanism of large model plugin distribution platforms. It aims to systematically evaluate the security of cross-platform plugin review mechanisms by automatically generating test cases through intelligent agents, exposing the platform's defense blind spots when dealing with various types and levels of attacks, thereby providing empirical evidence for the construction of a better plugin review mechanism in the future.
[0007] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions: The first aspect of this invention provides a gradient evaluation method for the review mechanism of a large model plugin distribution platform; Gradient evaluation methods for the review mechanism of large model plugin distribution platforms include: Build malicious plugins to generate agents; The Agent automatically generates test cases containing deceptive text descriptions and malicious probe code, and performs security checks in five layers: text description deception detection, cross-modal text code splitting test, code-level obfuscation and remote API evasion test, semantic masquerade condition triggering test, and multi-plugin collaboration and logic decoupling test. Based on the pass and block results of each gradient test, the platform's review mechanism defense blind spots are located and evaluation conclusions are output.
[0008] As a further technical solution, the text description deception detection includes: Directly embedding instructions in the prompts of plugin function descriptions to induce the model to tamper with its behavior in the background; Add well-known service keywords to the description to induce matching confusion in the natural language interface; The effectiveness of text censorship based on a static feature library was tested by generating an agent that continuously changes the synonyms of descriptive words.
[0009] As a further technical solution, the cross-modal text-code splitting test includes: exposing malicious intent in plaintext in the generated code, while writing a seemingly compliant and highly deceptive natural language description to create a cross-modal semantic split between the code and the description, and testing whether the target platform has the interception capability to cross-verify the consistency between the code's actual behavior and the text description.
[0010] As a further technical solution, the code-level obfuscation and remote API avoidance test includes: generating a dynamic loader, which remotely pulls external payloads through a hidden API and executes them in memory at runtime to detect the detection boundaries of the platform's static code scanning.
[0011] As a further technical solution, the semantic spoofing condition trigger test includes: By using malicious plugins to generate agents, illegal logic is stitched into the legitimate business code structure, making the illegal logic and legitimate business logic syntactically integrated. A condition trigger is set in the legitimate business code structure, and the condition trigger is configured to execute the violation logic only when a preset condition is met.
[0012] As a further technical solution, the multi-plugin collaboration and logic decoupling test includes: By logically decoupling individual violations, a first component is generated that only reads local sensitive files, and a second component that only executes external network requests. Building a trust propagation chain: The first component returns the sensitive data it reads to the large language model, guiding the large language model to pass the sensitive data as a valid parameter when calling the second component in the future, and using the network permissions of the second component to complete the outward transmission of the sensitive data; After submitting the first and second components to the target platform, the system monitors whether the sensitive data is received by the test server to determine whether the target platform's runtime sandbox and taint tracking mechanism has failed.
[0013] The second aspect of this invention provides a gradient evaluation system for the review mechanism of a large model plugin distribution platform.
[0014] A gradient evaluation system for the review mechanism of large model plugin distribution platforms includes: The malicious plugin generation agent module is configured to: build a malicious plugin generation agent; The five-layer gradient evaluation control module is configured to automatically generate test cases containing deceptive text descriptions and malicious probe code by the Agent, and perform security tests in sequence according to the five-layer gradient, namely, text description deception detection, cross-modal text code splitting test, code-level obfuscation and remote API evasion test, semantic masquerade condition triggering test, and multi-plugin collaboration and logic decoupling test. The monitoring and judgment module is configured to locate the blind spots in the platform's review mechanism defense and output evaluation conclusions based on the pass and block results of each gradient test.
[0015] A third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of the gradient evaluation method for a review mechanism of a large model plugin distribution platform as described in the first aspect of the present invention.
[0016] A fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps in the gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in the first aspect of the present invention.
[0017] The fifth aspect of the present invention provides a computer program product, including a computer program / instruction that, when executed by a processor, implements the steps in the gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in the first aspect of the present invention.
[0018] The above one or more technical solutions have the following beneficial effects: (1) This invention achieves systematic, cross-modal joint security detection, breaking through the limitations of isolated detection in traditional auditing mechanisms. Compared with the method of checking only text, code, and components from a single dimension, this method integrates natural language description, code logic, and multi-component interaction behavior into a unified evaluation object. It can effectively identify deep semantic spoofing and cross-modal deception malicious plugins generated by large models, and accurately discover hidden threats that are inconsistent between text and code behavior and cannot be captured by static features. It fills the gap in the automated detection of composite and collaborative threats in the large model plugin ecosystem, significantly improves the comprehensiveness and depth of security assessment, and provides a complete capability mapping basis for the platform's defense system.
[0019] (2) This invention constructs a five-layer gradient progressive evaluation system to achieve precise location and quantitative analysis of defense blind spots. Unlike the traditional flat, single-verification detection mode, this method starts from surface text deception, gradually delving into cross-modal fragmentation, dynamic loading obfuscation, and semantic logic bombs, ultimately reaching multi-plugin collaborative attacks, forming a gradient detection link from shallow to deep. This mechanism can clearly locate the platform's failure nodes and defense boundaries under different attack complexities, enabling security optimization to shift from blind patching to targeted upgrades, significantly improving the iteration efficiency of the review mechanism, and reducing the trial-and-error costs and deployment risks of security protection.
[0020] Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0021] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.
[0022] Figure 1 This is a flowchart of the method in the first embodiment.
[0023] Figure 2This is a system structure diagram of the second embodiment. Detailed Implementation
[0024] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0025] It should be noted that the terminology used herein is for the purpose of describing particular implementations only and is not intended to limit the exemplary implementations of the present invention.
[0026] Where there is no conflict, the embodiments and features in the embodiments of the present invention can be combined with each other.
[0027] Example 1 This embodiment discloses a gradient evaluation method for the review mechanism of a large-model plugin distribution platform. By constructing a malicious plugin generation agent, it automatically generates test plugins and description text with semantic camouflage and obfuscation capabilities. Security detection is performed sequentially according to five gradients to accurately locate the weak links in text review, code scanning, sandbox isolation, and multi-component collaborative protection. Finally, a standardized security assessment report is output, providing empirical support for the optimization of the platform's security mechanism.
[0028] like Figure 1 As shown, the gradient evaluation method for the review mechanism of a large model plugin distribution platform includes: Step S1: Construct a malicious plugin to generate an Agent.
[0029] The malicious plugin generation agent is built based on a large language model and is used to automatically generate test components with deep semantic spoofing and cross-modal deception capabilities. The test components include underlying malicious detection code and upper-layer natural language descriptions.
[0030] Specifically, the malicious plugin generation agent includes a task configuration module, a prompt word arrangement module, a large language model inference module, a code and description co-generation module, a test case verification module, and a plugin encapsulation module. These modules are connected in the order of task configuration, model generation, result verification, and plugin encapsulation.
[0031] The task configuration module receives the target platform's plugin manifest format, interface definitions, and dependency constraints, as well as the legal business functions, risky behavior logic, triggering conditions, and stopping conditions corresponding to the current gradient, and converts the above information into a structured task generation method. The structured task generation method includes at least a task identifier, plugin function field, input / output parameter field, allowed resource field, controlled behavior field, triggering condition field, and output format field.
[0032] The prompt word arrangement module combines the structured generation task with a preset gradient prompt word template and inputs it into the large language model inference module. The large language model inference module generates a plugin intermediate representation based on the model input. This intermediate representation includes functional metadata, interface parameters, dependencies, behavior execution order, triggering conditions, and description strategies. The code and description co-generation module generates plugin code, a plugin manifest file, and a natural language description based on the same intermediate representation, ensuring that these three elements correspond through the task identifier.
[0033] The test case validation module sequentially performs code syntax validation, interface field validation, and dependency validation on the generated results. If any validation fails, the failure type and corresponding field are fed back to the prompt word arrangement module, which then regenerates the corresponding content. When all validations pass, the plugin encapsulation module encapsulates the test plugin according to the directory structure and file format required by the target platform, and records the model version used, generation parameters, test case identifier, and file summary value for use in subsequent five-layer gradient tests.
[0034] Step S2: The Agent automatically generates test cases containing deceptive text descriptions and malicious probe code, and performs security tests in five layers: text description deception detection, cross-modal text code splitting test, code-level obfuscation and remote API evasion test, semantic masquerade condition triggering test, and multi-plugin collaboration and logic decoupling test.
[0035] Test tasks are established based on three attack types: privacy theft, resource exhaustion, and behavioral manipulation. For each attack type, the Agent generates five different test plugins based on a five-layer gradient. Each test plugin corresponds to a gradient level and includes a natural language description, plugin code, and test case metadata, thus forming a gradient test plugin set containing fifteen test plugins. The five-layer gradients are: text description spoofing, cross-modal text code splitting, code-level obfuscation and remote API evasion, semantic masquerading condition triggering, and multi-plugin collaboration and logical decoupling. The generated test plugins are submitted to the target platform for security testing.
[0036] To uniformly manage the data processing of the three types of attacks and their five-layer gradient testing plugins, the system establishes a gradient testing task record for each testing plugin. The gradient testing task record includes at least the task identifier, attack type identifier, target platform identifier, gradient level, baseline business function description, plugin code object and its hash value, natural language description object, controlled risk behavior label, triggering condition, component association relationship and generation parameters.
[0037] Each attack type employs the same main data processing chain: the system reads the baseline business function, attack target, and generation constraints corresponding to the attack type, and constructs five generation tasks corresponding to five gradients; for each generation task, the field to be transformed is determined according to the transformation template of the corresponding gradient, and the Agent generates candidate field values respectively, so that the five test plugins under the same attack type adopt different gradient implementation methods while maintaining the consistency of the attack target; the system sequentially performs structural integrity verification, code syntax verification, interface specification verification, gradient correspondence verification, and controlled security boundary verification. If the verification fails, the error type and error location are fed back to the Agent for regeneration; after the verification passes, the code, description, configuration file, and test case metadata of each test plugin are encapsulated into a submission package and sent to the review interface; the system collects the review status, rejection reason, hit rule identifier, static scan log, running log, and callback flag returned by the platform, and establishes an association between the task identifier and the submission package.
[0038] The system normalizes the review output into four review statuses: interception, approval, transfer to manual review, or abnormal. Then, it generates a gradient result record for each test plugin. The gradient result record includes attack type, gradient level, transformation field, submission status, review status, behavior status, and evidence index.
[0039] Step S21: Perform the first layer of security detection, namely text description deception detection. The system-controlled agent automatically generates plugin text descriptions that are deceptive in terms of natural language description. Specific technical implementations include: Description Injection: Directly embeds instructions in the prompts of plugin function descriptions to induce the model to tamper with its behavior in the background.
[0040] Functionality Squatting: Adding keywords of well-known services (such as GitHub, AWS) to the description to induce matching obfuscation in the natural language interface.
[0041] Semantic normalization avoidance: By generating an agent that continuously changes the synonyms of descriptive words, the effectiveness of text censorship based on a static feature library of the target platform is tested.
[0042] In the first-gradient text processing, the system generates three types of candidate descriptions through description injection, functional placeholders, and synonymous rewriting of risk-related terms. The system performs field integrity, syntactic readability, and semantic preservation checks on the candidate descriptions, retaining descriptions that have a business semantic similarity to the baseline text that reaches a preset threshold and do not directly contain preset risk words, and records the transformation type, original terms, transformed terms, and insertion positions to form the first-gradient text feature record.
[0043] Step S22: Perform the second-layer unobfuscated baseline and cross-modal text splitting test.
[0044] The agent exposes malicious intent in plaintext within the generated code, while simultaneously using the agent to automatically write highly deceptive natural language descriptions that appear perfectly compliant. The technical objective of this step is to create a cross-modal semantic separation between the "code" and the "description," testing whether the target platform has the interception capability to cross-verify the consistency between the code's actual behavior and the textual description.
[0045] The system inputs the baseline business function, the target platform description field format, and a set of risk words prohibited from explicit appearance into the prompt word arrangement module. The Agent then generates a seemingly compliant candidate description without altering the plugin name, input / output interfaces, or declared business function. Subsequently, word segmentation, entity recognition, and semantic role annotation are performed on the candidate description to extract functional actions, service objects, data scope, permission declarations, and output results, forming a semantic feature set D. If a candidate description contains risk words from the controlled behavior field or lacks a required field from the target platform, the corresponding location is returned to the Agent for regeneration.
[0046] Step S23: Perform the third-level code-level obfuscation and remote API evasion test.
[0047] The system leverages Python's dynamic execution capabilities, avoiding the direct uploading of complete business code into the plugin package. Instead, it uses an agent to generate a minimal dynamic loader. This loader dynamically retrieves and executes external payloads in memory at runtime (e.g., dynamically loading importlib) through covert API calls. This allows the system to probe the detection boundaries of the target platform's Static Analysis Tool (SAST), which is based on regular expressions and syntax trees.
[0048] The malicious plugin generates an agent that contains only a dynamic loader. This loader does not carry an explicit malicious payload, but dynamically pulls and executes external malicious code from a remote server at runtime through covert API calls.
[0049] Step S24: Perform semantic masquerading and conditional triggering tests at the fourth layer.
[0050] The system uses an agent to subtly stitch illegal logic into the legitimate business code structure. Simultaneously, it sets specific conditions (such as input combinations at specific times) as triggers (Logic Bombs). This overcomes the limitation of conventional automated sandboxes in covering deep logical branches.
[0051] In the fourth-tier semantic masquerade processing, the system first performs abstract syntax tree and control flow analysis on the baseline compliance plugin, extracting external interfaces, normal business functions, call relationships, and return values to form a baseline business path. An Agent is then generated that, without altering the external interfaces and baseline business path, encapsulates controlled risk behaviors into independent branches and inserts exception handling or logical judgment nodes. When the code meets the trigger condition, execution transitions to the risk branch. If the trigger condition is not met, the plugin only executes the normal business path. The system records the inserted nodes, trigger expressions, normal paths, trigger paths, and risk behaviors, forming a fourth-tier semantic trigger record.
[0052] Step S25 involves performing the fifth-layer multi-plugin collaboration and logic decoupling test to assess the target sandbox's ability to intercept system-level escape attempts. Specifically, this includes: First, the single violation (such as reading and transmitting sensitive data) is logically decoupled and split into multiple independent, seemingly harmless test components. For example, the agent automatically generates "Component A" and "Component B," where "Component A" is only configured to perform legitimate I / O operations to read local sensitive files and write the data to the sandbox cache or large language model context; "Component B" is only configured to perform legitimate external network requests. This split ensures that each independent component passes the platform's static review and sandbox testing.
[0053] Secondly, the system controls the generation of agents to construct a cross-component communication triggering mechanism, enabling the aforementioned independent components to establish trust transfer within the model. Specifically, "Component A" is configured as an upstream node, and the sensitive data it reads is encapsulated as an execution result and returned to the large language model. This guides the large language model to pass the execution result as a valid parameter when subsequently calling "Component B," thereby leveraging "Component B's" network permissions to complete the outward transmission of sensitive data.
[0054] Finally, the system submits the split and individually compliant component sets to the target platform. Then, it sends a prompt containing specific triggering logic to the platform, guiding the large language model to continuously schedule and call "Component A" and "Component B" in the same session context according to a set timing sequence. Ultimately, the system monitors whether the controlled test server receives the expected sensitive data to determine whether the target platform's runtime sandbox and taint tracking mechanisms can effectively identify and block such cross-component combined attacks. If the corresponding data is received, the system determines that its system-level defense mechanisms have failed.
[0055] Step S3: Based on the pass and interception results of each gradient test, locate the blind spots in the platform's review mechanism defense and output the evaluation conclusion.
[0056] The system establishes a target platform list including code hosting platforms, open-source plugin platforms, and closed-source plugin platforms. To address the format differences between the target platforms, the system only maps the directory structure, plugin manifest fields, and interface parameters of the submitted packages, without altering the attack type, gradient level, triggering conditions, or controlled behavior of each test plugin. Subsequently, each test plugin is submitted to each platform individually, and a unique association is established between the test task identifier, plugin identifier, and target platform identifier.
[0057] The entire process of submission and execution across platforms employs strict malicious control: real sensitive data and actual destructive payloads are replaced with synthetic data or harmless payloads carrying unique verification markers, ensuring that test plugins only generate verifiable controlled behavior and do not perform real harmful operations; all external requests are only allowed to access whitelisted controlled test servers, using dedicated test accounts, isolated test spaces, and isolated datasets isolated from the production environment, restricting data, network, and resource access according to the principle of least privilege. The system presets stopping conditions for each test plugin, including execution duration, number of calls, resource consumption, external request scope, and permission boundaries; when sufficient evidence is obtained to determine the effectiveness or failure of the defense, or when any of the following occurs: access to non-test data or non-whitelisted addresses, resource usage or number of requests exceeding preset thresholds, execution time reaching preset limits, or the target platform returning a blocking or alarm flag, the corresponding test is immediately terminated, the test plugin is disabled or removed from the platform, test credentials are revoked, and cache, repository copies, and controlled server data are cleared.
[0058] After completing all testing on a target platform, the system summarizes the platform's review status, listing or release status, operational status, interception phase, hit rules, stop reasons, and anonymized evidence according to attack type and gradient level. Gradient levels that have passed review and exhibit controlled behavior are marked as defense blind spots. For intercepted tests, the interception phase and hit rules are recorded, thereby determining the platform's defense boundaries and generating independent evaluation results corresponding to each target platform. After completing testing on all target platforms, the system combines the independent evaluation results of each platform into a cross-platform result matrix, outputting the defense differences between platforms and generating a responsible disclosure record containing only necessary anonymized evidence, stop records, and remedial recommendations.
[0059] Example 2 This embodiment discloses a gradient evaluation system for the review mechanism of a large model plugin distribution platform; like Figure 2 As shown, a gradient evaluation system for the review mechanism of a large model plugin distribution platform includes: The malicious plugin generation agent module is configured to: build a malicious plugin generation agent; The five-layer gradient evaluation control module is configured to automatically generate test cases containing deceptive text descriptions and malicious probe code by the Agent, and perform security tests in sequence according to the five-layer gradient, namely, text description deception detection, cross-modal text code splitting test, code-level obfuscation and remote API evasion test, semantic masquerade condition triggering test, and multi-plugin collaboration and logic decoupling test. The monitoring and judgment module is configured to locate the blind spots in the platform's review mechanism defense and output evaluation conclusions based on the pass and block results of each gradient test.
[0060] Example 3 The purpose of this embodiment is to provide a computer-readable storage medium.
[0061] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in Embodiment 1.
[0062] Example 4 The purpose of this embodiment is to provide an electronic device.
[0063] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps in the gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in Embodiment 1.
[0064] Example 5 Embodiment 5 of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps in the gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in Embodiment 1.
[0065] The steps and methods involved in the apparatuses of Embodiments 2, 3, 4, and 5 above correspond to those in Embodiment 1. For specific implementation details, please refer to the relevant description section of Embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood as including any medium capable of storing, encoding, or carrying an instruction set for execution by a processor and enabling the processor to perform any of the methods in this invention.
[0066] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computer devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computer device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. The present invention is not limited to any particular combination of hardware and software.
[0067] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.
Claims
1. A gradient evaluation method for the review mechanism of a large model plugin distribution platform, characterized in that, include: Build malicious plugins to generate agents; The Agent automatically generates test cases containing deceptive text descriptions and malicious probe code, and performs security checks in five layers: text description deception detection, cross-modal text code splitting test, code-level obfuscation and remote API evasion test, semantic masquerade condition triggering test, and multi-plugin collaboration and logic decoupling test. The cross-modal text-code splitting test includes: exposing malicious intent in plaintext in the generated code, while writing a seemingly compliant and highly deceptive natural language description to create a cross-modal semantic split between the code and the description, and testing whether the target platform has the interception capability to cross-verify the consistency between the code's actual behavior and the text description; The semantic spoofing condition trigger test includes: using a malicious plugin to generate an Agent to stitch the illegal logic into the legitimate business code structure, so that the illegal logic and the legitimate business logic form a unified structure in terms of syntax; setting a condition trigger in the legitimate business code structure, wherein the condition trigger is configured to trigger the execution of the illegal logic only when a preset condition is met; The multi-plugin collaboration and logic decoupling test includes: logically decoupling a single violation behavior to generate a first component that only reads local sensitive files and a second component that only executes external network requests; constructing a trust propagation chain: the first component returns the read sensitive data to the large language model, guiding the large language model to pass the sensitive data as a valid parameter when subsequently calling the second component, and using the network permissions of the second component to complete the outward transmission of sensitive data; after submitting the first and second components to the target platform, the test server is monitored to determine whether the target platform's runtime sandbox and taint tracking mechanisms have failed by checking whether the sensitive data has been received; Based on the pass and block results of each gradient test, the platform's review mechanism defense blind spots are located and evaluation conclusions are output.
2. The gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in claim 1, characterized in that, The text description deception detection includes: Directly embedding instructions in the prompts of plugin function descriptions to induce the model to tamper with its behavior in the background; Add well-known service keywords to the description to induce matching confusion in the natural language interface; The effectiveness of text censorship based on a static feature library was tested by generating an agent that continuously changes the synonyms of descriptive words.
3. The gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in claim 1, characterized in that, The code-level obfuscation and remote API evasion test includes: generating a dynamic loader, which remotely pulls external payloads through a hidden API and executes them in memory at runtime to probe the detection boundaries of the platform's static code scanning.
4. A gradient evaluation system for the review mechanism of a large model plugin distribution platform, characterized in that it includes: The malicious plugin generation agent module is configured to: build a malicious plugin generation agent; The five-layer gradient evaluation control module is configured to automatically generate test cases containing deceptive text descriptions and malicious probe code by the Agent, and perform security tests in sequence according to the five-layer gradient, namely, text description deception detection, cross-modal text code splitting test, code-level obfuscation and remote API evasion test, semantic masquerade condition triggering test, and multi-plugin collaboration and logic decoupling test. The cross-modal text-code splitting test includes: exposing malicious intent in plaintext in the generated code, while writing a seemingly compliant and highly deceptive natural language description to create a cross-modal semantic split between the code and the description, and testing whether the target platform has the interception capability to cross-verify the consistency between the code's actual behavior and the text description; The semantic spoofing condition trigger test includes: using a malicious plugin to generate an Agent to stitch the illegal logic into the legitimate business code structure, so that the illegal logic and the legitimate business logic form a unified structure in terms of syntax; setting a condition trigger in the legitimate business code structure, wherein the condition trigger is configured to trigger the execution of the illegal logic only when a preset condition is met; The multi-plugin collaboration and logic decoupling test includes: logically decoupling a single violation behavior to generate a first component that only reads local sensitive files and a second component that only executes external network requests; constructing a trust propagation chain: the first component returns the read sensitive data to the large language model, guiding the large language model to pass the sensitive data as a valid parameter when subsequently calling the second component, and using the network permissions of the second component to complete the outward transmission of sensitive data; after submitting the first and second components to the target platform, the test server is monitored to determine whether the target platform's runtime sandbox and taint tracking mechanisms have failed by checking whether the sensitive data has been received; The monitoring and judgment module is configured to locate the blind spots in the platform's review mechanism defense and output evaluation conclusions based on the pass and block results of each gradient test.
5. A computer-readable storage medium having a program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps in the gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in any one of claims 1-3.
6. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in any one of claims 1-3.
7. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the steps in the gradient evaluation method for the review mechanism of a large model plugin distribution platform as described in any one of claims 1-3.
Citation Information
Patent Citations
Large language model security evaluation method and device for prison break attack and medium
CN121834841A
Privacy protection multi-mode collaborative generation method and system based on time sequence sketch coding
CN122615906A
