{"id":"MAL-2026-5366","summary":"Malicious code in zer0one-dnslog (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (903c45d49e6716373a67196c41e8acfbf8afa3320a635380ffe3403e8f127605)\nThe package is published as a 'simple date formatting utility' but ships a postinstall payload that, on `npm install`, runs a curl pipeline against cloud instance-metadata services to harvest temporary IAM credentials and internal SSRF data, then POSTs the collected output to an attacker-controlled out-of-band host. Specifically, postinstall.js issues curls to AWS metadata at 169.254.169.254 (IAM security-credentials path), Aliyun at 100.100.100.200, Tencent at metadata.tencentyun.com / 169.254.0.23, and Meituan-internal mtsrc-test.sankuai.com, writes the responses to /tmp/aws.txt, /tmp/ali.txt, /tmp/tx.txt, /tmp/tx2.txt, and uploads them via `curl -X POST` to https://h4mx6b7krgzarfehbutwabxbu20tojc8.oastify.com/metadata along with a listing of /data/. package.json declares `\"postinstall\": \"node postinstall.js\"`, so the harvest fires automatically on default install. On any cloud build host or CI runner this leaks role credentials with full AWS/Aliyun/Tencent access. The advertised purpose mismatches the shipped behavior (index.js is a one-line hello stub), confirming the package is a lure for credential theft, not a date utility.\n\n## Source: ossf-package-analysis (61ff41f8e8f8f87ab7d1d60d8bed288957cbfa3352dfc6478b12f628c93c51c9)\nThe OpenSSF Package Analysis project identified 'zer0one-dnslog' @ 1.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2026-06-11T00:16:29.234924571Z","published":"2026-06-08T02:31:13Z","database_specific":{"malicious-packages-origins":[{"source":"ossf-package-analysis","sha256":"61ff41f8e8f8f87ab7d1d60d8bed288957cbfa3352dfc6478b12f628c93c51c9","import_time":"2026-06-09T12:03:47.411415779Z","modified_time":"2026-06-08T02:31:13Z","versions":["1.0.0"]},{"sha256":"c2cc8de5d9d6de7b0ab31f591bd6418cc0d482117f5f952df04deaba89672134","import_time":"2026-06-11T00:00:59.840527467Z","id":"IN-MAL-2026-005335","modified_time":"2026-06-10T23:56:17Z","versions":["1.0.4"],"source":"amazon-inspector"},{"versions":["1.0.3"],"source":"amazon-inspector","sha256":"e9add80ac470cd19bebab26fe48f5a57944ceb11e4f5f5580c45b1b1055da86a","import_time":"2026-06-11T00:00:59.934183599Z","id":"IN-MAL-2026-005336","modified_time":"2026-06-10T23:56:22Z"},{"source":"amazon-inspector","sha256":"14c7974b91fefdaeda12ecae9ba56b695a3175660a5b909e1fd1d690ac00b333","import_time":"2026-06-11T00:00:59.642317482Z","id":"IN-MAL-2026-005333","modified_time":"2026-06-10T23:56:07Z","versions":["1.0.6"]},{"source":"amazon-inspector","sha256":"1737c20fc87ad17964764d878c29cd4aa0904cd89167b4a75a047dbea57ed181","import_time":"2026-06-11T00:01:00.437728685Z","id":"IN-MAL-2026-005340","modified_time":"2026-06-10T23:56:38Z","versions":["1.0.0"]},{"modified_time":"2026-06-10T23:56:26Z","versions":["1.0.2"],"source":"amazon-inspector","sha256":"3436b4a0b68bee759a63e400555a990d224dc978a19ddcfdb9b94c2dd96d986f","import_time":"2026-06-11T00:01:00.016830668Z","id":"IN-MAL-2026-005337"},{"sha256":"903c45d49e6716373a67196c41e8acfbf8afa3320a635380ffe3403e8f127605","import_time":"2026-06-11T00:00:59.453854283Z","id":"IN-MAL-2026-005332","modified_time":"2026-06-10T23:56:01Z","versions":["1.0.7"],"source":"amazon-inspector"},{"modified_time":"2026-06-10T23:56:32Z","versions":["1.0.1"],"source":"amazon-inspector","sha256":"02da6de040acd0c673cf660c84536fb07f0ef7d1e4c15a0159dd27e8e0466993","import_time":"2026-06-11T00:01:00.117732991Z","id":"IN-MAL-2026-005338"},{"sha256":"3714936a86eec93a75462059eb29f23ceaefec05fd66d658ddc6baf15470d8b4","import_time":"2026-06-11T00:00:59.3813364Z","id":"IN-MAL-2026-005331","modified_time":"2026-06-10T23:55:31Z","versions":["1.0.8"],"source":"amazon-inspector"},{"versions":["1.0.0"],"source":"amazon-inspector","sha256":"75a6ef3f1d10306e18575a6cab188fdece0b2343588dec03968b65288190c0c0","import_time":"2026-06-11T00:01:00.360751495Z","id":"IN-MAL-2026-005339","modified_time":"2026-06-10T23:56:37Z"},{"source":"amazon-inspector","sha256":"929b37abcbef3fb43b3aaeec29e917240e6a69c5dbd84a64082f09df1b97dee7","import_time":"2026-06-11T00:00:59.735399565Z","id":"IN-MAL-2026-005334","modified_time":"2026-06-10T23:56:12Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"a8112adecee9cb8de528b88755300c268ec9a5cd2d2d427f951d23cbfd961abc","import_time":"2026-06-11T00:00:59.306647963Z","id":"IN-MAL-2026-005330","modified_time":"2026-06-10T23:55:26Z","versions":["1.0.9"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zer0one-dnslog/v/1.0.9"}],"affected":[{"package":{"name":"zer0one-dnslog","ecosystem":"npm","purl":"pkg:npm/zer0one-dnslog"},"versions":["1.0.0","1.0.4","1.0.3","1.0.6","1.0.2","1.0.7","1.0.1","1.0.8","1.0.5","1.0.9"],"database_specific":{"indicators":{"package_integrity":[{"hashes":{"sha1":"7ec6f9c4c525b147f5c476dbe5f9a9d0130a3982","sha512_sri":"sha512-irhcP/bb+q64hXZfeIu+ni6IMrB5s3+iet0HA3pGRdM11Bx7zULoI8D/JU5Ufa/6+fR+8oFs0gZHVwdGTkCzUQ=="},"filename":"zer0one-dnslog-1.0.4.tgz"}],"domains":["webhook.site"],"evidence_files":[{"path":"postinstall.js","sha256":"e343aa6479e29bc61959e5c94c9c684bfbab4e312318b403f6382b55568c7e83","tlsh":"35016d983621be367e858f79d369030eb401f95b1fc0bb8481a61cf04d49e61b069b08"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/zer0one-dnslog/MAL-2026-5366.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"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","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."}]}}],"schema_version":"1.7.5","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"}]}