From 53484de98626a5ea8202fd0f7f799c484aeb2664 Mon Sep 17 00:00:00 2001 From: Samirbous <64742097+Samirbous@users.noreply.github.com> Date: Tue, 29 Sep 2020 10:54:24 +0200 Subject: [PATCH] [New Rule] - Creation of a new GPO Scheduled Task or Service (#126) * [New Rule] - Creation of a new GPO Scheduled Task or Service * Update lateral_movement_gpo_schtask_service_creation.toml * Update lateral_movement_gpo_schtask_service_creation.toml * Update rules/windows/lateral_movement_gpo_schtask_service_creation.toml Co-authored-by: Justin Ibarra * Update rules/windows/lateral_movement_gpo_schtask_service_creation.toml Co-authored-by: Justin Ibarra * Update rules/windows/lateral_movement_gpo_schtask_service_creation.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * Update rules/windows/lateral_movement_gpo_schtask_service_creation.toml Co-authored-by: Justin Ibarra * Update lateral_movement_gpo_schtask_service_creation.toml Co-authored-by: Justin Ibarra Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> --- ...movement_gpo_schtask_service_creation.toml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 rules/windows/lateral_movement_gpo_schtask_service_creation.toml diff --git a/rules/windows/lateral_movement_gpo_schtask_service_creation.toml b/rules/windows/lateral_movement_gpo_schtask_service_creation.toml new file mode 100644 index 000000000..e443bd60e --- /dev/null +++ b/rules/windows/lateral_movement_gpo_schtask_service_creation.toml @@ -0,0 +1,56 @@ +[metadata] +creation_date = "2020/08/13" +ecs_version = ["1.6.0"] +maturity = "production" +updated_date = "2020/08/13" + +[rule] +author = ["Elastic"] +description = """ +Detects the creation or modification of a new Group Policy based scheduled task or service. These methods are used for legitimate system +administration, but can also be abused by an attacker with domain admin permissions to execute a malicious payload remotely on all +or a subset of the domain joined machines. +""" +from = "now-9m" +index = ["winlogbeat-*", "logs-endpoint.events.*"] +language = "kuery" +license = "Elastic License" +name = "Creation or Modification of a new GPO Scheduled Task or Service" +risk_score = 21 +rule_id = "c0429aa8-9974-42da-bfb6-53a0a515a145" +severity = "low" +tags = ["Elastic", "Windows"] +type = "query" + +query = ''' +event.category:file and not event.type:deletion and + file.path:(C\:\\Windows\\SYSVOL\\domain\\Policies\\*\\MACHINE\\Preferences\\ScheduledTasks\\ScheduledTasks.xml or + C\:\\Windows\\SYSVOL\\domain\\Policies\\*\\MACHINE\\Preferences\\Preferences\\Services\\Services.xml) and + not process.name:dfsrs.exe +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1053" +name = "Scheduled Task/Job" +reference = "https://attack.mitre.org/techniques/T1053/" + + +[rule.threat.tactic] +id = "TA0003" +name = "Persistence" +reference = "https://attack.mitre.org/tactics/TA0003/" +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1021" +name = "Remote Services" +reference = "https://attack.mitre.org/techniques/T1021/" + + +[rule.threat.tactic] +id = "TA0002" +name = "Execution" +reference = "https://attack.mitre.org/tactics/TA0002/"