MAL_Kernel_RegPhantom_Mar26
Description
Detects RegPhantom, a kernel-mode rootkit that allow attacker to inject arbitrary code from unprivileged user-mode into kernel-mode and execute it.
Query · yara
strings:
$s1 = "CmRegisterCallback" fullword
$s2 = "PsSetCreateThreadNotifyRoutine" fullword
$o1 = {
// xor decrypt
48 8b 09 // mov rcx, [rcx]
0f b6 14 08 // movzx edx, byte ptr [rax+rcx]
4c 31 c2 // xor rdx, r8
88 14 08 // mov [rax+rcx], dl
}
$o2 = {
// Command selector
c6 01 01 // mov byte ptr [rcx], 1
48 83 38 77 // cmp qword ptr [rax], 77h
0f 94 c0 // setz al
24 01 // and al, 1
}
condition:
uint16(0) == 0x5a4d
and all of them