Skip to content

Commit 0194264

Browse files
authored
Merge pull request #20 from Gurummang/develop
fix: custom exe yara rule
2 parents baa4ae8 + 5b9f2cc commit 0194264

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

rules/exe/executable/grum_custom_rule/suspicious_pe.yar

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,6 @@ rule EntryPointZero
2424
pe.entry_point == 0x0
2525
}
2626

27-
rule SectionSizeGreaterThanImageSize
28-
{
29-
meta:
30-
atk_type= "suspicious_section"
31-
description = "Detects if any section size is greater than image size"
32-
33-
condition:
34-
uint16(0) == 0x5A4D and
35-
pe.is_pe and
36-
for any i in (0..pe.number_of_sections - 1) : (
37-
pe.sections[i].raw_data_size > pe.size_of_image
38-
)
39-
}
40-
41-
rule TextSectionLargerThanHalfImageSize
42-
{
43-
meta:
44-
atk_type= "suspicious_section"
45-
description = "Detects if .text section is larger than half of the image size"
46-
47-
condition:
48-
uint16(0) == 0x5A4D and
49-
pe.is_pe and
50-
(pe.characteristics & 0x2000 == 0) and // .dll 파일이 아닌지 확인
51-
(pe.characteristics & 0x0002 != 0) and // .exe 파일인지 확인
52-
for any i in (0..pe.number_of_sections - 1) : (
53-
pe.sections[i].name == ".text" and pe.sections[i].raw_data_size > pe.size_of_image * 0.5
54-
)
55-
}
56-
5727
rule MissingDigitalSignature
5828
{
5929
meta:

0 commit comments

Comments
 (0)