An intelligent agent vulnerability mining security constraint and evidence verification method and system
By generating tamper-proof internal fingerprints and de-identified data, constructing a directed acyclic graph, determining concurrent conflicts, and extracting the minimum set of triggering conditions, the problems of data leakage and difficulty in causal attribution in agent vulnerability mining are solved, and a high-confidence vulnerability evidence chain and automated protection strategy distribution are realized.
Patent Information
- Application Number
- CN202611481942.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-22
- Publication Date
- 2026-11-24
AI Technical Summary
Existing intelligent agent vulnerability discovery technologies suffer from problems such as data leakage, difficulty in tracing the cause and effect of concurrent testing, and separation of attack and defense in practical applications, resulting in low vulnerability reproduction rates and the inability to automatically distribute protection strategies.
By generating tamper-proof internal fingerprints and desensitized structured substitute data, a directed acyclic graph data structure is constructed. Optimistic concurrent conflict determination is performed, the minimum trigger condition set is extracted, and the desensitized reproduction script code is input into a graph neural network model to generate defense rule category confidence scores for automatic distribution of protection strategies.
It enables the blocking of unauthorized probes during the vulnerability discovery phase, ensuring data privacy, accurately removing redundant probe nodes, improving the integrity and confidence of the vulnerability evidence chain, and achieving automated closed-loop attack and defense processing.
Smart Images

