63 lines
2.2 KiB
TOML
63 lines
2.2 KiB
TOML
[metadata]
|
|
creation_date = "2021/10/13"
|
|
integration = ["windows"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2023/10/23"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies a privilege escalation attempt via rogue named pipe impersonation. An adversary may abuse this technique by
|
|
masquerading as a known named pipe and manipulating a privileged process to connect to it.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["winlogbeat-*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Privilege Escalation via Rogue Named Pipe Impersonation"
|
|
references = [
|
|
"https://itm4n.github.io/printspoofer-abusing-impersonate-privileges/",
|
|
"https://github.com/zcgonvh/EfsPotato",
|
|
"https://twitter.com/SBousseaden/status/1429530155291193354",
|
|
]
|
|
risk_score = 73
|
|
rule_id = "76ddb638-abf7-42d5-be22-4a70b0bf7241"
|
|
setup = """
|
|
|
|
Named Pipe Creation Events need to be enabled within the Sysmon configuration by including the following settings:
|
|
`condition equal "contains" and keyword equal "pipe"`
|
|
|
|
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 version 8.2.
|
|
Hence for this rule to work effectively, users will need to add a custom ingest pipeline to populate
|
|
`event.ingested` to @timestamp.
|
|
For more details on adding a custom ingest pipeline refer - https://www.elastic.co/guide/en/fleet/current/data-streams-pipeline-tutorial.html
|
|
"""
|
|
severity = "high"
|
|
tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Privilege Escalation", "Data Source: Sysmon Only"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
file where host.os.type == "windows" and event.action : "Pipe Created*" and
|
|
/* normal sysmon named pipe creation events truncate the pipe keyword */
|
|
file.name : "\\*\\Pipe\\*"
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1134"
|
|
name = "Access Token Manipulation"
|
|
reference = "https://attack.mitre.org/techniques/T1134/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0004"
|
|
name = "Privilege Escalation"
|
|
reference = "https://attack.mitre.org/tactics/TA0004/"
|
|
|