PowerShell timestomping via file timestamp property and setter usage (Windows)

Identifies PowerShell timestomping attempts by matching script text that sets file creation, access, and write timestamps.

FreeReviewedSigma · Medium · v2
Product
windows
Category
ps_script
Author
frack113 (SigmaHQ), DRL 1.1
Published
2021-08-03
Updated
2026-07-31

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

  14. Impact

What it detects

This rule flags PowerShell script content that sets or assigns file timestamp properties and uses .NET methods to change file creation, last access, and last write times. Attackers may timestomp files to obscure activity by making timestamps appear consistent with existing files or normal activity. The detection relies on PowerShell Script Block Logging telemetry matching specific timestamp property and setter expressions.

Related detections8 linkedT1070.006 — drag to rearrange
Suspicious File Timestamp Manipulation via PowerShell (via process_creation)
Suspicious System Time Changed (via security)
Suspicious Timestomping of PHP Webshell in Ivanti CSA Webroot via touch (via process_creation)
Linux Service File Touch with Timestamp Argument
Windows File Creation Time Altered to a Previous Year
macOS process using touch to modify file timestamps and hide file changes
Linux: Detect touch commands used to alter file timestamps with -t/-a/-c/-m/-r flags
Windows Security Event 4616 for System Time Changes by Non-Service Accounts
PowerShell timestomping via file timestamp property and setter usage (Windows)
Pivot detection · T1070.006 · 8 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.