Process Creation via Secondary Logon
Description
Identifies process creation with alternate credentials. Adversaries may create a new process with a different token to escalate privileges and bypass access controls.
Query · eql
sequence with maxspan=1m
[any where event.category == "authentication" and event.action == "log_on" and
process.Ext.session_info.logon_type in ("Interactive", "NewCredentials", "NetworkCleartext") and
user.effective.id like ("S-1-5-21*", "S-1-12-*") and user.id like ("S-1-5-21*", "S-1-12-*") and
process.executable != null and not process.executable : "?:\\Windows\\System32\\svchost.exe" and
cidrmatch(source.ip, "127.0.0.0/8", "::1")] by process.entity_id
[process where event.action == "start" and
process.Ext.session_info.logon_type in ("Interactive", "NewCredentials", "NetworkCleartext") and
process.parent.thread.Ext.call_stack_summary like "ntdll.dll|*|seclogon.dll|rpcrt4.dll|*" and
not (process.code_signature.trusted == true and
process.code_signature.subject_name in ("ZOHO Corporation Private Limited", "Bomgar Corporation", "ISL Online Ltd.",
"Google LLC", "SCHNEIDER ELECTRIC USA, INC.", "N-ABLE TECHNOLOGIES LTD")) and
not process.executable :
("C:\\Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\*\\msedgewebview2.exe",
"C:\\Program Files (x86)\\Varian\\OCS\\15.6\\VMS.Varis.Vishnu.exe") and
not (process.name == "rundll32.exe" and
process.args : ("C:\\WINDOWS\\System32\\SHELL32.dll,RunAsNewUser_RunDLL",
"C:\\Program Files\\Adobe\\Acrobat DC\\Acrobat\\ANCUtility.dll,removeAppxInUserContext"))
] by process.parent.entity_id