Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_EXPL_HKTL_LNX_Dirtyfragshellcode_May26

Detects a shellcode observed in dirtyfrag, a local privilege escalation exploit for Linux.

ExploitSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
Pezier Pierre-Henri (Nextron Systems)
Fecha
2026-05-07
Modificada
2026-05-15
Puntuación / Calidad
80 / 85

Qué detecta esta regla

Detects a shellcode observed in dirtyfrag, a local privilege escalation exploit for Linux.

Define 1 patrones (0 de texto, 1 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

expl-hktl-lnx-dirtyfragshellcode-may26.yarDetection Rule License 1.1
rule SIGNATURE_BASE_EXPL_HKTL_LNX_Dirtyfragshellcode_May26
{
	meta:
		description = "Detects a shellcode observed in dirtyfrag, a local privilege escalation exploit for Linux."
		author = "Pezier Pierre-Henri (Nextron Systems)"
		id = "c156da87-c029-5084-9cd3-a233fefdaf25"
		date = "2026-05-07"
		modified = "2026-05-15"
		reference = "https://github.com/V4bel/dirtyfrag/tree/master"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_lnx_dirtyfrag.yar#L28-L60"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "a02ea2ba8108a9b7a997faa8808cfc55bb69af54e69178fa5aa1785681cf0ced"
		logic_hash = "af23343955d917f302bbba3faf48d4a57ab3b37f77ec7556e17c3e9bac6cdc5f"
		score = 80
		quality = 85
		tags = ""

	strings:
		$op1 = {
         31 ff     // xor     edi, edi
         31 f6     // xor     esi, esi
         31 c0     // xor     eax, eax
         b0 6a     // mov     al, 6Ah ; 'j'
         0f 05     // syscall; LINUX - sys_setgid
         b0 69     // mov     al, 69h ; 'i'
         0f 05     // syscall; LINUX - sys_setuid
         b0 74     // mov     al, 74h ; 't'
         0f 05     // syscall; LINUX - sys_setgroups
         6a 00     // push    0
         48 [6]    // lea     rax, aTermXterm; "TERM=xterm"
         50        // push    rax
         48 89 e2  // mov     rdx, rsp
         48 [6]    // lea     rdi, aBinSh; "/bin/sh"
         31 f6     // xor     esi, esi
         6a 3b     // push    3Bh ; ';'
         58        // pop     rax
         0f 05     // syscall; LINUX - sys_execve
      }

	condition:
		$op1
}

Cadenas (1 patrones)

IdentificadorTipoValorModificadores
$op1hex{ 31 ff // xor edi, edi 31 f6 // xor esi, esi 31 c0 // xor eax, eax b0 6a // mov al, 6Ah ; ' …

Condición

$op1

En palabras sencillas (Heurística)

  • El patrón $op1 debe estar presente.

Prueba esta regla en tu navegador

Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

Referencias

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).

  • a02ea2ba8108a9b7a997faa8808cfc55bb69af54e69178fa5aa1785681cf0ced

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)

Regla original

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: c156da87-c029-5084-9cd3-a233fefdaf25