Detection rules › Elastic
NetworkCleartext Logon by a Suspicious Process
Identifies NetworkCleartext logon attempt by an unusual process. Adversaries may leverage compromised credentials to bypass access controls.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Privilege Escalation |
Rule body
[rule]
description = """
Identifies NetworkCleartext logon attempt by an unusual process. Adversaries may leverage compromised credentials to
bypass access controls.
"""
id = "07ca9f3f-50b9-4b2f-ae18-e500d21fe73d"
license = "Elastic License v2"
name = "NetworkCleartext Logon by a Suspicious Process"
os_list = ["windows"]
reference = ["https://attack.mitre.org/techniques/T1134/002/"]
version = "1.0.11"
query = '''
authentication where event.action == "log_on" and
process.Ext.session_info.logon_type == "NetworkCleartext" and process.executable : "C:\\*" and
user.id like ("S-1-5-21*", "S-1-12-*") and (user.effective.id != null and user.effective.id like ("S-1-5-21*", "S-1-12-*")) and
not (process.code_signature.trusted == true and
process.code_signature.subject_name in ("Varonis Systems, Inc.", "Remote Access World SAS", "TSplus SAS", "Solarwinds Worldwide, LLC", "Siemens AG")) and
not process.executable :
("?:\\Windows\\System32\\inetsrv\\w3wp.exe",
"?:\\Windows\\SysWOW64\\inetsrv\\w3wp.exe",
"?:\\Windows\\System32\\inetsrv\\appcmd.exe",
"?:\\Windows\\System32\\mmc.exe",
"?:\\Windows\\System32\\wsmprovhost.exe",
"?:\\Program Files\\*.exe",
"?:\\Program Files (x86)\\*.exe",
"?:\\Windows\\System32\\inetsrv\\InetMgr.exe",
"?:\\Windows\\System32\\inetsrv\\WMSvc.exe",
"?:\\Windows\\System32\\wbem\\WmiPrvSE.exe",
"?:\\Windows\\System32\\CPrepSrv.exe",
"?:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe")
'''
min_endpoint_version = "8.15.1"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0
[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1134"
name = "Access Token Manipulation"
reference = "https://attack.mitre.org/techniques/T1134/"
[[threat.technique.subtechnique]]
id = "T1134.001"
name = "Token Impersonation/Theft"
reference = "https://attack.mitre.org/techniques/T1134/001/"
[[threat.technique.subtechnique]]
id = "T1134.002"
name = "Create Process with Token"
reference = "https://attack.mitre.org/techniques/T1134/002/"
[threat.tactic]
id = "TA0004"
name = "Privilege Escalation"
reference = "https://attack.mitre.org/tactics/TA0004/"
[internal]
min_endpoint_version = "8.15.1"
Stages and Predicates
Stage 1: authentication
authentication where event.action == "log_on" and
process.Ext.session_info.logon_type == "NetworkCleartext" and process.executable : "C:\\*" and
user.id like ("S-1-5-21*", "S-1-12-*") and (user.effective.id != null and user.effective.id like ("S-1-5-21*", "S-1-12-*")) and
not (process.code_signature.trusted == true and
process.code_signature.subject_name in ("Varonis Systems, Inc.", "Remote Access World SAS", "TSplus SAS", "Solarwinds Worldwide, LLC", "Siemens AG")) and
not process.executable :
("?:\\Windows\\System32\\inetsrv\\w3wp.exe",
"?:\\Windows\\SysWOW64\\inetsrv\\w3wp.exe",
"?:\\Windows\\System32\\inetsrv\\appcmd.exe",
"?:\\Windows\\System32\\mmc.exe",
"?:\\Windows\\System32\\wsmprovhost.exe",
"?:\\Program Files\\*.exe",
"?:\\Program Files (x86)\\*.exe",
"?:\\Windows\\System32\\inetsrv\\InetMgr.exe",
"?:\\Windows\\System32\\inetsrv\\WMSvc.exe",
"?:\\Windows\\System32\\wbem\\WmiPrvSE.exe",
"?:\\Windows\\System32\\CPrepSrv.exe",
"?:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe")
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
process.code_signature.subject_name | in | Remote Access World SAS, Siemens AG, Solarwinds Worldwide, LLC, TSplus SAS, Varonis Systems, Inc. | excludes:process.code_signature.subject_name |
process.code_signature.trusted | eq | true | excludes:process.code_signature.trusted field:"process.code_signature.trusted" value:"true" |
process.executable | wildcard | ?:\Windows\System32\inetsrv\w3wp.exe, ?:\Windows\SysWOW64\inetsrv\w3wp.exe, ?:\Windows\System32\inetsrv\appcmd.exe, ?:\Windows\System32\mmc.exe, ?:\Windows\System32\wsmprovhost.exe, ?:\Program Files\*.exe, ?:\Program Files (x86)\*.exe, ?:\Windows\System32\inetsrv\InetMgr.exe, ?:\Windows\System32\inetsrv\WMSvc.exe, ?:\Windows\System32\wbem\WmiPrvSE.exe, ?:\Windows\System32\CPrepSrv.exe, ?:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe | excludes:process.executable |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
event.action | eq |
| field:"EventType" kind:eq value:"log_on" |
process.Ext.session_info.logon_type | eq |
| field:"process.Ext.session_info.logon_type" kind:eq value:"NetworkCleartext" |
process.executable | wildcard |
| field:"Image" kind:wildcard value:"C:\*" |
user.effective.id | is_not_null | field:"user.effective.id" kind:is_not_null | |
user.effective.id | wildcard |
| field:"user.effective.id" kind:wildcard |
user.id | wildcard |
| field:"user.id" kind:wildcard |