Background
Recently, during routine threat intelligence research, SlowMist security personnel detected an attack involving the poisoning of scripts associated with the Udesk customer service system. The team then obtained two JavaScript samples, udeskApi.2026-10-16.cached.js and deeps.js, and analyzed them to investigate how the malicious code entered webpages via customer service scripts and what it did with user data and business operations.
Analysis of the samples gradually revealed two types of risk: the malicious scripts collected session data and sensitive information submitted by users from webpages, while also modifying deposit addresses and copied content according to site-specific rules. The former could allow attackers to hijack login sessions or take over accounts; the latter could cause users to transfer their deposits to substituted recipient addresses. Starting from the customer service script’s loading entry point, we traced the data access, network transmission, and page modification logic to reconstruct how these two types of behavior were implemented and what triggered them.
MistEye Response
MistEye is a Web3 threat intelligence and dynamic security monitoring system independently developed by SlowMist. It combines security monitoring and intelligence aggregation to provide users with real-time risk alerts and asset protection.
MistEye promptly shared the risk through its intelligence updates and customer alert channels.

Malicious loader and remote payload loading mechanism
Opening udeskApi.2026-10-16.cached.js reveals code for customer service buttons, chat iframes, visitor tracking, and message communication. A further inspection of the end of the file shows a standalone function after the main code: it decodes two strings through _ud(), creates an element, and inserts it into the current document's head.
This section does not explicitly include the tag name or remote URL. Searching only for plaintext domain names could miss the loading entry point. We examined the implementation of _ud() and found that it takes two hexadecimal characters at a time and converts them into a character. Expanding the constants reveals the loading target.

736372697074 decodes to script, while another constant decodes to https[:]//udeskqlobal[.]com/deeps.js. The domain's qlobal begins with the letter q; preserve this spelling when searching. The loader sets the script to load asynchronously, then inserts it into the page. If execution reaches this point and browser policies and network access allow it, the remote code can enter the current document.
The payload corresponding to this URL is deeps.js. The investigation shifted from the customer service SDK to the payload itself. A third-party classic script runs in the context of the embedding document, and the data it can access depends on the page or iframe where it actually runs. The customer service chat window's use of an iframe does not automatically isolate scripts loaded in the host page.
Web data collection mechanisms and scope of impact
At the start of deeps.js, the script reads window.location.hostname and generates configuration C according to rules for three sites. This configuration alone is not enough to determine which pages are collected: we need to trace where the exit check occurs to establish whether it constrains the entire script or only one module.
Following the control flow, we found that reads of cookies and web storage, transmission of the startup snapshot, and form and authentication request hooks all occur before if (! C) return;. Below, we excerpt the snapshot transmission statement and the XHR hook near the end in source order; comments indicate omitted code and correspond to formatted view D:L100 and D:L151–D:L166.

The location of the exit check clarifies the scope of impact: even if the hostname does not match any of the three site rules, the script first enters the data collection path and installs hooks, and only then exits the address module. When investigating exposed pages, do not limit the search to the three site configurations.
At startup, the payload reads cookies, localStorage, and sessionStorage accessible to the current page. These locations may store login state, user profiles, and business data; if they contain valid, reusable login tokens, an attacker could use them to impersonate a user's session. The script also includes the top-level page URL and the current document's origin, submitting these data along with the source page.
The collection process handles each item individually to prevent errors. If reading the top-level URL across origins fails, the script substitutes x and continues processing other fields; the two types of web storage are serialized as JSON. Cookie access is limited to content readable through document.cookie; HttpOnly cookies are not included.
The script also provides a path for collecting data submitted later. When a user submits a form, it iterates through input, select, and textarea elements, copies non-empty values, and then lets the original submission proceed. Fields actually filled in on the page—such as account names, passwords, and verification codes—may enter an additional data transmission path and, if leaked, could be used to log in to or take over accounts.
This path is implemented by wrapping HTMLFormElement.prototype.submit and listening for submit events during the capture phase. For pages that submit data directly through APIs, the script also wraps fetch and XHR: when a request has a body and its URL matches keywords such as login|signin|auth|register|signup|password, it copies the relevant content while preserving the original request call. The fetch branch additionally requires the URL to be a string and the body to come from request options; if objects such as FormData are serialized directly to JSON, the collected data may not include the actual fields.
Data exfiltration mechanism and fallback channel
All of the collection paths above ultimately call the same _send(). Tracing this function reveals the fixed recipient, https[:]//udeskqlobal[.]com/c.php. The startup snapshot uses the fields s, o, c, l, and ss to carry the page address, current origin, readable cookies, and the two types of web storage; subsequent form and authentication requests are sent when their respective triggers occur.
The function extracts the parameters after the question mark in the URL and places them in the body of an asynchronous POST request, setting Content-Type: application/x-www-form-urlencoded. The complete sending function is reproduced below (D:L45–D:L60):

