GHSA-2hrq-h3vj-5wxm
Malicious code in identity-two-factor (npm)
Impact
identity-two-factor@999.0.0 is a dependency-confusion package aimed at Coinbase (its README and postinstall.js say so, and the beacon path is `cbhq-canary`) with no functional code. Its postinstall script runs `node postinstall.js` on npm install, which writes a marker file to the temp directory and POSTs the hostname, username, working-directory name, CI flag and Node version to `https://webhook.site/e0981a8e-081e-49a0-8b4a-235109e13045/cbhq-canary`. It was published by the npm account hologrammmm0x, which has no other packages. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/3397e9bf09b996a6453a361d63d8e45b381642df/osv/malicious/npm/identity-two-factor/MAL-2026-18367.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | identity-two-factor | = 999.0.0 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-2hrq-h3vj-5wxm
- https://github.com/ossf/malicious-packages/blob/3397e9bf09b996a6453a361d63d8e45b381642df/osv/malicious/npm/identity-two-factor/MAL-2026-18367.json
- https://www.npmjs.com/package/identity-two-factor
- https://github.com/ossf/malicious-packages/blob/cc8ee308c3a331b6848b53a312a11cd5dc39dd54/osv/malicious/npm/identity-two-factor/MAL-2026-18367.json
- https://www.npmjs.com/package/identity-two-factor/v/999.0.0