{"id":"MAL-2026-4356","summary":"Malicious code in testing-on-npmjs (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1575dee70b1f079b297d26405595aa16591e62de8fac896cf9ea485d6f534132)\nOn `npm install`, postinstall.js executes two attacker-controlled actions automatically. First, it collects installer-side identity (`whoami`, `id`, `os.hostname()`, `os.platform()`, current working directory) and CI-related environment variables (CI, GITHUB_REPOSITORY, NODE_ENV) and sends them via HTTPS GET to a Burp Collaborator OAST endpoint at `qzt3b82juki138pb8n4nwg5f0664uvik.oastify.com` (postinstall.js lines 11, 36-43). Second, it opens a TCP socket to the hardcoded address `10.10.10.247:4444` and pipes a `/bin/sh` (or `cmd.exe` on Windows) child process's stdio through the socket, granting an interactive remote shell to whoever controls that endpoint (postinstall.js lines 55-63). The package's own README (`Takeover By lobo`) and description (`Security research canary — vercel`) confirm the takeover/backdoor intent. Any environment running `npm install` on this package is fully compromised: identity leaked plus arbitrary remote code execution.\n\n## Source: ghsa-malware (9aa408e186e92d2311cc7a848056ad9ae5ac9451ef65f586b6f6e70b4c3836e0)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n\n## Source: ossf-package-analysis (cf253783e300490b93cbf122d395cd50576ce01b2d765f75533242bbe88cff27)\nThe OpenSSF Package Analysis project identified 'testing-on-npmjs' @ 2.0.6 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","aliases":["GHSA-4847-p5f9-4366"],"modified":"2026-05-27T13:46:42.933191009Z","published":"2026-05-26T03:39:48Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-05-26T03:39:48Z","import_time":"2026-05-26T04:53:35.944453244Z","sha256":"cf253783e300490b93cbf122d395cd50576ce01b2d765f75533242bbe88cff27","source":"ossf-package-analysis","versions":["2.0.6"]},{"source":"amazon-inspector","modified_time":"2026-05-26T06:15:27Z","import_time":"2026-05-26T06:26:13.876257677Z","sha256":"1575dee70b1f079b297d26405595aa16591e62de8fac896cf9ea485d6f534132","id":"IN-MAL-2026-004848","versions":["2.0.5"]},{"ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"id":"GHSA-4847-p5f9-4366","modified_time":"2026-05-27T13:25:15Z","import_time":"2026-05-27T13:34:11.916342439Z","sha256":"9aa408e186e92d2311cc7a848056ad9ae5ac9451ef65f586b6f6e70b4c3836e0","source":"ghsa-malware"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/testing-on-npmjs/v/2.0.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4847-p5f9-4366"}],"affected":[{"package":{"name":"testing-on-npmjs","ecosystem":"npm","purl":"pkg:npm/testing-on-npmjs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.0.6","2.0.5"],"database_specific":{"indicators":{"package_integrity":[{"filename":"testing-on-npmjs-2.0.5.tgz","hashes":{"sha512_sri":"sha512-4MAJjHpUqjYWaYEU2lyysgJTVb7gouD7fIuhnYcmAnl0vSn0vRTErZ+kjZeEc4Ixq6RUCt7BdKpFRZv/eWlSSA==","sha1":"1de6de3b72868f6e118b40133ffbf8468da7e11c"}}],"evidence_files":[{"path":"postinstall.js","sha256":"aa1ea02e111ee1bbfe1b16064efbdb0b885fc12911b6049ad3da6011fe272bc5","tlsh":"544131843bb9967143a75ed1c74b90573227d012334af6d4799f838c4f92be403a69ea"},{"path":"readme.md","sha256":"e12d7af1955736b0d27ef81e86e84e5f073178be623f2964de6f931d39042218","tlsh":"ac700028200c028200a003088a00b0020a800008b023200ae308800300080082000200"}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/testing-on-npmjs/MAL-2026-4356.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}