Malicious code in simple-date-formatter-util-13 (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12202
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (fe9863d2e47d22ca16f42efd68d0c79e0b2730b48984bf68b040f6f920fb70ec) Package presents itself as a date-formatting utility (index.js is a four-line toLocaleDateString wrapper) but its package.json postinstall hook runs an inline shell pipeline that reads /proc/self/status, /dev, /home/work, /wenchain, and /etc/hosts, probes internal Kubernetes API endpoints, and POSTs the collected output to an attacker-controlled Interactsh OAST endpoint at safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo2. The tarball also ships postinstall.js, which enumerates the installer's ~/.ssh directory, gathers filenames plus username and platform, and POSTs the JSON payload over HTTPS to the hardcoded IP 124.221.154.135. Both behaviors auto-execute on npm install.
- Source published
- 5 Aug 2026 08:48:57 UTC
- Source modified
- 5 Aug 2026 10:06:21 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.