-
Notifications
You must be signed in to change notification settings - Fork 20
/
SUSP_PE_HashLike_Features.yar
91 lines (79 loc) · 2.15 KB
/
SUSP_PE_HashLike_Features.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import "pe"
rule SUSP_PE_HashLike_DLL_Name_MD5
{
meta:
author = "Greg Lesnewich"
description = "looking for hashes in weird places"
date = "2024-02-05"
version = "1.0"
DaysOfYara = "36/100"
condition:
pe.dll_name matches /[a-z0-9A-Z]{32}.dll/
}
rule SUSP_PE_HashLike_DLL_Name_SHA256
{
meta:
author = "Greg Lesnewich"
description = "looking for hashes in weird places"
date = "2024-02-05"
version = "1.0"
DaysOfYara = "36/100"
condition:
pe.dll_name matches /[a-z0-9A-Z]{64}.dll/
}
rule SUSP_PE_HashLike_DLL_Name_SHA1
{
meta:
author = "Greg Lesnewich"
description = "looking for hashes in weird places"
date = "2024-02-05"
version = "1.0"
DaysOfYara = "36/100"
condition:
pe.dll_name matches /[a-z0-9A-Z]{40}.dll/
}
rule SUSP_PE_HashLike_Resource_Name_MD5
{
meta:
author = "Greg Lesnewich"
description = "looking for hashes in weird places"
date = "2024-02-05"
version = "1.0"
DaysOfYara = "36/100"
condition:
for any rsrc in pe.resources:
(
rsrc.name_string matches /([a-z0-9A-Z]{1}\x00){32}/ or
rsrc.type_string matches /([a-z0-9A-Z]{1}\x00){32}/
)
}
rule SUSP_PE_HashLike_Resource_Name_SHA1
{
meta:
author = "Greg Lesnewich"
description = "looking for hashes in weird places"
date = "2024-02-05"
version = "1.0"
DaysOfYara = "36/100"
condition:
for any rsrc in pe.resources:
(
rsrc.name_string matches /([a-z0-9A-Z]{1}\x00){40}/ or
rsrc.type_string matches /([a-z0-9A-Z]{1}\x00){40}/
)
}
rule SUSP_PE_HashLike_Resource_Name_SHA256
{
meta:
author = "Greg Lesnewich"
description = "looking for hashes in weird places"
date = "2024-02-05"
version = "1.0"
DaysOfYara = "36/100"
condition:
for any rsrc in pe.resources:
(
rsrc.name_string matches /([a-z0-9A-Z]{1}\x00){64}/ or
rsrc.type_string matches /([a-z0-9A-Z]{1}\x00){64}/
)
}