The present application belongs to the technical field of computer
data security, and particularly relates to a method for protecting specified paths and files from tampering, which comprises the following steps: registering a relevant main
function code callback routine in a Windows
file system filtering driver framework, and constructing an interception layer for intercepting I / O requests; constructing an
access control list with PID and file object path as key values in a kernel non-
paging memory; synchronously extracting PID and target file complete path in the
callback routine, and judging according to
system processes, exemption lists, and protection paths / types, and rejecting the request if it does not meet the conditions; and achieving
dynamic management of strategies by establishing a
control channel. The present application solves the problem of strategy failure caused by volume path changes by hiding file persistent volume IDs in the
system; adopts hierarchical data structures and concurrent synchronization mechanisms to ensure efficient queries and little
impact on disk IO performance; and supports multi-dimensional fine control with the help of multi-layer control switches and
scenario-based templates.