Figure CN123163907A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network security technology, specifically to a method and system for security constraints and evidence verification in intelligent agent vulnerability mining. Background Technology
[0002] With the development of cybersecurity technology, intelligent agents based on large language models are widely used in automated vulnerability discovery tasks. By generating test actions and payloads through autoregressive inference of large language models, the efficiency of vulnerability discovery is improved. However, existing intelligent agent vulnerability discovery technologies have obvious defects in practical applications. Existing systems lack strict security boundary judgment and physical isolation constraints when interacting with the target under test. The generated test actions directly affect the target environment, triggering uncontrollable underlying state changes and dirty data writing. The real response data returned by the target environment is directly sent back to the context window of the large language model without desensitization processing, causing serious leakage of business-sensitive data.
[0003] In concurrent probing scenarios, multi-threaded and multi-source test actions are executed in an intertwined manner. Existing technologies cannot align the time series of upper-layer call records with the changes in the underlying system state, and lack an analysis mechanism for the causal dependencies of test actions. This results in the system being unable to accurately trace the real node that caused the underlying state anomaly when faced with complex concurrent conflicts. The extracted vulnerability reproduction scripts contain a large number of redundant operations and cannot construct a minimum set of triggering conditions, resulting in low confidence of the final vulnerability evidence chain and low success rate of automated reproduction.
[0004] Furthermore, conventional intelligent agent vulnerability discovery mechanisms cease operation after outputting a basic vulnerability report, severing the attack and defense linkage links in the security protection system. The system cannot rely on the discovery results to extract multi-dimensional features to dynamically correct the detection prompt word strategy of the large language model. At the same time, it cannot convert vulnerability code features into machine-readable structured data to be input into the graph network for inference and prediction. As a result, the system cannot automatically generate defense rules and distribute application layer protection policies to the network application firewall cluster, and cannot form a complete automated attack and defense security closed loop. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a security constraint and evidence verification method and system for intelligent agent vulnerability mining, which solves the problems of data leakage due to lack of isolation in existing intelligent agent vulnerability mining and detection, low reproducibility due to difficulty in tracing the cause of concurrent testing, and the inability to automatically distribute protection strategies due to the separation of attack and defense.
[0006] To achieve the above objectives, the present invention provides the following technical solution: The first aspect provides a method for security constraints and evidence verification in intelligent agent vulnerability mining, comprising the following steps: Based on the vulnerability detection target, specific security constraints are generated, and candidate test actions are generated using a pre-trained large language model and Boolean logic interception and verification are performed. For the candidate test actions that have been approved, the original response data is intercepted, and tamper-proof internal fingerprint and desensitized structured substitute data are generated; Intercepting multi-source trajectory stream data and performing time series alignment operations to construct a directed acyclic graph data structure representing causal relationships; Optimistic concurrent conflict determination is performed based on the differences in underlying state changes, and the completeness of the evidence is jointly verified by combining the anti-tampering internal fingerprint determination. For the vulnerability for which the joint verification evidence is valid, extract the minimum set of triggering conditions, execute an automated replay loop, and generate a structured vulnerability detection report carrying de-identified reproducibility script code; The reinforcement learning reward score is calculated based on the structured vulnerability detection report, and the prompt word strategy of the pre-trained large language model is dynamically adjusted. The abstract syntax tree nodes and control flow graph edge relationships of the de-identified and reproducible script code are concatenated into a standardized graph tensor data structure, which is then input into the graph neural network model to output the defense rule category confidence level and then used to develop application-layer protection strategies.
[0007] Preferably, the step of generating specific security constraints based on the vulnerability detection target, generating candidate test actions using a pre-trained large language model, and performing Boolean logic interception verification includes: extracting the network domain names and interface paths contained in the vulnerability detection target to delineate the task security boundary, mapping the task security boundary into the machine-executable specific security constraints; concatenating the vulnerability detection target and the specific security constraints into a prompt text and inputting it into the pre-trained large language model for autoregressive inference, and outputting a text stream containing the tool call intent to generate the candidate test actions; The tool name field and parameter field are extracted from the communication data packet encapsulated by the candidate test action. Dynamic interception is performed based on the specific security constraints to calculate the action permission identifier. Based on the Boolean operation result of the action permission identifier, traffic scheduling at the physical network layer is performed. This step establishes a task security boundary mapping mechanism and intercepts unauthorized action commands at the physical network layer, thereby controlling the range of changes in the underlying state of the system.
[0008] Preferably, the step of intercepting the original response data for the approved candidate test action and generating tamper-proof internal fingerprint and desensitized structured substitute data includes: intercepting the original response data returned by the target system in a physically isolated memory domain, performing character set unification and encoding standardization processing on the original response data, and deriving a task temporary key in combination with the task number; Using the task's temporary key, a hash message authentication code operation is performed on the sensitive category, resource identifier, and normalized request context to generate an internal fingerprint as the anti-tampering internal fingerprint. The field hierarchy nesting format, character type, and data length limit parameters of the original response data are extracted. The sensitive category, feature vector, and random number seed are input into the surrogate generator to generate structured surrogate data stripped of the real business values as the desensitized structured surrogate data. This step replaces the real business values while retaining the original data structure characteristics, blocking the backflow of target sensitive information into the large language model context.
[0009] Preferably, the steps for generating structured substitute data to extract the true values of the business include: loading a streaming quota state machine when performing multi-layer nested decoding operations on the original response data, reading preset maximum memory limit, maximum execution time limit, and single decoding size limit parameters; and in each decoding iteration loop, real-time statistics of the current consumed memory, the amount of execution time, and the current decoding size are collected to perform resource quota verification calculations and generate a quota boolean identifier. When the value of the limit boolean flag is false, a dynamic truncation mechanism is triggered to forcibly stop the deep parsing of the original response data, release the physical buffer block allocated by the current working thread and block the continued output of the decoded plaintext. This step intercepts abnormally high compression ratio or infinitely nested data payloads through a streaming limit state machine to avoid exhausting physical computing resources.
[0010] Preferably, the step of intercepting multi-source trajectory stream data, performing time series alignment operations, and constructing a directed acyclic graph data structure representing causal relationships includes: intercepting inference action logs, traffic interception records, and underlying state change stream data as the multi-source trajectory stream data; using the modulo operation logic of read and write pointers to push the continuous byte stream into the allocated circular buffer; and combining the system clock offset obtained by the hardware real-time clock to perform numerical compensation operations on the original timestamps and output a unified aligned timestamp as the time series alignment operation. Extract the memory addresses of persistent variables written to the test project environment and the database row-level primary key identifiers to construct a state influence set. Extract the read system environment variable configuration table and the initial verification data payload to construct a state dependency set. Based on the unified aligned timestamp, task association identifier, state influence set and state dependency set, map each data record as a vertex node to construct the directed acyclic graph data structure. This step eliminates clock drift between heterogeneous data sources through numerical compensation and constructs the underlying state dependency topology in a multi-threaded concurrent scenario.
[0011] Preferably, the step of performing optimistic concurrent conflict determination based on the underlying state change difference and jointly verifying whether the evidence is complete and valid in conjunction with the anti-tampering internal fingerprint determination includes: parsing the underlying state change flow data before and after the tested project executes multiple candidate test actions in parallel to obtain the state influence set and state dependency set as the underlying state change difference; performing the optimistic concurrent conflict determination operation based on the snapshot difference for any first node and second node, and calculating the concurrent conflict identifier by comparing the hash table key values; When the Boolean logic operation result of the concurrent conflict identifier is false, the fingerprint matching result corresponding to the anti-tampering internal fingerprint, the unauthorized status, and the interface recorded by the application layer are collected and entered into the log. They are then substituted into the joint verification function to perform a Boolean logic intersection operation to calculate the leakage judgment identifier. When the Boolean logic operation result of the leakage judgment identifier is true, the joint verification evidence is determined to be complete and valid. The structured vulnerability file is packaged and encapsulated. This step compares the snapshot differences to eliminate interference from concurrent dirty data and combines the multi-dimensional log records to generate a vulnerability evidence chain with verification conditions.
[0012] Preferably, the step of extracting the minimum triggering condition set for the vulnerability for which the joint verification evidence is valid, executing an automated replay loop, and generating a structured vulnerability detection report carrying de-identified reproduction script code includes: reading the structured vulnerability file carrying the test action call chain and environment snapshot, extracting detached probe operations that do not cause physical changes to the underlying environment state and marking them as a set of nodes to be ablated; performing iterative pruning operations on the set of nodes to be ablated based on the incremental debugging algorithm, extracting the environment re-execution results and substituting them into the vulnerability state determination function to determine whether the joint verification evidence is completely valid, and outputting the minimum triggering condition set; Intercept read operation instructions in external network communication requests, extract the return value payload corresponding to the historical call log records, encapsulate it into a simulated response data packet, and inject it into the test communication link of the current tested project environment to establish a controlled replay execution environment; extract the minimum trigger condition set in the controlled replay execution environment, execute the automatic replay loop of the vulnerability multiple times, summarize the successful trigger count, and calculate the reproduction confidence; replace the plaintext bytes of the memory corresponding to the business sensitive entity identifier with an asterisk mask to generate the de-identified reproduction script code, and combine the reproduction confidence to render and output the structured vulnerability detection report. This step removes redundant test actions and eliminates external dependencies in the controlled replay environment, outputting the de-identified vulnerability reproduction script.
[0013] Preferably, the steps of calculating the reinforcement learning reward score based on the structured vulnerability detection report and dynamically correcting the prompt word strategy of the pre-trained large language model include: parsing the de-identified reproducibility script code carried in the structured vulnerability detection report into a low-level control flow graph and a data flow graph; extracting the opcode sequence dimension of the control flow graph, the data dependency hop count dimension of the data flow graph, and the node depth dimension of the abstract syntax tree to construct a multi-dimensional vulnerability feature vector; and extracting the number of milliseconds occupied by the central processing unit and the number of megabytes allocated by the physical memory and substituting them into the multi-objective reward calculation function to generate a feedback evaluation scalar as the reinforcement learning reward score. When the reinforcement learning reward score is greater than the preset calibration threshold, the desensitization and reproduction script code is converted into Extensible Markup Language format and appended to the end of the context window of at least the sample prompt word template to dynamically correct the prompt word strategy of the pre-trained large language model. This step converts the system computational overhead and vulnerability reproduction confidence into a reward scalar and dynamically corrects the action generation strategy of the large language model.
[0014] Preferably, the step of concatenating the abstract syntax tree nodes and control flow graph edge relationships of the de-identified reproducible script code into a standardized graph tensor data structure, and inputting the defense rule category confidence score into the graph neural network model to issue an application-layer protection strategy includes: calling a lexical analyzer to extract the abstract syntax tree nodes and control flow graph edge relationships of the de-identified reproducible script code; mapping the abstract syntax tree nodes into node feature matrices and mapping the control flow graph edge relationships into node adjacency matrices; and concatenating and encapsulating the node feature matrices and node adjacency matrices along the feature dimensions to form the standardized graph tensor data structure. The standardized graph tensor data structure is input into the graph neural network model for forward propagation prediction, and the target probability value for the application layer protection policy rule template type is output as the confidence level of the defense rule category. When the target probability value is greater than the preset deployment threshold, the corresponding defense rule template is extracted and combined with the network packet load to generate a high-confidence regular expression interception string, which is then encapsulated into a standard application layer protection policy configuration file and sent to the network application firewall cluster. This step converts the static code structure features into a high-dimensional graph tensor to predict the confidence level of the defense rule and automatically issues the interception policy to complete the attack and defense loop.
[0015] A second aspect of the present invention provides a security constraint and evidence verification system for intelligent agent vulnerability mining, the system comprising: The task control module receives vulnerability detection targets and generates corresponding task numbers, scenario numbers, and task security boundaries. The security configuration module, based on a pre-defined security specification library, constructs input constraints, data visibility constraints, tool execution constraints, and output constraints according to the task security boundary. The vulnerability discovery module generates candidate test actions based on vulnerability detection targets and constraints. The gateway module intercepts and parses the candidate test actions output by the vulnerability discovery module. If the candidate test action meets the tool execution constraints, the corresponding call request is allowed; otherwise, a blocking command is issued. The local verification module executes the allowed test request within the physical isolation domain, extracts the structured features of the target response data and generates de-identified evidence, and blocks the real target response data from entering the context of the vulnerability mining module. The trajectory acquisition module synchronously records the inference trajectory of the vulnerability mining module, the call trajectory of the execution gateway module, and the status trajectory of the tested project, and aligns the execution time sequence of multi-source trajectories based on task number and timestamp; The evidence association module obtains the de-identified evidence output by the local verification module, the attacker's permission status, and the access records aligned by the trajectory collection module, and performs joint conditional operations to determine whether the vulnerability evidence chain is complete. The causal replay module obtains test records that the evidence association module has determined to be valid, extracts the minimum trigger condition set based on the condition reduction algorithm, and performs a limited number of replays under the conditions of the agent's external environment. The reporting and closed-loop handling module summarizes the reproduction results of the causal replay module to output a structured vulnerability detection report. Based on the structured vulnerability detection report, it extracts multi-dimensional vulnerability features to calculate reinforcement learning reward scores to correct the detection strategy of the large language model. At the same time, it concatenates the vulnerability code features into a graph tensor data structure and inputs it into the graph neural network model to generate defense rule confidence and distribute application layer protection strategies to the network application firewall cluster.
[0016] This invention provides a security constraint and evidence verification method and system for intelligent agent vulnerability discovery. It has the following beneficial effects: 1. This invention sets task security boundaries based on the vulnerability detection target and uses the execution gateway module to perform Boolean logic interception and verification. Combined with physically isolated memory domains to intercept the original response data to generate de-identified structured substitute data, it can block unauthorized detection actions during the vulnerability discovery stage and prevent the real business sensitive data of the tested system from entering the context of the large language model, thereby ensuring the operational security and data privacy of the target system.
[0017] 2. This invention constructs a directed acyclic graph representing the causal relationship of actions by intercepting multi-source trajectory flow data and performing time series alignment operations. Combined with concurrent conflict judgment and extraction of the minimum trigger condition set, it performs automated replay loop in a controlled environment. This not only accurately removes redundant detection nodes, but also ensures that the final extracted vulnerability evidence chain has completeness and high confidence, reducing the false alarm rate in the vulnerability verification process.
[0018] 3. This invention dynamically modifies the detection strategy of a large language model by calculating reinforcement learning reward scores based on structured vulnerability detection reports, and concatenates the abstract syntax tree of the de-identified reproducible script code with the control flow graph as graph tensor data input to the graph neural network model to output the confidence of defense rules. This achieves closed-loop optimization of the underlying mining strategy and automatic distribution of standard protection strategies to the network application firewall cluster, comprehensively improving the system's automated attack and defense closed-loop processing efficiency. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the system timing interaction of the present invention; Figure 2 This is a schematic diagram of the method flow according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the vulnerability discovery, local verification, and structured trajectory acquisition topology of the present invention. Figure 4 This is a timing diagram illustrating the joint verification of concurrent conflict determination and vulnerability evidence in this invention. Figure 5 This is a schematic diagram of the controlled playback execution environment and dynamic closed-loop correction operation topology of the present invention; Figure 6 This is a timing diagram illustrating the graph neural network model prediction and standard application layer protection strategy configuration of the present invention. Detailed Implementation
[0020] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] See appendix Figure 1 This invention provides a security constraint and evidence verification system for intelligent agent vulnerability mining, the system comprising: The task control module receives vulnerability detection targets and generates corresponding task numbers, scenario numbers, and task security boundaries.
[0022] The security configuration module constructs input constraints, data visibility constraints, tool execution constraints, and output constraints based on a preset security specification library and the task security boundary.
[0023] The vulnerability discovery module generates candidate test actions based on vulnerability detection targets and constraints.
[0024] The gateway module intercepts and parses the candidate test actions output by the vulnerability discovery module. If the candidate test action meets the tool execution constraints, the corresponding call request is allowed; otherwise, a blocking command is issued.
[0025] The local verification module executes the allowed test request within the physically isolated domain, extracts the structured features of the target response data and generates de-identified evidence, and blocks the real target response data from entering the context of the vulnerability mining module.
[0026] The trajectory acquisition module synchronously records the inference trajectory of the vulnerability mining module, the call trajectory of the execution gateway module, and the status trajectory of the tested project, and aligns the execution time sequence of the multi-source trajectory based on the task number and timestamp.
[0027] The evidence association module obtains the anonymized evidence output by the local verification module, the attacker's permission status, and the access records aligned by the trajectory collection module, and performs joint conditional operations to determine whether the vulnerability evidence chain is complete.
[0028] The causal replay module obtains test records that have been determined to be valid by the evidence association module, extracts the minimum trigger condition set based on the condition reduction algorithm, and performs a limited number of replay reproductions under the conditions of the agent's external environment.
[0029] The reporting and closed-loop handling module summarizes the reproduction results of the causal replay module to output a structured vulnerability detection report. Based on the structured vulnerability detection report, it extracts multi-dimensional vulnerability features to calculate reinforcement learning reward scores to correct the detection strategy of the large language model. At the same time, it concatenates the vulnerability code features into a graph tensor data structure and inputs it into the graph neural network model to generate defense rule confidence and distribute application layer protection strategies to the network application firewall cluster.
[0030] See appendix Figure 2 This invention provides a security constraint and evidence verification method for intelligent agent vulnerability mining, the method comprising the following steps: S1 receives the vulnerability detection target and defines the task security boundary. Based on the task security boundary, it generates specific security constraints, uses a pre-trained large language model to generate candidate test actions, and executes Boolean logic interception and verification at the execution gateway. S2 intercepts the original response data in the physically isolated memory domain for the allowed network call request, builds an anti-tamper fingerprint based on symmetric encryption and hash operation, and generates desensitized structured substitute data in combination with streaming quota state machine; S3 intercepts multi-source trajectory stream data through the underlying operating system and pushes it into a circular buffer. It performs time series alignment operation based on the hardware real-time clock and constructs a directed acyclic graph data structure that represents the causal relationship of multi-source actions. S4 receives the differences in underlying state changes to construct a set of state influences and a set of state dependencies, performs optimistic concurrent conflict determination, and combines the fingerprint matching results with the identity overreach state to perform Boolean logic intersection operation to determine whether the joint verification evidence is complete and valid. S5, for vulnerabilities where joint verification evidence is established, relies on incremental debugging algorithm to extract the minimum set of triggering conditions, and executes multiple automated replay loops under a controlled external environment agent, summarizing the successful trigger count to generate a de-identified structured vulnerability detection report; S6 extracts multi-dimensional vulnerability feature vectors from structured vulnerability detection reports for similarity determination, calculates reinforcement learning reward scores by combining physical resource consumption indicators, generates optimization instructions to dynamically correct the prompt word strategy of the large language model and reclaim underlying physical computing resources; S7 maps and concatenates the abstract syntax tree nodes and control flow graph edge relationships into a standardized graph tensor data structure, inputs it into the graph neural network model for forward propagation prediction to output the confidence level of the defense rule category, and distributes the application layer protection policy to the network application firewall cluster based on the confidence level of the defense rule category.
[0031] See appendix Figure 3 In specific implementations, step S1 provided by the present invention may include the following steps: S11, the task control module receives the vulnerability detection target from external input, extracts the network domain name and interface path contained in the vulnerability detection target, generates a globally unique task number and scenario number, and the task control module combines the network domain name and interface path to define the task security boundary, and encapsulates the task security boundary into a state set for storage and transmission. The specific expression of the state set is as follows: ; In the formula, Configure tuples for tasks; A unique identifier for the task; Identify the target service; Add a whitelist to vulnerability discovery toolsets; A set of system resource access permissions; Status of identity authentication information; For the test data payload set; The expected format for the output results; In this embodiment, to maximize memory consumption budget, The value ranges from 100 to 500 MB.
[0032] S12, the security configuration module reads the task security boundary set output by the task control module, queries the system's built-in security specification library, and maps the task security boundary set into specific security constraints that can be executed by the machine. The specific security constraints include parameter range restrictions for input data, state preconditions for the tool execution environment, and a whitelist of explicitly permitted tools. The security configuration module generates network access control policies and directory path access restriction rules by matching the target range with the server resource range. The distribution logic of the network access control policy and the regular expression matching principle are implemented using existing access control list technology or a general regular expression engine.
[0033] S13, the vulnerability discovery module includes a pre-trained large language model and a context parser. The vulnerability discovery module concatenates the vulnerability detection target and specific security constraints into a structured prompt text, and inputs the prompt text into the pre-trained large language model for autoregressive inference. The output is a JSON format text stream containing the tool invocation intent. The context parser extracts the action field from the JSON format text stream to generate candidate test actions. The candidate test actions are encapsulated into structured communication data packets when output. The structured communication data packets contain the name of the tool to be invoked, the set of parameters required for execution, the target interface address, and the identity credential information currently carried.
[0034] S14, the execution gateway module is deployed between the vulnerability discovery module and the actual test environment in the network communication link. The execution gateway module intercepts all candidate test actions issued by the vulnerability discovery module in real time, extracts the tool name field and parameter field from the structured communication data packets, performs dynamic interception calculations based on Boolean logic according to specific security constraints, and calculates the final action permission identifier. The calculation formula for the action permission identifier is expressed as: ; In the formula, Based on the overall access permission determination results; Whitelist verification status; To perform environmental isolation verification status; The status is for validating the input parameters; Verify the system's operating status; This indicates the runtime risk assessment status.
[0035] S15, the execution gateway module performs traffic scheduling at the physical network layer based on the Boolean operation result of the action permission identifier: when the Boolean operation result of the action permission identifier is true, the execution gateway module allows the candidate test action and forwards the network call request corresponding to the candidate test action to the environment where the project under test is located; when the Boolean operation result of the action permission identifier is false, the execution gateway module directly discards the network call request at the network layer and blocks the issuance of the candidate test action; at the same time, the execution gateway module generates a violation event log with an interception reason identifier, returns the violation event log to the vulnerability mining module, and triggers the inference link circuit breaker mechanism of the vulnerability mining module to intercept the unauthorized probe action from entering the environment where the project under test is located.
[0036] In specific implementations, step S2 provided by this invention may include the following steps: S21, the local verification module intercepts the raw response data returned by the target system in a physically isolated memory domain partitioned by a trusted execution environment or virtual machine kernel monitor. It performs character set unification and encoding normalization on the raw response data, outputting normalized data. The local verification module extracts key-value pair identifiers from the normalized data using a pre-defined regular expression library and context metadata, constructs a feature vector, and determines and outputs the sensitive category of the normalized data based on a pre-defined rule library. Subsequently, the local verification module calls the key derivation function, combines the master key, task number, and environment variables to derive a temporary task key, and constructs a temporary verification factor for the data based on symmetric encryption principles. The calculation logic formula for the temporary task key is as follows: ; In the formula, A dedicated derived key for the task; Derived functions for the key; This is the system's global master key; A unique identifier for the task; For runtime environment identifier; This is the key expiration timestamp.
[0037] S22, the local verification module builds a data anti-tampering verification mechanism based on the one-way hash operation principle. It uses the task's temporary key to perform hash message authentication code operations on sensitive categories, resource identifiers, and normalized data to generate an internal fingerprint. This internal fingerprint is persistently stored in a physically isolated memory domain along with the request context. The mathematical formula for generating the internal fingerprint is: ; In the formula, To prevent tampering with the verification hash value; A function for generating hash-based message authentication codes; A dedicated derived key for the task; Identify business-sensitive entities; The target operation resource identifier; This is the normalized request context.
[0038] S23, after completing the internal fingerprint calculation, the local verification module activates the structured substitute generation logic. It extracts the field hierarchy nesting format, character type, and data length limit parameters of the original response data, establishing a mapping relationship between the original response data and the mask characters. The local verification module inputs the sensitive category, feature vector, and random number seed into the substitute generator to generate structured substitute data that retains the original nested structure and field types while stripping away the actual business values. The calculation logic formula for the structured substitute data is as follows: ; In the formula, Replace the data to desensitize the shadow; For shadow data mask replacement function; Identify business-sensitive entities; For sensitive data format feature vectors; A cryptographically secure random number source.
[0039] S24, when the local verification module performs multi-layer nested decoding operations on the original response data, it loads a streaming quota state machine. Based on preset calibration rules, it sets rigid computational boundaries for the physical resource consumption of the streaming decoding process. The local verification module reads preset maximum memory limit, maximum execution time limit, and single-decoding size limit parameters. In each decoding iteration loop, it continuously calculates the current consumed memory, executed time, and current decoding size. Based on the preset parameters and statistics, the local verification module performs resource quota verification calculations and generates a limit Boolean flag. The resource quota verification calculation expression is: ; In the formula, The result of the resource quota compliance assessment; This represents real-time memory usage, measured in megabytes. The maximum memory allocation, measured in megabytes, is dynamically mapped and determined by the host machine's hardware configuration management module during the initialization phase based on the proportion of currently available computing resources. In this embodiment... The value ranges from 512 to 2048 MB; This represents the duration the task has been executed, measured in milliseconds. This is the upper limit for task execution time, measured in milliseconds. It is set by the system administrator as a fixed empirical value based on the average execution cycle of historical tasks. In this embodiment... The value range is 1000 to 5000 ms; This refers to the size of data packets transmitted over the network, measured in kilobytes. The upper limit for data packet transmission, measured in kilobytes, is used to calibrate parameters based on the throughput bottleneck threshold of the network interface of the system under test. In this embodiment... The value ranges from 10 to 100KB.
[0040] S25, the local verification module determines the transition direction of the decoding state machine based on the operation result of the limit Boolean flag. When the value of the limit Boolean flag is true, the local verification module confirms that the current system computing resources are at a safe level, appends the decoding result of the current layer to the decoding result set, and continues to perform iterative probing into the deeper data structure. When the limit boolean flag is false, the local verification module triggers a dynamic truncation mechanism, forcibly stopping the deep parsing of the original response data. The local verification module releases the physical cache block allocated by the current working thread, marks the internal running state as a resource overload exception, converts the resource overload exception into an exception event record and reports it to the evidence association module, and blocks the continued output of the decoded plaintext, thus truncating the abnormal consumption of host machine computing resources caused by the high compression ratio nested payload.
[0041] In specific implementations, step S3 provided by this invention may include the following steps: S31, the trajectory acquisition module intercepts the inference action logs output by the vulnerability mining module, the traffic interception records generated by the execution gateway module, and the underlying state change flow data fed back by the tested project environment through the system calls at the underlying system of the host operating system. The underlying state change flow data includes database transaction logs and physical memory stack snapshots.
[0042] The trajectory acquisition module allocates a circular buffer with a preset capacity to each data source in the host machine's physical memory, extracts the continuous byte stream from each data source, and pushes the continuous byte stream into the corresponding allocated circular buffer using the modulo operation logic of the read and write pointers. In this embodiment, the preset capacity ranges from 200 to 500 MB. When the write pointer catches up with the read pointer, the trajectory acquisition module triggers an abnormal recording mechanism that overwrites the oldest data, and uses a read-write separation mechanism to isolate the transmission links of data sources with different throughputs on the system's internal bus bandwidth.
[0043] S32, the trajectory acquisition module extracts the native timestamps and task association identifiers from the inference action logs, traffic interception records, and underlying state change stream data. It loads the host machine's hardware real-time clock as a global reference. The trajectory acquisition module sends network probe packets to the network time protocol server and records the sending and receiving times to calculate the round-trip time difference. It uses the round-trip time difference to calculate the network layer transmission delay and, combined with the hardware real-time clock, obtains the system clock offset of the target subsystem. Subsequently, the trajectory acquisition module uses the system clock offset to perform numerical compensation calculations on the native timestamps and outputs a uniformly aligned timestamp. The physical calculation logic formula for the timing compensation operation is: ; In the formula, To align timestamps, the unit is milliseconds; This is the native timestamp, measured in milliseconds. This is the system clock offset, measured in milliseconds. It is calculated by the trajectory acquisition module sending network probe data packets to the network time protocol server and recording the sending and receiving times to determine the round-trip time difference for numerical calibration.
[0044] S33, before and after the candidate test actions are executed in parallel by the project under test, the trajectory acquisition module calls the underlying container engine control interface to trigger the environment snapshot acquisition command. By parsing the database transaction log and comparing the memory stack snapshot, the trajectory acquisition module compares the underlying physical changes of the initial snapshot and the snapshot after execution. The trajectory acquisition module extracts the memory address of the persistent variable written to the environment of the project under test during the execution of the current test node and the database row-level primary key identifier to construct the state influence set. At the same time, it extracts the system environment variable configuration table and the initial verification data payload read during the execution of the current test node to construct the state dependency set. The trajectory acquisition module serializes and encapsulates the state influence set and the state dependency set into a key-value pair hash table structure and loads it into the host machine memory. It also extracts the hash digest to provide a fast cross-node association comparison data source.
[0045] S34, the trajectory acquisition module constructs a directed acyclic graph (DAG) data structure representing the causal relationships of multi-source actions based on unified aligned timestamps, task association identifiers, state influence sets, and state dependency sets. In the host machine's memory, the trajectory acquisition module maps each data record to a vertex node in the DAG data structure, maps data records with temporal order and underlying physical state dependencies to directed edges between vertex nodes, and calculates the in-degree and out-degree topological attributes of each vertex node. The mathematical statistical rules for the topological attributes are as follows: ; ; In the formula, vertex node The in-degree of is a dimensionless positive integer; The target vertex node; The set of all vertex nodes in a directed acyclic graph data structure; For preceding dependent nodes; Let be the function for determining the existence of the first directed edge; vertex node The out-degree is a dimensionless positive integer; Let this be the function for determining the existence of the second directed edge; This is the successor state node.
[0046] S35, the trajectory acquisition module traverses the directed acyclic graph data structure to generate a structured trajectory data packet containing a complete execution context, reads the binary byte stream of the structured trajectory data packet and performs a cyclic redundancy check operation using a polynomial division algorithm, and extracts the remainder of the cyclic redundancy check operation output as the underlying anti-tampering checksum.
[0047] The trajectory acquisition module pushes the structured trajectory data packet and anti-tampering checksum into the receiving buffer pool of the evidence association module through the high-speed inter-process communication channel inside the host machine, and sends a system call instruction to the host operating system to asynchronously release the circular buffer and the physical memory block occupied by the directed acyclic graph data structure. The structured trajectory data packet is then transferred to the downstream processing module to serve as the standard input source for the concurrent conflict determination and vulnerability evidence joint verification algorithm.
[0048] See appendix Figure 4 In specific implementations, step S4 provided by the present invention may include the following steps: S41, the evidence association module receives the structured trajectory containing a unified alignment timestamp sequence output by the trajectory acquisition module, parses the call logs, interception records and underlying state change data carried in the structured trajectory, and then extracts the unified alignment timestamps and task numbers carried in the call logs, interception records and underlying state change data, and reads the multi-source data nodes after the time series alignment operation according to the association mapping table.
[0049] S42, the evidence association module parses the underlying state change data before and after the test project executes multiple candidate test actions in parallel, and extracts the state influence set and state dependency set pre-generated by the trajectory acquisition module. The state influence set includes the memory address of persistent variables written to the test project environment during the execution of parallel test nodes and the database row-level primary key identifier; the state dependency set includes the system environment variable configuration table read during the execution of parallel test nodes and the initial verification data payload. The state influence set and state dependency set are loaded into the host machine memory in a hash table data structure.
[0050] S43, the evidence association module receives the state influence set and state dependency set output by the trajectory acquisition module. In the host machine memory, it performs an optimistic concurrent conflict determination operation based on snapshot differences for any first and second nodes. It calculates the concurrent conflict identifier by comparing hash table key values and feeds the result of the concurrent conflict identifier calculation back to the task control module. The calculation logic formula for the concurrent conflict identifier is as follows: ; In the formula, This is the result of the concurrent conflict determination; This is the set of write states that affect the first concurrent thread. Index of the first concurrent thread; This is the read state dependency set corresponding to the second concurrent thread; For the second concurrent thread index; This is the identifier for the empty set; This is the set of write state effects corresponding to the second concurrent thread.
[0051] S44, the evidence association module executes the state scheduling control of the test project environment based on the Boolean logic operation result of the concurrent conflict identifier. When the Boolean logic operation result of the concurrent conflict identifier is true, it determines that a dirty memory read or database state overwriting event has occurred between the parallel test nodes, confirms that the result data generated by the current parallel test node is invalid and triggers the environment snapshot rollback mechanism. Subsequently, it calls the underlying container control interface to use the initial snapshot to overwrite the current test project environment, adds the parallel test nodes that have concurrent conflicts back to the scheduling queue of the task control module, and forces the parallel test nodes that have concurrent conflicts to be downgraded to serial execution mode.
[0052] S45, the evidence association module gathers the fingerprint matching results output by the local verification module, the unauthorized status extracted based on the role access control model, and the interface entry logs recorded by the application layer. It extracts the Boolean attribute features of the physical link and substitutes them into the joint verification function to perform Boolean logical intersection operations, thereby calculating the final leakage judgment identifier and generating a vulnerability verification judgment certificate in memory. The calculation logic formula for the leakage judgment identifier is as follows: ; In the formula, This is the result of the sensitive data leakage assessment. Match flag bits to the data content; This is a flag indicating unauthorized data ownership. Flag for unauthorized action execution; This is a system entity out-of-bounds flag. This is a timing exception trigger flag.
[0053] S46, the evidence association module performs a persistent solidification operation on the vulnerability evidence chain based on the Boolean logic operation result of the leakage judgment identifier. When the Boolean logic operation result of the leakage judgment identifier is true, the joint verification evidence of the current test sequence is determined to be complete and valid. The evidence association module packages and encapsulates the call log, de-identified evidence, vulnerability verification judgment certificate and structured trace corresponding to the current test sequence into a structured vulnerability file, and persistently writes the structured vulnerability file into the disk storage medium of the vulnerability database. When the Boolean logic operation result of the leakage determination flag is false, the evidence association module discards the corresponding test sequence and sends an instruction to the host operating system to release the physical memory block occupied by the current working thread.
[0054] See appendix Figure 5In specific implementations, step S5 provided by the present invention may include the following steps: S51, the causal replay module reads structured vulnerability files from the physical disk media of the vulnerability database through the underlying input / output bus, parses the test action call chain, the snapshot of the tested project environment, and the vulnerability verification judgment certificate carried in the structured vulnerability file, and constructs an initial trigger sequence containing multiple timing operation nodes. Then, the initial trigger sequence and the snapshot of the tested project environment are loaded into the host machine's independent replay sandbox memory, and the system status monitoring interface is called to extract the detached probe operations in the initial trigger sequence that do not cause physical changes to the underlying environment state. Finally, the detached probe operations are marked as a set of nodes to be ablated, and the set of nodes to be ablated is mapped into a one-dimensional node array data structure in the host machine memory.
[0055] S52, the causal replay module relies on causal graph analysis and incremental debugging algorithms to perform iterative pruning operations on the set of nodes to be ablated. In each iteration of the memory processing unit, specific test nodes are removed based on the index mask of the detached probe operation. Subsequently, in the independent replay sandbox memory, the underlying container control interface is called to re-execute the snapshot of the tested project environment. The results of the environment re-execution are extracted and substituted into the vulnerability status determination function to determine whether the joint verification evidence is complete and valid. The minimum trigger condition set is output. The condition reduction physical calculation logic formula for the minimum trigger condition set is as follows: ; In the formula, For the minimum set of triggering conditions; For specific test nodes; The complete set of operation nodes contained in the initial trigger sequence; This is a function for determining the vulnerability status. It is a Boolean false value.
[0056] S53, the causal replay module initializes the external environment proxy component in the independent replay sandbox memory, establishes a local network isolation strategy in combination with the environment variables of the tested project, parses the external network communication requests sent to the third-party uncontrollable system in the minimum trigger conditions, and modifies the system host file and network address translation table to intercept the external network communication requests.
[0057] The specific operation is as follows: intercept write operation instructions in external network communication requests and redirect the write operation instructions to the virtual empty device node of the host machine to perform physical data discarding; at the same time, intercept read operation instructions in external network communication requests, extract the return value payload corresponding to the historical call log records in the host machine memory, encapsulate the return value payload into a simulated response data packet and inject it into the test communication link of the current test project environment, and establish a controlled playback execution environment that is independent of real external physical dependencies by proxying control instructions through the underlying network protocol stack.
[0058] S54, the causal replay module, in the controlled replay execution environment, calls the underlying container management interface to restore the initial snapshot configuration before testing, extracts the minimum trigger condition set, executes multiple automated vulnerability replay action loops, collects and summarizes the successful trigger counts generated by multiple automated vulnerability replay action loops in the host processor registers, calls the memory computing unit to calculate the reproducibility confidence for the current vulnerability verification judgment certificate, and broadcasts the reproducibility confidence on the system internal bus to the reporting and closed-loop handling module. The calculation logic formula for the reproducibility confidence is: ; In the formula, To reproduce the confidence level; For the counter to be successfully triggered; In this embodiment, the preset total number of automated vulnerability replay actions is... The value range is from 5 to 20.
[0059] S55, the reporting and closed-loop handling module receives the minimum trigger condition set and reproduction confidence level transmitted by the causal playback module on the system's internal bus. It extracts the network packet load and the environment variable configuration table of the tested project contained in the minimum trigger condition set, loads the system's pre-set regular expression rule base, and retrieves the business sensitive entity identifier from the network packet load and the environment variable configuration table of the tested project. It extracts the index of the matching regular expression capture group, and then calls the memory byte overwrite function to replace the plaintext bytes of the memory corresponding to the business sensitive entity identifier with an asterisk mask to generate the de-identified reproduction script code. The de-identified reproduction script code, reproduction confidence level, and vulnerability verification judgment certificate are formatted and rendered according to the preset template, and a structured vulnerability detection report is output and persistently stored in the host machine's physical disk medium. At the same time, the host machine's independent playback sandbox memory is asynchronously cleared to release the underlying physical hardware computing resources.
[0060] In specific implementations, step S6 provided by the present invention may include the following steps: S61, the reporting and closed-loop handling module directly parses the de-identified reproduction script code and minimum trigger condition set carried in the structured vulnerability detection report in the host machine's memory. It calls the abstract syntax tree parser to convert the de-identified reproduction script code into the underlying control flow graph and data flow graph. It extracts the opcode sequence dimension of the control flow graph, the data dependency hop count dimension of the data flow graph, and the node depth dimension of the abstract syntax tree to construct a multi-dimensional vulnerability feature vector. In this embodiment, the value range of the opcode sequence dimension is 10 to 50, the value range of the data dependency hop count dimension is 3 to 10, and the value range of the node depth dimension is 5 to 20. The multi-dimensional vulnerability feature vector is serialized and encapsulated into a floating-point array structure and persistently stored in the host machine's physical disk medium, completing the construction of the standardized basic data input source.
[0061] S62, the reporting and closed-loop handling module loads a pre-built vulnerability knowledge graph into the host machine's memory. The vulnerability knowledge graph uses an attribute graph data structure and includes entity nodes representing historical vulnerability types and associated edges representing mutation mapping relationships. In the host machine's memory, it calls the tensor operation unit to calculate the cosine similarity between the multi-dimensional vulnerability feature vector and the feature tensor of the historical vulnerability type nodes. Based on the cosine similarity result, it determines whether the vulnerability corresponding to the current structured vulnerability detection report belongs to a known mutation type or a completely new zero-day type. It then inserts a new vulnerability type node into the vulnerability knowledge graph or dynamically updates the association weights of the associated edges. The node association weight update calculation logic formula is as follows: ; In the formula, The updated node association weight is a dimensionless floating-point number. The weight associated with the node before the update is a dimensionless floating-point number. The learning rate parameter is a dimensionless floating-point number. In this embodiment, the parameter is calibrated by finding the local optimum that maximizes model convergence using an offline grid search algorithm. The value range is from 0.01 to 0.1; Let be the cosine similarity, and be a dimensionless floating-point number.
[0062] S63, the report and closed-loop handling module extracts the CPU usage in milliseconds and physical memory allocation in megabytes recorded by the trajectory acquisition module. Combined with the reproducibility confidence carried in the structured vulnerability detection report, it performs reinforcement learning reward score calculations. Various physical consumption indicators are substituted into the multi-objective reward calculation function to generate a feedback evaluation scalar. The physical calculation logic formula for the multi-objective reward calculation function is as follows: ; In the formula, The reward points are dimensionless real numbers; The first weighting coefficient is a dimensionless real number, statically calibrated by the system's preset hyperparameter configuration file. In this embodiment... The value range is from 0.4 to 0.6; To reproduce the confidence level, the unit is percentage; The second weighting coefficient is a dimensionless real number, dynamically calibrated based on the host CPU's baseline load rate. In this embodiment... The value range is from 0.2 to 0.3; This refers to the consumption of central processing unit resources; The third weighting coefficient is a dimensionless real number, and its mapping is performed based on the real-time remaining proportion of the host machine's physical memory. In this embodiment... The value range is from 0.1 to 0.3; This represents the amount of physical memory resources consumed, measured in megabytes.
[0063] S64, the reporting and closed-loop processing module generates prompt word optimization instructions for the external large language model based on the positive and negative attributes of the reward score. When the reward score is greater than the preset calibration threshold, the current desensitized reproduction script code is converted into Extensible Markup Language (XML) format, and positive sample instances in XML format are appended to the end of the context window of at least the sample prompt word template. When the reward score is less than or equal to the preset calibration threshold, the suboptimal action nodes that cause resource overload or execution redundancy are extracted and encapsulated as reverse constraint rules and added to the system interception strategy table. The updated few-sample prompt word template is sent back to the vulnerability mining module through the internal bus. In this embodiment, the preset calibration threshold ranges from 0.5 to 0.8. The dynamic closed-loop correction calculation of the large language model detection strategy is realized at the underlying physical communication level through the context window reloading mechanism.
[0064] In step S65, the reporting and closed-loop handling module sends a global resource reclamation system call instruction to the host operating system's kernel process scheduler. After receiving the instruction, the kernel process scheduler traverses all active worker threads derived from the current test task and sends a forced termination signal to the active worker threads. It clears the Transmission Control Protocol socket connection buffer pool allocated in the test communication link. At the same time, it calls the memory paging management interface to release the independent replay sandbox memory pages occupied by the current test task in physical memory, changes the lifecycle state of the current test task to the completed state, and the kernel process scheduler reclaims the free cached data blocks based on the operating system's memory reclamation algorithm. It then adds the underlying hardware computing resources back to the globally available resource pool, providing physical hardware resource support for subsequent concurrent vulnerability mining tasks during the cold start phase.
[0065] See appendix Figure 6 In specific implementations, step S7 provided by the present invention may include the following steps: S71, the reporting and closed-loop handling module reads the structured vulnerability detection report and the de-identified reproduction script code from the physical disk medium, calls the lexical analyzer to extract the abstract syntax tree nodes and control flow graph edge relationships of the de-identified reproduction script code, maps the abstract syntax tree nodes to node feature matrices, and maps the control flow graph edge relationships to node adjacency matrices. The dimension of the node feature matrix is the number of nodes multiplied by the length of the feature vocabulary, and the dimension of the node adjacency matrix is the number of nodes multiplied by the number of nodes. Subsequently, the node feature matrix and the node adjacency matrix are concatenated along the feature dimensions and encapsulated into a standardized graph tensor data structure, which is loaded into the host machine's graphics processor memory as the standard physical input source for subsequent neural network models.
[0066] S72, the reporting and closed-loop handling module initializes a graph neural network model in the graphics processor's memory. The graph neural network model includes a series of cascaded input embedding layers, multi-layer graph convolutional layers, global pooling layers, and fully connected output layers. The input embedding layer converts the standardized graph tensor data structure into a low-dimensional continuous dense vector. In this embodiment, the dimension of the low-dimensional continuous dense vector ranges from 64 to 256. The multi-layer graph convolutional layers perform aggregation and update operations on the node neighborhood features based on the node adjacency matrix to extract local topological dependency features of the code structure. In this embodiment, the number of layers in the multi-layer graph convolutional layers ranges from 2 to 5. The global pooling layer performs dimensionality reduction and compression on the local topological dependency features of the code structure to generate a global graph representation vector. The fully connected output layer receives the global graph representation vector and outputs a probability distribution tensor with a dimension equal to the number of rule template categories. The probability distribution tensor represents the numerical confidence level of the specific defense rule template type adopted for the current vulnerability.
[0067] S73, as a prerequisite for online forward propagation prediction in the graph neural network model, is used in the reporting and closed-loop handling module during the offline training phase. This module extracts historical real vulnerability code from a general vulnerability disclosure database to construct a positive sample set, and uses static application security testing tools to scan generated normal business code to construct a negative sample set. It then iteratively updates the network connection weights of the graph neural network model by calling the backpropagation algorithm. After each forward propagation, it extracts the probability distribution tensor and substitutes it into the cross-entropy loss function to calculate the network prediction error. Simultaneously, it extracts expert-labeled defense rule templates as real labels to calculate the actual deviation. The calculation logic formula for the cross-entropy loss function is as follows: ; In the formula, is the cross-entropy loss value, which is a dimensionless non-negative real number; The total number of rule template categories is a positive integer. In this embodiment, the value of C ranges from 10 to 50. Index of the current rule template category; The one-hot encoding of the real label is a dimensionless integer, and the discrete numerical calibration is performed based on the template matching results of the defense rules marked by experts. For the corresponding class in the probability distribution tensor The predicted probability value is a dimensionless floating-point number, calculated by forward propagation of the fully connected output layer of the graph neural network model.
[0068] S74, the reporting and closed-loop processing module extracts the target probability value with the largest value in the probability distribution tensor during the online inference stage, and performs a numerical comparison operation between the target probability value and the preset deployment threshold. The preset deployment threshold is calibrated by the system based on the business fault tolerance index. In this embodiment, the value range of the preset deployment threshold is 0.8 to 0.95.
[0069] When the target probability value is greater than the preset deployment threshold, the corresponding defense rule template is extracted and combined with the network packet load in the structured vulnerability detection report to generate a high-confidence regular expression interception string; When the target probability value is less than or equal to the preset deployment threshold, a degradation strategy is triggered to generate a low-confidence interception rule that only contains access frequency limit parameters. Finally, the high-confidence regular expression interception string or the low-confidence interception rule is encapsulated into a standard application layer protection strategy configuration file.
[0070] S75, the reporting and closed-loop handling module sends the standard application layer protection policy configuration file to the underlying network application firewall cluster through the secure shell protocol encrypted channel of the host machine. It calls the hot reload application programming interface of the network application firewall cluster to inject the standard application layer protection policy configuration file into the memory rule matching engine. The network application firewall cluster intercepts external malicious network request packets that match the standard application layer protection policy configuration file according to the memory rule matching engine.
[0071] To aid in understanding the technical solution of this invention, an application embodiment of a security constraint and evidence verification method and system for intelligent agent vulnerability mining is provided below.
[0072] The task control module receives vulnerability detection targets for the enterprise employee salary query interface and generates a task number. It sets the task security boundary by combining the identity credentials of ordinary employees and the resource consumption limit. The security configuration module converts the task security boundary into input parameter character format constraints and system-level command execution tool disabling constraints. The vulnerability discovery module generates candidate test actions containing the intent to query senior management salaries based on the vulnerability detection targets and specific security constraints. The execution gateway module intercepts the candidate test actions and performs logical verification. If it determines that the candidate test actions do not contain dangerous tool payloads, it allows the network call request to enter the tested project environment.
[0073] The local verification module intercepts the actual senior management salary response data stream returned by the tested project environment within a physically isolated memory domain. It extracts the nested format and key-value pairs of the response data and generates an anti-tampering internal fingerprint using an encryption algorithm within the physically isolated memory domain. Combined with a streaming quota state machine to monitor the physical resource consumption boundary, it replaces the real name and salary value in the response data with an asterisk mask to generate structured substitute data. This blocks the real salary response data stream from entering the vulnerability mining module context and outputs the structured substitute data to the vulnerability mining module.
[0074] The trajectory acquisition module intercepts the inference action logs of the vulnerability mining module, the traffic interception records of the execution gateway module, and the underlying database transaction logs of the tested project environment through the operating system's underlying system calls. It pushes the intercepted data stream into a circular buffer, loads the hardware real-time clock to obtain the system clock offset, performs timing compensation calculations on the original timestamps of the data stream, and outputs a unified aligned timestamp. Based on the unified aligned timestamp, it constructs a directed acyclic graph data structure that represents the causal dependencies of multi-source data records.
[0075] The evidence association module obtains the logs and underlying state change records carried by the directed acyclic graph data structure, performs optimistic concurrency conflict determination operations in the host machine memory to confirm that no database write conflicts have occurred on the parallel test nodes, extracts ordinary employee identity credentials, anti-tampering internal fingerprints, and traffic interception records, substitutes them into the joint verification function to perform Boolean logic intersection operations, and determines that the unauthorized access determination flag is fully established when the Boolean logic intersection operation result is true. The test logs, structured substitute data, and directed acyclic graph data structure are packaged and written to the physical disk medium to generate a structured vulnerability file.
[0076] The causal replay module reads the test action call chain and the snapshot of the tested project environment carried in the structured vulnerability file. It uses an incremental debugging algorithm to perform iterative pruning operations on the set of nodes to be ablated to remove detached probe operations that do not cause physical changes to the underlying environment. It extracts the minimum set of triggering conditions with unauthorized parameter request packets. In a controlled replay execution environment that intercepts external network communication requests, it extracts the minimum set of triggering conditions and executes an automated replay action loop for the vulnerability. It summarizes the successful trigger count, calculates the reproduction confidence, and outputs a structured vulnerability detection report.
[0077] The reporting and closed-loop handling module extracts the reproducibility confidence carried in the structured vulnerability detection report and the CPU and physical memory usage recorded by the trajectory acquisition module. It substitutes the physical consumption indicators into the multi-objective reward calculation function to generate a reward score. When the reward score is greater than the preset calibration threshold, it converts the de-identified reproducibility script code into Extensible Markup Language format and appends it to the context window of the large language model prompt word template. It then sends a system call instruction to the kernel process scheduler to release the independent replay sandbox memory page to reclaim the underlying physical hardware computing resources.
[0078] The reporting and closed-loop handling module extracts the abstract syntax tree node feature matrix and control flow graph node adjacency matrix from the de-identified reproducible script code. It then concatenates these matrices along the feature dimension into a standardized graph tensor data structure. This standardized graph tensor data structure is input into a graph neural network model for forward propagation prediction, outputting a target probability value for the application-layer protection strategy rule template type. When the target probability value exceeds a preset deployment threshold, the corresponding defense rule template is extracted and combined with network packet load to generate a high-confidence regular expression interception string. This string is then encapsulated into a standard application-layer protection strategy configuration file and sent to the network application firewall cluster via an encrypted channel to inject into the memory rule matching engine to intercept external malicious network request packets.
[0079] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these specific embodiments are merely illustrative. Those skilled in the art can omit, substitute, and modify the details of the above methods and systems in various ways without departing from the principles and essence of the present invention. For example, combining the above method steps to perform substantially the same function and achieve substantially the same result using substantially the same method falls within the scope of the present invention.
Claims
1. A method for security constraint and evidence verification of agent vulnerability mining, characterized in that, Includes the following steps: Based on the vulnerability detection target, specific security constraints are generated, and candidate test actions are generated using a pre-trained large language model and Boolean logic interception and verification are performed. For the candidate test actions that have been approved, the original response data is intercepted, and tamper-proof internal fingerprint and desensitized structured substitute data are generated; Intercepting multi-source trajectory stream data and performing time series alignment operations to construct a directed acyclic graph data structure representing causal relationships; Optimistic concurrent conflict determination is performed based on the differences in underlying state changes, and the completeness of the evidence is jointly verified by combining the anti-tampering internal fingerprint determination. For the vulnerability for which the joint verification evidence is valid, extract the minimum set of triggering conditions, execute an automated replay loop, and generate a structured vulnerability detection report carrying de-identified reproducibility script code; The reinforcement learning reward score is calculated based on the structured vulnerability detection report, and the prompt word strategy of the pre-trained large language model is dynamically adjusted. The abstract syntax tree nodes and control flow graph edge relationships of the de-identified and reproducible script code are concatenated into a standardized graph tensor data structure, which is then input into the graph neural network model to output the defense rule category confidence level and then used to develop application-layer protection strategies. 2.The method of claim 1, wherein, The steps of generating specific security constraints based on the vulnerability detection target, generating candidate test actions using a pre-trained large language model, and performing Boolean logic interception verification include: Extract the network domain names and interface paths contained in the vulnerability detection target to define the task security boundary, and map the task security boundary into the specific security constraints that can be executed by the machine; The vulnerability detection target and the specific security constraints are concatenated into a prompt text, which is then input into the pre-trained large language model for autoregressive inference. The output is a text stream containing the tool call intent to generate the candidate test action. Extract the tool name field and parameter field from the communication data packet encapsulated by the candidate test action, perform dynamic interception calculation based on the specific security constraints to calculate the action permission identifier, and perform traffic scheduling at the physical network layer based on the Boolean operation result of the action permission identifier. 3.The method of claim 1, wherein, The step of intercepting the original response data for the candidate test action to be released and generating tamper-proof internal fingerprint and desensitized structured substitute data includes: The original response data returned by the target system is intercepted in the physically isolated memory domain. The original response data is then processed for character set unification and encoding standardization. The task temporary key is derived by combining the task number. The task temporary key is used to perform a hash message authentication code operation on the sensitive category, resource identifier, and normalized request context to generate an internal fingerprint as the tamper-proof internal fingerprint; Extract the field hierarchy nesting format, character type, and data length limit parameters of the original response data, and input the sensitive category, feature vector, and random number seed into the surrogate generator to generate structured surrogate data that strips away the real business values as the desensitized structured surrogate data. 4.The method of claim 3, wherein, The steps for generating structured substitute data that represents the actual values of the divestiture business include: When performing multi-layer nested decoding operations on the original response data, a streaming quota state machine is loaded to read preset parameters such as maximum memory limit, maximum execution time limit, and maximum size limit for a single decoding operation. In each decoding iteration loop, the current amount of memory consumed, the amount of execution time, and the current decoding size are statistically analyzed in real time to perform resource limit verification calculations and generate a limit boolean flag. When the value of the limit boolean flag is false, a dynamic truncation mechanism is triggered to forcibly stop the deep parsing of the original response data, release the physical buffer block allocated by the current working thread, and block the continued output of the decoded plaintext.
5. The method of claim 1, wherein, The steps of intercepting multi-source trajectory stream data, performing time series alignment operations, and constructing a directed acyclic graph data structure representing causal relationships include: Intercepting inference action logs, traffic interception records, and underlying state change stream data as the multi-source trajectory stream data, and using the modulo operation logic of read and write pointers to push the continuous byte stream into the allocated circular buffer; By combining the system clock offset obtained from the hardware real-time clock, numerical compensation calculations are performed on the original timestamps to output a unified aligned timestamp as the time series alignment operation. Extract the memory addresses of persistent variables written to the test project environment and the database row-level primary key identifiers to build the state impact set; extract the system environment variable configuration table read and the initial verification data payload build state dependency set. By relying on unified aligned timestamps, task association identifiers, state influence sets, and state dependency sets, each data record is mapped to a vertex node to construct the directed acyclic graph data structure.
6. The method of claim 5, wherein, The step of performing optimistic concurrent conflict determination based on differences in underlying state changes, combined with the tamper-proof internal fingerprint determination to jointly verify whether the evidence is complete and valid, includes: The underlying state change flow data before and after the test project executes multiple candidate test actions in parallel is analyzed to obtain the state influence set and state dependency set as the underlying state change difference. For any first node and second node, perform the optimistic concurrency conflict determination operation based on snapshot differences, and calculate the concurrency conflict identifier by comparing hash table key values; When the Boolean logic operation result of the concurrent conflict identifier is false, the fingerprint matching result corresponding to the anti-tampering internal fingerprint, the unauthorized status, and the interface recorded by the application layer are collected into the log and substituted into the joint verification function to perform Boolean logic intersection operation to calculate the leakage judgment identifier. When the Boolean logic operation result of the leakage determination identifier is true, the joint verification evidence is determined to be complete and valid, and a structured vulnerability file is packaged and encapsulated.
7. The method of claim 1, wherein the security constraints and evidence verification of agent vulnerability mining is characterized by, The steps for extracting the minimum triggering condition set for vulnerabilities for which the joint verification evidence is valid, executing an automated replay loop, and generating a structured vulnerability detection report carrying de-identified reproducibility script code include: Read the structured vulnerability file carrying the test action call chain and environment snapshot, and extract the detached probe operations that did not cause physical changes to the underlying environment state as a set of nodes to be ablated; Based on the incremental debugging algorithm, iterative pruning operations are performed on the set of nodes to be ablated. The results of the environment re-execution are extracted and substituted into the vulnerability status determination function to determine whether the joint verification evidence is complete and valid. The minimum triggering condition set is then output. Intercept read operation instructions in external network communication requests, extract the return value payload corresponding to the historical call log records, encapsulate it into a simulated response data packet, and inject it into the test communication link of the current test project environment to establish a controlled playback execution environment. In a controlled replay execution environment, extract the minimum set of triggering conditions, execute the automated replay loop of the vulnerability multiple times, and summarize the successful trigger count to calculate the reproduction confidence. The de-identified reproduction script code is generated by replacing the plaintext bytes of the business-sensitive entity identifier with an asterisk mask, and then outputting the structured vulnerability detection report by combining the reproduction confidence level with the rendering. 8.The method of claim 7, wherein, The steps for calculating reinforcement learning reward scores based on the structured vulnerability detection report and dynamically correcting the prompt word strategy of the pre-trained large language model include: The de-identified reproducibility script code carried in the structured vulnerability detection report is parsed and converted into a low-level control flow graph and a data flow graph. The opcode sequence dimension of the control flow graph, the data dependency hop count dimension of the data flow graph, and the node depth dimension of the abstract syntax tree are extracted to construct a multi-dimensional vulnerability feature vector. The number of milliseconds occupied by the central processing unit and the number of megabytes of physical memory allocated are extracted and substituted into the multi-objective reward calculation function to generate a feedback evaluation scalar as the reinforcement learning reward score; When the reinforcement learning reward score is greater than the preset calibration threshold, the desensitization and reproduction script code is converted into Extensible Markup Language format and appended to the end of the context window with at least sample prompt word templates to dynamically correct the prompt word strategy of the pre-trained large language model. 9.The method of claim 1, wherein, The steps of concatenating the abstract syntax tree nodes and control flow graph edge relationships of the de-identified and reproducible script code into a standardized graph tensor data structure, and then inputting the defense rule category confidence score into the graph neural network model to issue application-layer protection strategies include: The lexical analyzer is invoked to extract the abstract syntax tree nodes and control flow graph edge relationships of the de-identified reproducible script code. The abstract syntax tree nodes are mapped to node feature matrices, and the control flow graph edge relationships are mapped to node adjacency matrices. The node feature matrix and the node adjacency matrix are concatenated along the feature dimension and encapsulated into the standardized graph tensor data structure. The standardized graph tensor data structure is input into the graph neural network model for forward propagation prediction, and the target probability value for the application layer protection strategy rule template type is output as the confidence level of the defense rule category. When the target probability value is greater than the preset deployment threshold, the corresponding defense rule template is extracted and combined with the network packet load to generate a high-confidence regular expression interception string, which is then encapsulated into a standard application layer protection policy configuration file and sent to the network application firewall cluster.
10. A system for security constraint and evidence verification of agent vulnerability mining, using the method for security constraint and evidence verification of agent vulnerability mining according to any one of claims 1 to 9, characterized in that, The system includes: The task control module receives vulnerability detection targets and generates corresponding task numbers, scenario numbers, and task security boundaries. The security configuration module, based on a pre-defined security specification library, constructs input constraints, data visibility constraints, tool execution constraints, and output constraints according to the task security boundary. The vulnerability discovery module generates candidate test actions based on vulnerability detection targets and constraints. The gateway module intercepts and parses the candidate test actions output by the vulnerability discovery module. If the candidate test action meets the tool execution constraints, the corresponding call request is allowed; otherwise, a blocking command is issued. The local verification module executes the allowed test request within the physical isolation domain, extracts the structured features of the target response data and generates de-identified evidence, and blocks the real target response data from entering the context of the vulnerability mining module. The trajectory acquisition module synchronously records the inference trajectory of the vulnerability mining module, the call trajectory of the execution gateway module, and the status trajectory of the tested project, and aligns the execution time sequence of multi-source trajectories based on task number and timestamp; The evidence association module obtains the de-identified evidence output by the local verification module, the attacker's permission status, and the access records aligned by the trajectory collection module, and performs joint conditional operations to determine whether the vulnerability evidence chain is complete. The causal replay module obtains test records that the evidence association module has determined to be valid, extracts the minimum trigger condition set based on the condition reduction algorithm, and performs a limited number of replays under the conditions of the agent's external environment. The reporting and closed-loop handling module summarizes the reproduction results of the causal replay module to output a structured vulnerability detection report. Based on the structured vulnerability detection report, it extracts multi-dimensional vulnerability features to calculate reinforcement learning reward scores to correct the detection strategy of the large language model. At the same time, it concatenates the vulnerability code features into a graph tensor data structure and inputs it into the graph neural network model to generate defense rule confidence and distribute application layer protection strategies to the network application firewall cluster.
