# Timestomping

> Timestomping refers to **the alteration of timestamps of a file on an NTFS file system**. This tactic is commonly utilized by threat actors to hide their tools on the victim's file system.

### Timestomping Windows

One of the easiest ways to Timestomp on Windows is to use [nTimetools](https://github.com/limbenjamin/nTimetools):

```bash
# Check the original time
.\nTimeView C:\program.exe

# Forge a creation time/date
.\nTimeStomp.exe -F C:\program.exe -A "2022-09-17 12:18:43.0000001" -C "2022-09-17 12:18:43.0000001"
```

### Timestomping Linux

We can simply use the `touch` command in Linux to modify timestamps:

```bash
# Generic usage
touch -a -t 197001010000.00 $targetfile

# Match a referenced files timestamps
touch -acmr $referencedfile $targetfile
```

### References

{% embed url="<https://attack.mitre.org/techniques/T1070/006/>" %}

{% embed url="<https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1070.006/T1070.006.md>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ttp.parzival.sh/pentesting/infrastructure/defense_evasion/timestomping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
