{"id":9717,"date":"2024-12-15T00:21:35","date_gmt":"2024-12-15T00:21:35","guid":{"rendered":"https:\/\/www.hexacorn.com\/blog\/?p=9717"},"modified":"2024-12-15T00:21:35","modified_gmt":"2024-12-15T00:21:35","slug":"dns-exe-and-its-quirks","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2024\/12\/15\/dns-exe-and-its-quirks\/","title":{"rendered":"dns.exe and its quirks"},"content":{"rendered":"\n<p>This is not a proper research yet. I just happened to stumble upon an interesting artifact which is a file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">C:\\Windows\\System32\\dns\\RFC5011.csv<\/pre>\n\n\n\n<p>that <em>dns.exe<\/em> service process tries to read. <\/p>\n\n\n\n<p>This csv file appears to be related to DNSSEC, but I don&#8217;t know enough about it, plus have not spent enough time analyzing the actual <em>dns.exe<\/em> binary to determine the csv file&#8217;s purpose and layout yet. <\/p>\n\n\n\n<p>BUT<\/p>\n\n\n\n<p>The code reading this CSV file refers to <em>TrustAnchor<\/em> and <em>TrustPoint<\/em> strings so it&#8217;s possible the program is using the content of the file to import a set of trusted public keys utilized by DNSSEC. Which of course could be abused.<\/p>\n\n\n\n<p>After poking around a bit more, I have created a list of file system-based artifacts that the DNS-related executables and libraries (c:\\Windows\\System32\\dns.exe, c:\\Windows\\System32\\dnscmd.exe, c:\\Windows\\System32\\dnsmgr.dll) touch:<\/p>\n\n\n\n<ul>\n<li>C:\\Windows\\System32\\dns\\backup\\boot<\/li>\n\n\n\n<li>C:\\Windows\\System32\\dns\\backup\\boot.first<\/li>\n\n\n\n<li>C:\\Windows\\System32\\dns\\backup\\dns.log<\/li>\n\n\n\n<li>C:\\Windows\\System32\\dns\\boot<\/li>\n\n\n\n<li>C:\\Windows\\System32\\dns\\boot.txt<\/li>\n\n\n\n<li>C:\\Windows\\System32\\dns\\boot.write.error<\/li>\n\n\n\n<li>C:\\Windows\\System32\\dns\\dns.log<\/li>\n\n\n\n<li>C:\\Windows\\System32\\dns\\RFC5011.csv<\/li>\n\n\n\n<li>C:\\Windows\\System32\\dns\\TrustAnchors.dns<\/li>\n<\/ul>\n\n\n\n<p>This is really not very useful yet, but it is a good starting point to dig deeper.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is not a proper research yet. I just happened to stumble upon an interesting artifact which is a file: C:\\Windows\\System32\\dns\\RFC5011.csv that dns.exe service process tries to read. This csv file appears to be related to DNSSEC, but I don&#8217;t &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2024\/12\/15\/dns-exe-and-its-quirks\/\">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":[53],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/9717"}],"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=9717"}],"version-history":[{"count":2,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/9717\/revisions"}],"predecessor-version":[{"id":9719,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/9717\/revisions\/9719"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=9717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=9717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=9717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}