An electronic data forensics trusted storage access and write protection method

By using task-level logical cache mapping and protocol status feedback of dedicated control equipment, the problem of ensuring normal host mounting and logical write isolation while maintaining physical write protection for electronic data forensics equipment is solved, thus ensuring the continuity and security of the equipment and reducing case switching time.

CN123157622APending Publication Date: 2026-11-24XIAMEN MEIYA ZHONGMIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing electronic data forensics equipment, while maintaining physical write protection of storage media, struggles to achieve normal host mounting, logical write isolation, protocol-controlled access, rapid case switching, and unified lifecycle management, resulting in low equipment response efficiency and the risk of cross-referencing of data.

Method used

Using dedicated control equipment, host write requests are isolated to the cache area for processing through task-level logical cache mapping and protocol status feedback. Writing is prohibited on the physical write path, establishing a task-level logical write environment to ensure continuous access to the host logical address space. During case switching, only the task control segment and mapping entry are rebuilt.

Benefits of technology

This achieves continuity of logical write results on the host side without altering the original content of the storage medium, reduces case switching time, ensures logical isolation of data and traceability of protocol access, and improves the security and reliability of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157622A_ABST
    Figure CN123157622A_ABST
Patent Text Reader

Abstract

This invention discloses a trusted storage access and write protection method for electronic data forensics based on a dedicated control device. The protocol processing unit parses the storage access request from the forensic host; for authorized write operations, the main control processing unit writes the data to the cache storage unit, establishes a valid mapping between the task ID, the original LBA, and the cache data block address, and controls the write protection switch to keep the physical write path of the inspected medium prohibited. After the cache write and mapping are established, the protocol processing unit generates a completion status conforming to the current storage protocol specification. Read operations prioritize reading the valid cache mapping of the current task; if a cache miss occurs, the inspected medium is read. When switching cases, the old mapping is invalidated and a new mapping is established without needing to erase the entire cache; the controlled protocol access channel is opened according to task authorization and closed when access ends, authorization expires, the task ends, or the device enters a protected state. This invention can maintain physical read-only access to the evidence, continuous host access, and task isolation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic data forensics and storage media access control technology, specifically to a trusted storage access and write protection method for electronic data forensics based on a dedicated control device. This method transfers logical write data generated on the host side to the cache storage unit of the dedicated control device when the forensics host accesses the storage media under inspection. While maintaining the physical write path of the storage media under inspection prohibited, it maintains the continuity and traceability of storage access through task-level logical address mapping, protocol status feedback, case switching, and controlled protocol access. Background Technology

[0002] With the increasingly widespread application of electronic data in judicial evidence collection, evidence collection equipment not only needs to ensure the authenticity, integrity, and repeatability of the original evidence data throughout the entire processing, but also needs to be able to adapt to normal access behaviors of modern operating systems, such as mounting storage devices, log playback, metadata updates, and temporary writes. While existing physical write protection methods can prevent writing to the original media at the underlying level, they typically directly reject host write requests, which can easily cause the operating system to classify the target device as abnormal. This can lead to problems such as inability to mount properly, frequent errors, device offline, or abnormal file system protection, making it difficult to meet the actual needs of continuous browsing, analysis, and evidence export in the process of electronic data judicial evidence collection.

[0003] To address the aforementioned compatibility issues, some solutions employ virtual writes, copy-on-write, or cache redirection to isolate write requests generated on the host side into a cache area for processing. However, these solutions typically rely on a complete cleanup or reinitialization of the cache environment to restore its operational environment. In scenarios involving continuous case processing, the recovery time is lengthy, impacting device response efficiency. Furthermore, if the cache environment cannot be restored in a timely manner, it can easily lead to residual operational environments between different cases, increasing the risk of cross-referencing data.

[0004] Furthermore, existing electronic data forensics equipment typically lacks a unified authorization management mechanism for low-level access control. When executing high-privilege protocol access, status queries, or special control commands, the equipment often lacks unified lifecycle management, making the low-level interfaces easily exposed to the system environment for extended periods. This leads to problems such as unauthorized program mis-calls, uncontrolled interface states, and untraceable access processes, which are detrimental to standardized management and security control in the judicial evidence collection process.

[0005] Furthermore, existing devices typically mix ordinary file access, protocol access, and device control within the same access path, lacking a technical solution to establish an independent controlled channel for protocol access behavior. When device identification, protocol status query, or control command interaction is required, these operations usually rely on ordinary file systems or shared access paths, which not only increases system coupling but also makes it difficult to form a unified, stable, and auditable underlying access control system.

[0006] Therefore, existing technologies still lack a trusted storage access control method that can be deployed on dedicated control devices to achieve normal host mounting, logical write isolation, protocol-controlled access, rapid case switching, and unified lifecycle management while maintaining physical read-only protection of the original evidence. This method would also enable the data, control, and status paths within the device to form a unified and coordinated operating mechanism to meet the comprehensive requirements of modern electronic data judicial evidence collection for security, compatibility, reliability, and auditability. Summary of the Invention

[0007] This invention aims to solve the following technical problems in the process of electronic data forensics: 1. While maintaining physical write protection on the storage medium under inspection, ensure that the write operations generated by the evidence collection host can obtain actual data processing results within the device; 2. Maintain the host's continuous access to the logical address space when both logical write protection on the host side and physical write protection on the sample side exist simultaneously. 3. In the event that the write operation has not actually written to the storage medium under inspection, the evidence collection host returns a protocol completion status corresponding to the internal logical write processing status. Fourth, during continuous case processing, the data segments of the cache storage unit are not completely erased. Instead, a new case running environment is reconstructed through task control information and mapping entry points. 5. Establish a correspondence between protocol layer access capabilities and the authorization status of the current forensic task, and disable protocol access capabilities when the task ends or in an abnormal state.

[0008] Furthermore, this invention employs a dedicated control device to control storage access between the evidence-gathering host and the storage medium under inspection. This dedicated control device includes a host interface, a protocol processing unit, a main control processing unit, a cache storage unit, an evidence interface, and a write-protection switch unit. Specifically, it includes: The system receives a storage access request sent by the evidence collection host through the host interface. The protocol processing unit parses the storage access request to obtain the operation type, original logical block address (LBA), and transmission length. When the operation type is a write operation, the system obtains the write data. When the operation type is a write operation and the current forensic task authorization is valid, the main control processing unit determines the data segment in the cache storage unit corresponding to the current forensic task based on the task ID of the current forensic task, writes the write data into the cache data block in the data segment, and establishes the correspondence between the current task ID, the original logical block address (LBA), the cache data block address, the transmission length, and the mapping valid status in the control segment of the cache storage unit. During the write operation, the main control processing unit does not output an actual physical write control signal to the sample interface, and controls the write protection switch unit to keep the physical write path corresponding to the sample interface in a prohibited state, so that the write data is only written to the cache storage unit and not written to the storage medium under test. After the data writing is completed and the corresponding relationship is established, the protocol processing unit generates a protocol specification that conforms to the current storage protocol and a protocol completion status that indicates the completion of the write operation based on the write processing completion status returned by the main control processing unit, and returns it to the evidence collection host through the host interface.

