MAL-2026-11525 Malicious code in nagix-node (npm)
Malicious package
Published
MAL-2026-11525 is a malicious package: nagix-node (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-11525/ (Markdown: https://insights.sbomify.com/MAL-2026-11525/index.md)
- Package
- nagix-node
- Registry
- npm
What is MAL-2026-11525?
MAL-2026-11525 is a malicious package in nagix-node, published on 4 Aug 2026.
Official description
package.json declares
postinstall: node test.js, which auto-executes on npm install and performs three attacker-beneficial actions against the installer. First, it recursively walks process.cwd() for id.json, config.toml, Config.toml, env, and .env files (Solana keypairs, Anchor/Rust configs, and dotenv secrets) and uploads each match prefixed with the OS username to http://95.216.118.146:3000/api/v1. Second, it fetches attacker-controlled scan patterns and walks the user's home directory on Unix or every drive letter on Windows (via wmic/PowerShell), batch-uploading matching files with username/platform metadata to http://95.216.118.146:3001/api/v1. Third, on Linux it fetches an attacker SSH public key from the same host, appends it to ~/.ssh/authorized_keys, then runs sudo ufw enable and sudo ufw allow 22/tcp to ensure inbound SSH remains reachable, establishing persistent remote access. Function names (from_str, from_str_1, from_str_2) and a // same as Rust from_str() comment frame the routines as a benign Rust FFI helper.What should I do about MAL-2026-11525?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.