-
Notifications
You must be signed in to change notification settings - Fork 3
/
huan_crypter.yar
26 lines (23 loc) · 930 Bytes
/
huan_crypter.yar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import "pe"
rule CRYPTER_Huan {
meta:
description = "Detects samples crypted with Huan PE Loader"
author = "Marius 'f0wL' Genheimer <hello@dissectingmalwa.re>"
reference = "https://github.com/frkngksl/Huan"
date = "2021-08-21"
tlp = "WHITE"
strings:
$s0 = "huan" ascii
$s1 = "[+] Imported DLL Name: " fullword ascii
$s2 = "[+] Binary is running" fullword ascii
$s3 = "[+] All headers are copied" fullword ascii
$s4 = "[+] Data is decrypted! " fullword ascii
$s5 = "[+] All sections are copied" fullword ascii
$s6 = "[!] Import Table not found" fullword ascii
$s7 = "[+] Cannot load to the preferable address" fullword ascii
condition:
uint16(0) == 0x5a4d
and pe.imphash() == "f7fd6adbeced3adfa337ae23987ee13e"
and 4 of ($s*)
and for any i in (0..pe.number_of_sections):(pe.sections[i].name == ".huan")
}