[0009] Furthermore, the control segment of the cache storage unit includes a task ID, a mapping table header, and a valid status flag, and the data segment includes multiple cache data blocks divided according to a fixed storage capacity; The main control processing unit determines the mapping table header corresponding to the current task based on the current task ID, and determines the storage area of ​​the current task mapping record from the mapping table header; The mapping record is used to establish the correspondence between the original logical block address (LBA) and the cached data block address, and the valid status flag indicates whether the mapping record participates in the data access of the current forensic task; for the same original logical block address (LBA) in the current forensic task, the corresponding cached data block address is determined only through the valid mapping record.

[0010] Furthermore, in the current forensic task, when a new write operation corresponding to the same original logical block address LBA is received, the main control processing unit writes the write data corresponding to the new write operation into a new cache data block, establishes a new mapping record containing the current task ID, the original logical block address LBA and the new cache data block address, and sets the valid status flag of the previous mapping record corresponding to the original logical block address LBA in the current forensic task to invalid. When a read operation corresponding to the original logical block address (LBA) is received, the main control processing unit only calls the mapping record of the valid status flag in the current forensics task, and reads the write data corresponding to the new write operation according to the cached data block address in the mapping record.

[0011] Furthermore, when a read operation is received, the protocol processing unit sends the original logical block address (LBA) in the read operation to the main control processing unit. The main control processing unit retrieves the corresponding mapping header with the current task ID, and retrieves the mapping record that matches the original logical block address LBA and has a valid status flag within the mapping area determined by the mapping header; When a valid mapping record of the valid status flag is found, the main control processing unit reads the cached data in the cache storage unit according to the cached data block address in the mapping record, and returns it to the evidence collection host through the host interface; If no valid mapping record of the valid status flag is found, the main control processing unit reads the original data corresponding to the original logical block address (LBA) in the storage medium under inspection through the evidence interface, and returns it to the evidence collection host through the host interface.

[0012] Furthermore, for the write operation, the main control processing unit confirms whether both of the following two states are true: The first state is the cache write complete state, which indicates that the written data has been stored in the cache data block corresponding to the current forensics task. The second state is the mapping establishment completion state, which indicates that the current task ID, original logical block address (LBA), cached data block address, transmission length, and mapping validity status have been written into the mapping record corresponding to the control segment. Only after both the first state and the second state are established, the main control processing unit returns the write processing completion status to the protocol processing unit. The protocol processing unit then generates a protocol completion status that conforms to the current storage protocol and indicates that the write operation is complete, and returns it to the evidence collection host via the host interface.

[0013] Furthermore, the write protection switch unit is located in the physical write signal path corresponding to the sample interface; Before the dedicated control device enters the evidence collection task, the main control processing unit reads the write protection status of the write protection switch unit and latches it. When the write protection state is active, the main control processing unit does not output the actual physical write control signal to the sample interface, and prohibits sending the conduction control signal to the physical write signal path, so that the write protection switch unit keeps the physical write signal path in the prohibited state.

[0014] Further, the case switching steps: When the first evidence collection task ends, the main control processing unit closes the logical write environment corresponding to the first evidence collection task, releases the binding relationship between the first evidence collection task and the cache resource, and updates the valid status flag in the control segment, so that the mapping record corresponding to the first evidence collection task becomes invalid. The main control processing unit updates the task ID and mapping header in the control segment to establish the mapping area corresponding to the second evidence collection task and its correspondence with the second task ID; During the case switching process, only the task ID, mapping header and valid status flag in the control segment are updated. The data segment is not completely erased or cleared block by block. The cached data blocks that the first evidence collection task has written into the data segment retain their original physical storage state. When the second evidence collection task establishes a read access relationship, the main control processing unit uses the second task ID and the mapping table header corresponding to the second evidence collection task as the retrieval entry point, and does not call the mapping record corresponding to the first evidence collection task.

[0015] Further, controlled protocol access steps: When the evidence collection host requests to perform device identification, storage protocol status query or control command interaction, the main control processing unit reads the authorization status of the current evidence collection task; When the authorization status is valid, the main control processing unit sends the protocol access authorization status to the protocol processing unit through the device's internal communication bus, so that the protocol processing unit opens a controlled protocol access channel that is independent of the ordinary file system access path. The protocol processing unit receives protocol access requests through the controlled protocol access channel and completes protocol command parsing, protocol command encapsulation, protocol interaction, and response generation. When the protocol access ends, the authorization status expires, the current evidence collection task ends, or the dedicated control device enters the protection state, the main control processing unit revokes the protocol access authorization status and sends channel closure control information to the protocol processing unit through the device's internal communication bus, thereby closing the controlled protocol access channel.

[0016] Furthermore, the dedicated control device also includes a runtime storage unit; the main control processing unit executes a task lifecycle state machine, which sequentially includes an initialization state, a standby state, an authorized state, a running state, a task completion state, and a resource release state. In the initialization state, the following steps are executed sequentially: runtime storage initialization, host interface detection, sample interface detection, cache storage detection, write protection state latching, and protocol processing unit initialization. After detecting that the storage medium to be tested is connected, the device is successfully identified, and the task is successfully authorized in the standby state, the system enters the authorization state. In the authorized state, a correspondence is established between the task ID, the cache storage unit, and the current forensic task, and the running state is entered after the authorization state is completed; In the operating state, storage access, logical write isolation, protocol response, and controlled protocol access are performed. When the task ends, the main control processing unit sequentially shuts down the logical write environment, closes the controlled protocol access channel, releases the binding relationship between the task ID and the cache storage unit, and enters the resource release state.

[0017] Furthermore, the dedicated control device also includes a status recording unit; when an abnormal write protection state, protocol processing abnormality, cache storage abnormality, interface abnormality, task authorization failure, or critical hardware failure is detected in the operating state, the main control processing unit switches the task lifecycle state machine to the protection state. After entering the protection state, the main control processing unit prohibits the establishment of new mapping records, closes the already opened controlled protocol access channels and prohibits the opening of new controlled protocol access channels, and controls the write protection switch unit to keep the physical write path corresponding to the sample interface in the prohibited state. The main control processing unit writes the current task ID, exception type, write protection status, protocol access status, and mapping processing status into the status record unit. After the fault handling is completed, the main control processing unit re-executes the initialization steps in the initialization state, and enters the standby state after all tests pass.

[0018] Based on the above-described technical solution of the present invention, the following technical effects are included, but not limited to: Compared with storage write protection methods that directly reject host write operations, this invention does not simply judge the write operation as a failure. Instead, it redirects the written data to the cached data segment corresponding to the current forensic task and establishes a mapping relationship between the host logical address and the cached data block, so that the host can continue to access the written results that have been generated according to the logical address.

[0019] Compared to directly allowing the host to write to the medium under inspection, this invention restricts write operations by jointly prohibiting the protocol processing path and prohibiting the physical write path, thereby separating the logical write operation on the host side from the physical write operation on the inspection material side.

[0020] By stipulating that the protocol completion status is only returned after both the cache write completion and mapping establishment completion statuses are simultaneously established, the protocol status returned to the evidence collection host can correspond to the actual logical write processing status inside the device.

[0021] By separating the cache control segment from the data segment, and modifying only the task control information and mapping entry during case switching, the historical cache data can be made unreachable to the logic of the new evidence collection task while maintaining the physical existence of the historical cache data. This reduces the need to perform a complete erasure operation on the entire cache data segment during case switching.

