Malicious code in simple-date-formatter-util-2 (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-11485
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e2102f256bd17b2a80b2157371bee5a3cc1d9c49484aaef694a094218c2a7bac) The package.json postinstall script runs on every npm install and uses curl to probe cloud instance-metadata services (AWS 169.254.169.254, Alibaba 100.100.100.200, Tencent metadata.tencentyun.com, 169.254.0.23), writes their responses to /tmp, and POSTs the concatenated contents together with a listing of /data/ to an attacker-controlled OAST collector at ycrqyyjhwepdmhjifyccxss1hrks8lcd2.oast.fun. Cloud IMDS endpoints return role credentials for the installer's instance, so the beacon exfiltrates cloud credentials on install. The tarball also ships a postinstall.js that enumerates the installer's ~/.ssh directory and POSTs the collected data with username and platform fields to https://124.221.154.135/post. The package advertises date-formatting utility functionality; none of the observed behavior relates to that purpose. ## Source: ghsa-malware (6e2619c38c0a6e4c2bf346194ff3de102d18ef08ddd7c864c4470d17d62837b8) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
- Source published
- 2 Aug 2026 17:09:40 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.