[Rule Tuning] Update network.direction (#1547)

* Update network.direction

* bump updated_date
This commit is contained in:
Jonhnathan
2021-10-13 21:46:36 -03:00
committed by GitHub
parent c6ddb44445
commit cc241c0b5e
16 changed files with 32 additions and 32 deletions
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/29"
maturity = "production"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -23,7 +23,7 @@ type = "eql"
query = '''
sequence by host.id, process.entity_id
[network where process.name : ("wscript.exe", "cscript.exe") and network.protocol != "dns" and
network.direction == "outgoing" and network.type == "ipv4" and destination.ip != "127.0.0.1"
network.direction : ("outgoing", "egress") and network.type == "ipv4" and destination.ip != "127.0.0.1"
]
[file where event.type == "creation" and file.extension : ("exe", "dll")]
'''
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/02"
maturity = "production"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -27,7 +27,7 @@ timestamp_override = "event.ingested"
type = "eql"
query = '''
network where event.type == "start" and network.direction == "outgoing" and
network where event.type == "start" and network.direction : ("outgoing", "egress") and
destination.port == 88 and source.port >= 49152 and
process.executable != "C:\\Windows\\System32\\lsass.exe" and destination.address !="127.0.0.1" and destination.address !="::1" and
/* insert False Positives here */
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/09/02"
maturity = "production"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -25,7 +25,7 @@ query = '''
sequence by process.entity_id
[process where event.type in ("start", "process_started") and process.name : "installutil.exe"]
[network where process.name : "installutil.exe" and network.direction == "outgoing"]
[network where process.name : "installutil.exe" and network.direction : ("outgoing", "egress")]
'''
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/08/24"
maturity = "production"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -31,7 +31,7 @@ query = '''
sequence by host.id, process.entity_id with maxspan = 5s
[process where event.type:"start" and process.name : ("wermgr.exe", "WerFault.exe") and process.args_count == 1]
[network where process.name : ("wermgr.exe", "WerFault.exe") and network.protocol != "dns" and
network.direction == "outgoing" and destination.ip !="::1" and destination.ip !="127.0.0.1"
network.direction : ("outgoing", "egress") and destination.ip !="::1" and destination.ip !="127.0.0.1"
]
'''
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/09/02"
maturity = "development"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -25,7 +25,7 @@ query = '''
sequence by process.entity_id
[process where event.type in ("start", "process_started") and process.name : "msxsl.exe"]
[network where process.name : "msxsl.exe" and network.direction == "outgoing"]
[network where process.name : "msxsl.exe" and network.direction : ("outgoing", "egress")]
'''
+2 -2
View File
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/03"
maturity = "production"
updated_date = "2021/09/23"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -28,7 +28,7 @@ sequence with maxspan=1m
process.name : "mshta.exe" and process.args : "-Embedding"
] by host.id, process.entity_id
[network where event.type == "start" and process.name : "mshta.exe" and
network.direction == "incoming" and network.transport == "tcp" and
network.direction : ("incoming", "ingress") and network.transport == "tcp" and
source.port > 49151 and destination.port > 49151 and not source.address in ("127.0.0.1", "::1")
] by host.id, process.entity_id
'''
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/06"
maturity = "production"
updated_date = "2021/09/23"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -26,7 +26,7 @@ query = '''
sequence by host.id with maxspan=1m
[network where event.type == "start" and process.name : "mmc.exe" and
source.port >= 49152 and destination.port >= 49152 and source.address not in ("127.0.0.1", "::1") and
network.direction == "incoming" and network.transport == "tcp"
network.direction : ("incoming", "ingress") and network.transport == "tcp"
] by process.entity_id
[process where event.type in ("start", "process_started") and process.parent.name : "mmc.exe"
] by process.parent.entity_id
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/06"
maturity = "production"
updated_date = "2021/09/23"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -25,7 +25,7 @@ type = "eql"
query = '''
sequence by host.id with maxspan=5s
[network where event.type == "start" and process.name : "explorer.exe" and
network.direction == "incoming" and network.transport == "tcp" and
network.direction : ("incoming", "ingress") and network.transport == "tcp" and
source.port > 49151 and destination.port > 49151 and not source.address in ("127.0.0.1", "::1")
] by process.entity_id
[process where event.type in ("start", "process_started") and
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/10"
maturity = "production"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -23,7 +23,7 @@ type = "eql"
query = '''
sequence by host.id with maxspan=30s
[network where event.type == "start" and process.pid == 4 and destination.port == 445 and
network.direction == "incoming" and network.transport == "tcp" and
network.direction : ("incoming", "ingress") and network.transport == "tcp" and
source.address != "127.0.0.1" and source.address != "::1"
] by process.entity_id
/* add more executable extensions here if they are not noisy in your environment */
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/24"
maturity = "production"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -28,7 +28,7 @@ type = "eql"
query = '''
sequence by host.id with maxspan=30s
[network where process.pid == 4 and network.direction == "incoming" and
[network where process.pid == 4 and network.direction : ("incoming", "ingress") and
destination.port in (5985, 5986) and network.protocol == "http" and not source.address in ("::1", "127.0.0.1")
]
[process where event.type == "start" and process.parent.name : "winrshost.exe" and not process.name : "conhost.exe"]
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/15"
maturity = "production"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -25,7 +25,7 @@ sequence by host.id with maxspan = 2s
/* Accepted Incoming RPC connection by Winmgmt service */
[network where process.name : "svchost.exe" and network.direction == "incoming" and
[network where process.name : "svchost.exe" and network.direction : ("incoming", "ingress") and
source.address != "127.0.0.1" and source.address != "::1" and
source.port >= 49152 and destination.port >= 49152
]
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/24"
maturity = "production"
updated_date = "2021/03/03"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -31,7 +31,7 @@ type = "eql"
query = '''
sequence by host.id with maxspan = 30s
[network where network.direction == "incoming" and destination.port in (5985, 5986) and
[network where network.direction : ("incoming", "ingress") and destination.port in (5985, 5986) and
network.protocol == "http" and source.address != "127.0.0.1" and source.address != "::1"
]
[process where event.type == "start" and process.parent.name : "wsmprovhost.exe" and not process.name : "conhost.exe"]
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/11"
maturity = "production"
updated_date = "2021/09/23"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -29,7 +29,7 @@ query = '''
sequence by host.id with maxspan=1m
[network where event.type == "start" and process.name : "svchost.exe" and destination.port == 3389 and
network.direction == "incoming" and network.transport == "tcp" and
network.direction : ("incoming", "ingress") and network.transport == "tcp" and
source.address != "127.0.0.1" and source.address != "::1"
]
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/16"
maturity = "production"
updated_date = "2021/03/08"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -23,7 +23,7 @@ type = "eql"
query = '''
sequence with maxspan=1s
[network where process.name : "services.exe" and
network.direction == "incoming" and network.transport == "tcp" and
network.direction : ("incoming", "ingress") and network.transport == "tcp" and
source.port >= 49152 and destination.port >= 49152 and source.address not in ("127.0.0.1", "::1")
] by host.id, process.entity_id
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/11/20"
maturity = "production"
updated_date = "2021/09/23"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -57,7 +57,7 @@ query = '''
sequence by host.id, process.entity_id with maxspan = 1m
[network where process.name : "svchost.exe" and
network.direction == "incoming" and source.port >= 49152 and destination.port >= 49152 and
network.direction : ("incoming", "ingress") and source.port >= 49152 and destination.port >= 49152 and
source.address != "127.0.0.1" and source.address != "::1"
]
[registry where registry.path : "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\TaskCache\\Tasks\\*\\Actions"]
@@ -1,7 +1,7 @@
[metadata]
creation_date = "2020/09/02"
maturity = "development"
updated_date = "2021/03/08"
updated_date = "2021/10/13"
[rule]
author = ["Elastic"]
@@ -31,7 +31,7 @@ sequence with maxspan=5s
[network where network.protocol : "dns" and process.name : "svchost.exe" and
dns.question.name : "wpad" and process.name : "svchost.exe"] by process.entity_id
[network where process.name : "svchost.exe"
and network.direction : "outgoing" and destination.port == 80] by process.entity_id
and network.direction : ("outgoing", "egress") and destination.port == 80] by process.entity_id
[library where event.type : "start" and process.name : "svchost.exe" and
dll.name : "jscript.dll" and process.name : "svchost.exe"] by process.entity_id
[process where event.type in ("start", "process_started") and