Powershell Timestomp

 Original Source: [Sigma source]
Title: Powershell Timestomp
Status: test
Description:Adversaries may modify file time attributes to hide new or changes to existing files. Timestomping is a technique that modifies the timestamps of a file (the modify, access, create, and change times), often to mimic files that are in the same folder.
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.006/T1070.006.md
  -https://www.offensive-security.com/metasploit-unleashed/timestomp/
Author: frack113
Date: 2021-08-03
modified:2022-12-25
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:
  -Legitimate admin script
Level: medium