Cyber Security News

Fake npm Install Messages Conceal RAT Malware in New Open Source Supply Chain Attack

Fake npm install messages are the latest social engineering trick in the open source supply chain, with attackers abusing npm post‑install scripts to silently deploy a crypto‑stealing remote access trojan (RAT) in what ReversingLabs is calling the “Ghost campaign.”

By wrapping their payloads in realistic but entirely bogus npm install logs, the threat actors turn routine package installation into a covert phishing and malware delivery channel that is hard for developers to notice in the moment.

Over the last year, defenders have already had to process incidents like the Shai‑hulud npm worm and Graphalgo.

This North Korea‑linked campaign used fake recruiter approaches and “coding tests” to drop custom RATs onto crypto developers’ systems.

Ghost fits into the same trend of increasingly interactive supply chain attacks, but shifts the focus to tricking developers at install time rather than just slipping malicious code into dependencies.

ReversingLabs first saw Ghost activity at the start of February 2026, tied to seven npm packages published by a user using the handle “mikilanjillo,” each reusing a common downloader core and layering on new obfuscation and phishing features.

One representative example is react‑state‑optimizer‑core, which advertises itself as a “lightweight utility layer for asynchronous state management in React applications” while actually serving as a thin wrapper around a download‑and‑execute routine.

Fake npm logs as cover and lure

The innovation in Ghost is not a particularly advanced payload, but a polished console experience that looks like a noisy npm install session.

Fake npm install logs (Source :ReversingLabs).

After installation, the malicious script prints detailed status messages claiming to fetch additional packages, with package names randomly chosen from a predefined list, injects random delays between lines, and sometimes even shows a progress bar that “fills” based on random values.

Because this output appears after a legitimate install and mimics expected npm behavior, most developers are likely to accept it as normal chatter and move on.

Hidden in this stream, however, the script eventually reports an “optimization” issue or partial install failure and prompts the user for their sudo password to fix supposedly missing components.

sudo password prompt (Source :ReversingLabs).

The sudo prompt is the real objective: once the user enters and the script verifies the password, the downloader silently executes while fake logs continue to scroll, giving the impression that some intensive optimization is still running.

The downloader then retrieves the URL of the final payload and part of its decryption key from an attacker‑controlled Telegram channel, with one variant (coinbase‑desktop‑sdk@1.5.19) instead hiding this information in a web3‑themed post on teletype. in.

The final stage is decrypted using a password derived from a hardcoded string plus the key fetched from Telegram or the web3 post, written to disk, and executed with the previously phished sudo credentials.

Telegram channel from which key and final stage URL are downloaded (Source :ReversingLabs).

Some package variants, such as carbon‑mac‑copy‑cloner and certain coinbase‑desktop‑sdk versions, add a separate decryptor component to extend the RAT’s stealing capabilities.

The resulting malware focuses on harvesting crypto wallets and other sensitive data, while maintaining remote access for command execution from a C2 server.

Linked to GhostClaw or a test run?

There are strong indicators that Ghost may be an early wave or parallel branch of the GhostClaw campaign documented by JFrog in March 2026, which used a malicious npm package, @openclaw‑ai/openclawai, to deliver a multi‑stage RAT with extensive credential and wallet theft functionality.

Web3 contract containing final stage URL and a key (Source :ReversingLabs).

While the infrastructure differs, both operations heavily abuse npm install‑time scripts and staged payloads, and they appear to share a similar final RAT family.

ReversingLabs notes that some Ghost packages contain obvious debug messages that would likely tip off victims, suggesting these releases could be development builds or an early “test run” of the broader campaign.

For now, defenders are advised to treat any npm package that asks for sudo during installation, displays unusual “optimization” prompts, or downloads external content post‑install as inherently suspicious, and to lean on automated supply chain security tooling to flag anomalous behavior before it reaches developer laptops.

Regardless of the lineage, the technique of using fake, highly realistic console output to phish sudo and conceal network‑delivered payloads is likely to be reused and refined in future npm‑based attacks.