[0022] By binding protocol layer access capabilities to task authorization status, the opening and closing of protocol access channels can be controlled, giving protocol access clear task boundaries.

[0023] Through lifecycle state control, when the device experiences write protection anomalies, cache anomalies, protocol processing anomalies, interface anomalies, or task authorization failures, it enters a protection state, which can stop the establishment of new mappings and protocol access, and keep the physical write path of the evidence in a prohibited state. Attached Figure Description

[0024] Figure 1 This is a block diagram of the overall hardware structure of the system of the present invention.

[0025] Figure 2 This is a schematic diagram illustrating the coordination of the data path, control path, and state path of the present invention.

[0026] Figure 3 The flowchart below illustrates the logic write isolation process of this invention.

[0027] Figure 4 This is a flowchart of the protocol closed-loop feedback process of the present invention.

[0028] Figure 5 This is a flowchart illustrating the rapid reconstruction of local metadata according to the present invention.

[0029] Figure 6 This is a flowchart of the privileged access controlled protocol access process of the present invention.

[0030] Figure 7 This is a flowchart illustrating the privileged access lifecycle control of the present invention.

[0031] Figure 8 This is the unified initialization state machine diagram for this invention.

[0032] Figure 9 This is a flowchart of the collaborative workflow of the present invention. Detailed Implementation

[0033] like Figure 1 As shown, the dedicated control device of the present invention is located between the evidence collection host and the storage medium to be inspected, and includes a host interface, a sample interface, a main control processing unit, a running storage unit, a cache storage unit, a write protection switch unit, a protocol processing unit, a status recording unit, and an internal communication bus connecting each functional unit.

[0034] The system includes: a host interface for establishing a data communication link with the evidence collection host; a sample interface for establishing a data connection with the storage medium under inspection; a main control processing unit for performing device initialization, task scheduling, operation status management, protocol control, exception handling, and lifecycle management; a runtime storage unit for storing system firmware programs, operating parameters, and control data, and providing operating space for the main control processing unit, protocol processing unit, and status recording unit; a cache storage unit for receiving isolated logical write data, mapping information, and task cache data; a write protection switch unit for controlling the opening or closing of the physical write path on the sample side; a protocol processing unit for completing storage protocol parsing, protocol control, protocol response generation, and controlled protocol access; and a status recording unit for saving device operation logs, task status, lifecycle information, and access records.

[0035] After the device is established, the first problem to solve is not how to prevent write operations, but how to handle write requests generated by the forensic host without changing the original content of the storage medium under inspection. To this end, this invention, without changing the original content of the storage medium under inspection, takes over the logical write operations generated by the forensic host through task-level cache mapping, and maintains continuous storage access of the host through physical write protection and protocol status feedback.

[0036] like Figures 2 to 4 As shown, the basic data processing link of this invention includes the following processes: The system receives a storage access request sent by the evidence collection host through the host interface. The protocol processing unit parses the storage access request to obtain the operation type, original logical block address (LBA), and transmission length. When the operation type is a write operation, the system obtains the write data. When the operation type is a write operation and the current forensic task authorization is valid, the main control processing unit determines the data segment in the cache storage unit corresponding to the current forensic task based on the task ID of the current forensic task, writes the write data into the cache data block in the data segment, and establishes the correspondence between the current task ID, the original logical block address (LBA), the cache data block address, the transmission length, and the mapping valid status in the control segment of the cache storage unit. During the write operation, the main control processing unit does not output an actual physical write control signal to the evidence interface, and controls the write protection switch unit to keep the physical write path corresponding to the evidence interface in a disabled state, so that the write data is only written to the cache storage unit and not to the storage medium under inspection; wherein, the cache storage unit is not a simple temporary memory, but adopts a structure of partitioned storage of control information and cache data, including a control segment and a data segment; the control segment is used to store the task identifier and mapping control information of the current evidence collection task, and the data segment is used to store the actual write data corresponding to the logical write operation on the host side.

[0037] After the data writing is completed and the corresponding relationship is established, the protocol processing unit generates a protocol specification that conforms to the current storage protocol and a protocol completion status that indicates the completion of the write operation based on the write processing completion status returned by the main control processing unit, and returns it to the evidence collection host through the host interface.

[0038] Among them, the most important combinatorial relationships include: 1) The data written by the host is not written to the original sample, but to the internal cache storage unit of the device.

[0039] 2) Although the written data does not enter the sample, the mapping relationship between the original LBA and the cached data block forms a logical write result that can be accessed on the host side.

[0040] 3) In addition to logical write redirection, the write request is prevented from actually acting on the evidence by prohibiting the evidence skimming protocol command from entering the evidence skimming protocol processing path and maintaining the physical write path prohibited state.

[0041] 4) Only after the cached data has been written and the mapping relationship has been established will the write operation completion status be returned to the host.

[0042] According to one embodiment of the present invention, it is assumed that the task ID of the current forensic task is 1001.

[0043] The main control processing unit first establishes a task identifier: Task ID=1001, and then establishes a mapping table header corresponding to the current task in the control section of the cache storage unit.

[0044] The evidence collection host sends the following to the device: LBA=10000, Length=1 logical block, Data=D10000; The protocol processing unit first parses out: operation type = Write, LBA = 10000, Length = 1, Data = D10000, and then hands the parsing result over to the main control processing unit.

[0045] The main control processing unit determines the cache data area corresponding to the current task based on Task ID=1001.

[0046] Assuming allocation: Cache Block=5820, then execute: D10000 writes Cache Block 5820. After the cached data is written, establish: Task ID=1001, LBA=10000, Cache Block=5820, Length=1, Valid=1; This results in: LBA 10000 being written to Cache Block 5820. At the same time, the protocol processing unit will not send the write protocol command corresponding to the write operation to the sample-side protocol processing path.

[0047] The write protection switch unit continues to keep the physical write path corresponding to the test sample interface in a disabled state.

[0048] Therefore, the data written by the host has already been saved internally; the host logical address has a new mapping relationship; and the evidence side has not actually received the corresponding physical write operation. Finally, the main control processing unit confirms two states: cache write complete; mapping relationship established. Only after both states are established simultaneously does the protocol processing unit generate a write-complete protocol status and return it to the evidence-gathering host.

[0049] Furthermore, the control segment of the cache storage unit includes a task ID, a mapping table header, and a valid status flag, and the data segment includes multiple cache data blocks divided according to a fixed storage capacity; The main control processing unit determines the mapping table header corresponding to the current task based on the current task ID, and determines the storage area of ​​the current task mapping record from the mapping table header; The mapping record is used to establish the correspondence between the original logical block address (LBA) and the cached data block address, and the valid status flag indicates whether the mapping record participates in the data access of the current forensic task; for the same original logical block address (LBA) in the current forensic task, the corresponding cached data block address is determined only through the valid mapping record.

[0050] The cache storage unit is divided into: 1) Control section stores: Task ID, Mapping Root header, and Valid status flag. The Mapping Root header is a mapping entry parameter stored in the control section of the cache storage unit, used to indicate the starting position of the mapping record area corresponding to the current task. After reading the mapping header of the current task, the main control processing unit uses this header to determine the starting address of the current task's mapping index area and retrieves the mapping record corresponding to the original logical block address (LBA) within the mapping index area.

