Files
roadwy-DefenderYara/HackTool/PowerShell/PowerSploit/HackTool_PowerShell_PowerSploit_A.yar
2025-04-26 22:42:45 +08:00

23 lines
2.5 KiB
Plaintext

rule HackTool_PowerShell_PowerSploit_A{
meta:
description = "HackTool:PowerShell/PowerSploit.A,SIGNATURE_TYPE_CMDHSTR_EXT,ffffffca 00 ffffffca 00 0d 00 00 "
strings :
$a_00_0 = {70 00 6f 00 77 00 65 00 72 00 73 00 68 00 65 00 6c 00 6c 00 } //50 powershell
$a_02_1 = {69 00 65 00 78 00 [0-03] 28 00 } //50
$a_00_2 = {6e 00 65 00 74 00 2e 00 77 00 65 00 62 00 63 00 6c 00 69 00 65 00 6e 00 74 00 } //50 net.webclient
$a_00_3 = {2e 00 64 00 6f 00 77 00 6e 00 6c 00 6f 00 61 00 64 00 73 00 74 00 72 00 69 00 6e 00 67 00 28 00 } //50 .downloadstring(
$a_00_4 = {2f 00 70 00 6f 00 77 00 65 00 72 00 73 00 70 00 6c 00 6f 00 69 00 74 00 2f 00 72 00 61 00 77 00 2f 00 6d 00 61 00 73 00 74 00 65 00 72 00 2f 00 65 00 78 00 66 00 69 00 6c 00 74 00 72 00 61 00 74 00 69 00 6f 00 6e 00 2f 00 } //2 /powersploit/raw/master/exfiltration/
$a_00_5 = {2f 00 67 00 65 00 74 00 2d 00 67 00 70 00 70 00 61 00 75 00 74 00 6f 00 6c 00 6f 00 67 00 6f 00 6e 00 2e 00 70 00 73 00 31 00 } //2 /get-gppautologon.ps1
$a_00_6 = {2f 00 67 00 65 00 74 00 2d 00 67 00 70 00 70 00 70 00 61 00 73 00 73 00 77 00 6f 00 72 00 64 00 2e 00 70 00 73 00 31 00 } //2 /get-gpppassword.ps1
$a_00_7 = {2f 00 67 00 65 00 74 00 2d 00 6b 00 65 00 79 00 73 00 74 00 72 00 6f 00 6b 00 65 00 73 00 2e 00 70 00 73 00 31 00 } //2 /get-keystrokes.ps1
$a_00_8 = {2f 00 67 00 65 00 74 00 2d 00 6d 00 69 00 63 00 72 00 6f 00 70 00 68 00 6f 00 6e 00 65 00 61 00 75 00 64 00 69 00 6f 00 2e 00 70 00 73 00 31 00 } //2 /get-microphoneaudio.ps1
$a_00_9 = {2f 00 67 00 65 00 74 00 2d 00 74 00 69 00 6d 00 65 00 64 00 73 00 63 00 72 00 65 00 65 00 6e 00 73 00 68 00 6f 00 74 00 2e 00 70 00 73 00 31 00 } //2 /get-timedscreenshot.ps1
$a_00_10 = {2f 00 69 00 6e 00 76 00 6f 00 6b 00 65 00 2d 00 63 00 72 00 65 00 64 00 65 00 6e 00 74 00 69 00 61 00 6c 00 69 00 6e 00 6a 00 65 00 63 00 74 00 69 00 6f 00 6e 00 2e 00 70 00 73 00 31 00 } //2 /invoke-credentialinjection.ps1
$a_00_11 = {2f 00 69 00 6e 00 76 00 6f 00 6b 00 65 00 2d 00 6e 00 69 00 6e 00 6a 00 61 00 63 00 6f 00 70 00 79 00 2e 00 70 00 73 00 31 00 } //2 /invoke-ninjacopy.ps1
$a_00_12 = {2f 00 69 00 6e 00 76 00 6f 00 6b 00 65 00 2d 00 74 00 6f 00 6b 00 65 00 6e 00 6d 00 61 00 6e 00 69 00 70 00 75 00 6c 00 61 00 74 00 69 00 6f 00 6e 00 2e 00 70 00 73 00 31 00 } //2 /invoke-tokenmanipulation.ps1
condition:
((#a_00_0 & 1)*50+(#a_02_1 & 1)*50+(#a_00_2 & 1)*50+(#a_00_3 & 1)*50+(#a_00_4 & 1)*2+(#a_00_5 & 1)*2+(#a_00_6 & 1)*2+(#a_00_7 & 1)*2+(#a_00_8 & 1)*2+(#a_00_9 & 1)*2+(#a_00_10 & 1)*2+(#a_00_11 & 1)*2+(#a_00_12 & 1)*2) >=202
}