{"id":"c6438007-e081-42ce-9483-b067fbef33c3","title":"Powershell Timestomp","description":"Adversaries may modify file time attributes to hide new or changes to existing files.\nTimestomping 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.\n","author":"frack113","status":"test","level":"medium","date":"2021-08-03","modified":"2022-12-25","tags":["attack.stealth","attack.t1070.006"],"technique_ids":["T1070.006"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Legitimate admin script"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.006/T1070.006.md","https://www.offensive-security.com/metasploit-unleashed/timestomp/"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_timestomp.yml","source_sha256":"0b3b32f5aed6a74d86fa2b31631e4999a2aa2dd9bb0e1721f26e60694036ce6b","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_timestomp.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Powershell Timestomp\nid: c6438007-e081-42ce-9483-b067fbef33c3\nstatus: test\ndescription: |\n    Adversaries may modify file time attributes to hide new or changes to existing files.\n    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.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.006/T1070.006.md\n    - https://www.offensive-security.com/metasploit-unleashed/timestomp/\nauthor: frack113\ndate: 2021-08-03\nmodified: 2022-12-25\ntags:\n    - attack.stealth\n    - attack.t1070.006\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection_ioc:\n        ScriptBlockText|contains:\n            - '.CreationTime ='\n            - '.LastWriteTime ='\n            - '.LastAccessTime ='\n            - '[IO.File]::SetCreationTime'\n            - '[IO.File]::SetLastAccessTime'\n            - '[IO.File]::SetLastWriteTime'\n    condition: selection_ioc\nfalsepositives:\n    - Legitimate admin script\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1070.006","id":"T1070.006","name":"Timestomp","page":"techniques/enterprise/T1070.006/"}],"data_path":"data/detection-rules/c6438007-e081-42ce-9483-b067fbef33c3.json","kind":"sigma"}
