Skip to content

Commit

Permalink
Add new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ditekshen committed Oct 4, 2024
1 parent f00e98a commit b1f4c8a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
32 changes: 32 additions & 0 deletions data/yara/CAPE/FPSpy.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import "pe"

rule FPSpy {
meta:
author = "ditekshen"
description = "Detects FPSpy"
cape_type = "FPSpy Payload"
strings:
$f1 = "[Analys_Spy]" wide
$f2 = "[DeletePoorDll]" wide
$f3 = "[DownloadProc]" wide
$f4 = "[DragWarp]" wide
$f5 = "[GetCoolDir]" wide
$f6 = "[JackSleep]" wide
$f7 = "[KillCmdExe]" wide
$f8 = "[PsDownProc]" wide
$f9 = "[PsUpProc]" wide
$f10 = "[ReadFileFromPacket]" wide
$f11 = "[RemoteDropExec]" wide
$f12 = "[RemoteExec]" wide
$f13 = "[RemoteInject]" wide
$f14 = "[SendHttpForUpload]" wide
$s1 = "MazeFunc" fullword ascii
$s2 = /(Exit|Update|Drop)_EVT/ fullword ascii
$s3 = "Key.dat" fullword ascii
$s4 = "%sSysInfo_%02d_%02d_%02d.txt" fullword ascii
$s5 = "cmd /c systeminfo >> %s" fullword ascii
$s6 = "Content-Disposition: form-data; name=\"MAX_FILE_SIZE\"" fullword ascii
$s7 = "FPSpy" fullword wide
condition:
uint16(0) == 0x5a4d and ((pe.exports("MazeFunc") and 2 of ($f*) and 1 of ($s*)) or (6 of ($f*) and 1 of ($s*)) or (5 of ($s*) and 1 of ($f*)) or (8 of ($f*)))
}
20 changes: 20 additions & 0 deletions data/yara/CAPE/KLogExe.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
rule KLogExe {
meta:
author = "ditekshen"
description = "Detects KLogExe"
cape_type = "KLogExe Payload"
strings:
$s1 = "[clip_s]: %s" ascii
$s2 = "------ %d/%d/%d : %d/%d ------" ascii
$s3 = "[RWin+]" ascii
$s4 = "[Too many clip_tail]" ascii
$s5 = "name=\"userfile\"; filename=\"%s\"" ascii
$s6 = "Origin: http://" wide
$s7 = "%s_%d_%d_%d_%d" wide
$s8 = "/wp-content/include.php?_sys_" wide
$s9 = "\\desktops.ini" wide
$s10 = "KLogExe" wide nocase
$s11 = "dynamic_import.cpp [resolve_call] can`nt" wide
condition:
uint16(0) == 0x5a4d and 6 of them
}

0 comments on commit b1f4c8a

Please sign in to comment.