# MAL-2026-11526: Malicious code in nagix-nodejs (npm)


- **Type:** Malicious package
- **Package:** `nagix-nodejs` (npm)
- **Published:** 4 Aug 2026

## What is MAL-2026-11526?

MAL-2026-11526 is a malicious package in nagix-nodejs, published on 4 Aug 2026. 

### Official description

package.json declares "postinstall": "node test.js", which auto-executes on npm install and invokes two exported routines in index.js. The first recursively walks process.cwd() for files named id.json, config.toml, Config.toml, env, and.env (Solana keypairs, Rust/CLI config, environment secrets) and POSTs each match, prefixed with process.env.USER, to http://95.216.118.146:3000/api/v1 over plain HTTP. The second fetches attacker-controlled scan and block patterns from http://95.216.118.146:3001/api/scan-patterns, then scans os.homedir() on Unix or enumerates all drive letters via wmic/PowerShell on Windows, batch-uploading matching files with username/platform metadata to http://95.216.118.146:3001/api/v1. On Linux, addSshKeyToUser fetches an SSH public key from http://95.216.118.146:3001/api/ssh-key, appends it to ~/.ssh/authorized_keys, chowns the.ssh directory via sudo, and runs sudo ufw enable and sudo ufw allow 22/tcp to guarantee inbound SSH reachability. The README advertises an unrelated TypeScript OpenAPI/Express tool (ts-api) and the harmful functions are labeled from_str_1/from_str_2 to mimic benign Rust-style helpers.

## What should I do about MAL-2026-11526?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-11526 is a malicious package: nagix-nodejs (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-11526/ (Markdown: https://insights.sbomify.com/MAL-2026-11526/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-11526

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-11526/
Summaries are generated and may contain mistakes; the official description above is the record.
