Skip to content

Commit

Permalink
Added YARA rule for missing NSIS installers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladislav Zezula committed Sep 23, 2020
1 parent d28f594 commit c169915
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions support/yara_patterns/tools/pe/x86/installers.yara
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,24 @@ rule nsis_1xx_pimp {
$1 at pe.entry_point
}

rule nsis_overlay_data {
meta:
tool = "I"
name = "Nullsoft Install System"
strings:
$s01 = { EF BE AD DE 6E 73 69 73 69 6E 73 74 61 6C 6C 00 }
$s02 = { ED BE AD DE 4E 75 6C 6C 53 6F 66 74 49 6E 73 74 }
$s03 = { 0? 00 00 00 EF BE AD DE 4E 75 6C 6C (53|73) 6F 66 74 49 6E 73 74 }
condition:
pe.number_of_sections > 3 and
pe.overlay.size != 0 and
(
@s01 >= pe.overlay.offset or
@s02 >= pe.overlay.offset or
@s03 >= pe.overlay.offset
)
}

rule nsis_13x_pimp {
meta:
tool = "I"
Expand Down

0 comments on commit c169915

Please sign in to comment.