Files
roadwy-DefenderYara/Exploit/Linux/Local/Exploit_Linux_Local_gen_D.yar
2025-04-26 22:42:45 +08:00

13 lines
489 B
Plaintext

rule Exploit_Linux_Local_gen_D{
meta:
description = "Exploit:Linux/Local.gen!D,SIGNATURE_TYPE_ELFHSTR_EXT,06 00 06 00 03 00 00 "
strings :
$a_01_0 = {65 78 65 63 20 2e 2f 69 6e 73 65 72 74 5f 73 68 65 6c 6c 63 6f 64 65 20 25 69 } //4 exec ./insert_shellcode %i
$a_01_1 = {4c 44 5f 44 45 42 55 47 } //1 LD_DEBUG
$a_01_2 = {2f 75 73 72 2f 62 69 6e 2f 6e 65 77 67 72 70 } //1 /usr/bin/newgrp
condition:
((#a_01_0 & 1)*4+(#a_01_1 & 1)*1+(#a_01_2 & 1)*1) >=6
}