mirror of
https://github.com/roadwy/DefenderYara
synced 2026-06-21 14:08:27 +00:00
13 lines
461 B
Plaintext
13 lines
461 B
Plaintext
|
|
rule Exploit_Linux_Local_gen_A{
|
|
meta:
|
|
description = "Exploit:Linux/Local.gen!A,SIGNATURE_TYPE_ELFHSTR_EXT,08 00 08 00 03 00 00 "
|
|
|
|
strings :
|
|
$a_01_0 = {5b 2d 5d 20 63 68 65 63 6b 20 75 72 20 75 69 64 } //4 [-] check ur uid
|
|
$a_01_1 = {5b 2d 5d 20 6d 70 72 6f 74 65 63 74 28 29 } //2 [-] mprotect()
|
|
$a_01_2 = {5b 2d 5d 20 73 6f 63 6b 65 74 28 29 } //2 [-] socket()
|
|
condition:
|
|
((#a_01_0 & 1)*4+(#a_01_1 & 1)*2+(#a_01_2 & 1)*2) >=8
|
|
|
|
} |