{"id":7045,"date":"2020-11-21T00:55:24","date_gmt":"2020-11-21T00:55:24","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=7045"},"modified":"2020-11-21T00:55:24","modified_gmt":"2020-11-21T00:55:24","slug":"commander-minority-report","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2020\/11\/21\/commander-minority-report\/","title":{"rendered":"Commander Minority Report"},"content":{"rendered":"\n<p>This is an idea I have not tested in practice, but it emerged in response to a simple question:<\/p>\n\n\n\n<ul><li>What if sysmon, 4688, EDR command line logging couldn&#8217;t catch a thing?<\/li><\/ul>\n\n\n\n<p>I am not the first one to ask this question and <a href=\"https:\/\/twitter.com\/_xpn_\">@_xpn_<\/a> has a <a href=\"https:\/\/blog.xpnsec.com\/how-to-argue-like-cobalt-strike\/\">great post<\/a> about an argument spoofing trick one can use to fool command line interceptors: create a suspended process, then inject a proper command line argument after the process creation event has been intercepted, then resume the process with the new command line injected. <br>Brilliant!<\/p>\n\n\n\n<p>So&#8230; that made me think about what command line really is. <\/p>\n\n\n\n<p>And command line is basically a string that is being parsed to set up a internal state for the program that parses it. And with that we can ask another question: is there a way to manipulate the process state and assign appropriate values to internal engine of the targeted tool and make it run as if a command line argument was provided, but without providing that command line? Of course, to do so one needs to know intricacies of the process that is being manipulated but it&#8217;s relatively straightforward for targets like powershell (source code available), or even v|cbscript \/ cmd.<\/p>\n\n\n\n<p>Perhaps there is a scope for a completely new type of offensive engine that takes instrumentation to a completely new level&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is an idea I have not tested in practice, but it emerged in response to a simple question: What if sysmon, 4688, EDR command line logging couldn&#8217;t catch a thing? I am not the first one to ask this &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2020\/11\/21\/commander-minority-report\/\">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":[58],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7045"}],"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=7045"}],"version-history":[{"count":2,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7045\/revisions"}],"predecessor-version":[{"id":7583,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7045\/revisions\/7583"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=7045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=7045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=7045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}