T1070.006: Timestomp

Adversaries may modify file time attributes to hide new 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. This is done, for example, on files that have been modified or created by the adversary so that they do not appear conspicuous to forensic investigators or file analysis tools.

Timestomping may be used along with file name Masquerading to hide malware and tools.

Positive Technologies products that cover the technique

MaxPatrol SIEM knowledge base

— Linux: Monitoring of processes run with command line input containing the 'touch' command and the '-t' or '-acmr' parameter. — Windows: Monitoring of events related to execution of PowerShell commands with command line input containing the Get-ChildItem cmdlet and fragment '.CreationTime', '.LastWriteTime', or '.LastAccessTime'.

Expert Required. The technique is detected only with the combination of «PT Product + Expert»

Detection

IDDS0022Data source and componentFile: File ModificationDescription

Monitor for unexpected modifications to file timestamps

IDDS0022Data source and componentFile: File MetadataDescription

Monitor for file modifications that collects information on file handle opens and can compare timestamp values