[0051] 2) Data segment: Divided into multiple fixed-capacity cache data blocks.

[0052] For example: Cache Block 100, Cache Block 101, Cache Block 102, Cache Block103, ...; Mapping record establishment: LBA -> Cache Block; For example: LBA 100000->Cache Block 100; LBA 100001->Cache Block 101; LBA 100002->Cache Block 102.

[0053] When case A runs: Task ID=1001, Mapping Root=0x00100000, Valid=1; The corresponding data segments are: Cache Block 100, Cache Block 101, and Cache Block 102. Current mapping: 100000->100, 100001->101, 100002->102.

[0054] When the main control processing unit receives a read operation for LBA 100001, it first reads the Mapping Root corresponding to Task ID=1001, and then retrieves LBA 100001.

[0055] Search result: 100001->Cache Block 101, therefore data is returned directly from Cache Block 101.

[0056] By separating control information from actual data, the following can be achieved: task identity, mapping entry point, and cached data body can be independent of each other; control information can be modified during case switching without processing the entire data segment; the data source can be determined through the mapping entry point corresponding to the current task during reading; and cached data can be managed in fixed blocks. This provides the data structure foundation for the subsequent rapid case switching mechanism.

[0057] Furthermore, when the same LBA is written to by the host multiple times consecutively, how to ensure that the host reads the latest data? The specific implementation steps include: In the current forensic task, when a new write operation corresponding to the same original logical block address LBA is received, the main control processing unit writes the write data corresponding to the new write operation into a new cache data block, establishes a new mapping record containing the current task ID, the original logical block address LBA and the new cache data block address, and sets the valid status flag of the previous mapping record corresponding to the original logical block address LBA in the current forensic task to invalid. When a read operation corresponding to the original logical block address (LBA) is received, the main control processing unit only calls the mapping record of the valid status flag in the current forensics task, and reads the write data corresponding to the new write operation according to the cached data block address in the mapping record.

[0058] According to one embodiment of the present invention, assume the first write is: A->Cache Block 5820. The second write is: B->Cache Block 6000. The current valid mapping is: LBA 10000->Cache Block 6000. When the host reads LBA 10000: the main control processing unit searches for valid mapping records; finds that 6000 is a valid cache address; reads Cache Block 6000; and returns to B.

[0059] This ensures that the latest state of the same logical address overwrites the previous state without modifying the original data. This technical feature of the present invention solves the write-after-read consistency problem in a cache write-isolated environment.

[0060] Furthermore, when a read operation is received, the protocol processing unit sends the original logical block address (LBA) in the read operation to the main control processing unit. The main control processing unit retrieves the corresponding mapping header with the current task ID, and retrieves the mapping record that matches the original logical block address LBA and has a valid status flag within the mapping area determined by the mapping header; When a valid mapping record of the valid status flag is found, the main control processing unit reads the cached data in the cache storage unit according to the cached data block address in the mapping record, and returns it to the evidence collection host through the host interface; If no valid mapping record of the valid status flag is found, the main control processing unit reads the original data corresponding to the original logical block address (LBA) in the storage medium under inspection through the evidence interface, and returns it to the evidence collection host through the host interface.

[0061] If the current Task ID is 1001, the current mapping is: LBA 10000 -> Cache Block 5820.

[0062] Host reads LBA 10000: Reads 5820.

[0063] Host read LBA 20000: No valid mapping found.

[0064] Read sample LBA 20000.

[0065] Therefore, the host ultimately sees a complete logical disk space: the areas where logical writes have occurred are covered by the cache; the areas where no logical writes have occurred still come from the original sample.

[0066] This approach allows logical modifications in the cache to overwrite the corresponding logical address of the original sample without requiring modifications to the sample itself.

[0067] Therefore, the host can continue to access data according to the logical address space of a normal storage device.

[0068] Furthermore, for the write operation, the main control processing unit confirms whether both of the following two states are true: The first state is the cache write complete state, which indicates that the written data has been stored in the cache data block corresponding to the current forensics task. The second state is the mapping establishment completion state, which indicates that the current task ID, original logical block address (LBA), cached data block address, transmission length, and mapping validity status have been written into the mapping record corresponding to the control segment. Only after both the first state and the second state are established, the main control processing unit returns the write processing completion status to the protocol processing unit. The protocol processing unit then generates a protocol completion status that conforms to the current storage protocol and indicates that the write operation is complete, and returns it to the evidence collection host via the host interface.

[0069] Since a write operation can only be completed if the following conditions are met: Condition 1: Cache writing is complete. That is, the written data has been actually saved to the Cache Block corresponding to the current task.

[0070] Condition 2: Mapping established. This means that at least the following have been established: Task ID, LBA, Cache Block, Length, and Valid.

[0071] Only when both conditions are met can the entire process of the protocol's closed-loop mechanism be completed.

[0072] This avoids a situation where the host has received a write success message, but the data inside the device has not actually been saved. Therefore, this invention ensures that the protocol state received by the host is consistent with the actual data processing state inside the device. This is also the key reason why the protocol loop does not simply "return success".

[0073] Furthermore, the write protection switch unit is located in the physical write signal path corresponding to the sample interface; Before the dedicated control device enters the evidence collection task, the main control processing unit reads the write protection status of the write protection switch unit and latches it. When the write protection state is active, the main control processing unit does not output the actual physical write control signal to the sample interface, and prohibits sending the conduction control signal to the physical write signal path, so that the write protection switch unit keeps the physical write signal path in the prohibited state.

[0074] The protocol processing unit and the physical path unit operate in different locations: The protocol processing unit changes the processing destination of the write request.

[0075] The physical pathway layer prevents write operations from reaching the sample.

[0076] This results in a complementary double-layered protective structure.

[0077] After the protocol processing unit detects a write operation, it writes the data to the buffer.

[0078] At the same time: it is prohibited to write protocol commands to change the protocol processing path on the sample side.

[0079] Therefore, writing requests will no longer enter the sample-side protocol execution path.

[0080] The write protection switch unit is set on the physical write signal path corresponding to the inspection material interface.

[0081] Physical write access remains disabled in write-protected mode.

[0082] Therefore, even if the upper-layer protocol processing path is abnormal, the physical writing conditions of the sample cannot be directly restored.

[0083] Furthermore, such as Figure 5 As shown, this invention completes case switching by quickly reconstructing local metadata without performing a complete erasure of the data segments in the cache storage unit. The process includes: When the first evidence collection task ends, the main control processing unit closes the logical write environment corresponding to the first evidence collection task, releases the binding relationship between the first evidence collection task and the cache resource, and updates the valid status flag in the control segment, so that the mapping record corresponding to the first evidence collection task becomes invalid. The main control processing unit updates the task ID and mapping header in the control segment to establish the mapping area corresponding to the second evidence collection task and its correspondence with the second task ID; During the case switching process, only the task ID, mapping header and valid status flag in the control segment are updated. The data segment is not completely erased or cleared block by block. The cached data blocks that the first evidence collection task has written into the data segment retain their original physical storage state. When the second evidence collection task establishes a read access relationship, the main control processing unit uses the second task ID and the mapping table header corresponding to the second evidence collection task as the retrieval entry point, and does not call the mapping record corresponding to the first evidence collection task.

[0084] According to a specific embodiment of the present invention: assume that the data segment in the cache storage unit stores the cache data of case A.

[0085] Case A: Task ID = 1001, Mapping Root = 0x00100000; Case A data is still stored in: Cache Block 100, Cache Block 101, and Cache Block 102.

[0086] When the case is closed, these three data blocks will not be erased.

[0087] Modify only the control section: Task ID = 1002, Mapping Root = 0x00200000, Valid = 1.

[0088] Case B establishes a new mapping area.

[0089] In this case, the data from case A cannot be accessed by case B.

[0090] Because case B only retrieves the mapping relationship based on: Task ID=1002, Mapping Root=0x00200000. However, case A's mapping is Task ID=1001, Mapping Root=0x00100000, which is no longer a valid mapping entry point for case B.

[0091] Therefore, this invention allows for the switching of the task environment while retaining the physical data, even though the logical entry point has changed. It eliminates the need for erasing the entire data segment, clearing a large number of caches, and reinitializing all caches. Only key control information in the control segment needs to be modified. This reduces cache clearing operations during case switching and improves the efficiency of continuous case processing.

[0092] The new task is not simply about "not seeing old data," but rather that the mapping retrieval process for the new task will not traverse the mapping area of ​​the old task from the very beginning. After the main control processing unit establishes the mapping access context for the second task, it determines the starting position of the mapping index area for the second task using the task identifier and mapping table header corresponding to the second task. Data access retrieval is limited to the mapping index area of ​​the second task, and retrieval is not performed on the mapping index area of ​​the first task.

[0093] Figure 5 The process shown executes the following steps in sequence: current task completion, task context and cached resource unbinding, controlled protocol access channel closure, local metadata reconstruction, old mapping invalidation, new task ID and task context generation, new mapping region establishment, and consistency check.

[0094] The consistency check is used to confirm that the old task mapping has become invalid, the new task mapping entry is valid, and the retrieval scope of the new task does not include the old task mapping area; after the check passes, the device enters the new task running state.

[0095] By rebuilding only the task ID, mapping header, index information, and valid status flags, this invention can reduce cache cleanup and reinitialization time while maintaining logical isolation between different forensic tasks.

[0096] Furthermore, a controlled protocol access channel, which is separated from the ordinary file data access path and whose opening and closing are controlled by the task authorization status, is implemented. Specifically, when the evidence collection host requests to perform device identification, storage protocol status query or control command interaction, the main control processing unit reads the authorization status of the current evidence collection task. When the authorization status is valid, the main control processing unit sends the protocol access authorization status to the protocol processing unit through the device's internal communication bus, so that the protocol processing unit opens a controlled protocol access channel that is independent of the ordinary file system access path. The protocol processing unit receives protocol access requests through the controlled protocol access channel and completes protocol command parsing, protocol command encapsulation, protocol interaction, and response generation. When the protocol access ends, the authorization status expires, the current evidence collection task ends, or the dedicated control device enters the protection state, the main control processing unit revokes the protocol access authorization status and sends channel closure control information to the protocol processing unit through the device's internal communication bus, thereby closing the controlled protocol access channel.

[0097] This prevents the underlying protocol access capabilities from remaining open indefinitely. Protocol access capabilities are then tied to specific forensic tasks. Therefore, the device can control: when protocol access is allowed, who is authorized to access the current protocol, and when protocol access must be disabled.

[0098] Furthermore, the main control processing unit executes a lifecycle state machine to ensure that write protection, logical write environment, protocol access, and task resources operate according to a fixed state relationship. Specifically, the dedicated control device also includes a running storage unit; the main control processing unit executes a task lifecycle state machine, which sequentially includes an initialization state, a standby state, an authorized state, a running state, a task completion state, and a resource release state. In the initialization state, the following steps are executed sequentially: runtime storage initialization, host interface detection, sample interface detection, cache storage detection, write protection state latching, and protocol processing unit initialization. After detecting that the storage medium to be tested is connected, the device is successfully identified, and the task is successfully authorized in the standby state, the system enters the authorization state. In the authorized state, a correspondence is established between the task ID, the cache storage unit, and the current forensic task, and the running state is entered after the authorization state is completed; In the operating state, storage access, logical write isolation, protocol response, and controlled protocol access are performed. When the task ends, the main control processing unit sequentially shuts down the logical write environment, closes the controlled protocol access channel, releases the binding relationship between the task ID and the cache storage unit, and enters the resource release state.

[0099] Unified management through a state machine allows for the creation of task IDs, the establishment of cache environments, the startup of logical write environments, the opening of protocol access, the completion of tasks, the removal of cache mappings, the closure of protocol channels, and the release of resources, all in a fixed order, thus preventing a function from running independently without the constraints of a task context.

[0100] Furthermore, the dedicated control device also includes a status recording unit; when an abnormal write protection state, protocol processing abnormality, cache storage abnormality, interface abnormality, task authorization failure, or critical hardware failure is detected in the operating state, the main control processing unit switches the task lifecycle state machine to the protection state. After entering the protection state, the main control processing unit prohibits the establishment of new mapping records, closes the already opened controlled protocol access channels and prohibits the opening of new controlled protocol access channels, and controls the write protection switch unit to keep the physical write path corresponding to the sample interface in the prohibited state. The main control processing unit writes the current task ID, exception type, write protection status, protocol access status, and mapping processing status into the status record unit. After the fault handling is completed, the main control processing unit re-executes the initialization steps in the initialization state, and enters the standby state after all tests pass.

[0101] The protocol processing unit performs path redirection of write requests and prohibition of evidence skimming commands, while the write protection switch unit performs hardware prohibition of the physical write path of the evidence. The two act on the protocol processing layer and the physical signal path, respectively.

[0102] The device of this invention will not continue to create new cache mappings or perform underlying protocol accesses in an abnormal state. This is particularly beneficial for electronic data forensics devices, preventing: the device from continuing to process tasks when in an abnormal state, abnormal protocol requests from continuing to enter the underlying channel, and the physical write-protection state from spiraling out of control. Thus, the abnormal state itself becomes a controlled state.

[0103] In summary, this invention addresses a very specific technical contradiction in electronic data forensics: the forensic equipment must ensure that the original evidence cannot be modified, but the forensic host cannot simply fail to maintain a normal storage access environment due to the rejection of all write requests. Therefore, this technical solution establishes a dedicated control device. This device is located between the forensic host and the storage medium under inspection. It does not allow the host to directly control the evidence. Instead, a controlled data processing layer is established between the two. Its core technical approach is: establishing a task-level logical cache mapping for write requests from the forensic host, forming a continuously accessible logical write environment on the host side; simultaneously prohibiting write protocol commands from entering the evidence side at the protocol processing layer, and maintaining a prohibited state in the physical write path of the evidence; returning the corresponding protocol completion state after the cached data and mapping relationship are completed; and rebuilding only the task control segment and mapping entry point during case switching, so that the old cached data is retained at the physical layer but unreachable at the new task logical layer. Based on this, the above operating environment is further managed uniformly through controlled protocol access, a lifecycle state machine, and anomaly protection. Therefore, this invention is not a single virtual write, but a complete system of technologies including: task-level logical write isolation, physical write protection of evidence, protocol state closed loop, mapping environment switching, and high-privilege access control. Figure 2 As shown.

