Files
roadwy-DefenderYara/HackTool/Linux/ShellAgent/HackTool_Linux_ShellAgent_DK8.yar
2025-04-26 22:42:45 +08:00

18 lines
1.2 KiB
Plaintext

rule HackTool_Linux_ShellAgent_DK8{
meta:
description = "HackTool:Linux/ShellAgent.DK8,SIGNATURE_TYPE_CMDHSTR_EXT,1e 00 1e 00 08 00 00 "
strings :
$a_02_0 = {68 00 70 00 69 00 6e 00 67 00 33 00 20 00 [0-ff] 20 00 2d 00 2d 00 66 00 69 00 6c 00 65 00 20 00 2f 00 } //10
$a_02_1 = {6e 00 70 00 69 00 6e 00 67 00 20 00 [0-30] 20 00 2d 00 2d 00 64 00 61 00 74 00 61 00 2d 00 73 00 74 00 72 00 69 00 6e 00 67 00 20 00 2f 00 } //10
$a_00_2 = {65 00 78 00 66 00 69 00 6c 00 74 00 72 00 61 00 74 00 65 00 } //10 exfiltrate
$a_00_3 = {73 00 79 00 73 00 74 00 65 00 6d 00 63 00 74 00 6c 00 20 00 73 00 74 00 6f 00 70 00 20 00 6d 00 64 00 61 00 74 00 70 00 } //10 systemctl stop mdatp
$a_00_4 = {6e 00 63 00 20 00 2d 00 75 00 } //10 nc -u
$a_00_5 = {75 00 66 00 77 00 20 00 64 00 69 00 73 00 61 00 62 00 6c 00 65 00 } //10 ufw disable
$a_00_6 = {6e 00 6d 00 61 00 70 00 20 00 2d 00 73 00 54 00 20 00 } //10 nmap -sT
$a_00_7 = {63 00 61 00 74 00 20 00 2f 00 65 00 74 00 63 00 2f 00 73 00 68 00 61 00 64 00 6f 00 77 00 } //10 cat /etc/shadow
condition:
((#a_02_0 & 1)*10+(#a_02_1 & 1)*10+(#a_00_2 & 1)*10+(#a_00_3 & 1)*10+(#a_00_4 & 1)*10+(#a_00_5 & 1)*10+(#a_00_6 & 1)*10+(#a_00_7 & 1)*10) >=30
}