{"id":5855,"date":"2019-01-24T00:12:54","date_gmt":"2019-01-24T00:12:54","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=5855"},"modified":"2019-01-24T00:12:57","modified_gmt":"2019-01-24T00:12:57","slug":"dont-stress-about-a-bit-of-stress-testing","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2019\/01\/24\/dont-stress-about-a-bit-of-stress-testing\/","title":{"rendered":"Don&#8217;t stress about a bit of stress testing"},"content":{"rendered":"\n<p>What if&#8230; we added 100K HKCU\\&#8230;\\Run keys to the Registry?<\/p>\n\n\n\n<p>What will be the impact on the system? What will be impact on the EDR tools? Sysmon? Windows Event Logs? Autoruns? Regedit?<\/p>\n\n\n\n<p>I prepared a test Reg file with 100K dummy HKCU\\&#8230;\\Run entries &#8211; click to <a href=\"https:\/\/hexacorn.com\/examples\/HKCU_Run_100K.zip\">download<\/a> it. I then imported them to the Registry. <\/p>\n\n\n\n<p>It actually took a while. <\/p>\n\n\n\n<p>During this time the GUI version of Regedit.exe pointing to HKCU\\&#8230;\\Run entries was DoSd. I am not sure if it was because of slow enumeration of the Run key entries at that moment (while they key was being updated), or it was simply locked due to a second instance of regedit.exe running (and busy adding entries) &#8211; perhaps the program is using some blocking mechanism e.g. mutex to avoid concurrent access to the same resources. In any case, this took a few minutes.<\/p>\n\n\n\n<p>Sysmon was running in the background, and intercepted all the entries with no problem. All good.<\/p>\n\n\n\n<p>Unfortunately, EDR tests are harder, because tools are not available to public. You should perhaps try to test it with your EDR, because it may show some interesting gaps&#8230;<\/p>\n\n\n\n<p>Running GUI version of Autoruns takes a long time &#8211; it is not only a large number of items to enumerate, Autoruns populates GUI as it reads the values &#8211; perhaps updates should be done in one go? with the window painting temporarily disabled(?).<\/p>\n\n\n\n<p>When ran from command line, autorunsc.exe ran for less than 30 seconds to enumerate everything which is pretty good. I believe that it would change dramatically if the dummy files actually existed on the system (in my test entries point to non-existing files).<\/p>\n\n\n\n<p>I guess a similar test could be run with processes. Grab a dummy file, rename and run it 100K times and see what happens&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What if&#8230; we added 100K HKCU\\&#8230;\\Run keys to the Registry? What will be the impact on the system? What will be impact on the EDR tools? Sysmon? Windows Event Logs? Autoruns? Regedit? I prepared a test Reg file with 100K &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2019\/01\/24\/dont-stress-about-a-bit-of-stress-testing\/\">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":[43,52,58],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/5855"}],"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=5855"}],"version-history":[{"count":1,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/5855\/revisions"}],"predecessor-version":[{"id":5856,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/5855\/revisions\/5856"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=5855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=5855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=5855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}