{"id":936,"date":"2025-12-16T12:26:00","date_gmt":"2025-12-16T12:26:00","guid":{"rendered":"https:\/\/zombierollz.blog\/?p=936"},"modified":"2025-12-16T18:26:36","modified_gmt":"2025-12-16T18:26:36","slug":"aoc2025-day-13-yara-rules-yara-mean-one","status":"publish","type":"post","link":"https:\/\/zombierollz.blog\/?p=936","title":{"rendered":"AoC2025 &#8211; Day 13 YARA Rules &#8211; YARA mean one!"},"content":{"rendered":"\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-1 wp-block-paragraph\">https:\/\/tryhackme.com\/room\/yara-aoc2025-q9w1e3y5u7<br>Created by: tryhackme, krotovolb<br>https:\/\/www.youtube.com\/watch?v=NAYtCSUHR8M is a great walkthrough video; he also gives a shoutout to regex 101: https:\/\/regex101.com\/, something that helped me in this room, and I bookmarked as well for future use cases!<\/p>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-2 wp-block-paragraph\">&#8220;When McSkidy went missing, there was chaos and uncertainty at The Best Festival Company (TBFC). However, even in her disappearance, McSkidy was trying to help the TBFC&nbsp;blue team. Taking a page out of the crisis communication process, McSkidy sent what looks like a bunch of images to the&nbsp;blue team&nbsp;from an anonymous location. These images looked like they were related to Easter preparations, but they contained a message sent by McSkidy. The crisis communication process outlines that a message might be sent through a folder of images containing hidden messages that can be decoded if you know the keyword. The&nbsp;blue team&nbsp;has to create a YARA rule that runs on the directory containing the images. The YARA rule must trigger on a keyword followed by a code word. After extracting all the code words in ascending order, the&nbsp;blue team&nbsp;will be able to decode the message.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"406\" height=\"192\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-102735.png\" alt=\"\" class=\"wp-image-938\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-102735.png 406w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-102735-300x142.png 300w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-3 wp-block-paragraph\">After reading the material, we are presented with our technical challenge: To make our own YARA rule. To the terminal we go! I made a file from nano called TBFC_Egg_Buster. The condition is this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"164\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-113322.png\" alt=\"\" class=\"wp-image-939\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-113322.png 798w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-113322-300x62.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-113322-768x158.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"382\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-111729-1024x382.png\" alt=\"\" class=\"wp-image-940\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-111729-1024x382.png 1024w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-111729-300x112.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-111729-768x286.png 768w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-111729-1536x572.png 1536w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-111729.png 1913w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-4 wp-block-paragraph\">I added additional strings to what was already there. I&#8217;m not sure if this will mess with it, but we will find out. I was met with a syntax error! I ended up copying and pasting the rule without the ending bracket. Now that it&#8217;s fixed, I tried again.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"565\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-113220.png\" alt=\"\" class=\"wp-image-941\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-113220.png 821w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-113220-300x206.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-113220-768x529.png 768w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"44\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-122306.png\" alt=\"\" class=\"wp-image-942\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-122306.png 1016w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-122306-300x13.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-122306-768x33.png 768w\" sizes=\"auto, (max-width: 1016px) 100vw, 1016px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"45\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-122417.png\" alt=\"\" class=\"wp-image-943\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-122417.png 685w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-122417-300x20.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"372\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123718.png\" alt=\"\" class=\"wp-image-944\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123718.png 674w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123718-300x166.png 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"829\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123300.png\" alt=\"\" class=\"wp-image-945\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123300.png 624w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123300-226x300.png 226w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-5 wp-block-paragraph\">&#8220;How many images contain the string TBFC?&#8221;<br><br>It will show duplicates, so if you count them with that in mind, it will be 5 images.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"115\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123834.png\" alt=\"\" class=\"wp-image-946\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123834.png 1010w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123834-300x34.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-123834-768x87.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-6 wp-block-paragraph\">&#8220;What regex would you use to match a string that begins with\u00a0<code>TBFC:<\/code>\u00a0followed by one or more alphanumeric ASCII characters?&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"412\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-124041.png\" alt=\"\" class=\"wp-image-947\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-124041.png 1008w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-124041-300x123.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-124041-768x314.png 768w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-7 wp-block-paragraph\">&#8220;What is the message sent by McSkidy?&#8221; Copy and paste this into your Nano file and re-run it to obtain the message! It will be out of order, but we can figure that out!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"311\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-140252.png\" alt=\"\" class=\"wp-image-948\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-140252.png 817w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-140252-300x114.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-140252-768x292.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"538\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-140401.png\" alt=\"\" class=\"wp-image-949\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-140401.png 632w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-140401-300x255.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-8 wp-block-paragraph\">Snippet highlights:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"869\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-104825.png\" alt=\"\" class=\"wp-image-950\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-104825.png 817w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-104825-282x300.png 282w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-13-104825-768x817.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/tryhackme.com\/room\/yara-aoc2025-q9w1e3y5u7Created by: tryhackme, krotovolbhttps:\/\/www.youtube.com\/watch?v=NAYtCSUHR8M is a great walkthrough video; he also gives a shoutout to regex 101: https:\/\/regex101.com\/, something that helped me in this room, and I bookmarked as well for future use cases! &#8220;When McSkidy went missing, there was chaos and uncertainty at The Best Festival Company (TBFC). However, even in her disappearance, McSkidy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-936","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/posts\/936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=936"}],"version-history":[{"count":2,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/posts\/936\/revisions"}],"predecessor-version":[{"id":951,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/posts\/936\/revisions\/951"}],"wp:attachment":[{"href":"https:\/\/zombierollz.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}