Malicious code in simple-date-formatter-util-5 (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-11501
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (cb6c0d10eabca0cef05a136e2ffd68781a965747ad1e75bf9fd9528292bbe429) The package is advertised as a date-formatting utility but its package.json postinstall script curls cloud-provider instance metadata endpoints (AWS 169.254.169.254, Alibaba 100.100.100.200, Tencent metadata.tencentyun.com and 169.254.0.23), retrieves the IAM security-credentials role, captures the output alongside `ls -la /data/`, and POSTs the collected data to attacker-controlled Interactsh (oast.fun) out-of-band subdomains such as safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/metadata and ycrqyyjhwepdmhjifyccxss1hrks8lcd2.oast.fun/metadata. The tarball also ships postinstall.js, which enumerates ~/.ssh (reading.pub filenames and directory listing) and POSTs the results with username and platform to hardcoded IP 124.221.154.135:443/post over HTTPS. Behavior fires automatically on `npm install`, does not match the declared date-formatter purpose, and results in cloud IAM credential and SSH-context exfiltration to attacker infrastructure. ## Source: ossf-package-analysis (0eb3042c51ca3c377dd9f4e814a53f4901a805271896f9bfd1619891be4bff5c) The OpenSSF Package Analysis project identified 'simple-date-formatter-util-5' @ 1.0.0 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. - The package executes one or more commands associated with malicious behavior.
- Source published
- 3 Aug 2026 13:33:34 UTC
- Source modified
- 4 Aug 2026 22:05:15 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.