Automated penetration testing zero-intrusion read-only security verification method and system

By translating compliance constraint information into read-only operation boundaries, generating authorized read-only instructions and allocating security budgets, and collecting and verifying multi-source evidence, the intrusiveness and misoperation issues of automated penetration testing are resolved, and the accuracy and compliance of security verification are achieved.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing automated penetration testing methods are highly invasive in multi-tenant or production environments, making it difficult to meet compliance requirements. They cannot effectively distinguish between test operations and system changes caused by real attacks, and lack read-only operation verification mechanisms, leading to risks of misoperation and data contamination.

Method used

By translating compliance constraint information into read-only operation boundaries, generating authorized read-only instructions, allocating security budgets, executing instructions through read-only acquisition channels, collecting information and generating multi-source evidence sets, and performing correlation verification to form traceable evidence records.

Benefits of technology

It achieves zero-intrusion security verification, avoids the risks of data tampering and state changes, improves the accuracy and reliability of risk identification, and meets compliance audit requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179406A_ABST
    Figure CN123179406A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computer security, and more particularly to a zero-intrusion read-only security verification method and system for automated penetration testing, which translates compliance constraint information into a read-only operation boundary, normalizes and maps the to-be-executed instructions to obtain authorized read-only instructions, allocates a security budget based on the asset state, and executes the instructions through a read-only collection channel to obtain an asset state view, service response information and audit log information, matches the service response information with risk rules to obtain service response verification evidence, compares the state view to obtain state difference evidence, extracts log backtracking evidence, correlates and verifies to form a multi-source evidence set and output a risk conclusion, realizes zero-intrusion read-only security verification, and ensures that the penetration testing does not cause actual impact on the target system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer security technology, and in particular to a zero-intrusion read-only security verification method and system for automated penetration testing. Background Technology

[0002] Automated penetration testing is a crucial component of modern security assessment systems, aiming to automatically discover security vulnerabilities and configuration flaws in target assets by simulating attack behaviors. Current conventional practices typically rely on proactive scanning engines and attack payload libraries to send probe requests to the target system, attempt exploits, and even execute remote commands to verify the existence of risks. During testing, these methods often involve instruction sets that modify the system state, such as writing to temporary files, changing service configurations, or triggering resource consumption. While automated testing frameworks mitigate risks through sandboxing or operation rollback mechanisms, their nature still allows instructions to have unintended impacts on the target environment. Especially in multi-tenant or production environments, any state change can trigger business interruptions or data corruption. Regulatory compliance frameworks have extremely low tolerance for the intrusiveness of verification activities, requiring testing to be auditable, traceable, and strictly read-only. Current practices struggle to translate compliance constraints into actionable operational boundaries, leading to a persistent conflict between security verification and business continuity.

[0003] Traditional automated penetration testing has significant shortcomings in evidence collection and result reliability. Existing solutions often rely on single-dimensional risk assessment, such as matching vulnerability rules based solely on features in service response messages or inferring asset vulnerabilities simply by scanning port states. This single-source evidence lacks temporal correlation analysis of system state changes and cannot distinguish between differences caused by test operations and changes resulting from real external attacks. While audit logs are collected by some tools, they lack precise timestamps and object-level bindings with verification requests, making it difficult to pinpoint the true impact of specific test steps during backtracking. More critically, current practices lack a mandatory verification mechanism to ensure test commands are indeed read-only operations. Before command execution, there is no structured parsing and mapping of permission boundaries, access objects, and permitted behaviors, leading to frequent instances of accidental or unauthorized access to sensitive data. The traceability of verification results is insufficient; risk conclusions often fail to form a complete, coherent, and tamper-proof chain of evidence, failing to meet the compliance audit requirements of security testing activities in sectors such as finance and government. Summary of the Invention

[0004] The present invention provides a zero-intrusion read-only security verification method and system for automated penetration testing, which can solve the problems in the prior art.

[0005] A first aspect of the present invention provides a zero-intrusion read-only security verification method for automated penetration testing, comprising: In automated penetration testing, compliance constraint information is translated into read-only operation boundaries based on the scope of the target assets, defining the constraint relationships between restricted access objects, allowed access methods, and prohibited status change methods. The instruction to be executed is parsed in a normalized manner to obtain the instruction structure and parameter association relationship and map it to the read-only operation boundary to obtain the mapping result. When the mapping result satisfies the access object constraint and does not trigger the prohibited state change mode, an authorized read-only instruction is generated. Based on the asset status, a security budget is allocated to the authorized read-only instruction. When the remaining amount of the security budget can support the current verification request, the asset information collection instruction is executed through the read-only collection channel, and the target asset status view, service response information and audit log information are obtained before and after the verification request. The service response information is matched with the risk characteristics in the risk rules to obtain service response verification evidence; the difference between the target asset status view before and after verification is compared, and status changes that are not related to the verification request in time or object are removed to obtain status difference evidence; access records and system behavior records related to the verification request are extracted from the audit log information to obtain log backtracking evidence. The service response verification evidence, the state differential evidence, and the log backtracking evidence are correlated and verified to form a multi-source evidence set. A risk conclusion is output based on the multi-source evidence set, and the verification request, the multi-source evidence set, and the risk conclusion are correlated and solidified into a traceable evidence record.

[0006] The compliance constraint information is translated into read-only operation boundaries, and authorized read-only instructions are generated based on these boundaries, including: The compliance constraint information is transformed into a constraint rule system composed of interconnected access object constraints, access method constraints, and state change constraints. The constraint rule system takes the target asset as the constraint object and limits the read-only operation boundary with the mutual exclusion relationship between allowed access methods and prohibited state change methods. The constraint rule system is stored in association with the corresponding rule version identifier. The instructions to be executed are parsed in a standardized manner to generate an instruction description that represents the instruction structure, the position of the parameters, and the relationship with the target object; based on the instruction description, it is determined whether the instruction contains a call relationship that changes the state of the target asset, and the instruction description and the result of the call relationship determination are mapped and compared with the constraint rule system; When the mapping comparison results show that the instruction description meets the allowed access method, the target object association meets the access object constraint, and the call relationship does not trigger the state change constraint, an authorized read-only instruction is generated; the authorized read-only instruction is then associated with the authorization basis, rule version identifier, and audit association identifier. When the mapping comparison result indicates that the call relationship triggers a state change constraint or the target object association does not meet the access object constraint, a rejection record is generated and the pending instruction is blocked; the rejection record is associated with the corresponding constraint rule system and the pending instruction for backtracking verification of the read-only operation boundary.

[0007] Based on the asset status, allocate a security budget for the authorized read-only instructions, including: Based on the importance, business affiliation, service status, and historical access records of the target assets, a single asset budget item is established for each target asset, consisting of access frequency quota, concurrency quota, duration quota, and abnormal retry quota. Based on the relationship between target assets within the same business domain, the business operation status, and the log retrieval load, a business domain budget item is established, consisting of the total request limit, the retrieval load limit, and the business peak limit. The access objects, operation types, expected resource consumption, and task priorities associated with authorized read-only instructions are parsed. The expected resource consumption is projected to the corresponding single asset budget item and business domain budget item, and the budget allocation result is determined based on the real-time business status of the target asset, the amount consumed, and the risk priority of the verification request. When the budget occupancy result meets the remaining quota conditions for the single asset budget item and the business domain budget item, an execution token associated with the authorized read-only instruction is issued; when any remaining quota condition is not met, the execution token is revoked and the verification request is transferred to the frequency reduction queue, the delay queue, or the pause queue. Collect the actual resource consumption after execution and update the corresponding budget items. Associate the budget usage results, execution token, actual resource consumption and queue transfer results with the authorized read-only instructions as the basis for subsequent security budget allocation.

[0008] The asset information collection command is executed through the read-only collection channel, and the target asset status view is obtained before and after the verification request, including: Raw data is obtained through pre-existing management data interface, audit data interface, and bypass data interface. The raw data carries a source identifier and a collection time identifier. Each read-only collection channel independently performs timeout processing, exception isolation, and retry control based on the execution token, so that an exception in a single channel does not change the collection status of the other channels. The raw data is included in the common status window according to the collection time identifier, and semantic normalization and association alignment are performed on the raw data in the common status window to obtain a unified status field that can represent the operating status of the same target asset. Asset entity identifiers are generated based on the correlation strength between unified status fields, and the corresponding fields are merged into candidate asset records. When there are conflicts among candidate asset records, the values ​​of the reserved fields used to generate the target asset status view are determined based on source credibility, collection time freshness, and cross-source consistency. Using the sending time of the verification request as the boundary, a target asset status view before verification and a target asset status view after verification are generated in the common status window before and after the sending time, and the source identifier, collection time identifier, and asset entity identifier are associated with the corresponding target asset status view record; the data inheritance relationship between the target asset status view before verification and the target asset status view after verification is maintained based on the same asset entity identifier.

