7b1215ccf1
* [Rule Tuning] Windows DR Tuning - 8 * Update rules/windows/defense_evasion_unusual_system_vp_child_program.toml Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com> * Update rules/windows/defense_evasion_via_filter_manager.toml Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com> * Update rules/windows/defense_evasion_via_filter_manager.toml Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com> --------- Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com>
74 lines
2.5 KiB
TOML
74 lines
2.5 KiB
TOML
[metadata]
|
|
creation_date = "2023/01/17"
|
|
integration = ["windows"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2023/12/18"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies modification of a file creation time. Adversaries may modify file time attributes to blend
|
|
malicious content with existing files. Timestomping is a technique that modifies the timestamps of
|
|
a file often to mimic files that are in trusted directories.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["winlogbeat-*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "File Creation Time Changed"
|
|
risk_score = 47
|
|
rule_id = "166727ab-6768-4e26-b80c-948b228ffc06"
|
|
severity = "medium"
|
|
tags = [
|
|
"Domain: Endpoint",
|
|
"OS: Windows",
|
|
"Use Case: Threat Detection",
|
|
"Tactic: Defense Evasion"
|
|
]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
file where host.os.type == "windows" and event.code : "2" and
|
|
|
|
/* Requires Sysmon EventID 2 - File creation time change */
|
|
event.action : "File creation time changed*" and
|
|
|
|
not process.executable :
|
|
("?:\\Program Files\\*",
|
|
"?:\\Program Files (x86)\\*",
|
|
"?:\\Windows\\system32\\cleanmgr.exe",
|
|
"?:\\Windows\\system32\\msiexec.exe",
|
|
"?:\\Windows\\syswow64\\msiexec.exe",
|
|
"?:\\Windows\\system32\\svchost.exe",
|
|
"?:\\WINDOWS\\system32\\backgroundTaskHost.exe",
|
|
"?:\\Users\\*\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe",
|
|
"?:\\Users\\*\\AppData\\Local\\Mozilla Firefox\\firefox.exe",
|
|
"?:\\Users\\*\\AppData\\Local\\slack\\app-*\\slack.exe",
|
|
"?:\\Users\\*\\AppData\\Local\\GitHubDesktop\\app-*\\GitHubDesktop.exe",
|
|
"?:\\Users\\*\\AppData\\Local\\Microsoft\\Teams\\current\\Teams.exe",
|
|
"?:\\Users\\*\\AppData\\Local\\Microsoft\\OneDrive\\OneDrive.exe") and
|
|
not file.extension : ("temp", "tmp", "~tmp", "xml", "newcfg") and not user.name : ("SYSTEM", "Local Service", "Network Service") and
|
|
not file.name : ("LOG", "temp-index", "license.rtf", "iconcache_*.db")
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1070"
|
|
name = "Indicator Removal"
|
|
reference = "https://attack.mitre.org/techniques/T1070/"
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1070.006"
|
|
name = "Timestomp"
|
|
reference = "https://attack.mitre.org/techniques/T1070/006/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0005"
|
|
name = "Defense Evasion"
|
|
reference = "https://attack.mitre.org/tactics/TA0005/"
|