{"id":"MAL-2026-10995","revision":"dde82a7ca56a44b48a3a9efb1e797374","records":[{"revision":"dde82a7ca56a44b48a3a9efb1e797374","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10995","aliases":[],"title":"Malicious code in habingeer (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (716d1a3d9969396f8ca204c03d403552bb4a990c1bfdb4a2ab05dff5afb93748)\npackage.json declares `postinstall: node test.js`, which auto-runs on `npm install` and invokes two functions from index.js. The first recursively walks the install directory for `id.json` (Solana keypair), `config.toml`/`Config.toml`, `env`, and `.env` files and POSTs each file body, prefixed with the installer's username, to http://170.205.31.203:3000/api/v1. The second fetches an SSH public key from http://170.205.31.203:3001/api/ssh-key and, on Linux, appends it to `~/.ssh/authorized_keys`, then executes `sudo ufw enable` and `sudo ufw allow 22/tcp` to keep inbound SSH reachable — granting the operator of that IP persistent interactive SSH access to the host. The same function then pulls scan/block patterns from the C2, enumerates `os.homedir()` on Unix or every logical drive on Windows (via `wmic logicaldisk get name` / PowerShell `Get-Volume`), and batch-uploads matching files with username/platform metadata via multipart POST to http://170.205.31.203:3001/api/v1. All three behaviors fire on install with no user interaction.\n","state":0,"publishedAt":"2026-07-22T20:27:26+00:00","modifiedAt":"2026-07-23T07:51:35.0995714+00:00","affected":[{"ecosystem":"npm","name":"habingeer","ranges":[],"versions":["2.1.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/habingeer/v/2.1.6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10995","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10995","identifiers":["MAL-2026-10995"]},"retained":false,"historicalAffected":[]}],"coverage":[]}