[0104] like Figure 3 As shown, the logical write isolation mechanism separates the write operation of the evidence-gathering host from the physical write path of the storage medium under inspection, and saves the written data to the cache storage unit corresponding to the current task.

[0105] After identifying the write operation, the protocol processing unit sends the operation type, original logical block address (LBA), transmission length, and written data to the main control processing unit. The main control processing unit allocates a cached data block based on the current task ID and establishes a valid mapping, while simultaneously refraining from outputting actual physical write control signals to the inspection interface, thus maintaining the inspected storage medium as physically read-only.

[0106] This mechanism is preferably implemented collaboratively by the main control processing unit, the internal communication bus of the device, the cache storage unit, and the write protection switch unit.

[0107] Specifically, when the host interface receives a write request, the protocol processing unit first identifies the request type, and then the main control processing unit determines the processing path based on the current write protection status. If it is a write operation, the main control processing unit does not output an actual write signal to the evidence interface, but instead writes the corresponding data to an independent area in the cache storage unit and establishes a valid mapping relationship for the current task. This valid mapping relationship includes: task identifier, original LBA, cache data block address, transmission length, and valid status. In this way, the host side can obtain continuous and consistent write results when performing directory browsing, log replay, timestamp updates, or temporary file generation, while the original evidence always remains in a physically read-only state.

[0108] In terms of hardware implementation, the logical write isolation mechanism is preferably completed by the main control processing unit, the internal communication bus of the device, the cache storage unit and the write protection switch unit, so as to achieve unified control of logical write acceptance and physical write isolation.

[0109] like Figure 4 As shown, the protocol closed-loop feedback mechanism generates a protocol response based on the actual logical write processing results within the device. After the write operation of the forensic host is parsed by the protocol processing unit, the main control processing unit completes the cache writing and mapping establishment; only when both are completed does the protocol processing unit generate a protocol completion status that conforms to the current storage protocol specification. Modern operating systems and file systems not only focus on whether the write request is received, but also on whether the underlying storage device returns a response status that conforms to the protocol specification according to the corresponding storage protocol. If the write request is directly rejected or returns an abnormal status, the host side will usually determine the target device as abnormal, thereby triggering a mount failure, device offline, protective unmount, or file system recovery process. Therefore, based on the logical write isolation mechanism, this invention establishes a complete protocol response closed loop through the protocol processing unit, ensuring that the host side always obtains a response result that conforms to the protocol specification, thereby maintaining the online status of the device and the continuous operation of the file system.

[0110] In the actual operation, write requests issued by the host first enter the device's internal control channel. The protocol processing unit identifies the request type and submits it to the main control processing unit for unified scheduling. Based on the current write protection status, the main control processing unit redirects the write data to the cache storage unit without outputting an actual physical write control signal to the evidence interface. The protocol processing unit then generates a completion response that conforms to the protocol specification based on the current storage protocol and returns it to the evidence collection host through the host interface. This ensures that the host side maintains the normal working state of the target device and does not trigger the abnormal recovery process, thus forming a complete protocol closed loop of "request reception - protocol parsing - logical isolation - response generation - response return".

[0111] Thus, this invention achieves unified coordination between physical write protection and normal protocol layer response, ensuring that the underlying hardware remains in a read-only state while the host side continuously maintains the target device online and accessible, thereby significantly improving the compatibility and stability of electronic data forensics equipment.

[0112] like Figure 5 As shown, a local metadata fast reconstruction mechanism is used to switch logical write environments between consecutive forensic tasks. Traditional virtual write environments typically require a complete cleanup of the entire cache area when switching cases, which is not only time-consuming but also increases the burden of repeated writes to the cache medium. This invention, by reconstructing the key control data that determines the establishment of logical mapping relationships, quickly invalidates the logical write environment established by the old case and establishes a new task running environment, without performing a complete data erase of the cache storage unit.

[0113] In the implementation process, after a case ends, the main control processing unit terminates the current task's execution context and controls the cache storage unit to enter a fast recovery process via the device's internal communication bus. Only key control data maintaining logical mapping relationships is reset, refreshed, or regenerated, rendering the original logical mapping relationships invalid. Simultaneously, a new mapping relationship and execution context corresponding to the new task are re-established. The key control data includes at least one or more of the following: task number, mapping header, exception flag, recovery flag, and index record. Since new tasks can only establish access relationships based on new control data, old task cache data will not be parsed or referenced again, thus achieving rapid isolation of the execution environment between different cases.

[0114] like Figure 6 As shown, the controlled protocol access mechanism is used to handle protocol-level access such as device identification, protocol status query, control command interaction, and operational status confirmation. This channel is independent of the ordinary file system access path and is only open when the current task authorization is valid. In the process of electronic data forensics, in addition to ordinary file access, protocol-level access operations such as device identification, protocol status query, control command interaction, and operational status confirmation are also required. To avoid the underlying protocol interfaces being exposed to the ordinary access environment for extended periods, this invention establishes an independent controlled protocol access channel within the device, ensuring that all protocol access is completed under unified authorization and lifecycle control.

[0115] Specifically, once a device enters an authorized forensic task, the main control processing unit initiates the protocol processing unit based on the current task context and establishes a protocol control channel independent of the ordinary file system access path. All protocol access requests involving device identification, protocol status query, control command interaction, and device operating parameter acquisition are completed through this independent control channel, without relying on the ordinary file system access path. The protocol processing unit performs protocol command parsing, command encapsulation, protocol interaction, and response generation according to the current storage protocol, and returns the processing results to the main control processing unit, which then uniformly handles task scheduling, status synchronization, and log recording. The entire protocol access process remains within the authorized lifecycle scope. When the task ends, authorization expires, or the device enters a protected state, the main control processing unit immediately closes the controlled protocol access channel, terminates protocol-layer access capabilities, and releases related operating resources.

[0116] Through the above methods, the present invention achieves mutual isolation between protocol access capabilities and ordinary file access capabilities, ensuring that protocol access behavior always runs in a controlled environment within a dedicated control device. This not only improves the security and manageability of the protocol access process, but also avoids unauthorized calls, loss of control over the state, and chaotic access paths caused by the long-term openness of the underlying protocol interface, thereby forming a trusted protocol access control mechanism that meets the requirements of electronic data judicial evidence collection.

[0117] like Figure 7 As shown, the task lifecycle control mechanism manages device initialization, task authorization, execution, termination, and resource release in stages, and enters a protection state when an anomaly occurs. Since dedicated control devices involve high-privilege operations such as low-level write protection, protocol processing, and status acquisition, unified control must be established for task initiation, authorization, execution, exit, and resource release. Therefore, this invention uses a status recording unit in conjunction with the main control processing unit to perform staged control of the device operation process, ensuring that low-level access capabilities are always controlled, traceable, and recoverable.

[0118] Specifically, after the device is powered on, it first completes initialization and authorization binding; during task execution, it maintains the access context, response status, and log records of the current case; after the case ends, the main control processing unit triggers the task end status based on the task end event, and sequentially executes the following actions: closing the logical write environment, closing the controlled protocol access channel, releasing the task context and updating cache control information, releasing cache mappings, and saving process information; when entering a new case, a new running context is re-established. This mechanism ensures clear boundaries between different tasks, avoids mis-calling, random calling, or state loss problems caused by long-term interface exposure, and also provides a foundation for the auditability of electronic evidence.

