Files
roadwy-DefenderYara/HackTool/MacOS/SuspCodeExecution/HackTool_MacOS_SuspCodeExecution_PB.yar
2025-04-26 22:42:45 +08:00

15 lines
1.4 KiB
Plaintext

rule HackTool_MacOS_SuspCodeExecution_PB{
meta:
description = "HackTool:MacOS/SuspCodeExecution.PB,SIGNATURE_TYPE_CMDHSTR_EXT,0a 00 0a 00 05 00 00 "
strings :
$a_00_0 = {5f 00 62 00 73 00 20 00 3e 00 2f 00 64 00 65 00 76 00 2f 00 6e 00 75 00 6c 00 6c 00 20 00 3b 00 20 00 74 00 6f 00 75 00 63 00 68 00 20 00 2d 00 74 00 20 00 } //10 _bs >/dev/null ; touch -t
$a_00_1 = {5f 00 62 00 73 00 20 00 3e 00 2f 00 64 00 65 00 76 00 2f 00 6e 00 75 00 6c 00 6c 00 20 00 3b 00 20 00 74 00 6f 00 75 00 63 00 68 00 20 00 2d 00 61 00 74 00 20 00 } //10 _bs >/dev/null ; touch -at
$a_00_2 = {5f 00 62 00 73 00 20 00 3e 00 2f 00 64 00 65 00 76 00 2f 00 6e 00 75 00 6c 00 6c 00 20 00 3b 00 20 00 74 00 6f 00 75 00 63 00 68 00 20 00 2d 00 6d 00 74 00 20 00 } //10 _bs >/dev/null ; touch -mt
$a_00_3 = {5f 00 62 00 73 00 20 00 3e 00 2f 00 64 00 65 00 76 00 2f 00 6e 00 75 00 6c 00 6c 00 20 00 3b 00 20 00 74 00 6f 00 75 00 63 00 68 00 20 00 2d 00 61 00 20 00 2f 00 74 00 6d 00 70 00 2f 00 73 00 62 00 5f 00 } //10 _bs >/dev/null ; touch -a /tmp/sb_
$a_00_4 = {5f 00 62 00 73 00 20 00 3e 00 2f 00 64 00 65 00 76 00 2f 00 6e 00 75 00 6c 00 6c 00 20 00 3b 00 20 00 74 00 6f 00 75 00 63 00 68 00 20 00 2d 00 6d 00 20 00 2f 00 74 00 6d 00 70 00 2f 00 73 00 62 00 5f 00 } //10 _bs >/dev/null ; touch -m /tmp/sb_
condition:
((#a_00_0 & 1)*10+(#a_00_1 & 1)*10+(#a_00_2 & 1)*10+(#a_00_3 & 1)*10+(#a_00_4 & 1)*10) >=10
}