The first week of April 2026 marked a significant escalation in supply chain tactics. A coordinated campaign involving 36 malicious npm packages, disguised as Strapi CMS plugins, was uncovered by security researchers.
This was not a broad, opportunistic "grab" for credentials. Forensic evidence, including hardcoded credentials and internal hostname checks, reveals a surgical strike against the cryptocurrency platform Guardarian. By weaponizing a trusted development workflow, attackers achieved a total compromise. Moving from initial execution to database theft and long-term persistence in minutes.
The campaign bypassed traditional runtime security by embedding malicious code in the of the package.json file. According to official npm documentation, these lifecycle scripts execute automatically upon installation.
In a modern CI/CD pipeline or a developer’s local environment, this creates a zero-click infection vector. Because many build servers run with elevated or container-root privileges, the malware immediately inherits the ability to probe the underlying Linux host without further user interaction.
Once the postinstall hook fires, the malware doesn't just sit there—it immediately goes to work on the underlying Linux infrastructure. The most aggressive tactic identified by researchers was the weaponization of locally accessible Redis instances.
With a foothold established, the malware shifts from exploitation to a full-scale reconnaissance mission. It doesn't just look for local files; it looks for the keys to the entire cloud kingdom.
The payloads perform a comprehensive sweep of the environment, systematically harvesting secrets from CI/CD logs and configuration files. This includes a total "environment dump" where the malware captures every active variable in process.env—snagging everything from AWS session tokens to internal JWT secrets. Beyond the host, the script maps out the local network, probing for Docker sockets and Kubernetes API endpoints, searching for a way to pivot from a single compromised container to the broader production cluster.
As the attack progressed, it shifted from exploitation to reconnaissance. The malware collected environment variables, configuration data, and credentials from the host system.
It accessed .env files and application configs, extracted API keys and JWT secrets, and searched for cloud and container credentials, including Kubernetes service account tokens.
The payload also gathered basic network information and checked for access to Docker sockets and internal services, which could be used to move further inside the environment.
The smoking gun for this being a targeted operation lies in the hostname check. One payload variant remained dormant unless the host identified itself as prod-strapi.
Furthermore, the malware included hardcoded PostgreSQL credentials to target databases named guardarian, guardarian_payments, exchange, and custody. This level of specificity strongly indicates that the attackers had prior knowledge of the target's internal infrastructure and used this npm campaign as a persistent "backdoor" into the company's financial core.
To ensure long-term access, the attackers utilized sophisticated persistence mechanisms that avoid standard filesystem detection:
This incident is part of a 2026 surge in "high-velocity" supply chain hits, arriving just days after the Axios maintainer account was hijacked to push malicious Remote Access Trojans.
Industry reports confirm that the npm ecosystem is now a primary vector for targeting CI/CD pipelines. When pipelines blindly execute unverified code during the build phase, the "trusted" dependency graph becomes a Trojan horse for the entire production environment. Sonatype’s latest research suggests these attacks have increased by over 200% year-over-year.
Organizations using Strapi or Node-based workflows should follow these recovery protocols immediately: