{"id":10063,"date":"2025-07-05T23:26:46","date_gmt":"2025-07-05T23:26:46","guid":{"rendered":"https:\/\/www.hexacorn.com\/blog\/?p=10063"},"modified":"2025-07-05T23:26:46","modified_gmt":"2025-07-05T23:26:46","slug":"beyond-good-ol-run-key-part-147","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2025\/07\/05\/beyond-good-ol-run-key-part-147\/","title":{"rendered":"Beyond good ol\u2019 Run key, Part 147"},"content":{"rendered":"\n<p>I mentioned <a href=\"https:\/\/www.hexacorn.com\/blog\/2020\/12\/02\/testhooks-take-2\/\" data-type=\"post\" data-id=\"7602\">TestHook<\/a> at least <a href=\"https:\/\/www.hexacorn.com\/blog\/2020\/09\/06\/beyond-good-ol-run-key-part-127-testhooks-bonus\/\" data-type=\"post\" data-id=\"7440\">twice<\/a> in the past. I actually love this keyword\/string, because it is associated with many undocumented internal Microsoft test frameworks that we can sometimes abuse. And many &#8216;TestHook&#8217; string references are present in many binaries belonging to both Server an Desktop versions of Windows, hence a lot of research opportunities await&#8230;<\/p>\n\n\n\n<p>And here&#8217;s one of them:<\/p>\n\n\n\n<p>Adding an entry below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Diagnostics\\DiagTrack\\TestHooks\\TestAggregatorDll=&lt;malware><\/pre>\n\n\n\n<p>will result in the DLL of our choice being loaded when the system starts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/07\/TestAggregatorDll.png\"><img decoding=\"async\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/07\/TestAggregatorDll.png\" alt=\"\" class=\"wp-image-10066\" width=\"512\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/07\/TestAggregatorDll.png 644w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/07\/TestAggregatorDll-300x63.png 300w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2025\/07\/TestAggregatorDll-500x106.png 500w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I mentioned TestHook at least twice in the past. I actually love this keyword\/string, because it is associated with many undocumented internal Microsoft test frameworks that we can sometimes abuse. And many &#8216;TestHook&#8217; string references are present in many binaries &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2025\/07\/05\/beyond-good-ol-run-key-part-147\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10063"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=10063"}],"version-history":[{"count":2,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10063\/revisions"}],"predecessor-version":[{"id":10067,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/10063\/revisions\/10067"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=10063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=10063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=10063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}