The sending path also includes an image-request fallback: if XHR fails or a synchronous exception occurs during sending, the script creates an Image object and assigns the URL with parameters to src, attempting to send the data again via GET. The URL is truncated to the first 8,000 JavaScript characters, so longer content may be incomplete.
When examining this path, distinguish between “sending a request” and “reading a response.” The script does not read the response from c.php; a cross-origin POST that meets the simple request criteria can be sent before the browser blocks access to the response, so a CORS error and a sent request can occur at the same time. Investigation records should check both POST bodies and image GET parameters, and egress policies should be checked separately for connect-src and img-src. A normal form submission that triggers document navigation may also affect whether an asynchronous request completes.
At this point, the destination of web session data and subsequent submissions is clear. But after the site exit check, the payload retains another set of operations: recognizing address formats, modifying page text, and taking over copy paths. This code points the investigation toward top-up operations.
Top-up address replacement and clipboard hijacking mechanism
After if (! C) return;, the script enters the address module. The three hostname rules at the beginning now have a clear purpose: they match mgbx[.]com, bikingex[.], and bitxex[.]io to select element selectors for addresses and copy buttons on different pages.
These regular expressions have no start or end anchors, so they match more broadly than an exact domain comparison. The page rules also check the full location.href, so keywords such as deposit, recharge, and assets in query parameters or fragments are included in the check. When the page, element, and address format all match, the script scans every 200 milliseconds and replaces recognized top-up addresses with configured values. If a user makes a valid transfer using a replaced address, the funds will go to that address.
The three site branches share six configured values, labeled BTC, EVM, TRON, Solana, LTC, and DOGE in the code. Address recognition relies only on character patterns and match order; it does not verify the network selected by the user or the address checksum, and may also mistake ordinary business identifiers for addresses.
Further inspection of the copy-related code shows that the sample interferes with both the displayed page and clipboard contents. As a result, even if users compare the page address with the copied result, they may see the same tampered value. The three paths are:
Wrap the clipboard API. navigator.clipboard.writeText first passes its argument through R() for replacement, then calls the original method. This path is limited only by the hostname configuration; it does not recheck the top-up page condition or depend on the DOM scan having matched an element.
Replace copy buttons. The script clones matched buttons, installs a new click listener, and replaces the original node. The new listener prevents the default action and event propagation, then attempts to copy the address stored in the shared variable _cur.
Intercepts the copy event. When _cur is non-empty and the page rules are satisfied, the listener on document changes the copied content to _cur without checking whether the user-selected text is an address.
The clipboard API wrapper and copy listener appear next to each other in the source (D:L260–D:L275), but their trigger conditions differ:

