{"id":"MAL-2026-20303","summary":"Malicious code in identity-poc (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fa4ad4604b2f07da32d5dd7355090d0941d2b03799c5ccd4e6040d2638b5b63c)\nOn 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.\n","modified":"2026-11-20T19:15:08.838744063Z","published":"2026-11-20T18:56:11Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022953","import_time":"2026-11-20T19:10:12.035489985Z","modified_time":"2026-11-20T18:56:11Z","sha256":"fa4ad4604b2f07da32d5dd7355090d0941d2b03799c5ccd4e6040d2638b5b63c","source":"amazon-inspector","versions":["1.0.3"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/identity-poc/v/1.0.3"}],"affected":[{"package":{"name":"identity-poc","ecosystem":"npm","purl":"pkg:npm/identity-poc"},"versions":["1.0.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"identity-poc-1.0.3.tgz","hashes":{"sha1":"a1c5e6de0ef09ab9c45a8399556dd5392996f52f","sha512_sri":"sha512-SmXKx1eYq68lBaLEuthBQ9pO2TmZxmISkzp6t3bzbJJ+RdzxqkaHSd/Y4yqp8mYF0pjMqEI6G3QbHDt0dtAE4A=="}}],"evidence_files":[{"sha256":"cc468b1ece6fd35182e1f9d8a8e5d7d142662d8adcb0e8a6d5e245d3c177847a","tlsh":"ba41421061f53a3413a674d0e15b641070d7d113bc2aec90b6de03992fcc96593b3bf9","path":"index.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/identity-poc/MAL-2026-20303.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}