Aller au contenu

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.

MalwareRegphantomSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compile avec YARA-X
Auteur
Pezier Pierre-Henri (Nextron Systems)
Date
2026-03-19
Modifiée
2026-05-15
Score / Qualité
80 / 85

Ce que détecte cette règle

Detects RegPhantom, a kernel-mode rootkit that allow attacker to inject arbitrary code from unprivileged user-mode into kernel-mode and execute it.

Famille de malware associée : Regphantom.

Cibles : PE Windows.

Elle définit 4 motifs (2 texte, 2 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

mal-kernel-regphantom-mar26.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_Kernel_Regphantom_Mar26 : FILE
{
	meta:
		description = "Detects RegPhantom, a kernel-mode rootkit that allow attacker to inject arbitrary code from unprivileged user-mode into kernel-mode and execute it."
		author = "Pezier Pierre-Henri (Nextron Systems)"
		id = "aa8963b5-3053-52a4-a84f-2fc02d03275e"
		date = "2026-03-19"
		modified = "2026-05-15"
		reference = "Internal Research"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_kernel_regphantom_mar26.yar#L1-L31"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "006e08f1b8cad821f7849c282dc11d317e76ce66a5bcd84053dd5e7752e0606f"
		logic_hash = "53dead8b4cd4f0139249940fbf2767a5411aef73e1919279ef66243fe009bb27"
		score = 80
		quality = 85
		tags = "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
}

Chaînes (4 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"CmRegisterCallback"fullword
$s2texte"PsSetCreateThreadNotifyRoutine"fullword
$o1hex{ // xor decrypt 48 8b 09 // mov rcx, [rcx] 0f b6 14 08 // movzx edx, byte ptr [rax+rcx] 4c 31 c2 // xor …
$o2hex{ // Command selector c6 01 01 // mov byte ptr [rcx], 1 48 83 38 77 // cmp qword ptr [rax], 77h 0f 94 c0 // …

Condition

uint16( 0 ) == 0x5a4d and all of them

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de la règle doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Hashes d’échantillons

Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).

  • 006e08f1b8cad821f7849c282dc11d317e76ce66a5bcd84053dd5e7752e0606f

Licence et attribution

Auteur : Pezier Pierre-Henri (Nextron Systems)

Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence : Detection Rule License 1.1 (licence du dépôt)

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: aa8963b5-3053-52a4-a84f-2fc02d03275e

Tags:FILE