_cur stores the address from the most recent actual replacement. If multiple addresses appear on the same screen, a later replacement overwrites the previous value, so multiple buttons may copy the same address. If the page initially displays a configured address, scanning does not initialize _cur; the new button listener therefore does not write any content. Cloned HTML inline event attributes can still participate in event handling.
The analysis also found an implementation flaw that affects behavioral assessment: the script tries to read the own property descriptor for textContent from Element.prototype, although the standard property is defined on Node.prototype. Under the standard prototype chain, the subsequent access to .set throws an exception. After this branch fails, the catch block swallows the exception. Checking the surrounding code confirms that polling has already been registered, and the subsequent copy hooks are still installed according to their respective conditions. An error in one branch does not terminate the address-hijacking module.
Summary
By tracing the loader at the end of the customer service script, we identified the sample's objectives: collecting data that could be used to impersonate sessions or log in to accounts, while replacing payment addresses on top-up pages and in copy operations with configured values. The former is not limited by the three site configurations; the latter is enabled by site and specific copy path. Investigations should therefore cover different exposure scenarios.
Businesses that still load the affected script should stop distributing it, address exposed credentials, and verify top-up destinations using trusted administrative systems and transaction records.
Recommendations
Preserve the contaminated resource and stop distributing it. If production still loads the affected script, save the actual response, request initiator chain, cache information, and collection time, then block it as soon as possible. Restore an independently verified trusted version, and inspect site hosting, CDN, build, and tag management configurations.
Search loading and exfiltration records. Cross-reference the malicious domain, both paths, and file hashes; for exfiltration records, check both POST bodies and GET parameters. When investigating minified scripts, also search for the hexadecimal URL in the loader to avoid missing it by searching only for plaintext.
Close contaminated documents and address exposed credentials. Fully close the relevant pages or WebView documents to prevent old resources from loading again. Based on the actual exposure, revoke sessions and rotate tokens and passwords from a clean environment. Removing the script tag does not revoke hooks and timers that have already been installed.
Independently verify top-up addresses and transactions. For pages that executed the payload, verify the original top-up address, relevant transactions, and actual transfer destination through trusted channels, and assess the impact based on transaction records.
Validate script and data egress restrictions. Configure script source and integrity controls based on business requirements, and verify policies such as connect-src and img-src separately. Restrict script loading and data exfiltration involving udeskqlobal[.]com.
IOC
Domain
udeskqlobal[.]com
URL
https[:]//udeskqlobal[.]com/deeps[.]js
https[:]//udeskqlobal[.]com/c[.]php
Wallet addresses
BTC: bc1qhzppfj69ywp22swj50jwcfxdamg3ym245srng9
EVM: 0x9B6EcD0023a28E1391c5124eCe578A9751A337b2
TRON: TH4L5YAhhxtC8qALbZKbPZZgausbGi25nF
Solana: AFmCUe3nNbjTaC585CcdA3vvC9iWVR8YunooFKpaQx2Z
LTC: ltc1qwz0zp39ywl34kahvn9lyk7j5x63wsy9tcxhm3w
DOGE: DAoy2w8uvFtZ92q87s9qKEoHbWgV7mVThj
Malicious files
filename: udeskApi.2026-10-16.cached.js
SHA256: 45b4e8f160d8d5177819f6c1dc67acc7abbdc65eeaffc909e668799dc778bcf6
filename: deeps.js
SHA256: 57c1441c4f5bb3260981a2df64f9ff35f117abde0d8667c8c66a047880074c59
About MistEye
MistEye is a Web3 threat intelligence and dynamic security monitoring platform independently developed by SlowMist. It provides malicious activity detection and supply chain risk alerts for the open-source package ecosystem through an API.
All malicious packages and IOCs involved in this campaign have been integrated into the MistEye threat detection engine. Developers can use the API to automatically scan project dependencies, quickly determine whether they match known malicious packages, and obtain remediation recommendations.
📖 API documentation: https://app.misteye.io/api-docs
🛠️ MistEye-DepScan: https://github.com/slowmist/MistEye-DepScan
A lightweight CLI tool that scans project dependencies and globally installed packages for known malicious packages with a single command. Supports the npm / PyPI / Cargo / Go / RubyGems ecosystems.
🛠️ MistEye-Skills: https://github.com/slowmist/misteye-skillsAI
A security skill package for coding assistants that automatically triggers MistEye security checks before dependency installation and URL access.
🛠️ MistEye-DNS-Guard: https://github.com/slowmist/MistEye-DNS-GuardDNS
A security tool that detects malicious domains and risky access, and identifies network threats such as phishing and C2.
This article was written by the SlowMist Threat Intelligence team using the MistEye threat intelligence system and SlowMist Agent AI-driven analysis. Please contact us with any questions or feedback.
References
[1]https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS#simple_requests
[2]https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode

