11rule grub_boot_images : override {
22 meta :
3- description = " GRUB i386-pc boot images "
3+ description = " GRUB i386-pc boot images (boot.image, boot_hybrid.image) "
44 single_load_rwe = " medium "
55
66 strings :
@@ -9,3 +9,55 @@ rule grub_boot_images: override {
99 condition :
1010 filesize < 64KB and $ grub
1111 }
12+
13+ rule grub_cdboot_image : override {
14+ meta :
15+ description = " GRUB i386-pc CD boot image "
16+ single_load_rwe = " medium "
17+
18+ strings :
19+ $ cdrom_fail = " cdrom read fails "
20+ $ no_boot = " no boot info "
21+
22+ condition :
23+ filesize < 8KB and all of them
24+ }
25+
26+ rule grub_diskboot_image : override {
27+ meta :
28+ description = " GRUB i386-pc disk boot image "
29+ single_load_rwe = " medium "
30+
31+ strings :
32+ $ blocklist = " blocklist_default_start "
33+ $ notification = " notification_string "
34+
35+ condition :
36+ filesize < 8KB and all of them
37+ }
38+
39+ rule grub_lnxboot_image : override {
40+ meta :
41+ description = " GRUB i386-pc Linux boot image "
42+ single_load_rwe = " medium "
43+
44+ strings :
45+ $ move_mem = " move memory fails "
46+ $ setup = " setup_sects "
47+
48+ condition :
49+ filesize < 8KB and all of them
50+ }
51+
52+ rule grub_pxeboot_image : override {
53+ meta :
54+ description = " GRUB i386-pc PXE boot image "
55+ single_load_rwe = " medium "
56+
57+ strings :
58+ // PXE boot stub: mov dl,0x7f followed by far jump to 0x0000:0x8200
59+ $ pxe_entry = { b2 7f ea 00 82 00 00 }
60+
61+ condition :
62+ filesize < 4096 and $ pxe_entry
63+ }
0 commit comments