Skip to content

Commit 511a74e

Browse files
[Rule Tuning] Merge and Delete duplicate rules for Registration Utilities (#1028)
* [Rule Tuning] Merge and Delete duplicate rules for Registration Utilities * Update rules/windows/execution_register_server_program_connecting_to_the_internet.toml Co-authored-by: Justin Ibarra <[email protected]> * restored Execution via Regsvcs/Regasm * restored changes * deprecated 1rule, deleted 1 and tuned 1 Co-authored-by: Justin Ibarra <[email protected]>
1 parent be3c7ea commit 511a74e

3 files changed

+13
-64
lines changed

rules/windows/execution_via_net_com_assemblies.toml renamed to rules/_deprecated/execution_via_net_com_assemblies.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[metadata]
22
creation_date = "2020/03/25"
3-
maturity = "production"
4-
updated_date = "2021/03/03"
3+
deprecation_date = "2021/03/17"
4+
maturity = "deprecated"
5+
updated_date = "2021/03/17"
56

67
[rule]
78
author = ["Elastic"]

rules/windows/defense_evasion_reg_beacon.toml

-54
This file was deleted.

rules/windows/execution_register_server_program_connecting_to_the_internet.toml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[metadata]
22
creation_date = "2020/02/18"
33
maturity = "production"
4-
updated_date = "2021/03/03"
4+
updated_date = "2021/03/17"
55

66
[rule]
77
author = ["Elastic"]
@@ -28,12 +28,15 @@ type = "eql"
2828

2929
query = '''
3030
sequence by process.entity_id
31-
[process where (process.name : "regsvr32.exe" or process.name : "regsvr64.exe" or
32-
process.name : "RegAsm.exe" or process.name : "RegSvcs.exe") and
33-
event.type == "start"]
34-
[network where (process.name : "regsvr32.exe" or process.name : "regsvr64.exe" or
35-
process.name : "RegAsm.exe" or process.name : "RegSvcs.exe") and
36-
not cidrmatch(destination.ip, "10.0.0.0/8", "169.254.169.254", "172.16.0.0/12", "192.168.0.0/16")]
31+
[process where event.type == "start" and
32+
process.name : ("regsvr32.exe", "RegAsm.exe", "RegSvcs.exe") and
33+
not (
34+
user.id == "S-1-5-18" and
35+
(process.parent.name : "msiexec.exe" or process.parent.executable : ("C:\\Program Files (x86)\\*.exe", "C:\\Program Files\\*.exe"))
36+
)
37+
]
38+
[network where process.name : ("regsvr32.exe", "RegAsm.exe", "RegSvcs.exe") and
39+
not cidrmatch(destination.ip, "10.0.0.0/8", "169.254.169.254", "172.16.0.0/12", "192.168.0.0/16") and network.protocol != "dns"]
3740
'''
3841

3942

@@ -61,4 +64,3 @@ reference = "https://attack.mitre.org/techniques/T1218/010/"
6164
id = "TA0005"
6265
name = "Defense Evasion"
6366
reference = "https://attack.mitre.org/tactics/TA0005/"
64-

0 commit comments

Comments
 (0)