EXPL_HKTL_LNX_DirtyFragShellcode_May26
Description
Detects a shellcode observed in dirtyfrag, a local privilege escalation exploit for Linux.
Query · yara
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