Detection rules › Sigma

Powershell Timestomp

Severity
medium
Author
frack113
Source
upstream

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.

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1070.006 Indicator Removal: Timestomp

Event coverage

ProviderEvent IDTitle
PowerShell4104Creating Scriptblock text (MessageNumber of MessageTotal).

Stages and Predicates

Stage 1: selection_ioc

or:
ScriptBlockText|contains: '.CreationTime ='
ScriptBlockText|contains: '.LastAccessTime ='
ScriptBlockText|contains: '.LastWriteTime ='
ScriptBlockText|contains: '[IO.File]::SetCreationTime'
ScriptBlockText|contains: '[IO.File]::SetLastAccessTime'
ScriptBlockText|contains: '[IO.File]::SetLastWriteTime'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ScriptBlockTextmatch
  • .CreationTime =
  • .LastAccessTime =
  • .LastWriteTime =
  • [IO.File]::SetCreationTime
  • [IO.File]::SetLastAccessTime
  • [IO.File]::SetLastWriteTime

Neighbors

Broader alternatives (more inclusive than this rule)

These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.