{"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: amazon-inspector (77924563588b4aeba163c4db7dee8a7d7434c26acf70373ee207564c8bcfd731)\nThe package runs a postinstall script that issues an HTTPS GET to the hardcoded host https://claim-test.ngrok.app/hello-world on every npm install (https.get(\"https://claim-test.ngrok.app/hello-world\", () =\u003e {}).on(\"error\", () =\u003e {})). The destination is an ngrok tunnel unrelated to any legitimate Singpass/MyInfo publisher and is not configurable. The package name resembles @govtechsg/singpass-myinfo-oidc-helper, and the shipped contents provide no library functionality, acting as a typosquat lure. The beacon confirms installation on the installer's machine to the operator of the ngrok endpoint, exposing the installer's IP and request metadata and enabling attack-surface mapping of hosts that pulled the lookalike name.\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-19T07:15:07.712745081Z","published":"2026-11-17T07:42:52Z","database_specific":{"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"},{"versions":["0.0.2"],"id":"IN-MAL-2026-022853","import_time":"2026-11-19T07:12:41.511977852Z","modified_time":"2026-11-19T06:51:51Z","sha256":"77924563588b4aeba163c4db7dee8a7d7434c26acf70373ee207564c8bcfd731","source":"amazon-inspector"}],"iocs":{"urls":["https://claim-test.ngrok.app/hello-world"],"domains":["claim-test.ngrok.app"],"files":[{"source":"PACKAGE_ARCHIVE","digests":{"sha256":"d83594b14decfb9efbe6c3c220a4a622301b40223b90884c6528edeac333c324"},"note":"postinstall: HTTPS GET to the ngrok tunnel; response never consumed","paths":["postinstall.js"]}]}},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/singpass-myinfo-oidc-helper/v/0.0.2"}],"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":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/singpass-myinfo-oidc-helper/MAL-2026-20062.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"sha256":"d83594b14decfb9efbe6c3c220a4a622301b40223b90884c6528edeac333c324","tlsh":"c6b09bf123c4d22c452065dc6003fc8dd177941413d9169367441171ada51bf9cd55c4","path":"postinstall.js"}],"package_integrity":[{"hashes":{"sha1":"73de273b21c5d43cfd8bcfc99b74c470b257632c","sha512_sri":"sha512-Js+/ukKO/vtqk45QclWXldjn6NFryjb4q0Wky7dehxEVgb828pZ0gHXEntZhAkUV76N/5j3+V9W2P2T483YoOw=="},"filename":"singpass-myinfo-oidc-helper-0.0.2.tgz"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"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"}]}