package_nameversionSHA1
react-performance-suite2.0.0bdffc2f98ff422db9f9ddc190401cfcb686e3c32
react-performance-suite2.0.15928e3121f12f3c5d690bc7968b28b2f67835ef5
react-state-optimizer-core1.0.0cbe7c87293de7ab5853e2aef3f638d54c45f5c9f
react-state-optimizer-core1.0.21b4916fd65934f2f9efa7125335a85c104e1e17c
react-state-optimizer-core1.0.332d6b0b70ba825456471fab82119980de01e57d0
react-state-optimizer-core1.0.4a5d4a4dbf036e4d7a5453db191f6e4320f604446
react-state-optimizer-core1.0.5be10e30cf25d57385c31281219daf87dc7921da6
react-state-optimizer-core1.0.6874919fbd4e23da4f959447acf394a619cc23f72
react-state-optimizer-core1.0.77562690617de6eafe29c3f1d83c029ee73b9f50b
react-state-optimizer-core1.0.8b75fc27053819cd2e7f5cfe193a91844c199c285
react-state-optimizer-core1.0.9f9400843b42f0187e826e4c7a9786b0f09ab8992
react-state-optimizer-core3.0.3fe6ee1104c4b02be39819822ed959039ea313e67
react-state-optimizer-core3.0.4dc8ee405dd4402addae67ba6546f4f3781d7bdec
react-state-optimizer-core3.0.584aab614cf6ad92b5498398e914a8f22056722d8
react-state-optimizer-core3.0.6a1cff6b52b7bfc61d08360af364ff7a4b4b2c504
react-state-optimizer-core3.0.722ada4f5a95fd9b5edb76426b7dddb168145fda7
react-state-optimizer-core3.0.8729fbce89101f8f79a57189e89a7e63ee7d61388
react-state-optimizer-core3.0.9befa10ca40c2923390db04eb34391c32aa29e611
react-fast-utilsa2.0.1e6cfaef4b50d2a4ddd8453bf5a91e81a092d6e09
react-fast-utilsa2.0.256b78d2027cbf7b40dcbd10f17462cd029d13dda
react-fast-utilsa2.0.31d92c73a859096cf107d11c4acd089f7b4e61a5b
react-fast-utilsa2.0.46169a0bc69c94f3a5c13d899ac612d2fabe98611
ai-fast-auto-trader2.2.1963b79f59fb2c070a06b9a2af9db2b5512c1ed74
ai-fast-auto-trader2.2.21ac0d6fac272903eb83a885a40c6ce5b2656b6f3
ai-fast-auto-trader2.2.3d1a1f76cce48be58e5d72f31ba54e4e2372848ea
ai-fast-auto-trader2.2.4f579b2d0b65a3a3cb52be535a591bc8d0f1077b7
ai-fast-auto-trader2.2.5870636bcf3d2c0b9c4c12809a19af153ef154260
ai-fast-auto-trader2.2.6d22eb34facf13b5c1e820d9e6358eb4cd3797eaa
pkgnewfefame13.2.12a8c625660ad6bb7d7c953a147c84c0fcc75794b
carbon-mac-copy-cloner1.1.063783f6e59d20e2c664123b349f22dd53d1293d4
carbon-mac-copy-cloner1.1.160c88674128680b7e474607ba0fb8020c141ac71
carbon-mac-copy-cloner1.1.10b70a40b199d9a3cbbebfb0c1148b110acf3ec4eb
carbon-mac-copy-cloner1.1.259ca6306e77eb7f93528016dca14964968556310
carbon-mac-copy-cloner1.1.36c17eccf82c7d85a883dfa7feac0be835f827fe3
carbon-mac-copy-cloner1.1.4fb147ad540ae975228f8fe7d7fb557ff0670f69f
carbon-mac-copy-cloner1.1.5c486f9be10e6db40b8c30c8053dd44a6b2ac867e
carbon-mac-copy-cloner1.1.6e91baf3d270a21948833c50da1f0345d20ee1ec7
carbon-mac-copy-cloner1.1.743a361eec666edab60f0e95740cf9e51c06106bc
carbon-mac-copy-cloner1.1.8bc3c787cf2b768f0a021fc3ca4fde65658a3f9e5
carbon-mac-copy-cloner1.1.96d115186018b396ea62afce46d6616957bf3d7c0
carbon-mac-copy-cloner1.2.14439720f0722d3c92615114f1099471efd280feb
coinbase-desktop-sdk1.5.14cb9208d756dc4d4674801611d8d5f5ba79e76366
coinbase-desktop-sdk1.5.1534ba816adda6ab74d0f4bbb04fdb8ed49b1137bb
coinbase-desktop-sdk1.5.1646e034baab242c110355eba0937d9e505232e8dc
coinbase-desktop-sdk1.5.17c02624f8cefe790b6dee529c7a0e97f4241d79ed
coinbase-desktop-sdk1.5.19d5ade32ac52140e6c25f50780dc4ff4d466faddb

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Mayura Kathir

Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Recent Posts

Storm-2603 Hackers Exploit SharePoint and Abuse Cloudflare Tunnel to Hide Remote Access

A December intrusion to Storm-2603, the China-based group Microsoft ties to Warlock ransomware. The attackers…

42 seconds ago

OpenSSH sshole Flaw Allows Hackers to Log Into Password-Disabled Linux Accounts Using 257-Character Passwords

A decade-old authentication bypass in OpenSSH on musl-based Linux lets attackers log into accounts that…

4 minutes ago

New GhostMap Android Vulnerability Can Crash Phones Permanently Without Opening an App or Granting Permissions

Bitdefender researchers have revealed a vulnerability called GhostMap that affects Android devices. This vulnerability can…

13 minutes ago

Microsoft Paint Vulnerability Allows Hackers to Execute Malicious Code Remotely Without User Interaction

Microsoft has announced a vulnerability in Windows Paint that could let unauthenticated attackers execute malicious…

37 minutes ago

ARTEX AI Framework Linked to Bank Breaches and Cloud Attacks Found Exposed Across Hundreds of Servers

An autonomous penetration-testing framework linked to South Korean banking breaches and cloud supply-chain attacks is…

1 hour ago

Shopify Makes IP Allowlisting Mandatory for All Public Apps to Prevent Stolen API Token Abuse

Shopify is making IP allowlisting mandatory for all public apps to limit abuse of stolen…

1 hour ago