Windows API reference

SetFileTime

Sets file creation, access and write timestamps.

Library
Kernel32.dll
Category
Evasion
Suspicion
medium

Detection summary

SetFileTime maps to Sysmon Event 2 and Microsoft-Windows-Kernel-File; these events record the OS effect, not the API call.

Sources and documentation

Not yet human-reviewed. Page metadata generated .

Legitimate use

Backup, archive and file-management tools that preserve timestamps; also used for timestomping.

Open SetFileTime in the interactive atlas