ef7548f04c
* Update collection_email_powershell_exchange_mailbox.toml * Update command_and_control_remote_file_copy_powershell.toml * Update defense_evasion_disabling_windows_defender_powershell.toml * Update execution_scheduled_task_powershell_source.toml * Update execution_via_compiled_html_file.toml * Update impact_volume_shadow_copy_deletion_via_powershell.toml * Update initial_access_suspicious_ms_exchange_worker_child_process.toml * Update persistence_powershell_exch_mailbox_activesync_add_device.toml * Update persistence_webshell_detection.toml * Update defense_evasion_execution_msbuild_started_by_script.toml * Update defense_evasion_clearing_windows_event_logs.toml * Update defense_evasion_suspicious_zoom_child_process.toml * Update defense_evasion_defender_exclusion_via_powershell.toml * Update persistence_local_scheduled_task_scripting.toml * Update persistence_local_scheduled_task_creation.toml * Update persistence_system_shells_via_services.toml * Update collection_email_powershell_exchange_mailbox.toml * Update command_and_control_remote_file_copy_powershell.toml * Update defense_evasion_clearing_windows_event_logs.toml * Update defense_evasion_defender_exclusion_via_powershell.toml * Update defense_evasion_disabling_windows_defender_powershell.toml * Update defense_evasion_execution_msbuild_started_by_script.toml * Update defense_evasion_suspicious_zoom_child_process.toml * Update execution_scheduled_task_powershell_source.toml * Update execution_via_compiled_html_file.toml * Update impact_volume_shadow_copy_deletion_via_powershell.toml * Update initial_access_suspicious_ms_exchange_worker_child_process.toml * Update persistence_local_scheduled_task_creation.toml * Update persistence_local_scheduled_task_scripting.toml * Update persistence_powershell_exch_mailbox_activesync_add_device.toml * Update persistence_system_shells_via_services.toml * Update persistence_webshell_detection.toml * Update rules/windows/persistence_local_scheduled_task_creation.toml Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> * Update rules/windows/initial_access_suspicious_ms_exchange_worker_child_process.toml Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> * Update rules/windows/defense_evasion_disabling_windows_defender_powershell.toml Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> * Update rules/windows/defense_evasion_defender_exclusion_via_powershell.toml Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com> Co-authored-by: Jonhnathan <jonhnathancesar@gmail.com>
52 lines
1.6 KiB
TOML
52 lines
1.6 KiB
TOML
[metadata]
|
|
creation_date = "2020/11/29"
|
|
maturity = "production"
|
|
updated_date = "2021/10/17"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
A scheduled task was created by a Windows script via cscript.exe, wscript.exe or powershell.exe. This can be abused by
|
|
an adversary to establish persistence.
|
|
"""
|
|
false_positives = ["Legitimate scheduled tasks may be created during installation of new software."]
|
|
from = "now-9m"
|
|
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Scheduled Task Created by a Windows Script"
|
|
note = """## Triage and analysis
|
|
|
|
Decode the base64 encoded Tasks Actions registry value to investigate the task's configured action."""
|
|
risk_score = 47
|
|
rule_id = "689b9d57-e4d5-4357-ad17-9c334609d79a"
|
|
severity = "medium"
|
|
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Persistence"]
|
|
type = "eql"
|
|
|
|
query = '''
|
|
sequence by host.id with maxspan = 30s
|
|
[library where dll.name : "taskschd.dll" and process.name : ("cscript.exe", "wscript.exe", "powershell.exe", "pwsh.exe", "powershell_ise.exe")]
|
|
[registry where registry.path : "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\TaskCache\\Tasks\\*\\Actions"]
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1053"
|
|
name = "Scheduled Task/Job"
|
|
reference = "https://attack.mitre.org/techniques/T1053/"
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1053.005"
|
|
name = "Scheduled Task"
|
|
reference = "https://attack.mitre.org/techniques/T1053/005/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0003"
|
|
name = "Persistence"
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
|
|