Listen to this Post
Introduction: When Trusted Code Becomes the Attack Surface
The modern software world depends heavily on open-source ecosystems. Millions of developers install packages every day from repositories such as npm, trusting that a simple command like npm install will bring safe and reliable code into their applications. But this trust has become one of the biggest targets for cybercriminals.
In a serious supply chain attack discovered on July 28, 2026, attackers compromised legitimate Joyfill npm packages by publishing malicious beta releases containing an advanced remote access trojan (RAT) and credential-stealing malware. The attack did not rely on traditional phishing or malicious downloads. Instead, it hid inside packages that appeared to belong to a trusted developer ecosystem.
The incident highlights a growing cybersecurity reality: attackers are no longer only targeting applications themselves. They are targeting the software supply chain, developer machines, CI/CD environments, and the tools engineers use every day.
The affected packages were:
@joyfill/components
@joyfill/layouts
The malicious releases contained hidden code that executed when applications imported the packages. Unlike many npm attacks that depend on installation scripts, this campaign bypassed common defensive practices because execution happened during normal package usage.
The Joyfill npm Attack: A Trusted Package Becomes a Malware Delivery System
Security researchers discovered that malicious versions of Joyfill packages were published with an embedded credential-stealing remote access trojan. The attackers injected malware directly into the published npm package archives rather than modifying the visible source repositories.
This difference is extremely important.
Many developers review GitHub repositories before trusting software. However, attackers abused the gap between source code and published package artifacts. The repository may look clean while the package downloaded from npm contains completely different malicious content.
The affected versions include:
@joyfill/[email protected]
@joyfill/[email protected]
@joyfill/[email protected]
@joyfill/[email protected]
@joyfill/[email protected]
@joyfill/[email protected]
Any developer, organization, or build system that imported these versions should consider the environment potentially compromised.
Why This Attack Is More Dangerous Than a Normal npm Infection
Traditional npm malware campaigns often depend on lifecycle scripts such as postinstall or preinstall. Security teams frequently recommend using:
npm install --ignore-scripts
as a protection method.
However, this attack bypasses that defense.
The malicious code activates when the affected package is imported by an application. This means the malware behaves like legitimate application code, running inside the Node.js process.
A developer could install dependencies safely, review installation logs, and still become infected later when running the project.
This changes the threat model completely.
The danger is no longer:
Did I install a suspicious package?
The danger becomes:
“Did my application execute compromised code from a trusted dependency?”
Hidden Payload Inside JavaScript Bundles
The attackers concealed the malware inside compiled JavaScript bundle files.
The malicious payload was heavily obfuscated, making manual analysis difficult. Researchers discovered identical suspicious code patterns across both Joyfill packages, suggesting that the same attacker-controlled implant was inserted into multiple releases.
One of the techniques used by the malware involved exposing Node.js internal functions through global variables.
Instead of directly writing obvious code such as:
require("fs")
the malware dynamically recovered access to sensitive system modules.
This approach helps attackers avoid detection because security scanners often search for recognizable malicious strings.
Blockchain-Based Command and Control: A New Generation of Malware Infrastructure
One of the most advanced parts of this campaign was the use of public blockchain networks as a command-and-control discovery mechanism.
The malware contacted blockchain services connected to:
Tron
BNB Smart Chain
Aptos
It extracted encrypted information hidden inside blockchain transaction data.
After decrypting this information in memory, the malware discovered the real attacker-controlled infrastructure.
This technique provides attackers with several advantages:
C2 addresses can be changed without publishing a new npm package.
Traditional domain blocking becomes less effective.
Blockchain records provide a decentralized communication channel.
Security researchers have a harder time taking down infrastructure.
This reflects a broader malware trend where attackers increasingly use legitimate public services as hidden communication layers.
Remote Access Trojan Capabilities: Turning Developers Into Targets
After establishing communication with attacker infrastructure, the malware creates a Socket.IO-based remote access channel.
The reported command infrastructure includes:
166.88.134.62
The RAT provides attackers with extensive control over infected systems.
Capabilities include:
System profiling
Directory enumeration
File upload and download
Clipboard theft
Remote JavaScript execution
Additional malware deployment
The malware can also install missing dependencies automatically, including:
axios socket.io-client
Unexpected runtime package installation from Node.js processes should be considered a serious warning sign.
Worm-Like Persistence: The Malware Attacks Developer Tools
The most concerning feature of this campaign is its ability to spread beyond the original npm package.
Researchers found that the malware could modify developer environments and inject loaders into popular tools.
Potential targets include:
Visual Studio Code components
Cursor editor modules
Discord
GitHub Desktop
Global npm CLI installations
The modification of:
npm/lib/cli.js
is particularly dangerous.
Because npm is a core development tool, compromising this file means every future npm command could potentially trigger malicious activity.
This creates a worm-like infection model where one compromised developer machine can become a distribution point inside an organization.
Credential Stealer: The Real Objective Behind the Attack
The RAT appears to be only the first stage.
The final payload is a Python-based credential theft system designed specifically for developer environments.
The malware targets valuable information including:
Browser passwords
Browser extension wallet data
Password manager credentials
Git credentials
GitHub CLI tokens
npm authentication tokens
Operating system keychain secrets
Cryptocurrency wallet keys
Developers are attractive targets because one compromised workstation may provide access to:
Source code repositories
Cloud infrastructure
Private packages
Deployment systems
Production environments
A single stolen GitHub token can sometimes provide more value than attacking an entire company network.
Data Collection and Exfiltration Process
The stolen information is temporarily stored before transmission.
Windows systems:
%USERPROFILE%.npm
Linux and macOS systems:
/tmp/.npm
The malware encrypts collected information and sends it to attacker-controlled infrastructure.
Security teams should investigate these locations immediately on systems where affected packages were installed.
Deep Analysis: Investigating and Detecting the Joyfill npm Malware
Searching for Compromised Dependencies
Organizations should scan dependency files:
grep -rEn 'joyfill.2773' package-lock.json yarn.lock pnpm-lock.yaml
This command searches project dependency records for suspicious Joyfill versions.
Checking Installed npm Packages
Developers should review installed package versions:
npm list @joyfill/components npm list @joyfill/layouts
Unexpected beta versions containing:
2773
should be treated as suspicious.
Searching Developer Machines for Persistence Indicators
Security teams should inspect npm and Electron-related directories.
Look for suspicious markers:
C250617A
C260512A
RS260605
Potential locations:
~/.npm /usr/local/lib/node_modules
Windows:
%APPDATA% pm %USERPROFILE%.npm
Rebuilding From Clean Sources
If a machine imported affected packages:
rm -rf node_modules rm package-lock.json npm cache clean --force npm install
However, rebuilding should only happen after confirming the developer machine itself is clean.
Monitoring Suspicious Runtime Behavior
Security monitoring should detect:
node -e
processes running unexpectedly.
Additional indicators:
Node.js contacting blockchain APIs
Unexpected HTTP Socket.IO traffic
Runtime npm dependency installation
Modified npm CLI files
Unknown Python processes launched from developer directories
What Undercode Say:
The Joyfill npm incident represents a major evolution in software supply chain attacks.
Attackers are no longer interested only in stealing random user information.
They are targeting developers because developers hold the keys to modern digital infrastructure.
A developer workstation is often connected to GitHub, cloud platforms, package registries, and internal systems.
Compromising one engineer can become a shortcut into an entire organization.
The attack demonstrates why package reputation alone is no longer enough.
A trusted name on npm does not guarantee a trusted artifact.
The gap between source repositories and published packages has become a dangerous security weakness.
Organizations need stronger verification systems that compare source code with released binaries and package archives.
The use of blockchain-based C2 infrastructure shows how attackers are becoming more creative.
Cybercriminals are abusing legitimate technologies because defenders cannot simply block everything.
Blocking blockchain services, public APIs, or common development tools can damage business operations.
Future security systems must focus more on behavior rather than only known indicators.
The
npm is not just another application.
It is the foundation of JavaScript development worldwide.
A compromised package manager can create long-term persistence across thousands of projects.
The attack also proves that developers have become high-value targets.
Credentials stored inside browsers, Git tools, password managers, and cloud environments represent enormous value.
Security teams should treat developer endpoints with the same priority as production servers.
Traditional endpoint protection is often insufficient against supply chain threats.
Organizations need dependency monitoring, software composition analysis, package signing, and runtime detection.
The future of cybersecurity will depend on verifying every stage of software creation.
From source code to package publication.
From developer machine to production deployment.
Every step must become part of the security chain.
Open-source ecosystems remain essential, but trust must be supported by technology.
The Joyfill campaign is another reminder that convenience without verification creates opportunities for attackers.
✅ Confirmed: Malicious Joyfill npm packages were published with credential-stealing capabilities.
Researchers identified multiple compromised beta releases containing hidden malware components.
✅ Confirmed: The malware executes during package import rather than relying only on npm installation scripts.
This makes defenses like npm install –ignore-scripts ineffective against this specific attack method.
✅ Confirmed: The malware uses advanced techniques including blockchain-based C2 discovery and RAT functionality.
The campaign demonstrates modern supply chain attackers are adopting increasingly sophisticated infrastructure.
Prediction
(+1) Developer security will become a primary cybersecurity investment area as software supply chain attacks continue increasing.
Companies will likely adopt stricter package verification systems, signed dependencies, isolated development environments, and AI-powered security monitoring.
Future npm ecosystems may introduce stronger artifact validation to ensure published packages exactly match reviewed source code.
Organizations that improve developer endpoint protection early will reduce the impact of future supply chain attacks.
(-1) Attackers will continue targeting open-source ecosystems because they provide access to thousands of companies through a single compromised package.
More malware campaigns may attempt to poison popular libraries, developer tools, and package managers.
Without stronger trust mechanisms, software supply chains will remain one of the most attractive targets for cybercriminal groups.
▶️ Related Video (80% Match):
🕵️📝Let’s dive deep and fact‑check.
🎓 Live Courses & Certifications:
Join Undercode Academy for Verified Certifications
🚀 Request a Custom Project:
Secure, high-velocity infrastructure and disruptive technological engineering. Contact our engineering team for high-tier development and proprietary systems:
[email protected]
💎 Smart Architecture | 🛡️ Secure by Design | ⭐ Trusted by Thousands
References:
Reported By: cyberpress.org
Extra Source Hub (Possible Sources for article):
https://www.twitter.com
Wikipedia
OpenAi & Undercode AI
Image Source:
Unsplash
Undercode AI DI v2
🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]
📢 Follow UndercodeNews & Stay Tuned:
𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube




