{"id":"MAL-2026-11525","revision":"bdedaebf4be244a29586dbd84b14d2a7","records":[{"revision":"bdedaebf4be244a29586dbd84b14d2a7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11525","aliases":[],"title":"Malicious code in nagix-node (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c8c77b8796f45d4e9888fe751dac62ad9f85334f29a64d8b0b2f50377611d6fc)\npackage.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.\n","state":0,"publishedAt":"2026-08-04T21:10:55+00:00","modifiedAt":"2026-08-04T22:05:08.354779+00:00","affected":[{"ecosystem":"npm","name":"nagix-node","ranges":[],"versions":["2.1.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/nagix-node/v/2.1.6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11525","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11525","identifiers":["MAL-2026-11525"]},"retained":false,"historicalAffected":[]}],"coverage":[]}