[0119] In actual operation, modules do not run independently of each other, such as Figure 8As shown in the diagram, instead of the traditional method, the main control processing unit centrally schedules data exchange, control information transmission, and state synchronization between functional units within a dedicated control device, according to a unified initialization state machine and task lifecycle control process. This is achieved by relying on the device's internal communication bus. This forms a complete trusted storage access control system.

[0120] The equipment uses a main control processing unit as the unified control core, which establishes internal communication connections with the running storage unit, cache storage unit, protocol processing unit, status recording unit, and write protection switch unit. Each functional unit communicates with the others via the internal communication bus to transmit operating parameters, issue control commands, exchange protocols, and provide status feedback. The main control processing unit centrally manages task scheduling, resource allocation, status synchronization, and anomaly management, ensuring consistent control logic and operating status throughout the entire equipment operation.

[0121] After the device is powered on, the unified initialization state machine first enters the initialization phase. The main control processing unit sequentially completes firmware loading, runtime storage initialization, host interface detection, evidence interface detection, cache storage detection, write protection state latching, task context creation, and protocol processing module initialization, and performs status confirmation after each step is completed. When all initialization steps are executed successfully, the device enters the task standby state; if any critical step fails, the main control processing unit immediately notifies all functional units to enter the protection state through the device's internal communication bus, stops the creation of new evidence collection tasks, disables protocol access capabilities, and records the abnormal state to the status recording unit. After the fault is cleared, the initialization process is restarted.

[0122] When an evidence collection task begins, the execution context of the current task is first established. The task number, authorization status, write protection status, cache status, and protocol access status are uniformly registered, and the binding between the current task and the device's operating resources is completed. Before the lifecycle authorization is established, all other functional modules remain in a standby state, and are not allowed to establish logical write environments or execute protocol access operations, thus ensuring that all high-privilege operations are based on legitimate authorization.

[0123] After the task link is established, the logical write isolation mechanism begins to operate. Based on the current write protection status, the main control processing unit coordinates with the protocol processing unit, cache storage unit, and write protection switch unit via the device's internal communication bus to jointly establish a logical write environment. When the host side issues a write request, the protocol processing unit first identifies the request type and then hands the write request over to the main control processing unit for unified scheduling. The main control processing unit does not output a physical write signal to the evidence interface; instead, it redirects the corresponding data to an independent area in the cache storage unit and simultaneously establishes the logical mapping relationship corresponding to the current task, ensuring that the original evidence always remains in a physically read-only state.

[0124] While the logical write isolation mechanism is in operation, the protocol closed-loop feedback mechanism is simultaneously activated. The protocol processing unit parses various protocol requests sent by the host side according to the current storage protocol, and generates response information conforming to the protocol specifications based on the processing results after logical write isolation. This response is then returned to the evidence-gathering host through the host interface, ensuring the host maintains the target device online and the file system remains normally accessible, without triggering abnormal recovery, protective offloading, or device offline operations. This forms a complete closed loop of "request reception, protocol parsing, logical isolation, protocol response, and state maintenance," enabling simultaneous achievement of hardware write protection and operating system compatibility.

[0125] Throughout the task execution, the controlled protocol access mechanism operates according to the authorized state of its lifecycle. When the device needs to perform device identification, protocol status query, control command interaction, or other protocol layer access operations, the main control processing unit first confirms that the current task is still in an authorized state and then initiates the protocol processing unit to establish an independent controlled protocol access channel via the device's internal communication bus. All protocol access bypasses the ordinary file system access path, completing protocol command parsing, protocol interaction, and response generation through this independent control channel. The main control processing unit then uniformly completes the operation status synchronization and log recording. Since protocol access capabilities only exist within the current lifecycle authorized scope, ordinary file access and protocol access remain isolated from each other and do not affect each other, thus preventing the underlying protocol interfaces from being exposed to the system environment for extended periods.

[0126] When a case concludes and preparations begin for the next case, the main control processing unit first terminates the current task's lifecycle, releases the binding between the current task context and cached resources, and notifies the cache storage unit via the device's internal communication bus to initiate a rapid recovery process. The cache storage unit does not need to perform a full disk cleanup of all cached data; instead, it only resets, refreshes, or regenerates the critical control data that determines the logical mapping relationship. This immediately invalidates the logical mapping corresponding to the old case and re-establishes the operating environment for the next case. Because the control data has been re-established, even if historical data blocks are still retained in the cache medium, these data can no longer be referenced by new tasks, thus achieving rapid isolation of the logical environment between cases.

[0127] Once all current tasks are completed, the lifecycle control mechanism enters the resource release phase. The main control processing unit sequentially shuts down the logical write environment, closes the controlled protocol access channels, releases cache mapping relationships, and unbinds the task context. It then notifies each functional unit to return to standby mode via the device's internal communication bus. Simultaneously, the status recording unit saves the task's execution log, protocol interaction records, status change records, and resource release information, forming a complete task audit log. At this point, the device re-enters the standby state managed by the unified initialization state machine, awaiting the start of the next forensics task.

[0128] In summary, this invention organically integrates logical write isolation, protocol closed-loop feedback, local metadata rapid reconstruction, controlled protocol access, and privileged access lifecycle control mechanisms through a unified initialization state machine, internal device communication bus, and lifecycle control mechanism. This creates a complete technical chain within the device, encompassing initialization, authorization, logical write isolation, protocol closed-loop feedback, controlled protocol access, local metadata rapid reconstruction, and resource release. This achieves unified and coordinated operation of trusted storage access control, hardware write protection, protocol-secure access, and rapid case switching. Figure 9 As shown.

[0129] In this invention, logical write isolation, protocol closed-loop processing, case mapping reconstruction, controlled protocol access, and lifecycle control are uniformly coordinated by the main control processing unit. The cached data generated by logical write isolation is provided to subsequent accesses through task mapping relationships. The protocol processing unit generates the corresponding protocol completion status based on the cache write and mapping establishment status. Case switching is achieved by updating task control information and mapping entry points to remove old task mappings. Controlled protocol access is controlled by the task authorization status to enable and disable it, thus ensuring consistency of the above processing within the same task context.

Claims

1. A method for trusted storage access and write protection of electronic data forensics based on dedicated control equipment, characterized in that, The method is applied to a dedicated control device, which includes a host interface, a protocol processing unit, a main control processing unit, a cache storage unit, a sample interface, and a write protection switch unit. The system receives a storage access request sent by the evidence collection host through the host interface. The protocol processing unit parses the storage access request to obtain the operation type, original logical block address (LBA), and transmission length. When the operation type is a write operation, the system obtains the write data. When the operation type is a write operation and the current forensic task authorization is valid, the main control processing unit determines the data segment in the cache storage unit corresponding to the current forensic task based on the task ID of the current forensic task, writes the write data into the cache data block in the data segment, and establishes the correspondence between the current task ID, the original logical block address (LBA), the cache data block address, the transmission length, and the mapping valid status in the control segment of the cache storage unit. During the write operation, the main control processing unit does not output an actual physical write control signal to the sample interface, and controls the write protection switch unit to keep the physical write path corresponding to the sample interface in a prohibited state, so that the write data is only written to the cache storage unit and not written to the storage medium under test. After the data writing is completed and the corresponding relationship is established, the protocol processing unit generates a protocol specification that conforms to the current storage protocol and a protocol completion status that indicates the completion of the write operation based on the write processing completion status returned by the main control processing unit, and returns it to the evidence collection host through the host interface.

