{"id":"MAL-2026-13484","revision":"a2616a7c431e4e329a5bef4e33c7a414","records":[{"revision":"a2616a7c431e4e329a5bef4e33c7a414","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13484","aliases":[],"title":"Malicious code in merge-grid-stats (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (65aa3700b74bc0d50e4a4ee4fb3b903af0ac2ebea5867a3d1ffd0876647ec2a1)\nPackage advertises itself as a 2048-style grid game statistics utility, but its declared postinstall hook (`node install-cb.js`) executes on `npm install` and performs behavior unrelated to that purpose. The postinstall shells out via execSync to run `uname -a` and `id`, reads `/proc/1/cgroup` and `/proc/mounts`, inspects Linux capabilities, checks for `/var/run/docker.sock`, and reads the Kubernetes service-account token and namespace at `/var/run/secrets/kubernetes.io/serviceaccount/`. It also enumerates `/`, `/root`, `/root/projects`, performs a host write-test, inspects network configuration, and greps the process environment for variables matching `token|secret|key|password|db_|redis|s3` and related patterns. The collected data (including the k8s SA token length and env keys) is written to `NCODE_ESCAPE.txt` in the current working directory and two parent directories. Author metadata is placeholder-shaped (`merge-tools <merge-tools@example.com>`) and the README/behavior mismatch indicates a cover-story shape. The install-time read of an installer-owned Kubernetes service-account token plus environment secret enumeration constitutes installer-side credential access and container-escape reconnaissance staging.\n","state":0,"publishedAt":"2026-08-06T23:57:08+00:00","modifiedAt":"2026-08-07T01:19:50.1071395+00:00","affected":[{"ecosystem":"npm","name":"merge-grid-stats","ranges":[],"versions":["1.2.0","1.3.0","1.4.0","1.5.0","1.1.0","1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/merge-grid-stats/v/1.2.0","https://www.npmjs.com/package/merge-grid-stats/v/1.3.0","https://www.npmjs.com/package/merge-grid-stats/v/1.4.0","https://www.npmjs.com/package/merge-grid-stats/v/1.5.0","https://www.npmjs.com/package/merge-grid-stats/v/1.1.0","https://www.npmjs.com/package/merge-grid-stats/v/1.0.1","https://www.npmjs.com/package/merge-grid-stats/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13484","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13484","identifiers":["MAL-2026-13484"]},"retained":false,"historicalAffected":[]}],"coverage":[]}