YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_Kernel_Regphantom_Mar26
Detects RegPhantom, a kernel-mode rootkit that allow attacker to inject arbitrary code from unprivileged user-mode into kernel-mode and execute it.
- Autor
- Pezier Pierre-Henri (Nextron Systems)
- Fecha
- 2026-03-19
- Modificada
- 2026-05-15
- Puntuación / Calidad
- 80 / 85
Qué detecta esta regla
Detects RegPhantom, a kernel-mode rootkit that allow attacker to inject arbitrary code from unprivileged user-mode into kernel-mode and execute it.
Familia de malware asociada: Regphantom.
Objetivos: PE de Windows.
Define 4 patrones (2 de texto, 2 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule SIGNATURE_BASE_MAL_Kernel_Regphantom_Mar26 : FILE
{
meta:
= "Detects RegPhantom, a kernel-mode rootkit that allow attacker to inject arbitrary code from unprivileged user-mode into kernel-mode and execute it."
= "Pezier Pierre-Henri (Nextron Systems)"
= "aa8963b5-3053-52a4-a84f-2fc02d03275e"
= "2026-03-19"
= "2026-05-15"
= "Internal Research"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_kernel_regphantom_mar26.yar#L1-L31"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "006e08f1b8cad821f7849c282dc11d317e76ce66a5bcd84053dd5e7752e0606f"
= "53dead8b4cd4f0139249940fbf2767a5411aef73e1919279ef66243fe009bb27"
= 80
= 85
= "FILE"
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
}
Cadenas (4 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "CmRegisterCallback" | fullword |
| $s2 | texto | "PsSetCreateThreadNotifyRoutine" | fullword |
| $o1 | hex | { // xor decrypt 48 8b 09 // mov rcx, [rcx] 0f b6 14 08 // movzx edx, byte ptr [rax+rcx] 4c 31 c2 // xor … | |
| $o2 | hex | { // Command selector c6 01 01 // mov byte ptr [rcx], 1 48 83 38 77 // cmp qword ptr [rax], 77h 0f 94 c0 // … |
Condición
uint16( 0 ) == 0x5a4d and all of themEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Hashes de muestras
Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).
- 006e08f1b8cad821f7849c282dc11d317e76ce66a5bcd84053dd5e7752e0606f
Licencia y atribución
Autor: Pezier Pierre-Henri (Nextron Systems)
Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: aa8963b5-3053-52a4-a84f-2fc02d03275e
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ExploitSignature Base (Florian Roth / Nextron)· Pezier Pierre-Henri (Nextron Systems)· 2026-05-07
- ExploitSignature Base (Florian Roth / Nextron)· Pezier Pierre-Henri (Nextron Systems)· 2026-05-07