[0009] The target asset state views before and after verification are compared to identify differences. State changes that are not related to the verification request in time or object are removed to obtain state difference evidence, including: Before sending the verification request, obtain the first state view and establish a time association between the first state view and the verification request; after the verification request is completed, obtain the second state view, and perform a field-level comparison between the first state view and the second state view according to the preset association window to obtain the state change record. Based on the temporal relationship between state change records and verification requests, changes that existed before the verification request and changes that were not in the associated window are eliminated to obtain candidate change records that are temporally related to the verification request. Based on the association between the asset entity identifier corresponding to the candidate change record and the access object of the verification request, candidate change records that do not belong to the association scope of the access object are eliminated, and state differential evidence containing the change content, occurrence time and source basis is generated for the retained change records. Establish a traceable association between the state differential evidence and the verification request, and use the first state view as the baseline state and the second state view as the comparison state. Before submitting the state differential evidence to the multi-source evidence set, verify whether the source of the state differential evidence can be traced back to the corresponding read-only acquisition channel and execution token, so as to ensure that the state differential evidence corresponds only to the authorized verification request and complete the archiving.

[0010] The service response verification evidence, the state differential evidence, and the log backtracking evidence are correlated and verified to form a multi-source evidence set. Based on the multi-source evidence set, risk conclusions are output, including: Establish evidence source identifier, time association identifier, object association identifier, risk characteristic identifier, and integrity identifier for service response verification evidence, state differential evidence, and log backtracking evidence, respectively. Verify whether the evidence corresponds to the same verification request based on the evidence source identifier and time association identifier, and verify the time association result. Based on the object association identifier and risk feature identifier, verify whether the service response information, status change record and system behavior record point to the same target asset and the same risk condition to obtain the object association verification result and risk feature matching result; when there is contradictory evidence, identify the contradictory fields, contradictory sources and contradictory occurrence time and write them into the evidence record to be reviewed. Based on the time correlation verification results, object correlation verification results, risk feature matching results, and evidence records to be reviewed, the risk confidence level is calculated. Multi-source evidence sets that meet the valid conditions for risk confidence and do not have evidence records to be reviewed are judged as valid risks. Multi-source evidence sets that have evidence records to be reviewed or whose evidence integrity does not meet the conditions are judged as risks to be reviewed. The risk confidence level, evidence records to be reviewed, and rule version identifiers are collectively packaged into a traceable risk conclusion record archive.

[0011] The verification request, multi-source evidence set, and risk conclusion are linked and solidified into a traceable evidence record, including: To verify requests, authorized read-only instructions, service response verification evidence, state differential evidence, log backtracking evidence, and risk conclusion records, object identifiers and version identifiers are assigned respectively, and an evidence association index is constructed based on the request identifier, asset entity identifier, object identifier, and version identifier. Based on the evidence association index, a bidirectional association is established between the authorization basis of the authorized read-only instruction, the execution token and rule version identifier, the access object and sending time of the verification request, the response characteristics of the service response verification evidence, the change fields of the state differential evidence, and the system behavior records of the log backtracking evidence. Calculate content summaries for risk conclusion records, authorized read-only instructions, and multi-source evidence sets, and form associated verification values ​​for each content summary according to the request identifier; write the associated verification values, rule version identifiers, object identifiers, and version identifiers into the traceable evidence record; Upon receiving a risk review request, the system retrieves the corresponding traceable evidence record based on the object identifier and version identifier of the risk conclusion record, and outputs the authorization basis, verification request, multi-source evidence set, and risk conclusion record corresponding to the risk review request. The system also verifies the completeness and correlation of the output records based on the correlation check value to form audit vouchers.

[0012] A second aspect of the present invention provides a zero-intrusion read-only security verification system for automated penetration testing, comprising: The constraint translation unit is used in automated penetration testing to translate compliance constraint information into read-only operation boundaries that define the constraint relationships between restricted access objects, allowed access methods, and prohibited state change methods based on the scope of the target asset. The instruction mapping unit is used to perform normalized parsing of the instruction to be executed, obtain the instruction structure and parameter association relationship, and map it to the read-only operation boundary to obtain the mapping result. When the mapping result satisfies the access object constraint and does not trigger the prohibited state change mode, an authorized read-only instruction is generated. The budget collection unit is used to allocate a security budget to the authorized read-only instruction based on the asset status. When the remaining amount of the security budget can support the current verification request, the unit executes the asset information collection instruction through the read-only collection channel and obtains the target asset status view, service response information and audit log information before and after the verification request. The response matching unit is used to match the service response information with the risk features in the risk rules to obtain service response verification evidence. The state difference unit is used to compare the differences between the state views of the target asset before and after verification, eliminate state changes that are not related to the verification request in time or object, and obtain state difference evidence. The log backtracking unit is used to extract access records and system behavior records associated with the verification request from audit log information to obtain log backtracking evidence; The evidence consolidation unit is used to perform correlation verification on the service response verification evidence, the state differential evidence, and the log backtracking evidence to form a multi-source evidence set, output a risk conclusion based on the multi-source evidence set, and associate and solidify the verification request, the multi-source evidence set, and the risk conclusion into a traceable evidence record.

[0013] A third aspect of the present invention provides an electronic device, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.

[0014] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.

[0015] The beneficial effects of this application are as follows: It achieves zero-intrusion, read-only security verification, collecting target asset information without any write operations throughout the penetration test, completely avoiding the risks of data tampering, configuration modification, or unexpected state changes. By translating compliance constraints into read-only operation boundaries and coordinating with a security budget allocation mechanism, each verification request is executed within strictly defined access objects and allowed access methods. It automatically aborts when the remaining budget is insufficient, preventing unauthorized operations and resource abuse at the source and ensuring the continuous and stable operation of the business system.

[0016] Matching service response information with risk rules directly generates service response verification evidence. Differences in the target asset status view before and after verification are compared, and irrelevant changes are eliminated to obtain status difference evidence. Related access and system behavior records extracted from audit logs form log backtracking evidence. These three types of evidence independently reflect security risks from different dimensions. After correlation verification, the limitations of single evidence are eliminated, significantly improving the accuracy and credibility of risk identification, effectively reducing the probability of false positives and false negatives, and ensuring that verification conclusions have sufficient logical support and factual basis. Attached Figure Description

[0017] Figure 1 A flowchart illustrating a zero-intrusion, read-only security verification method for automated penetration testing; Figure 2 A flowchart illustrating the process of obtaining state difference evidence. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of 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.

[0019] The technical solution of the present invention will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0020] Figure 1 This is a flowchart illustrating the zero-intrusion read-only security verification method for automated penetration testing according to an embodiment of the present invention. Figure 1 As shown, the method includes: In automated penetration testing, compliance constraint information is translated into read-only operation boundaries based on the scope of the target assets, defining the constraint relationships between restricted access objects, allowed access methods, and prohibited status change methods. The instruction to be executed is parsed in a normalized manner to obtain the instruction structure and parameter association relationship and map it to the read-only operation boundary to obtain the mapping result. When the mapping result satisfies the access object constraint and does not trigger the prohibited state change mode, an authorized read-only instruction is generated. Based on the asset status, a security budget is allocated to the authorized read-only instruction. When the remaining amount of the security budget can support the current verification request, the asset information collection instruction is executed through the read-only collection channel, and the target asset status view, service response information and audit log information are obtained before and after the verification request. The service response information is matched with the risk characteristics in the risk rules to obtain service response verification evidence. The differences between the target asset state views before and after verification are compared, and state changes that are not related to the verification request in time or object are eliminated to obtain state difference evidence. Extract access records and system behavior records associated with the verification request from the audit log information to obtain log backtracking evidence; The service response verification evidence, the state differential evidence, and the log backtracking evidence are correlated and verified to form a multi-source evidence set. A risk conclusion is output based on the multi-source evidence set, and the verification request, the multi-source evidence set, and the risk conclusion are correlated and solidified into a traceable evidence record.

