A method for dynamic control, at file level, of the integrity of a set of files stored in a persistent memory of a computer, said method comprising: - allocating a first memory space (242, 342, 642 M,642 N) in the persistent memory of the computer, in which are stored files (251,301,303,304) the integrity of which must be controlled; - allocating a second memory space (243,343,643 M,643 N,643 M a) in the persistent memory of the computer, separate from the first memory space; - locking to read-only, of the first memory space containing the files (251,301,303,304) the integrity of which must be controlled; - implementing a copy-on-write mechanism with respect to the files (251,301,303,304) contained in the first memory space, ensuring the creation of a copy of at least one of said files in the second memory space when the at least one file is modified and the redirection of all instances of subsequent access to the at least one file to said copy of the at least one file in the second memory space; characterized in that said method also comprises: - creating a list, said created list corresponding to a list called denylist, of files from the second memory space to be excluded from the integrity control, or a list called allowlist, of files from the second memory space to be included in the integrity control; - dynamic inspection, at predetermined times during the operation of the computer, of the second memory space in order to identify files therein with the exception of the files from the denylist or to identify files therein from the allowlist; - detecting an integrity violation of a file from among the files the integrity of which must be controlled, stored in the first memory space, if a copy of said file is identified in the second memory space; and - at least one predetermined action, executed in response to the detection of an integrity violation of a file from among the files the integrity of which must be controlled, from the first memory space. - allocating a first memory space (242, 342, 642 M,642 N) in the persistent memory of the computer, in which are stored files (251,301,303,304) the integrity of which must be controlled; - allocating a second memory space (243,343,643 M,643 N,643 M a) in the persistent memory of the computer, separate from the first memory space; - locking to read-only, of the first memory space containing the files (251,301,303,304) the integrity of which must be controlled; - implementing a copy-on-write mechanism with respect to the files (251,301,303,304) contained in the first memory space, ensuring the creation of a copy of at least one of said files in the second memory space when the at least one file is modified and the redirection of all instances of subsequent access to the at least one file to said copy of the at least one file in the second memory space; - creating a list, said created list corresponding to a list called denylist, of files from the second memory space to be excluded from the integrity control, or a list called allowlist, of files from the second memory space to be included in the integrity control; - dynamic inspection, at predetermined times during the operation of the computer, of the second memory space in order to identify files therein with the exception of the files from the denylist or to identify files therein from the allowlist; - detecting an integrity violation of a file from among the files the integrity of which must be controlled, stored in the first memory space, if a copy of said file is identified in the second memory space; and - at least one predetermined action, executed in response to the detection of an integrity violation of a file from among the files the integrity of which must be controlled, from the first memory space.