Adversaries may modify file time attributes to hide new files or changes to existing files. Timestomping is a technique that modifies the timestamps of a file (the modify, access, create, and change times), often to mimic files that are in the same folder and blend malicious files with legitimate files. In Windows systems, both the `$STANDARD_INFORMATION` (`$SI`) and `$FILE_NAME` (`$FN`) attributes record times in a Master File Table (MFT) file.1 `$SI` (dates/time stamps) is displayed to the end user, including in the File System view, while `$FN` is dealt with by the kernel.2 Modifying the `$SI` attribute is the most common method of timestomping because it can be modified at the user level using API calls. `$FN` timestomping, however, typically requires interacting with the system kernel or moving or renaming a file.3 Adversaries modify timestamps on files so that they do not appear conspicuous to forensic investigators or file analysis tools. In order to evade detections that rely on identifying discrepancies between the `$SI` and `$FN` attributes, adversaries may also engage in “double timestomping” by modifying times on both attributes simultaneously.4 In Linux systems and on ESXi servers, threat actors may attempt to perform timestomping using commands such as `touch -a -m -t <timestamp> <filename>` (which sets access and modification times to a specific value) or `touch -r <filename> <filename>` (which sets access and modification times to match those of another file).56 Timestomping may be used along with file name Masquerading to hide malware and tools.7
- Inversecos Timestomping 2022
- Magnet Forensics
- Inversecos Timestomping 2022
- Double Timestomping
- Inversecos Linux Timestomping
- Juniper Networks ESXi Backdoor 2022
- WindowsIR Anti-Forensic Techniques
Groups using this technique
| Group | Name | Country |
|---|---|---|
| grp_g1023 | APT5 | China |
| grp_g0129 | Mustang Panda | China |
| grp_g0032 | Lazarus Group | DPRK |
| grp_g0114 | Chimera | China |
| grp_g1048 | UNC3886 | — |
| grp_g0082 | APT38 | DPRK |
| grp_g0094 | Kimsuky | DPRK |
| grp_g0106 | Rocke | — |
| grp_g0007 | APT28 | Russia |
| grp_g0016 | APT29 | Russia |
| grp_g0050 | APT32 | Vietnam |
Claims
No public claim points at this technique yet.
Auto-ingested and not human-reviewed; confidence and validity read by citation.