{"id":"MAL-2026-12225","summary":"Malicious code in time-utils-helper (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (93cbd818e3b29b2b7c9da6f48b3d82baae1af9bd0fa637a2848749bdfea86084)\nThe package advertises itself as a time-formatting utility (index.js exports formatDate/capitalize/truncate) but ships a postinstall.js lifecycle script that runs on npm install and performs unrelated cloud credential harvesting. postinstall.js uses child_process.exec to shell out to curl against multi-cloud instance metadata services (AWS 169.254.169.254, Aliyun 100.100.100.200, Tencent metadata.tencentyun.com, GCP metadata.google.internal, Azure), extracts AWS IAM security credentials for the instance role into /tmp/.iam-creds, and transmits hostname, user, and the IAM credential material as HTTP GET query-string parameters to the hardcoded Burp Collaborator subdomain pzs5w7ntzhsnepwk564lyfdci3oucl0a.oastify.com. The mismatch between the declared trivial utility purpose and the install-time cloud-metadata scraping identifies the package as a decoy delivery vehicle for credential theft.\n","modified":"2026-08-05T10:06:32.885277178Z","published":"2026-08-05T09:18:14Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-014629","import_time":"2026-08-05T09:28:32.256716735Z","modified_time":"2026-08-05T09:18:14Z","sha256":"93cbd818e3b29b2b7c9da6f48b3d82baae1af9bd0fa637a2848749bdfea86084"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/time-utils-helper/v/1.0.0"}],"affected":[{"package":{"name":"time-utils-helper","ecosystem":"npm","purl":"pkg:npm/time-utils-helper"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/time-utils-helper/MAL-2026-12225.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"hashes":{"sha1":"f3ecb62dc9e05b4f3f2a85da4718eb0d90e7abab","sha512_sri":"sha512-KtgvvxJiEmHLTr8ImC0l1gy3OpKgcESfppW+05PQhprh6ZbzFrmBa/tOrD7gVOi+Pb9kvAiR2yKLxse+bqJISg=="},"filename":"time-utils-helper-1.0.0.tgz"}],"evidence_files":[{"tlsh":"195112fcb93578333f1e8a94f3ad6a0a8593dc9f4bf4eb0054b61d280c0cd413665a66","path":"postinstall.js","sha256":"cd9315d4631bfde5bfe82042b45105c9f42839f41b7b39261e4358957a5f9f3a"},{"sha256":"de1b57b46cb7c80a618bc22c8cc864ff477cd7a125fc9eff9d40c7a2eda1727d","tlsh":"afd02b248a1145333ad09ae55a574845bb654e2b03047c1d53e7100c43cfbf284fe31e","path":"package.json"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}