Malicious code in identity-poc (npm)
- GHSA-wgw6-fp43-67xp
Description
On require() or CLI invocation, a top-level IIFE in the package's main entry unconditionally runs `id`, `whoami`, and `ls -la`, reads `/etc/passwd`, and POSTs the collected report to a URL supplied as `process.argv[2]`. The payload emits an `IDENTITY_POC_EXECUTED` marker and carries a generic 'Controlled execution verification' description, matching the shape of a dependency-confusion / bug-bounty collaborator proof-of-concept that proves code execution on an installer's host and exfiltrates host identity and local file contents to an attacker-chosen destination. Because the exfiltration fires at load time, any environment that installs and loads this package name — whether as an intended dependency or via dependency-confusion resolution against an internal package of the same name — executes shell reconnaissance and leaks host data off-box. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/e8c5eecfd026451c510b814f0c80bb0e287e8a0b/osv/malicious/npm/identity-poc/MAL-2026-20303.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
identity-pocnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.