2. The trusted storage access and write protection method for electronic data forensics according to claim 1, characterized in that: The control segment of the cache storage unit includes a task ID, a mapping table header, and a valid status flag; the data segment includes multiple cache data blocks divided according to a fixed storage capacity. The main control processing unit determines the mapping table header corresponding to the current task based on the current task ID, and determines the storage area of ​​the current task mapping record from the mapping table header; The mapping record is used to establish the correspondence between the original logical block address (LBA) and the cached data block address, and the valid status flag indicates whether the mapping record participates in the data access of the current forensic task; for the same original logical block address (LBA) in the current forensic task, the corresponding cached data block address is determined only through the valid mapping record.

3. The method for trusted storage access and write protection of electronic data forensics according to claim 2, characterized in that, include: In the current forensics task, when a new write operation corresponding to the same original logical block address LBA is received, the main control processing unit writes the write data corresponding to the new write operation into a new cache data block, establishes a new mapping record containing the current task ID, the original logical block address LBA and the new cache data block address, and sets the valid status flag of the previous mapping record corresponding to the original logical block address LBA in the current forensics task to invalid. When a read operation corresponding to the original logical block address (LBA) is received, the main control processing unit only calls the mapping record of the valid status flag in the current forensics task, and reads the write data corresponding to the new write operation according to the cached data block address in the mapping record.

4. The method for trusted storage access and write protection of electronic data forensics according to claim 2, characterized in that, include: When a read operation is received, the protocol processing unit sends the original logical block address (LBA) of the read operation to the main control processing unit. The main control processing unit retrieves the corresponding mapping header with the current task ID, and retrieves the mapping record that matches the original logical block address LBA and has a valid status flag within the mapping area determined by the mapping header; When a valid mapping record of the valid status flag is found, the main control processing unit reads the cached data in the cache storage unit according to the cached data block address in the mapping record, and returns it to the evidence collection host through the host interface; If no valid mapping record of the valid status flag is found, the main control processing unit reads the original data corresponding to the original logical block address (LBA) in the storage medium under inspection through the evidence interface, and returns it to the evidence collection host through the host interface.

5. The method for trusted storage access and write protection of electronic data forensics according to claim 1, characterized in that: For the write operation, the main control processing unit confirms whether both of the following two states are true: The first state is the cache write complete state, which indicates that the written data has been stored in the cache data block corresponding to the current forensics task. The second state is the mapping establishment completion state, which indicates that the current task ID, original logical block address (LBA), cached data block address, transmission length, and mapping validity status have been written into the mapping record corresponding to the control segment. Only after both the first state and the second state are established, the main control processing unit returns the write processing completion status to the protocol processing unit. The protocol processing unit then generates a protocol completion status that conforms to the current storage protocol and indicates that the write operation is complete, and returns it to the evidence collection host via the host interface.

6. The method for trusted storage access and write protection of electronic data forensics according to claim 1, characterized in that: The write protection switch unit is located in the physical write signal path corresponding to the sample interface; Before the dedicated control device enters the evidence collection task, the main control processing unit reads the write protection status of the write protection switch unit and latches it. When the write protection state is active, the main control processing unit does not output the actual physical write control signal to the sample interface, and prohibits sending the conduction control signal to the physical write signal path, so that the write protection switch unit keeps the physical write signal path in the prohibited state.

7. The method for trusted storage access and write protection of electronic data forensics according to claim 2, characterized in that, Including the case switching steps: When the first evidence collection task ends, the main control processing unit closes the logical write environment corresponding to the first evidence collection task, releases the binding relationship between the first evidence collection task and the cache resource, and updates the valid status flag in the control segment, so that the mapping record corresponding to the first evidence collection task becomes invalid. The main control processing unit updates the task ID and mapping header in the control segment to establish the mapping area corresponding to the second evidence collection task and its correspondence with the second task ID; During the case switching process, only the task ID, mapping header and valid status flag in the control segment are updated. The data segment is not completely erased or cleared block by block. The cached data blocks that the first evidence collection task has written into the data segment retain their original physical storage state. When the second evidence collection task establishes a read access relationship, the main control processing unit uses the second task ID and the mapping table header corresponding to the second evidence collection task as the retrieval entry point, and does not call the mapping record corresponding to the first evidence collection task.

8. The method for trusted storage access and write protection of electronic data forensics according to claim 1, characterized in that, Including controlled protocol access steps: When the evidence collection host requests to perform device identification, storage protocol status query or control command interaction, the main control processing unit reads the authorization status of the current evidence collection task; When the authorization status is valid, the main control processing unit sends the protocol access authorization status to the protocol processing unit through the device's internal communication bus, so that the protocol processing unit opens a controlled protocol access channel that is independent of the ordinary file system access path. The protocol processing unit receives protocol access requests through the controlled protocol access channel and completes protocol command parsing, protocol command encapsulation, protocol interaction, and response generation. When the protocol access ends, the authorization status expires, the current evidence collection task ends, or the dedicated control device enters the protection state, the main control processing unit revokes the protocol access authorization status and sends channel closure control information to the protocol processing unit through the device's internal communication bus, thereby closing the controlled protocol access channel.

9. The trusted storage access and write protection method for electronic data forensics according to claim 8, characterized in that: The dedicated control device also includes a runtime storage unit; the main control processing unit executes a task lifecycle state machine, which sequentially includes an initialization state, a standby state, an authorized state, a running state, a task completion state, and a resource release state; In the initialization state, the following steps are executed sequentially: runtime storage initialization, host interface detection, sample interface detection, cache storage detection, write protection state latching, and protocol processing unit initialization. After detecting that the storage medium to be tested is connected, the device is successfully identified, and the task is successfully authorized in the standby state, the system enters the authorization state. In the authorized state, a correspondence is established between the task ID, the cache storage unit, and the current forensic task, and the running state is entered after the authorization state is completed; In the operating state, storage access, logical write isolation, protocol response, and controlled protocol access are performed. When the task ends, the main control processing unit sequentially shuts down the logical write environment, closes the controlled protocol access channel, releases the binding relationship between the task ID and the cache storage unit, and enters the resource release state.

10. The method for trusted storage access and write protection of electronic data forensics according to claim 9, characterized in that: The dedicated control device also includes a status recording unit; when an abnormal write protection state, protocol processing abnormality, cache storage abnormality, interface abnormality, task authorization failure, or critical hardware failure is detected in the operation state, the main control processing unit switches the task lifecycle state machine to the protection state. After entering the protection state, the main control processing unit prohibits the establishment of new mapping records, closes the already opened controlled protocol access channels and prohibits the opening of new controlled protocol access channels, and controls the write protection switch unit to keep the physical write path corresponding to the sample interface in the prohibited state. The main control processing unit writes the current task ID, exception type, write protection status, protocol access status, and mapping processing status into the status record unit. After the fault handling is completed, the main control processing unit re-executes the initialization steps in the initialization state, and enters the standby state after all tests pass.