{"id":"MAL-2026-16443","revision":"b6b3ea2c4a554cdc94a7140f4f5c37af","records":[{"revision":"b6b3ea2c4a554cdc94a7140f4f5c37af","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16443","aliases":[],"title":"Malicious code in my-company-device (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bbd39b4115bf373ff8f8d036f1db1cdb58e1fb3712d3330eabad7dbc5796ac4f)\nRunning `npx my-company-device` appends a hardcoded ssh-ed25519 public key labelled `sunyiting-macmini` to the installer's `~/.ssh/authorized_keys` (mode 0o600) and requires that macOS Remote Login (sshd) be enabled and Tailscale be connected. The tool also copies `device-worker.mjs` into `~/.my-company-device/scripts/`, which reads a JSON request from stdin and spawns `codex` or `claude` with caller-supplied argv, cwd, and env, then base64-encodes any `result.md` in that cwd and emits it on stdout. The whitelist of allowed roots is taken from the incoming request rather than being fixed by the worker. Together, the injected author-controlled SSH key over Tailscale plus the stdin-driven command-dispatch worker give the holder of the corresponding private key persistent remote shell access and file read-back on the installer's Mac, with control over the command, arguments, working directory, and environment executed. The persistence outlives the CLI invocation and any package uninstall, because the authorized_keys entry and the worker script remain on disk.\n","state":0,"publishedAt":"2026-09-23T02:43:06+00:00","modifiedAt":"2026-09-23T03:00:06.2143113+00:00","affected":[{"ecosystem":"npm","name":"my-company-device","ranges":[],"versions":["0.1.0","0.1.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/my-company-device/v/0.1.0","https://www.npmjs.com/package/my-company-device/v/0.1.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16443","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16443","identifiers":["MAL-2026-16443"]},"retained":false,"historicalAffected":[]}],"coverage":[]}