From 30cded7a2db07bd0fb945c9d6aa68a7167c19f24 Mon Sep 17 00:00:00 2001 From: Samirbous <64742097+Samirbous@users.noreply.github.com> Date: Wed, 2 Dec 2020 21:22:43 +0100 Subject: [PATCH] [New Rule] Lateral Movement via Startup Folder (#663) * [New Rule] Lateral Movement via Startup Folder * Update rules/windows/lateral_movement_via_startup_folder_rdp_smb.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * Update rules/windows/lateral_movement_via_startup_folder_rdp_smb.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * Update rules/windows/lateral_movement_via_startup_folder_rdp_smb.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * ecs_version Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> --- ...l_movement_via_startup_folder_rdp_smb.toml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 rules/windows/lateral_movement_via_startup_folder_rdp_smb.toml diff --git a/rules/windows/lateral_movement_via_startup_folder_rdp_smb.toml b/rules/windows/lateral_movement_via_startup_folder_rdp_smb.toml new file mode 100644 index 000000000..f1bd430fb --- /dev/null +++ b/rules/windows/lateral_movement_via_startup_folder_rdp_smb.toml @@ -0,0 +1,55 @@ +[metadata] +creation_date = "2020/10/19" +maturity = "production" +updated_date = "2020/10/19" + +[rule] +author = ["Elastic"] +description = """ +Identifies suspicious file creations in the startup folder of a remote system. An adversary could abuse this +to move laterally by dropping a malicious script or executable that will be executed after a reboot or user logon. +""" +from = "now-9m" +index = ["logs-endpoint.events.*", "winlogbeat-*"] +language = "eql" +license = "Elastic License" +name = "Lateral Movement via Startup Folder" +references = ["https://www.mdsec.co.uk/2017/06/rdpinception/"] +risk_score = 73 +rule_id = "25224a80-5a4a-4b8a-991e-6ab390465c4f" +severity = "high" +tags = ["Elastic", "Host", "Windows", "Threat Detection", "Lateral Movement"] +type = "eql" + +query = ''' +file where event.type in ("creation", "change") and + /* via RDP TSClient mounted share or SMB */ + (process.name : "mstsc.exe" or process.pid == 4) and + file.path : "C:\\*\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\*" +''' + + +[[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 = "TA0008" +name = "Lateral Movement" +reference = "https://attack.mitre.org/tactics/TA0008/" +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1060" +name = "Registry Run Keys / Startup Folder" +reference = "https://attack.mitre.org/techniques/T1060/" + + +[rule.threat.tactic] +id = "TA0003" +name = "Persistence" +reference = "https://attack.mitre.org/tactics/TA0003/"