Detection rules › Elastic

CVE-2023-0386 Exploitation Attempt

Source
github.com/elastic/protections-artifacts

Detects an attempt to exploit the CVE-2023-0386 local privilege escalation vulnerability.

MITRE ATT&CK coverage

TacticTechniques
Privilege Escalation

Rule body

[rule]
description = "Detects an attempt to exploit the CVE-2023-0386 local privilege escalation vulnerability."
id = "22145fc0-dc4c-4187-8397-4d20162fc391"
license = "Elastic License v2"
name = "CVE-2023-0386 Exploitation Attempt"
os_list = ["linux"]
reference = [
    "https://securityonline.info/poc-exploit-released-for-linux-kernel-privilege-escalation-cve-2023-0386-bug/",
    "https://github.com/xkaneiki/CVE-2023-0386",
]
version = "1.0.12"

query = '''
process where event.type == "start" and event.action == "exec" and 
    process.name : "fusermount*" and 
    process.args : "-o" and 
    process.args : "rw,nosuid,nodev" and 
    process.args : "./*" and 
    process.parent.name : "fuse"
'''

min_endpoint_version = "7.15.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[actions]]
action = "kill_process"
field = "process.parent.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1068"
name = "Exploitation for Privilege Escalation"
reference = "https://attack.mitre.org/techniques/T1068/"


[threat.tactic]
id = "TA0004"
name = "Privilege Escalation"
reference = "https://attack.mitre.org/tactics/TA0004/"

[internal]
min_endpoint_version = "7.15.0"

Stages and Predicates

Stage 1: process

process where event.type == "start" and event.action == "exec" and 
    process.name : "fusermount*" and 
    process.args : "-o" and 
    process.args : "rw,nosuid,nodev" and 
    process.args : "./*" and 
    process.parent.name : "fuse"

Indicators

These rows show field, operator, and value matches.