From dd4bc3e57eb9a77dbcb574d3fb98b1978b588a1b Mon Sep 17 00:00:00 2001 From: Samirbous <64742097+Samirbous@users.noreply.github.com> Date: Wed, 14 Apr 2021 00:53:27 +0200 Subject: [PATCH] [Rule Tuning] Connection to Commonly Abused Web Services (#1079) * [Rule Tuning] Connection to Commonly Abused Web Services * adjusted 1 exclusion * update date * added 3 dns.names as suggested by Daniel * added requestbin.net used for DNS tunneling by APT34 --- ...ommand_and_control_common_webservices.toml | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/rules/windows/command_and_control_common_webservices.toml b/rules/windows/command_and_control_common_webservices.toml index 87ea3b33c..4a66a1dc4 100644 --- a/rules/windows/command_and_control_common_webservices.toml +++ b/rules/windows/command_and_control_common_webservices.toml @@ -1,7 +1,7 @@ [metadata] creation_date = "2020/11/04" maturity = "production" -updated_date = "2021/03/09" +updated_date = "2021/04/07" [rule] author = ["Elastic"] @@ -25,7 +25,7 @@ type = "eql" query = ''' network where network.protocol == "dns" and - process.name != null and user.id not in ("S-1-5-19", "S-1-5-20") and + process.name != null and user.id not in ("S-1-5-18", "S-1-5-19", "S-1-5-20") and /* Add new WebSvc domains here */ dns.question.name : ( @@ -47,21 +47,28 @@ network where network.protocol == "dns" and "*localtunnel.me", "*pagekite.me", "*localxpose.io", - "*notabug.org" + "*notabug.org", + "rawcdn.githack.*", + "paste.nrecom.net", + "zerobin.net", + "controlc.com", + "requestbin.net" ) and /* Insert noisy false positives here */ not process.executable : ( - "C:\\Program Files\\*.exe", - "C:\\Program Files (x86)\\*.exe", - "C:\\Windows\\System32\\WWAHost.exe", - "C:\\Windows\\System32\\smartscreen.exe", - "C:\\Windows\\System32\\MicrosoftEdgeCP.exe", - "C:\\ProgramData\\Microsoft\\Windows Defender\\Platform\\*\\MsMpEng.exe", - "C:\\Users\\*\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe", - "C:\\Users\\*\\AppData\\Local\\Programs\\Fiddler\\Fiddler.exe", - "C:\\Users\\*\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe", - "C:\\Users\\*\\AppData\\Local\\Microsoft\\OneDrive\\OneDrive.exe" + "?:\\Program Files\\*.exe", + "?:\\Program Files (x86)\\*.exe", + "?:\\Windows\\System32\\WWAHost.exe", + "?:\\Windows\\System32\\smartscreen.exe", + "?:\\Windows\\System32\\MicrosoftEdgeCP.exe", + "?:\\ProgramData\\Microsoft\\Windows Defender\\Platform\\*\\MsMpEng.exe", + "?:\\Users\\*\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe", + "?:\\Users\\*\\AppData\\Local\\Programs\\Fiddler\\Fiddler.exe", + "?:\\Users\\*\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe", + "?:\\Users\\*\\AppData\\Local\\Microsoft\\OneDrive\\OneDrive.exe", + "?:\\Windows\\system32\\mobsync.exe", + "?:\\Windows\\SysWOW64\\mobsync.exe" ) '''