[0021] In one optional implementation, compliance constraint information is translated into read-only operation boundaries, and authorized read-only instructions are generated based on the read-only operation boundaries, including: The compliance constraint information is transformed into a constraint rule system composed of interconnected access object constraints, access method constraints, and state change constraints. The constraint rule system takes the target asset as the constraint object and limits the read-only operation boundary by the mutual exclusion relationship between allowed access methods and prohibited state change methods. The constraint rule system is associated with and stored with the corresponding rule version identifier; The instructions to be executed are parsed in a standardized manner to generate an instruction description that represents the instruction structure, the position of the parameters, and the relationship with the target object; Based on the instruction description, determine whether the instruction contains a call relationship that changes the state of the target asset, and map and compare the instruction description and the result of the call relationship determination with the constraint rule system; When the mapping comparison results show that the instruction description meets the allowed access method, the target object association meets the access object constraint, and the call relationship does not trigger the state change constraint, an authorized read-only instruction is generated. Associate authorized read-only commands with their authorization basis, rule version identifier, and audit association identifier; When the mapping comparison result indicates that the call relationship triggers a state change constraint or the target object association does not meet the access object constraint, a rejection record is generated and the pending instruction is blocked. The rejection record is associated with the corresponding constraint rule system and the instruction to be executed, so as to perform backtracking verification of the read-only operation boundary.

[0022] Compliance constraint information typically originates from security compliance frameworks, organizational security policy documents, or regulatory requirements documents. Its original form is often rule entries described in natural language, which cannot be directly used for instruction-level access control judgments. The core of the translation process lies in transforming these unstructured or semi-structured compliance descriptions into a computer-processable constraint rule system. Specifically, three constraint dimensions are extracted from the compliance constraint information: access object constraints, access method constraints, and state change constraints. Access object constraints clarify which target assets fall within the protection scope, including attributes such as asset identifier, asset type, and network location. Access method constraints specify the types of operations allowed on the target assets, such as only allowing reading port open status or only allowing obtaining service version information. State change constraints enumerate all prohibited state change behaviors, such as prohibiting modification of configuration items, prohibiting writing to files, and prohibiting triggering service restarts. These three types of constraints are interconnected through mutual exclusion. The mutual exclusion relationship between allowed access methods and prohibited state change methods constitutes the core semantics of the read-only operation boundary, meaning that any allowed access method must not trigger any prohibited state change during execution.

[0023] Once the constraint rule system is constructed, it is organized around the target asset as the constraint object, with each rule associated with a corresponding rule version identifier. The rule version identifier is used to track the historical evolution of the constraint rule system, ensuring that verification requests executed at different points in time correspond to the rule version upon which the request was generated. When compliance requirements change, the new version of the constraint rule system is incrementally written to storage, while older versions are retained without deletion, thus supporting retrospective verification of historical verification actions. The rule version identifier must be globally unique, typically employing a composite identifier containing a timestamp and a rule set summary to prevent identifier conflicts between different versions.

[0024] The normalization and parsing of executable instructions is a prerequisite for generating authorized read-only instructions. The original instructions come from various penetration testing tools or custom scripts, and their syntax, parameter naming, and calling conventions differ. The normalization and parsing process converts the original instructions into a standardized instruction description, which includes three key elements: instruction structure, parameter positioning, and target object association. The instruction structure describes the operational semantics of the instruction, i.e., what type of operation primitive it belongs to, such as port scanning, service probing, credential verification, etc.; the parameter positioning describes the role of each parameter in the instruction execution process, such as a target address, a timeout period, or an output format control character; and the target object association associates the target identifiers involved in the instruction with asset records in the constraint rule system to determine whether the asset pointed to by the instruction is within the protected scope.

[0025] After the instruction description is generated, further analysis is performed to determine if the instruction contains call relationships that change the state of the target asset. The analysis of call relationships is not limited to the direct operation of the instruction itself, but also examines the indirect call chains triggered during the instruction's execution. For example, some service probe instructions, when sending specific probe messages, may trigger the writing of state records or the generation of log entries for the target service; such indirect state changes also need to be included in the scope of call relationship analysis. The call relationship determination result is represented by a combination of Boolean flags and change type descriptions. The Boolean flags indicate whether a state change call exists, while the change type descriptions refine the state change constraint category to which the change belongs.

[0026] When mapping and comparing the instruction description and call relationship determination results with the constraint rule system, the comparison logic judges according to three conditions in sequence. The first condition checks whether the operation type represented by the instruction structure falls within the scope of allowed access methods in the constraint rule system; the second condition checks whether the asset identifier in the target object association relationship meets the access object constraint, that is, whether the target asset is within the set of allowed assets; the third condition checks whether the state change type in the call relationship determination result intersects with the prohibited items in the state change constraint. When all three conditions are met, the mapping comparison result is passed; when any one condition is not met, the mapping comparison result is rejected, and the specific reason for rejection is recorded.

[0027] When the mapping comparison result is successful, an authorized read-only instruction is generated. The authorized read-only instruction appends authorization metadata to the original instruction, including the authorization basis, rule version identifier, and audit association identifier. The authorization basis records the specific rule entry that triggered the authorization decision, allowing for tracing the compliance basis of the authorization during subsequent audits; the rule version identifier maintains consistency with the corresponding version in the constraint rule system; the audit association identifier generates a globally unique audit trail identifier for this authorization instruction, used to associate all audit events generated during subsequent execution with this instruction. The generation result of the authorized read-only instruction, along with the above-mentioned association information, is written into the authorization record storage, forming a complete authorization decision chain.

[0028] When the mapping comparison result is a rejection, a rejection record is generated and the pending instruction is blocked. The blocking operation is completed before the instruction enters the execution queue, ensuring that the rejected instruction does not generate any actual network access behavior. The rejection record contains the original content of the pending instruction, the rejection reason classification, the specific constraint item that triggered the rejection, and the timestamp of the rejection. A three-way association is established between the rejection record, the corresponding constraint rule system, and the pending instruction. That is, the rule that caused the rejection can be queried from the rejection record, all instructions historically rejected by that rule can be queried from the constraint rule system, and the authorization decision history of each submission can be queried from the pending instruction. This three-way association structure provides a complete data foundation for backtracking verification of read-only operation boundaries. When it is necessary to review the access control execution status within a certain time period, the corresponding constraint rule system can be located by the rule version identifier, and then the complete instruction review process can be reconstructed through the three-way association relationship.

[0029] The effectiveness of the constraint rule system depends on the accurate translation of compliance constraint information. In actual deployment, a manual review process can be introduced during the translation, where security compliance personnel review the automatically translated constraint rule system to confirm the completeness of coverage of the three constraint dimensions and the logical correctness of mutual exclusion relationships. Only constraint rule systems that pass the review can be activated as the current effective version and participate in subsequent mapping and comparison processes. Rule systems that fail the review are retained in draft status and do not participate in actual authorization decisions, but their content and review comments are fully recorded to support rule optimization and iteration.

[0030] In one alternative implementation, a security budget is allocated to the authorized read-only instructions based on the asset status, including: Based on the importance, business affiliation, service status, and historical access records of the target assets, a single asset budget item is established for each target asset, consisting of access frequency quota, concurrency quota, duration quota, and abnormal retry quota. Based on the relationship between target assets within the same business domain, the business operation status, and the log retrieval load, a business domain budget item is established, consisting of the total request limit, the retrieval load limit, and the business peak limit. The access objects, operation types, expected resource consumption, and task priorities associated with authorized read-only instructions are parsed. The expected resource consumption is projected to the corresponding single asset budget item and business domain budget item, and the budget allocation result is determined based on the real-time business status of the target asset, the amount consumed, and the risk priority of the verification request. When the budget occupancy results meet the remaining quota conditions for the single asset budget item and the business domain budget item, an execution token associated with the authorized read-only instruction is issued; If any remaining quota condition is not met, the execution token is revoked and the verification request is transferred to the frequency reduction queue, the delay queue, or the pause queue. Collect the actual resource consumption after execution and update the corresponding budget items. Associate the budget usage results, execution token, actual resource consumption and queue transfer results with the authorized read-only instructions as the basis for subsequent security budget allocation.

[0031] Establishing a security budget for each target asset requires a comprehensive consideration of its position and status within the overall business system. The importance of a target asset is typically reflected in its business level, data sensitivity, and criticality in providing services. Business affiliation identifies the business domain to which the asset belongs, providing a categorization basis for subsequent cross-asset budget management. Service status reflects whether the asset is currently operating normally, in degraded mode, or under maintenance, directly affecting the maximum allocable access quota. Historical access records provide a baseline of access pressure experienced by the asset within a historical time window, used to calibrate the initial budget value. Based on these four dimensions, a single-asset budget item is constructed for each target asset, consisting of access frequency quota, concurrency quota, duration quota, and abnormal retry quota. The access frequency limit sets the maximum number of read-only accesses to the asset within a unit time window; the concurrency limit sets the number of read-only instructions that can be executed in parallel at the same time; the duration limit sets the maximum duration for a single verification task to continuously access the asset; and the abnormal retry limit sets the maximum number of retries allowed when a timeout or response anomaly occurs, preventing unexpected high-frequency impacts on the target asset caused by abnormal retries.

