Detection rules › Sigma

File Creation Date Changed to Another Year

Status
test
Severity
low
Log source
category file_change, product windows
Author
frack113, Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects when the file creation time is changed to a year before 2020. Attackers may change the file creation time of a backdoor to make it look like it was installed with the operating system. Note that many processes legitimately change the creation time of a file; it does not necessarily indicate malicious activity. In order to use this rule in production, it is recommended first baseline normal behavior in your environment and then tune the rule accordingly. Hunting Recommendation: Focus on files with creation times set to years significantly before the current date, especially those in user-writable directories. Correlate with process execution logs to identify the source of the modification and investigate any unsigned or suspicious binaries involved.

Known false positives

  • Changes made to or by the local NTP service
  • Software installations and updates

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: File Creation Date Changed to Another Year
id: 558eebe5-f2ba-4104-b339-36f7902bcc1a
status: test
description: |
    Detects when the file creation time is changed to a year before 2020.
    Attackers may change the file creation time of a backdoor to make it look like it was installed with the operating system.
    Note that many processes legitimately change the creation time of a file; it does not necessarily indicate malicious activity.
    In order to use this rule in production, it is recommended first baseline normal behavior in your environment and then tune the rule accordingly.
    Hunting Recommendation: Focus on files with creation times set to years significantly before the current date, especially those in user-writable directories.
    Correlate with process execution logs to identify the source of the modification and investigate any unsigned or suspicious binaries involved.
references:
    - https://www.inversecos.com/2022/04/defence-evasion-technique-timestomping.html
author: frack113, Florian Roth (Nextron Systems)
date: 2022-08-12
modified: 2026-01-20
tags:
    - attack.stealth
    - attack.t1070.006
    - detection.threat-hunting
logsource:
    category: file_change
    product: windows
detection:
    selection:
        PreviousCreationUtcTime|startswith: '202'
    filter_main_creation_time:
        CreationUtcTime|startswith: '202'
    filter_main_program_files:
        - TargetFilename|startswith:
              - 'C:\Program Files\'
              - 'C:\Program Files (x86)\'
        - Image|startswith:
              - 'C:\Program Files\'
              - 'C:\Program Files (x86)\'
    filter_optional_updates:
        - Image:
              - 'C:\Windows\system32\ProvTool.exe'
              - 'C:\Windows\System32\usocoreworker.exe'
              - 'C:\Windows\ImmersiveControlPanel\SystemSettings.exe'
        - TargetFilename|startswith: 'C:\ProgramData\USOPrivate\UpdateStore\'
        - TargetFilename|endswith:
              - '.tmp'
              - '.temp'
    filter_optional_cab:
        Image|startswith: 'C:\WINDOWS\System32\'
        Image|endswith:
            - '\TiWorker.exe'
            - '\svchost.exe'
            - '\sihclient.exe'
        TargetFilename|endswith: '.cab'
    filter_optional_msiexec:
        Image: 'C:\Windows\system32\msiexec.exe'
    filter_optional_vcredist:
        Image|startswith: 'C:\Windows\Temp\'
        Image|endswith: '\VCREDI~1.EXE'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Changes made to or by the local NTP service
    - Software installations and updates
level: low

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    PreviousCreationUtcTime|startswith: '202'

Stage 2: not filter_main_*

filter_main_creation_time:
    CreationUtcTime|startswith: '202'
filter_main_program_files:
    - TargetFilename|startswith:
          - 'C:\Program Files\'
          - 'C:\Program Files (x86)\'
    - Image|startswith:
          - 'C:\Program Files\'
          - 'C:\Program Files (x86)\'

Stage 3: not filter_optional_*

filter_optional_updates:
    - Image:
          - 'C:\Windows\system32\ProvTool.exe'
          - 'C:\Windows\System32\usocoreworker.exe'
          - 'C:\Windows\ImmersiveControlPanel\SystemSettings.exe'
    - TargetFilename|startswith: 'C:\ProgramData\USOPrivate\UpdateStore\'
    - TargetFilename|endswith:
          - '.tmp'
          - '.temp'
filter_optional_cab:
    Image|startswith: 'C:\WINDOWS\System32\'
    Image|endswith:
        - '\TiWorker.exe'
        - '\svchost.exe'
        - '\sihclient.exe'
    TargetFilename|endswith: '.cab'
filter_optional_msiexec:
    Image: 'C:\Windows\system32\msiexec.exe'
filter_optional_vcredist:
    Image|startswith: 'C:\Windows\Temp\'
    Image|endswith: '\VCREDI~1.EXE'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CreationUtcTimestarts_with202excludes:CreationUtcTime field:"CreationUtcTime" value:"202"
Imagestarts_withC:\Program Files (x86)\excludes:Image field:"Image" value:"C:\Program Files (x86)\"
Imagestarts_withC:\Program Files\excludes:Image field:"Image" value:"C:\Program Files\"
TargetFilenamestarts_withC:\Program Files (x86)\excludes:TargetFilename field:"TargetFilename" value:"C:\Program Files (x86)\"
TargetFilenamestarts_withC:\Program Files\excludes:TargetFilename field:"TargetFilename" value:"C:\Program Files\"
Imageends_with\TiWorker.exeexcludes:Image field:"Image" value:"\TiWorker.exe"
Imageends_with\sihclient.exeexcludes:Image field:"Image" value:"\sihclient.exe"
Imageends_with\svchost.exeexcludes:Image field:"Image" value:"\svchost.exe"
Imagestarts_withC:\WINDOWS\System32\excludes:Image field:"Image" value:"C:\WINDOWS\System32\"
TargetFilenameends_with.cabexcludes:TargetFilename field:"TargetFilename" value:".cab"
Imageends_with\VCREDI~1.EXEexcludes:Image field:"Image" value:"\VCREDI~1.EXE"
Imagestarts_withC:\Windows\Temp\excludes:Image field:"Image" value:"C:\Windows\Temp\"
ImageeqC:\Windows\ImmersiveControlPanel\SystemSettings.exeexcludes:Image field:"Image" value:"C:\Windows\ImmersiveControlPanel\SystemSettings.exe"
ImageeqC:\Windows\System32\usocoreworker.exeexcludes:Image field:"Image" value:"C:\Windows\System32\usocoreworker.exe"
ImageeqC:\Windows\system32\ProvTool.exeexcludes:Image field:"Image" value:"C:\Windows\system32\ProvTool.exe"
ImageeqC:\Windows\system32\msiexec.exeexcludes:Image field:"Image" value:"C:\Windows\system32\msiexec.exe"
TargetFilenameends_with.tempexcludes:TargetFilename field:"TargetFilename" value:".temp"
TargetFilenameends_with.tmpexcludes:TargetFilename field:"TargetFilename" value:".tmp"
TargetFilenamestarts_withC:\ProgramData\USOPrivate\UpdateStore\excludes:TargetFilename field:"TargetFilename" value:"C:\ProgramData\USOPrivate\UpdateStore\"

Indicators

These rows show field, operator, and value matches.