Windows_Trojan_CobaltStrike_417239b5
Description
Identifies UAC token module from Cobalt Strike
Query · yara
strings:
$a1 = "Z:\\devcenter\\aggressor\\external\\pxlib\\bin\\uactoken.x64.o" ascii fullword
$a2 = "Z:\\devcenter\\aggressor\\external\\pxlib\\bin\\uactoken.x86.o" ascii fullword
$a3 = "Z:\\devcenter\\aggressor\\external\\pxlib\\bin\\uactoken2.x64.o" ascii fullword
$a4 = "Z:\\devcenter\\aggressor\\external\\pxlib\\bin\\uactoken2.x86.o" ascii fullword
$b1 = "$pdata$is_admin_already" ascii fullword
$b2 = "$unwind$is_admin" ascii fullword
$b3 = "$pdata$is_admin" ascii fullword
$b4 = "$unwind$is_admin_already" ascii fullword
$b5 = "$pdata$RunAsAdmin" ascii fullword
$b6 = "$unwind$RunAsAdmin" ascii fullword
$b7 = "is_admin_already" ascii fullword
$b8 = "is_admin" ascii fullword
$b9 = "process_walk" ascii fullword
$b10 = "get_current_sess" ascii fullword
$b11 = "elevate_try" ascii fullword
$b12 = "RunAsAdmin" ascii fullword
$b13 = "is_ctfmon" ascii fullword
$c1 = "_is_admin_already" ascii fullword
$c2 = "_is_admin" ascii fullword
$c3 = "_process_walk" ascii fullword
$c4 = "_get_current_sess" ascii fullword
$c5 = "_elevate_try" ascii fullword
$c6 = "_RunAsAdmin" ascii fullword
$c7 = "_is_ctfmon" ascii fullword
$c8 = "_reg_query_dword" ascii fullword
$c9 = ".drectve" ascii fullword
$c10 = "_is_candidate" ascii fullword
$c11 = "_SpawnAsAdmin" ascii fullword
$c12 = "_SpawnAsAdminX64" ascii fullword
condition:
1 of ($a*) or 9 of ($b*) or 7 of ($c*)