{"id":"MAL-2026-20062","summary":"Malicious code in singpass-myinfo-oidc-helper (npm)","details":"singpass-myinfo-oidc-helper is a name-squatting package: it takes the unscoped form of the official Singpass/Myinfo SDK `@govtechsg/singpass-myinfo-oidc-helper` (Singapore's national digital identity), so a project that installs the name without its scope, or a build that resolves the unscoped name from the public registry, receives this package instead. Versions 0.0.1 and 0.0.2, published on 2026-11-17, declare a `postinstall` script that runs `node postinstall.js`, which sends an HTTPS GET to `https://claim-test.ngrok.app/hello-world`, an ngrok tunnel controlled by a third party. The request carries no payload, but it confirms the install to that party and discloses the installing machine's public IP address and the time of the install. The script never consumes the response, so the install can hang until the remote side closes the connection. `index.js` only prints a notice; the package describes itself as a \"Security research placeholder\". The `0.0.0-stage` placeholder carries no install script and is not affected. Remove the package, depend on `@govtechsg/singpass-myinfo-oidc-helper` instead, and block `claim-test.ngrok.app` on build hosts.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ossf-package-analysis (d0a839ddd03981e959cb78edfa6cc961928633acb6277373d18b37ccb9443675)\nThe OpenSSF Package Analysis project identified 'singpass-myinfo-oidc-helper' @ 0.0.2 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","modified":"2026-11-18T03:15:04.636738062Z","published":"2026-11-17T07:42:52Z","database_specific":{"iocs":{"files":[{"digests":{"sha256":"d83594b14decfb9efbe6c3c220a4a622301b40223b90884c6528edeac333c324"},"note":"postinstall: HTTPS GET to the ngrok tunnel; response never consumed","paths":["postinstall.js"],"source":"PACKAGE_ARCHIVE"}],"urls":["https://claim-test.ngrok.app/hello-world"],"domains":["claim-test.ngrok.app"]},"malicious-packages-origins":[{"modified_time":"2026-11-17T10:18:34Z","sha256":"d0a839ddd03981e959cb78edfa6cc961928633acb6277373d18b37ccb9443675","source":"ossf-package-analysis","versions":["0.0.2"],"import_time":"2026-11-17T10:36:47.834789029Z"}]},"affected":[{"package":{"name":"singpass-myinfo-oidc-helper","ecosystem":"npm","purl":"pkg:npm/singpass-myinfo-oidc-helper"},"versions":["0.0.2","0.0.1"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/singpass-myinfo-oidc-helper/MAL-2026-20062.json"}}],"schema_version":"1.9.2","credits":[{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"},{"name":"Robin Frehner, Protet","contact":["https://protet.io","mailto:hello@protet.io"],"type":"FINDER"}]}