Suspicious Powershell Timestomp (via ps_script)
This rule detects threat actors may modify file time attributes to hide new or changes to existing files. Timestomping is a method that modifies the timestamps of a file (the modify, access, create, and change times), frequently to mimic files that are in the same folder.
SigmamediumWindowsv1
sigma
suspicious-powershell-timestomp-via-ps-script
title: Suspicious Powershell Timestomp (via ps_script)
id: 7218026b-bc99-5c43-a7f6-cd5fea705640
status: stable
description: This rule detects threat actors may modify file time attributes to hide new or changes to existing files. Timestomping is a method that modifies the timestamps of a file (the modify, access, create, and change times), frequently to mimic files that are in the same folder.
references:
- https://attack.mitre.org/techniques/T1070/006/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.006/T1070.006.md
- https://www.offensive-security.com/metasploit-unleashed/timestomp/
author: Huntrule Team
date: 2026-01-04
tags:
- attack.stealth
- attack.t1070.006
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection_ioc:
ScriptBlockText|contains:
- '.CreationTime ='
- '.LastWriteTime ='
- '.LastAccessTime ='
- '[IO.File]::SetCreationTime'
- '[IO.File]::SetLastAccessTime'
- '[IO.File]::SetLastWriteTime'
condition: selection_ioc
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.