From c0c369181abbcff7cb3a5d16d789e780f85263e8 Mon Sep 17 00:00:00 2001 From: Samirbous <64742097+Samirbous@users.noreply.github.com> Date: Tue, 8 Dec 2020 17:32:08 +0100 Subject: [PATCH] [New Rule] New Port Forwarding Rule Added (#630) * [New Rule] New Port Forwarding Rule Added * fiexed rule file name * eql syntax * ecs_version * Update rules/windows/defense_evasion_port_forwarding_added_registry.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * Update rules/windows/defense_evasion_port_forwarding_added_registry.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * Update rules/windows/defense_evasion_port_forwarding_added_registry.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> --- ...vasion_port_forwarding_added_registry.toml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 rules/windows/defense_evasion_port_forwarding_added_registry.toml diff --git a/rules/windows/defense_evasion_port_forwarding_added_registry.toml b/rules/windows/defense_evasion_port_forwarding_added_registry.toml new file mode 100644 index 000000000..04bbd7e82 --- /dev/null +++ b/rules/windows/defense_evasion_port_forwarding_added_registry.toml @@ -0,0 +1,42 @@ +[metadata] +creation_date = "2020/11/25" +maturity = "production" +updated_date = "2020/11/25" + +[rule] +author = ["Elastic"] +description = """ +Identifies the creation of a new port forwarding rule. An adversary may abuse this technique to bypass network +segmentation restrictions. +""" +from = "now-9m" +index = ["winlogbeat-*", "logs-endpoint.events.*"] +language = "eql" +license = "Elastic License" +name = "Port Forwarding Rule Addition" +references = [ + "https://www.fireeye.com/blog/threat-research/2019/01/bypassing-network-restrictions-through-rdp-tunneling.html", +] +risk_score = 47 +rule_id = "3535c8bb-3bd5-40f4-ae32-b7cd589d5372" +severity = "medium" +tags = ["Elastic", "Host", "Windows", "Threat Detection", "Defense Evasion"] +type = "eql" + +query = ''' +registry where registry.path : "HKLM\\SYSTEM\\ControlSet*\\Services\\PortProxy\\v4tov4\\*" +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1089" +name = "Disabling Security Tools" +reference = "https://attack.mitre.org/techniques/T1089/" + + +[rule.threat.tactic] +id = "TA0005" +name = "Defense Evasion" +reference = "https://attack.mitre.org/tactics/TA0005/"