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