[0032] Beyond single-asset budget items, higher-dimensional budget constraints need to be established at the business domain level. Multiple target assets within the same business domain often share underlying infrastructure, database clusters, or log retrieval services. Independent budget control at the single-asset level cannot completely eliminate the business domain-level overload risk caused by cross-asset overlap. Therefore, based on the relationships between target assets within the same business domain, the current business operation status, and the real-time load of the log retrieval service, a business domain budget item is established, consisting of a total request limit, a retrieval load limit, and a peak business limit. The total request limit is a constraint on the total number of read-only requests for all target assets within the business domain per unit time. The retrieval load limit limits the query pressure on the retrieval service for operations such as log backtracking that rely on the retrieval engine, preventing large-scale log retrieval operations from affecting normal business log writing and querying. The peak business limit is a dynamic constraint; when the business domain's operation enters a peak period, the total request limit and retrieval load limit are automatically tightened to ensure that penetration testing verification activities do not overlap and interfere with normal traffic during peak business periods.

[0033] Before an authorized read-only instruction reaches the execution stage, its associated access object, operation type, estimated resource consumption, and task priority must be resolved. Access object resolution determines the target asset affiliation of the instruction, thus determining which single-asset budget item it should be projected to. Operation type resolution distinguishes between different types of read-only operations, such as port probing, service response collection, or log retrieval, each corresponding to a different resource consumption model. Estimated resource consumption estimates the access frequency, concurrent slots, duration, and retries required for this instruction execution based on the operation type, the target asset's historical response latency baseline, and the current service status. Task priority is derived from the risk priority of verification requests; higher-priority tasks have a higher weight in budget contention. After projecting the estimated resource consumption to the corresponding single-asset budget item and business domain budget item, the budget allocation is comprehensively determined by combining the target asset's real-time business status, already consumed amount, and the current verification request's risk priority. When the target asset is in a peak business period or the consumed amount is close to the threshold, even if the expected resource consumption does not exceed the remaining amount in terms of numerical value, it will be downgraded due to the lower risk priority, so as to reserve enough budget space for high-priority verification requests.

[0034] Once the budget allocation result is determined, the token issuance and queue management phase begins. When the budget allocation result simultaneously meets the remaining quota conditions for both the single asset budget item and the business domain budget item, an execution token associated with the authorized read-only instruction is issued. This token carries the specific value of the budget allocation for this instance and serves as proof for budget reimbursement in the subsequent execution phase. If any remaining quota condition is not met, the execution token is revoked, and the verification request is routed to different queues based on the specific reason for the failure: If the current access frequency or concurrent quota is temporarily insufficient but is expected to recover in the short term, the verification request is transferred to the frequency reduction queue and re-queued for execution according to the reduced access frequency; if the target asset is currently in a peak business period and the peak period is expected to end after a certain time window, the verification request is transferred to the delay queue and will re-participate in budget competition after the peak period ends; if the target asset's service status is abnormal or the remaining quota has been completely exhausted and cannot be recovered in the short term, the verification request is transferred to the pause queue and will be processed after manual intervention or asset status recovery. The three queue routing logics ensure that read-only instructions that put additional pressure on the target asset are not forcibly executed when the budget is insufficient, while also avoiding the direct discarding of verification tasks and ensuring the integrity of the verification process.

[0035] After the instruction is executed, actual resource consumption data is collected, including the actual number of accesses, the actual number of concurrent slots occupied, the actual duration, and the actual number of retries. The consumed amount in the corresponding single-asset budget item and business domain budget item is updated with the actual resource consumption value to ensure that the budget balance always reflects the true state. The deviation between actual and expected resource consumption is also recorded and used to continuously calibrate the expected resource consumption estimation model for subsequent instructions, improving the accuracy of budget projection over time. Budget occupancy results, execution tokens, actual resource consumption, and queue transfer results are all linked to the corresponding authorized read-only instructions, forming a complete budget execution record. This record not only serves as a historical basis for subsequent security budget allocation but is also associated with a multi-source evidence set of verification requests, enabling complete retrospective tracking of resource consumption for each verification activity and providing quantifiable evidence of resource behavior for compliance auditing of the penetration testing process.

[0036] In one optional implementation, an asset information collection instruction is executed through a read-only acquisition channel, and a target asset status view is obtained before and after the verification request, including: Raw data is obtained through pre-existing management data interface, audit data interface, and bypass data interface. The raw data carries a source identifier and a collection time identifier. Each read-only acquisition channel independently performs timeout handling, exception isolation, and retry control based on the execution token, so that an exception in a single channel does not change the acquisition status of the other channels; The raw data is included in the common status window according to the collection time identifier, and semantic normalization and association alignment are performed on the raw data in the common status window to obtain a unified status field that can represent the operating status of the same target asset. Based on the correlation strength between unified status fields, an asset entity identifier is generated, and the corresponding fields are merged into candidate asset records; When there are conflicts in candidate asset records, the values ​​of the reserved fields used to generate the target asset status view are determined based on source credibility, collection time freshness, and cross-source consistency. Using the sending time of the verification request as the boundary, a target asset status view before verification and a target asset status view after verification are generated in the common status window before and after the sending time, and the source identifier, collection time identifier and asset entity identifier are associated with the corresponding target asset status view record. The data inheritance relationship between the target asset status view before and after verification is maintained based on the same asset entity identifier.

[0037] Asset information collection commands are executed through a read-only collection channel. Data sources cover three types of pre-existing interfaces: management data interfaces, audit data interfaces, and bypass data interfaces. Management data interfaces typically correspond to the management plane query endpoints exposed by the target asset itself, such as SNMP read-only community word queries, REST API GET method calls, or read-only copy connections to databases. Audit data interfaces correspond to log streams, event streams, and compliance audit data export endpoints generated by the target asset or its infrastructure. Bypass data interfaces correspond to network traffic mirroring, port mirroring, or independent probe collection points, and do not directly interact with the target asset, belonging to a passive bypass collection method. Each piece of raw data is appended with a source identifier and a collection time identifier during collection. The source identifier records which type of interface and which specific collection node generated the data, and the collection time identifier is represented by a millisecond-level timestamp from a unified clock source to ensure the comparability of subsequent multi-source data in the time dimension.

[0038] Each read-only acquisition channel operates independently based on its own execution token. The execution token is a unique execution credential assigned to each acquisition task during the authorized read-only instruction generation phase, carrying control parameters such as channel identifier, validity period, and allowed retries. When a channel experiences a response timeout, it triggers timeout handling logic based on the timeout threshold set in the execution token, records the timeout event, and initiates a retry within the allowed number of retries. When a channel experiences a connection error or data format error, the exception isolation mechanism encapsulates the abnormal state of that channel within the channel itself, preventing it from propagating to other channels. The acquisition states of the remaining channels remain independent and unaffected. This design ensures that even if a certain type of interface of the target asset experiences a temporary failure or network jitter, valid raw data can still be obtained from other available channels, thus maintaining the integrity of the state view construction.

[0039] Raw data from different channels are incorporated into a common state window based on the collection time identifier. The common state window is a time interval extended forward and backward from the verification request sending time. The interval width is dynamically determined based on the target asset's status refresh frequency and the collection latency characteristics of each channel to ensure that the data within the window fully reflects the target asset's actual operating state before and after the verification request. The raw data falling into the common state window then undergoes semantic normalization, which maps heterogeneous field names, data types, and enumeration values ​​returned by different interfaces to a predefined standard field pattern. For example, "sysUpTime" returned by the management interface and "uptime_seconds" collected by the bypass interface are unified into the standard field "Asset Running Time". After semantic normalization, an association alignment operation is performed. Based on the source identifier and collection time identifier, it is determined whether the data from different channels describes the state of the same target asset at similar times. Data records with time differences within an acceptable deviation range and consistent description objects are aligned into the same state snapshot entry, ultimately forming a unified set of state fields that can characterize the operating state of the same target asset.

