Event ID 2: File Create Time Changed
A process changed a file creation time. This event helps track the real creation time of a file. Attackers may change file time attributes to hide their tracks.
- Channel
- Microsoft-Windows-Sysmon/Operational
- Logged by default
- No
- Written on
- Any host
- Volume
- Low
- Provider
- Microsoft-Windows-Sysmon
- Needs a SACL
- No
To have this event
- Sysmon installed, with a configuration that includes this event type.
- Commonly disabled or heavily filtered in public baseline configurations; check yours.
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| UtcTime | UTC timestamp when file creation time was changed |
| ProcessGuid | Process GUID that modified the file time |
| ProcessId | Process ID |
| Image | Process executable path |
| TargetFilename | Full path of the file whose timestamp was modified |
| CreationUtcTime | New creation time set on the file |
| PreviousCreationUtcTime | Original creation time before modification |
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System[(EventID=2)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Common questions
- What does Windows event ID 2 mean?
- A process changed a file creation time. This event helps track the real creation time of a file. Attackers may change file time attributes to hide their tracks. It is written to the Sysmon log (Microsoft-Windows-Sysmon/Operational).
- Is event 2 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 2 recorded?
- In the Microsoft-Windows-Sysmon/Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderA process changed a file creation time. This event helps track the real creation time of a file. Attackers may change file time attributes to hide their tracks. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.