Meet Corgea at Black Hat, BSides Las Vegas & DEF CON
CRITICAL npm Malware

Malicious code in strapi-plugin-debug-tools (npm)

MAL-2026-2459 · GHSA-g2g2-54v3-w4w2

Published · Modified

Description

strapi-plugin-debug-tools is a malicious npm package disguised as a Strapi CMS plugin. On install, it runs a postinstall script that executes an 11-phase attack: stealing .env files, environment variables, Strapi configuration, private keys, Redis data, Docker/Kubernetes secrets, and network topology. It then opens a polling C2 loop that accepts and executes arbitrary shell commands from a remote server.


__

Source: amazon-inspector (07176f30373393686e5a4576941b50c429da7ff135ae649aa0e41b3073c97618)

The package strapi-plugin-debug-tools was found to contain malicious code.

Source: ghsa-malware (9a07adc53677dff8a20480236b217ebf700178cc4dbac43e4940e4e84e1afb1b)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Ready to move

Start Securing

Free, no credit card | First findings in minutes