[0040] After obtaining the unified status field, asset entity identifiers are generated based on the correlation strength between the fields. Correlation strength considers multiple dimensions: if data from multiple sources are completely identical in strong identifier fields such as IP address, MAC address, hostname, and service port, the correlation strength is highest, and they are directly identified as the same asset entity; if strong identifier fields are only partially identical, but weak identifier fields such as operating system fingerprint and open service set are highly similar, a weighted score is used to determine whether to merge them into the same entity. Once the asset entity identifier is generated, the corresponding unified status field is merged into candidate asset records. These candidate asset records contain the field values ​​of the entity from all sources within the common status window, along with their source identifiers and collection time identifiers.

[0041] When conflicting values ​​for the same field in a candidate asset record originate from different channels, a conflict resolution mechanism is needed to determine the retained field value. Conflict resolution is based on three dimensions: source credibility, data collection time freshness, and cross-source consistency. Source credibility is pre-assigned based on the interface type; management data interfaces, being directly from the asset management plane, typically have high credibility, while bypass data interfaces have relatively lower credibility due to parsing errors caused by traffic analysis. Data collection time freshness is measured by the time difference between the data collection time marker and the verification request sending time; a smaller time difference indicates higher freshness. Cross-source consistency refers to the proportion of the field value appearing in multiple independent sources; a higher proportion indicates stronger consistency. After weighted merging of the scores from the three dimensions, the field value with the highest score is selected as the retained field value. The remaining conflicting values, along with their source markers, are retained in the conflicting field appendix of the candidate asset record for subsequent audit traceability.

[0042] Using the sending time of the verification request as a boundary, within a common state window before the sending time, a pre-verification target asset state view is generated according to the above process; within a common state window after the sending time, a post-verification target asset state view is generated using the same process. Each state view record is associated with three types of identifiers: a source identifier recording the source of each piece of original data constituting the view, a collection time identifier recording the collection time of each piece of original data, and an asset entity identifier indicating the target asset entity corresponding to the view. The association of these three types of identifiers ensures that the state view has a complete traceability chain, allowing for accurate tracing of the data source of any field change during the subsequent state differential evidence generation stage.

[0043] The pre-verification and post-verification target asset state views establish a data inheritance relationship through the same asset entity identifier. This data inheritance means that when constructing the post-verification state view, for fields not involved in the verification request, it prioritizes inheriting the values ​​of retained fields from the pre-verification state view that have undergone conflict resolution, rather than independently deriving them from the original data. This avoids introducing field noise unrelated to the verification request due to differences in data collection timing. For fields that change within the post-verification window, the new value is recorded, and during the differential stage, it is combined with time-related and object-related conditions to determine whether the change was caused by the verification request. This inheritance mechanism ensures that the two state views maintain consistency in field structure before and after verification, providing a structured foundation for the accurate generation of subsequent state differential evidence.

[0044] In one optional implementation, the target asset state views before and after verification are compared to identify differences, and state changes that are not related to the verification request in time or object are eliminated to obtain state difference evidence, including: Obtain the first state view before sending the verification request, and establish a time association between the first state view and the verification request; After the verification request is completed, the second state view is obtained. Based on the preset associated window, a field-level comparison is performed between the first state view and the second state view to obtain the state change record. Based on the temporal relationship between state change records and verification requests, changes that existed before the verification request and changes that were not in the associated window are eliminated to obtain candidate change records that are temporally related to the verification request. Based on the association between the asset entity identifier corresponding to the candidate change record and the access object of the verification request, candidate change records that do not belong to the association scope of the access object are eliminated, and state differential evidence containing the change content, occurrence time and source basis is generated for the retained change records. Establish a traceable association between state differential evidence and verification requests, and use the first state view as the baseline state and the second state view as the comparison state. Before submitting state differential evidence to the multi-source evidence set, verify whether the source of the state differential evidence can be traced back to the corresponding read-only acquisition channel and execution token, thereby ensuring that the state differential evidence corresponds only to the authorized verification request and is archived.

[0045] like Figure 2 As shown, the method includes: Before sending a verification request, a full state collection is performed on the target asset. The collection results are saved as a first state view to the local cache, and the timestamp of the collection completion is recorded synchronously. This timestamp is then bound to the upcoming verification request to form a time-related marker. The collection scope of the first state view covers fields such as the target asset's process list, open ports, hash digests of critical paths in the file system, sensitive registry keys, and service running status. The collection process is strictly executed through a read-only collection channel, without writing any data to the target asset. The time-related marker uses the unique identifier of the verification request as an index, and writes the collection timestamp of the first state view and the initiation timestamp of the verification request into the association record table to ensure that the asset's baseline state before the verification request was initiated can be accurately restored during subsequent difference comparisons.

[0046] After the verification request is completed, a second status scan is performed on the target asset based on the preset associated window to obtain the second status view. (Preset associated window) Defined as the time when the verification request is completed. The endpoint extends backward to the moment the verification request was initiated. The time interval, i.e. ,in To verify the timestamp of the request initiation, The verification request completion timestamp is used. Only status changes occurring within this window are included in subsequent analysis; changes outside the window are considered irrelevant to this verification request. Field-level comparison is based on the first status view, comparing each field with the second status view. Fields with discrepancies, their changes, the corresponding asset entity identifier, and the timestamp of the change are written into the status change record, forming a structured list of discrepancy entries. The granularity of field-level comparison is refined to the specific key-value level; for example, changes in the startup parameters of a process or the change in the listening status of a port from closed to open are recorded as independent discrepancy entries.

[0047] Based on the temporal relationship between state change records and verification requests, a first round of filtering is performed on discrepancies. Entries with changes occurring earlier than [a certain timeframe] are removed. Entries that correspond to state changes that existed before the verification request was initiated and have no causal relationship with the current verification request are excluded. Entries where the change occurred later than [the specified time] are also removed. Plus tolerance Items, tolerance This is used to accommodate state update delays caused by target asset response latency, and is typically configured based on the target asset type and network latency level. After time-series filtering, only changes occurring within the specified timeframe are retained. From the range of difference entries, candidate change records that are time-related to the verification request are obtained. These candidate change records retain the change content, occurrence time, and source fields, providing input for subsequent object association filtering.

[0048] A second round of screening is conducted on candidate change records, filtering based on the association between asset entity identifiers and the access objects of the verification request. The verification request explicitly records the set of asset entity identifiers of the access object when generating the authorized read-only instruction. The asset entity identifier of each entry in the candidate change records is compared with this set, and entries whose asset entity identifiers do not belong to the scope of association with the access object are eliminated. The determination of the scope of association is not limited to directly accessed objects, but also includes related assets that have dependencies or communication relationships with the accessed object, such as backend database instances or shared storage nodes called by the accessed service. Changes in the status of these related assets are also included in the retention scope. After object association screening, status difference evidence is generated for the retained change records. Each status difference evidence includes a change content field, an occurrence time field, and a source basis field. The source basis field records which read-only collection operation the difference originates from and its corresponding execution token identifier.

[0049] After the state difference evidence is generated, it is linked to the verification request in a traceable manner. Using the first state view as the baseline state and the second state view as the comparison state, storage references to both the first and second state views are written into the metadata of the state difference evidence. This ensures that the original input for the difference comparison can be completely reconstructed during subsequent audits. The traceable link uses the unique identifier of the verification request as a tie, connecting the verification request record, the first state view reference, the second state view reference, and the list of state difference evidence entries into a complete evidence chain. Any link can be traced forward or backward using the unique identifier.

[0050] Before submitting state differential evidence to the multi-source evidence set, an integrity check is performed on the source basis of each piece of state differential evidence. The check verifies whether the read-only acquisition channel identifier recorded in the source basis field matches the acquisition channel in the security budget record allocated for this verification request. It also verifies whether the execution token identifier is a valid token issued through the authorization process, and that the token's validity period covers the execution time interval of the state acquisition operation. If the source basis of a piece of state differential evidence fails the above checks, the evidence is marked as questionable, not included in the multi-source evidence set, and the specific reason for the verification failure is recorded in the audit log, including channel mismatch or token expiration. Verified state differential evidence is submitted to the multi-source evidence set and archived. The archived content includes a list of state differential evidence entries, a reference to the baseline state view, a reference to the comparison state view, associated window parameters, verification result records, and an archive timestamp. This ensures that the state differential evidence corresponds only to authorized verification requests, enabling reliable cross-comparison with service response verification evidence and log backtracking evidence during the multi-source evidence association verification phase, supporting the accurate output of the final risk conclusion.

[0051] In one optional implementation, the service response verification evidence, the state differential evidence, and the log backtracking evidence are correlated and verified to form a multi-source evidence set. A risk conclusion is then output based on the multi-source evidence set, including: Establish evidence source identifier, time association identifier, object association identifier, risk characteristic identifier, and integrity identifier for service response verification evidence, state differential evidence, and log backtracking evidence, respectively. Verify whether the evidence corresponds to the same verification request based on the evidence source identifier and time association identifier, and verify the time association result. Based on the object association identifier and risk feature identifier, verify whether the service response information, status change record and system behavior record point to the same target asset and the same risk condition, and obtain the object association verification result and risk feature matching result; When there is conflicting evidence, identify the conflicting fields, the source of the conflict, and the time when the conflict occurred, and record them in the evidence to be reviewed record; Based on the time correlation verification results, object correlation verification results, risk feature matching results, and evidence records to be reviewed, the risk confidence level is calculated. Multi-source evidence sets that meet the valid conditions for risk confidence and do not have evidence records to be reviewed are judged as valid risks. Multi-source evidence sets that have evidence records to be reviewed or whose evidence integrity does not meet the conditions are judged as risks to be reviewed. The risk confidence level, evidence records to be reviewed, and rule version identifiers are collectively packaged into a traceable risk conclusion record archive.

[0052] After independently collecting service response verification evidence, state differential evidence, and log backtracking evidence, a systematic correlation verification of these three types of evidence is required to eliminate false positives or false negatives from a single evidence source, forming a multi-source evidence set with cross-support capabilities. The starting point for correlation verification is establishing a unified metadata annotation structure for each piece of evidence, specifically including five types of identifiers: Evidence source identifier, used to record which collection channel the evidence was generated from (service response collection, state view comparison, or audit log extraction); Time correlation identifier, recording the time interval of the event corresponding to the evidence; Object correlation identifier, recording the target asset identifier and its service port or process identifier pointed to by the evidence; Risk characteristic identifier, recording the risk rule number and risk category matching the evidence; Integrity identifier, recording the hash check value of the evidence during collection, transmission, and storage, used to prevent evidence from being tampered with or lost. These five types of identifiers are bound during the evidence generation stage and enter the subsequent verification process along with the evidence data, ensuring that the traceability path of each piece of evidence is always traceable during the verification process.

[0053] During the time-related verification phase, based on the time-related identifier of each piece of evidence, it is determined whether the service response verification evidence, state differential evidence, and log backtracking evidence all fall within the time range of the same verification request. Since the three types of evidence originate from different collection mechanisms, their timestamp precision and alignment methods have slight differences. Therefore, time-related verification does not require the three timestamps to be completely identical, but rather that they all fall within the valid time range bound to the verification request. If the time interval indicated by the time-related identifier of a piece of evidence does not intersect with the time range of the verification request, the evidence is marked as time-related invalid, not included in the current multi-source evidence set, and the reason for invalidation is recorded in the verification log. The time-related verification result is output in the form of a combination of Boolean flags and association confidence scores for subsequent risk confidence calculation.

[0054] In the object association verification phase, based on the object association identifier, it is verified whether the three types of evidence all point to the same target asset. In actual penetration testing scenarios, multiple services can run simultaneously on the same target asset, and different pieces of evidence come from different service ports of that asset. Therefore, object association verification uses the asset identifier as the primary key and the service port or process identifier as the secondary key for matching. If the object association identifiers of the three types of evidence all point to the same asset identifier, the object association verification passes. If evidence points to different assets, it is necessary to further determine whether they belong to different service instances of the same asset. If they are confirmed to belong to the same asset, the service is marked as dispersed and the verification passes; otherwise, the object association is marked as invalid. The risk feature matching result compares the risk feature identifiers of the three types of evidence to determine whether they correspond to the same risk rule number or the same risk category, thereby confirming whether the three types of evidence jointly point to the same risk condition. Only when both object association and risk feature match is the three types of evidence considered to have a valid semantic association.

[0055] When contradictions arise among the three types of evidence—for example, if service response verification evidence indicates a high-risk vulnerability in the target asset, but state difference evidence fails to record any state changes related to the exploit path of that vulnerability, or if system behavior records in log backtracking evidence are inconsistent with the access behavior described in the service response information—then the contradiction identification process begins. This process automatically extracts the specific field name causing the contradiction (i.e., the contradictory field), the source of evidence to which that field belongs (i.e., the source of the contradiction), and the time point in time when the contradiction occurred (i.e., the time of the contradiction). These three pieces of information are then combined and written into the evidence record to be reviewed. The evidence record to be reviewed does not terminate the current verification process; instead, it serves as a special annotation that circulates along with the multi-source evidence set, ultimately influencing the risk conclusion classification.

[0056] The calculation of risk confidence score comprehensively considers four inputs: time correlation verification results, object correlation verification results, risk feature matching results, and evidence records to be reviewed. Let the time correlation confidence score be... The object association confidence score is The confidence score for risk feature matching is The penalty coefficient for the evidence records pending review is Then the overall risk confidence level The calculation method is as follows ,in , , The range of values ​​is , Based on the number of evidence records pending review and the severity of the contradictions... Dynamically assign values ​​within the specified range when no evidence record to be reviewed exists. Values Risk confidence level The calculation results also fall into The interval, and the preset valid condition threshold. Compare them.

[0057] when Furthermore, if no evidence records awaiting verification exist, the corresponding multi-source evidence set is deemed a valid risk. This means that the three types of evidence are highly consistent across the dimensions of time, object, and risk characteristics, and there are no inexplicable contradictions, making it a reliable direct output for risk discovery. When the multi-source evidence set contains evidence records awaiting verification, or the hash verification of the evidence integrity identifier fails (i.e., the integrity condition is not met), regardless of the risk confidence level... Depending on the numerical value, the entire set of multi-source evidence is classified as a risk requiring further review. Instead of being output as a definitive risk conclusion, it enters a manual review queue where security analysts further verify contradictory fields and integrity anomalies. This dual-judgment mechanism ensures the reliability of automated penetration testing conclusions and avoids misjudgments due to contradictory evidence or corrupted data.

[0058] After completing the risk assessment, the risk confidence level will be... The numerical value, the complete content of the evidence record to be reviewed (including contradictory fields, sources of contradiction, and times of contradiction), and the current risk rule version identifier are collectively encapsulated to form a traceable risk conclusion record, which is then written into the archive. The introduction of the rule version identifier addresses the issue of reproducibility of historical conclusions arising from the iterative updates of the risk rule base over time: when the rule base is upgraded, the risk conclusion record in the historical archive retains the rule version information used when it was generated, allowing auditors to re-verify historical conclusions at any point in time based on the original rule version without the logical break in the interpretation of historical conclusions caused by rule upgrades. The traceable risk conclusion record, together with the verification request information and the multi-source evidence set, constitutes a complete chain of evidence, supporting subsequent compliance audits, vulnerability reproduction, and accountability.

[0059] In one alternative implementation, the verification request, multi-source evidence set, and risk conclusion are associated and solidified into a traceable evidence record, including: To verify requests, authorized read-only instructions, service response verification evidence, state differential evidence, log backtracking evidence, and risk conclusion records, object identifiers and version identifiers are assigned respectively, and an evidence association index is constructed based on the request identifier, asset entity identifier, object identifier, and version identifier. Based on the evidence association index, a bidirectional association is established between the authorization basis of the authorized read-only instruction, the execution token and rule version identifier, the access object and sending time of the verification request, the response characteristics of the service response verification evidence, the change fields of the state differential evidence, and the system behavior records of the log backtracking evidence. Calculate content summaries for risk conclusion records, authorized read-only instructions, and multi-source evidence sets, and form an associated verification value for each content summary according to the request identifier; Write the associated verification value, rule version identifier, object identifier, and version identifier into the traceable evidence record; Upon receiving a risk review request, the system retrieves the corresponding traceable evidence record based on the object identifier and version identifier of the risk conclusion record, and outputs the authorization basis, verification request, multi-source evidence set, and risk conclusion record corresponding to the risk review request. The system also verifies the completeness and correlation of the output records based on the correlation check value to form audit vouchers.

[0060] After completing the correlation verification and risk conclusion output of the multi-source evidence set, all key information generated throughout the verification process needs to be solidified into traceable evidence records to support subsequent compliance audits and risk reviews. The core of this solidification process lies in establishing a unique and stable identity system for each type of evidence object. Specifically, object identifiers and version identifiers are assigned to six types of objects: verification requests, authorized read-only instructions, service response verification evidence, state differential evidence, log backtracking evidence, and risk conclusion records. The object identifier is used to uniquely locate a specific evidence entity within the entire evidence system, while the version identifier is used to distinguish multiple version instances of the same evidence object generated at different times or in different iterations, thus maintaining distinguishability in scenarios where evidence records accumulate over time. Object identifiers can be generated using a hash method based on a combination of timestamps and random entropy values ​​to ensure that there are no identifier conflicts between evidence objects generated by different verification requests in concurrent verification scenarios.

