A supply-chain attack linked to the GHAPPIER malware campaign compromised the legitimate npm package @dforge-core/dforge-mcp and briefly distributed a self-deleting backdoor.
The incident began on September 9, 2026, when an attacker used the maintainer account of the package for about 105 minutes.
The attacker already had permission to push code to the repository’s main branch when the intrusion started. The exact method used to obtain this access remains unknown.
Researchers believe the most likely scenario is that a developer device was infected by a malicious browser extension or npm package.
Such malware may have stolen cached Git credentials, allowing attackers to use the maintainer’s identity across unrelated GitHub repositories.
During the short access window, the threat actor added a remote code loader to the project. They also changed three lines of code so every push to the main branch launched the release workflow.
GHAPPIER Hijacks GitHub Repositories
Fourteen minutes later, the attacker modified the workflow again to enable unattended publishing. The malicious package was released as version 0.2.21 and remained the latest npm version for 35 minutes and 38 seconds.
The maintainer later reverted the changes and published a clean version, 0.2.22. However, researchers warned that simply withdrawing the malicious release may not fully protect users who installed version 0.2.21.
The malicious npm release included valid provenance records. It was built through GitHub Actions using OpenID Connect trusted publishing, and its build attestation remains recorded in Sigstore’s append-only transparency log.
The attestation identifies the attacker’s commit, meaning the security mechanism did not fail or get forged. Instead, it accurately recorded that a release was built from malicious source code.
This case shows an important limitation of software provenance. Provenance can confirm where and how an artifact was built, but it cannot determine whether the code committed to a trusted repository is safe.
Because the package used trusted publishing, the attacker did not need an npm token. GitHub repository push access effectively became package publishing access through the repository’s CI identity.
The malicious code was reportedly hidden in a single line near the end of a 99 KB file. That line launched a four-stage infection chain. Its final implant deletes itself from disk immediately after execution, making traditional file-based investigation difficult.
An organization may execute the compromised release, search systems for the malicious implant, find nothing, and wrongly conclude it was not affected.
Researchers also found a second payload family in another victim repository that may connect the activity to the PolinRider campaign, which has been associated with DPRK-linked activity.
The campaign reportedly appends malicious payloads to legitimate configuration files rather than replacing entire files. The malware does not rely on a normal command-and-control domain or server, cloudsek said.
Instead, it retrieves command-and-control information from the Ethereum blockchain. The attacker can place configuration data inside the recipient address of an empty blockchain transaction, creating a resilient communication channel that is difficult to disrupt.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team