6bdfddac8e
* Expand timestamp_override tests * removed timestamp_override from eql sequence rules * add config entry for eql rules with beats index and t_o * add timestamp_override to missing fields
61 lines
2.1 KiB
TOML
61 lines
2.1 KiB
TOML
[metadata]
|
|
creation_date = "2020/12/04"
|
|
maturity = "production"
|
|
updated_date = "2022/03/31"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = "Identifies attempts to enumerate hosts in a network using the built-in Windows net.exe tool."
|
|
from = "now-9m"
|
|
index = ["logs-endpoint.events.*", "winlogbeat-*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Windows Network Enumeration"
|
|
note = """## Config
|
|
|
|
If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define `event.ingested` and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate `event.ingested` to @timestamp for this rule to work.
|
|
"""
|
|
risk_score = 47
|
|
rule_id = "7b8bfc26-81d2-435e-965c-d722ee397ef1"
|
|
severity = "medium"
|
|
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Discovery"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
process where event.type in ("start", "process_started") and
|
|
((process.name : "net.exe" or process.pe.original_file_name == "net.exe") or
|
|
((process.name : "net1.exe" or process.pe.original_file_name == "net1.exe") and
|
|
not process.parent.name : "net.exe")) and
|
|
(process.args : "view" or (process.args : "time" and process.args : "\\\\*"))
|
|
|
|
|
|
/* expand when ancestry is available
|
|
and not descendant of [process where event.type == ("start", "process_started") and process.name : "cmd.exe" and
|
|
((process.parent.name : "userinit.exe") or
|
|
(process.parent.name : "gpscript.exe") or
|
|
(process.parent.name : "explorer.exe" and
|
|
process.args : "C:\\*\\Start Menu\\Programs\\Startup\\*.bat*"))]
|
|
*/
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1018"
|
|
name = "Remote System Discovery"
|
|
reference = "https://attack.mitre.org/techniques/T1018/"
|
|
|
|
[[rule.threat.technique]]
|
|
id = "T1135"
|
|
name = "Network Share Discovery"
|
|
reference = "https://attack.mitre.org/techniques/T1135/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0007"
|
|
name = "Discovery"
|
|
reference = "https://attack.mitre.org/tactics/TA0007/"
|
|
|