[0061] After assigning object identifiers and version identifiers, an evidence association index is constructed based on four dimensions: request identifier, asset entity identifier, object identifier, and version identifier. The request identifier is a unique number assigned by the verification process when a verification request is initiated, used to link all evidence objects generated in a complete verification activity into a logical whole. The asset entity identifier identifies the specific target asset for this verification, enabling the merging and retrieval of historical evidence records across multiple verification requests according to the asset dimension. The evidence association index is stored in an inverted index structure, supporting forward retrieval of all evidence from a specific verification by request identifier, and also supporting horizontal retrieval of evidence records generated by a specific asset in all historical verification requests by asset entity identifier. This dual-dimensional index structure is of great significance in actual auditing scenarios—auditors can trace the complete evidence chain by a single verification event, and also analyze the evolution history of its security status vertically by asset dimension.

[0062] Based on the evidence association index, a bidirectional association between evidence objects is further established. Bidirectional association means that it is possible not only to find other evidence objects associated with a given evidence object, but also to trace back to the original evidence object from the associated objects. Specific association content includes: the authorization basis, execution token, and rule version identifier of the authorized read-only instruction; the access object and sending time of the verification request; the response characteristics of the service response verification evidence; the change fields of the state differential evidence; and the system behavior records of the log backtracking evidence. The authorization basis records the specific rule basis for the instruction to pass the read-only operation boundary verification. The execution token is a one-time execution credential granted to the instruction after passing the authorization verification. The rule version identifier locks the compliant rule version used during authorization, preventing subsequent rule updates from invalidating historical authorization basis and making traceability impossible. The access object and sending time of the verification request together constitute the semantic anchor of the request, ensuring that the original intent and occurrence time of the verification request can be restored during review. The response features in the service response verification evidence, the change fields in the state differential evidence, and the system behavior records in the log backtracking evidence represent the core semantic content of the three types of evidence sources. By bidirectional association, these contents are bound to the verification request and the authorized read-only instructions to form a complete evidence chain from instruction authorization to evidence collection and then to risk conclusion.

[0063] To ensure the integrity and tamper-proof nature of traceable evidence records, content digests are calculated separately for risk conclusion records, authorized read-only instructions, and multi-source evidence sets. The content digest calculation employs a deterministic hash algorithm, performing a digest operation on the serialized content of each type of object to obtain a fixed-length digest value. Let the content digest of the risk conclusion record be... The digest of the authorized read-only instruction is The summary of the multi-source evidence set is as follows Then, according to the request identifier, the three are concatenated to form an associated verification value. ,Right now ,in For request identifier, This indicates a byte string concatenation operation. Associated checksum. This not only reflects the completeness of each piece of evidence individually, but also the interrelationship among them through cascading binding—any change in the content of any one type of evidence, or any alteration to the interrelationship among the three, will cause the correlation verification value to fail. The correlation verification value... The rule version identifier, object identifier, and version identifier are written together into the traceable evidence record to form the complete metadata structure of the record.

[0064] Upon receiving a risk review request, the system retrieves the corresponding traceable evidence record from the evidence storage based on the object identifier and version identifier of the risk conclusion record. The combination of object identifier and version identifier accurately pinpoints a specific version of the risk conclusion within a particular verification activity, avoiding retrieval confusion when multiple verification records exist for the same asset. After a successful retrieval, the system outputs the authorization basis, verification request, multi-source evidence set, and risk conclusion record corresponding to the risk review request, for manual review or automated compliance verification by reviewers. Simultaneously with outputting these records, the system also retrieves associated verification values ​​based on the stored data. Verify the integrity and relationships of the output records: recalculate the content digest of the current output content and generate a checksum in the same cascading manner, comparing it with the stored... A comparison is performed. If the two are consistent, it confirms that no content changes or relationship disruptions have occurred in the output record since the time of solidification, and the verification is passed; if the two are inconsistent, the traceable evidence record is marked as having questionable integrity, and the specific difference location is recorded in the audit document for subsequent source tracing analysis.

[0065] After the above integrity verification, the authorization basis, verification request, multi-source evidence set, risk conclusion record, and integrity verification result are collectively encapsulated into audit credentials. As a standardized compliance proof document that can be submitted externally, the audit credentials contain end-to-end information from the initiation of the verification request to the formation of the risk conclusion, as well as verification conclusions on the integrity and relevance of the evidence. In actual compliance audit scenarios, audit credentials can be directly submitted to the internal compliance team or external regulatory agencies without re-executing the verification process, thus decoupling verification activities from compliance evidence presentation. The mechanism for solidifying traceable evidence records and the mechanism for generating audit credentials together constitute a closed-loop evidence management system for a zero-intrusion, read-only secure verification method, ensuring that every verification activity leaves complete, verifiable, and traceable evidence traces, meeting the audit needs of scenarios with high compliance requirements.

[0066] A second aspect of the present invention provides a zero-intrusion read-only security verification system for automated penetration testing, comprising: The constraint translation unit is used in automated penetration testing to translate compliance constraint information into read-only operation boundaries that define the constraint relationships between restricted access objects, allowed access methods, and prohibited state change methods based on the scope of the target asset. The instruction mapping unit is used to perform normalized parsing of the instruction to be executed, obtain the instruction structure and parameter association relationship, and map it to the read-only operation boundary to obtain the mapping result. When the mapping result satisfies the access object constraint and does not trigger the prohibited state change mode, an authorized read-only instruction is generated. The budget collection unit is used to allocate a security budget to the authorized read-only instruction based on the asset status. When the remaining amount of the security budget can support the current verification request, the unit executes the asset information collection instruction through the read-only collection channel and obtains the target asset status view, service response information and audit log information before and after the verification request. The response matching unit is used to match the service response information with the risk features in the risk rules to obtain service response verification evidence. The state difference unit is used to compare the differences between the state views of the target asset before and after verification, eliminate state changes that are not related to the verification request in time or object, and obtain state difference evidence. The log backtracking unit is used to extract access records and system behavior records associated with the verification request from audit log information to obtain log backtracking evidence; The evidence consolidation unit is used to perform correlation verification on the service response verification evidence, the state differential evidence, and the log backtracking evidence to form a multi-source evidence set, output a risk conclusion based on the multi-source evidence set, and associate and solidify the verification request, the multi-source evidence set, and the risk conclusion into a traceable evidence record.

[0067] A third aspect of the present invention provides an electronic device, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.

[0068] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.

[0069] This invention can be a method, apparatus, system, and / or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of the invention.

[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A zero-intrusion, read-only security verification method for automated penetration testing, characterized in that: include: In automated penetration testing, compliance constraint information is translated into read-only operation boundaries based on the scope of the target assets, defining the constraint relationships between restricted access objects, allowed access methods, and prohibited status change methods. The instruction to be executed is parsed in a normalized manner to obtain the instruction structure and parameter association relationship and map it to the read-only operation boundary to obtain the mapping result. When the mapping result satisfies the access object constraint and does not trigger the prohibited state change mode, an authorized read-only instruction is generated. Based on the asset status, a security budget is allocated to the authorized read-only instruction. When the remaining amount of the security budget can support the current verification request, the asset information collection instruction is executed through the read-only collection channel, and the target asset status view, service response information and audit log information are obtained before and after the verification request. The service response information is matched with the risk characteristics in the risk rules to obtain service response verification evidence; the difference between the target asset status view before and after verification is compared, and status changes that are not related to the verification request in time or object are removed to obtain status difference evidence; access records and system behavior records related to the verification request are extracted from the audit log information to obtain log backtracking evidence. The service response verification evidence, the state differential evidence, and the log backtracking evidence are correlated and verified to form a multi-source evidence set. A risk conclusion is output based on the multi-source evidence set, and the verification request, the multi-source evidence set, and the risk conclusion are correlated and solidified into a traceable evidence record.

2. The method according to claim 1, characterized in that, The compliance constraint information is translated into read-only operation boundaries, and authorized read-only instructions are generated based on these boundaries, including: The compliance constraint information is transformed into a constraint rule system composed of interconnected access object constraints, access method constraints, and state change constraints. The constraint rule system takes the target asset as the constraint object and limits the read-only operation boundary with the mutual exclusion relationship between allowed access methods and prohibited state change methods. The constraint rule system is stored in association with the corresponding rule version identifier. The instructions to be executed are parsed in a standardized manner to generate an instruction description that represents the instruction structure, the position of the parameters, and the relationship with the target object; based on the instruction description, it is determined whether the instruction contains a call relationship that changes the state of the target asset, and the instruction description and the result of the call relationship determination are mapped and compared with the constraint rule system; When the mapping comparison results show that the instruction description meets the allowed access method, the target object association meets the access object constraint, and the call relationship does not trigger the state change constraint, an authorized read-only instruction is generated; the authorized read-only instruction is then associated with the authorization basis, rule version identifier, and audit association identifier. When the mapping comparison result indicates that the call relationship triggers a state change constraint or the target object association does not meet the access object constraint, a rejection record is generated and the pending instruction is blocked; the rejection record is associated with the corresponding constraint rule system and the pending instruction for backtracking verification of the read-only operation boundary.

3. The method according to claim 2, characterized in that, Based on the asset status, allocate a security budget for the authorized read-only instructions, including: Based on the importance, business affiliation, service status, and historical access records of the target assets, a single asset budget item is established for each target asset, consisting of access frequency quota, concurrency quota, duration quota, and abnormal retry quota. Based on the relationship between target assets within the same business domain, the business operation status, and the log retrieval load, a business domain budget item is established, consisting of the total request limit, the retrieval load limit, and the business peak limit. The access objects, operation types, expected resource consumption, and task priorities associated with authorized read-only instructions are parsed. The expected resource consumption is projected to the corresponding single asset budget item and business domain budget item, and the budget allocation result is determined based on the real-time business status of the target asset, the amount consumed, and the risk priority of the verification request. When the budget occupancy result meets the remaining quota conditions for the single asset budget item and the business domain budget item, an execution token associated with the authorized read-only instruction is issued; when any remaining quota condition is not met, the execution token is revoked and the verification request is transferred to the frequency reduction queue, the delay queue, or the pause queue. Collect the actual resource consumption after execution and update the corresponding budget items. Associate the budget usage results, execution token, actual resource consumption and queue transfer results with the authorized read-only instructions as the basis for subsequent security budget allocation.

4. The method according to claim 1, characterized in that, The asset information collection command is executed through the read-only collection channel, and the target asset status view is obtained before and after the verification request, including: Raw data is obtained through pre-existing management data interface, audit data interface, and bypass data interface. The raw data carries a source identifier and a collection time identifier. Each read-only collection channel independently performs timeout processing, exception isolation, and retry control based on the execution token, so that an exception in a single channel does not change the collection status of the other channels. The raw data is included in the common status window according to the collection time identifier, and semantic normalization and association alignment are performed on the raw data in the common status window to obtain a unified status field that can represent the operating status of the same target asset. Asset entity identifiers are generated based on the correlation strength between unified status fields, and the corresponding fields are merged into candidate asset records. When there are conflicts among candidate asset records, the values ​​of the reserved fields used to generate the target asset status view are determined based on source credibility, collection time freshness, and cross-source consistency. Using the sending time of the verification request as the boundary, a target asset status view before verification and a target asset status view after verification are generated in the common status window before and after the sending time, and the source identifier, collection time identifier, and asset entity identifier are associated with the corresponding target asset status view record; the data inheritance relationship between the target asset status view before verification and the target asset status view after verification is maintained based on the same asset entity identifier.

5. The method according to claim 1, characterized in that, The target asset state views before and after verification are compared to identify differences. State changes that are not related to the verification request in time or object are removed to obtain state difference evidence, including: Before sending the verification request, obtain the first state view and establish a time association between the first state view and the verification request; after the verification request is completed, obtain the second state view, and perform a field-level comparison between the first state view and the second state view according to the preset association window to obtain the state change record. Based on the temporal relationship between state change records and verification requests, changes that existed before the verification request and changes that were not in the associated window are eliminated to obtain candidate change records that are temporally related to the verification request. Based on the association between the asset entity identifier corresponding to the candidate change record and the access object of the verification request, candidate change records that do not belong to the association scope of the access object are eliminated, and state differential evidence containing the change content, occurrence time and source basis is generated for the retained change records. Establish a traceable association between the state differential evidence and the verification request, and use the first state view as the baseline state and the second state view as the comparison state. Before submitting the state differential evidence to the multi-source evidence set, verify whether the source of the state differential evidence can be traced back to the corresponding read-only acquisition channel and execution token, so as to ensure that the state differential evidence corresponds only to the authorized verification request and complete the archiving.

6. The method according to claim 2, characterized in that, The service response verification evidence, the state differential evidence, and the log backtracking evidence are correlated and verified to form a multi-source evidence set. Based on the multi-source evidence set, risk conclusions are output, including: Establish evidence source identifier, time association identifier, object association identifier, risk characteristic identifier, and integrity identifier for service response verification evidence, state differential evidence, and log backtracking evidence, respectively. Verify whether the evidence corresponds to the same verification request based on the evidence source identifier and time association identifier, and verify the time association result. Based on the object association identifier and risk feature identifier, verify whether the service response information, status change record and system behavior record point to the same target asset and the same risk condition to obtain the object association verification result and risk feature matching result; when there is contradictory evidence, identify the contradictory fields, contradictory sources and contradictory occurrence time and write them into the evidence record to be reviewed. Based on the time correlation verification results, object correlation verification results, risk feature matching results, and evidence records to be reviewed, the risk confidence level is calculated. Multi-source evidence sets that meet the valid conditions for risk confidence and do not have evidence records to be reviewed are judged as valid risks. Multi-source evidence sets that have evidence records to be reviewed or whose evidence integrity does not meet the conditions are judged as risks to be reviewed. The risk confidence level, evidence records to be reviewed, and rule version identifiers are collectively packaged into a traceable risk conclusion record archive.

7. The method according to claim 6, characterized in that, The verification request, multi-source evidence set, and risk conclusion are linked and solidified into a traceable evidence record, including: To verify requests, authorized read-only instructions, service response verification evidence, state differential evidence, log backtracking evidence, and risk conclusion records, object identifiers and version identifiers are assigned respectively, and an evidence association index is constructed based on the request identifier, asset entity identifier, object identifier, and version identifier. Based on the evidence association index, a bidirectional association is established between the authorization basis of the authorized read-only instruction, the execution token and rule version identifier, the access object and sending time of the verification request, the response characteristics of the service response verification evidence, the change fields of the state differential evidence, and the system behavior records of the log backtracking evidence. Calculate content summaries for risk conclusion records, authorized read-only instructions, and multi-source evidence sets, and form associated verification values ​​for each content summary according to the request identifier; write the associated verification values, rule version identifiers, object identifiers, and version identifiers into the traceable evidence record; Upon receiving a risk review request, the system retrieves the corresponding traceable evidence record based on the object identifier and version identifier of the risk conclusion record, and outputs the authorization basis, verification request, multi-source evidence set, and risk conclusion record corresponding to the risk review request. The system also verifies the completeness and correlation of the output records based on the correlation check value to form audit vouchers.

8. A zero-intrusion read-only security verification system for automated penetration testing, used to implement the method as described in any one of claims 1-7, characterized in that, include: The constraint translation unit is used in automated penetration testing to translate compliance constraint information into read-only operation boundaries that define the constraint relationships between restricted access objects, allowed access methods, and prohibited state change methods based on the scope of the target asset. The instruction mapping unit is used to perform normalized parsing of the instruction to be executed, obtain the instruction structure and parameter association relationship, and map it to the read-only operation boundary to obtain the mapping result. When the mapping result satisfies the access object constraint and does not trigger the prohibited state change mode, an authorized read-only instruction is generated. The budget collection unit is used to allocate a security budget to the authorized read-only instruction based on the asset status. When the remaining amount of the security budget can support the current verification request, the unit executes the asset information collection instruction through the read-only collection channel and obtains the target asset status view, service response information and audit log information before and after the verification request. The response matching unit is used to match the service response information with the risk features in the risk rules to obtain service response verification evidence. The state difference unit is used to compare the differences between the state views of the target asset before and after verification, eliminate state changes that are not related to the verification request in time or object, and obtain state difference evidence. The log backtracking unit is used to extract access records and system behavior records associated with the verification request from audit log information to obtain log backtracking evidence; The evidence consolidation unit is used to perform correlation verification on the service response verification evidence, the state differential evidence, and the log backtracking evidence to form a multi-source evidence set, output a risk conclusion based on the multi-source evidence set, and associate and solidify the verification request, the multi-source evidence set, and the risk conclusion into a traceable evidence record.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 7.