From 52b6657d096cffab10158bc01618ea510c5107fe Mon Sep 17 00:00:00 2001 From: Samirbous <64742097+Samirbous@users.noreply.github.com> Date: Tue, 22 Sep 2020 14:28:41 +0200 Subject: [PATCH] [New Rule] Suspicious .Net Compiler Parent Process (#208) * [New Rule] Suspicious dotNet Comilper Parent Process * Update rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml Co-authored-by: Justin Ibarra * Update rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml Co-authored-by: Justin Ibarra * Update rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml Co-authored-by: Justin Ibarra * Update rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com> * Update rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml Co-authored-by: David French <56409778+threat-punter@users.noreply.github.com> * Update rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml Co-authored-by: David French <56409778+threat-punter@users.noreply.github.com> Co-authored-by: Justin Ibarra Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com> Co-authored-by: David French <56409778+threat-punter@users.noreply.github.com> --- ...icious_dotnet_compiler_parent_process.toml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml diff --git a/rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml b/rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml new file mode 100644 index 000000000..a86f52c6b --- /dev/null +++ b/rules/windows/execution_suspicious_dotnet_compiler_parent_process.toml @@ -0,0 +1,41 @@ +[metadata] +creation_date = "2020/08/21" +ecs_version = ["1.6.0"] +maturity = "production" +updated_date = "2020/08/21" + +[rule] +author = ["Elastic"] +description = """ +Identifies suspicious .NET code execution. +connections. +""" +index = ["winlogbeat-*", "logs-endpoint.events.*"] +language = "kuery" +license = "Elastic License" +name = "Suspicious .NET Code Compilation" +risk_score = 47 +rule_id = "201200f1-a99b-43fb-88ed-f65a45c4972c" +severity = "medium" +tags = ["Elastic", "Windows"] +type = "query" + +query = ''' +event.category:process and event.type:(start or process_started) and + process.name:(csc.exe or vbc.exe) and + process.parent.name:(wscript.exe or mshta.exe or wscript.exe or wmic.exe or svchost.exe or rundll32.exe or cmstp.exe or regsvr32.exe) +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1093" +name = "Process Injection" +reference = "https://attack.mitre.org/techniques/T1055/" + + +[rule.threat.tactic] +id = "TA0005" +name = "Defense Evasion" +reference = "https://attack.mitre.org/tactics/TA0005/"