Joyfill npm Supply-Chain Attack Deploys RAT and Credential Stealer

Malicious 'joyfill-fe-bel' npm Package Deploys RAT, Steals Credentials

HIGH
July 29, 2026
5m read
Supply Chain AttackMalwareThreat Intelligence

Related Entities

Organizations

Products & Tech

Full Report

Executive Summary

A sophisticated software supply chain attack has been identified within the npm ecosystem, targeting developers using the Joyfill digital form-building platform. Security researchers at Sonatype discovered a malicious package named joyfill-fe-bel on July 29, 2026. This package is a typosquat, designed to be mistaken for a legitimate Joyfill component. When installed, it executes a malicious postinstall script that initiates a multi-stage infection chain. The final payload deploys a Remote Access Trojan (RAT), giving attackers persistent control over the compromised developer's machine, and a potent credential stealer that actively hunts for and exfiltrates sensitive developer secrets.


Threat Overview

  • Attack Type: Software Supply Chain Attack, Typosquatting
  • Vector: Malicious npm package
  • Malicious Package Name: joyfill-fe-bel
  • Payload: Multi-stage infection leading to a RAT and a credential stealer.

This attack leverages the trust developers place in open-source package registries. By creating a package with a name very similar to a legitimate one, attackers trick developers or automated build systems into downloading and executing malicious code. The use of a postinstall script is a common technique to ensure the malicious code runs automatically upon installation.


Technical Analysis

The infection chain proceeds in multiple stages:

  1. Installation (Initial Access): A developer, intending to use a Joyfill component, mistakenly installs the joyfill-fe-bel package via the command npm install joyfill-fe-bel. This is a classic example of T1192 - Spearphishing Link adapted for package managers.
  2. Execution (T1059.007 - JavaScript): Upon installation, npm automatically executes the postinstall script defined in the package's package.json file. This script contains obfuscated JavaScript code.
  3. Staging (T1105 - Ingress Tool Transfer): The obfuscated script makes an HTTP request to a remote, attacker-controlled server to download the second-stage payload. This technique helps evade static analysis of the initial package.
  4. Payload Deployment: The second-stage payload executes a series of actions to install the final malware components:
    • Remote Access Trojan (RAT): This establishes a persistent C2 channel, allowing the attacker to execute commands, transfer files, and monitor the developer's machine.
    • Credential Stealer: This component actively scans the file system and environment variables for valuable developer secrets.
  5. Collection & Exfiltration (T1552 - Unsecured Credentials): The stealer is designed to find and exfiltrate:
    • API keys and access tokens for cloud services (AWS, Azure, GCP).
    • Cryptocurrency wallet files (e.g., wallet.dat).
    • Credentials stored in local SSH configurations (e.g., private keys in ~/.ssh).
    • Secrets stored in shell history or environment variables (.bash_history, .zsh_history).

Impact Assessment

Compromising a developer machine is a high-impact event that can lead to catastrophic consequences:

  • Wider Supply Chain Compromise: The attacker can use the developer's credentials to inject malicious code into the legitimate source code repositories they have access to, leading to a much broader supply chain attack.
  • Cloud Infrastructure Compromise: Stolen cloud API keys can be used to take over an organization's cloud infrastructure, leading to massive data breaches or financial loss through resource abuse (e.g., cryptomining).
  • Financial Theft: Direct theft of cryptocurrency wallets or using stolen credentials to access financial systems.
  • Intellectual Property Theft: The RAT provides a gateway for the attacker to steal proprietary source code and other sensitive intellectual property.

IOCs — Directly from Articles

  • Malicious Package Name: joyfill-fe-bel

No other specific Indicators of Compromise were provided in the source articles.


Cyber Observables — Hunting Hints

To detect similar supply chain attacks, security teams should hunt for:

  • Suspicious postinstall Scripts: Audit package.json files for postinstall scripts that contain obfuscated code or make network connections to unknown domains.
  • Network Connections During Build: Monitor network traffic from developer workstations and CI/CD build servers during npm install or build processes. Outbound connections to unusual or non-whitelisted domains are a major red flag.
  • Process Tree Anomalies: Look for build processes (like npm) spawning unexpected child processes, such as curl, wget, or shell scripts.

Detection & Response

  1. Software Composition Analysis (SCA): Use SCA tools that can detect typosquatting, malicious packages, and suspicious metadata (like postinstall scripts) in your dependencies.
  2. CI/CD Security: Harden your CI/CD pipeline. Run builds in isolated, ephemeral environments. Scan all dependencies before they are used. Monitor network activity during builds.
  3. Developer Endpoint Security: Use EDR on developer machines to detect anomalous process behavior and outbound network connections originating from development tools.

Mitigation

  1. Dependency Verification: Before adding a new dependency, verify its name and authenticity. Check its download statistics, version history, and community feedback on npm. Use tools like npm-audit to check for known vulnerabilities. This aligns with M1039 - Environment Variable Permissions in a broader sense of configuration hardening.
  2. Use Scoped Packages: Whenever possible, use scoped packages (e.g., @joyfill/some-package instead of joyfill-some-package). Scoped packages are less susceptible to typosquatting.
  3. Disable postinstall Scripts: For untrusted packages, you can disable the execution of postinstall scripts by using the --ignore-scripts flag during installation (npm install --ignore-scripts).
  4. Principle of Least Privilege: Developers should not work from highly privileged accounts. Use separate, unprivileged accounts for daily development work to limit the impact of a compromise.

Timeline of Events

1
July 29, 2026
Security researchers at Sonatype discover and report the malicious 'joyfill-fe-bel' npm package.
2
July 29, 2026
This article was published

MITRE ATT&CK Mitigations

Use private registries and vetted dependencies to limit exposure to malicious public packages.

Run build processes in isolated, ephemeral containers to limit the impact of a compromised dependency.

Audit

M1047enterprise

Use Software Composition Analysis (SCA) tools to audit dependencies for malicious indicators.

Disable automatic execution of install scripts for untrusted packages using flags like '--ignore-scripts'.

Timeline of Events

1
July 29, 2026

Security researchers at Sonatype discover and report the malicious 'joyfill-fe-bel' npm package.

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

npmSupply Chain AttackTyposquattingMalwareRATCredential StealerJoyfill

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.