Malicious code in simple-date-formatter-new-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-12194
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (1a752053edcc35b1de91b1eb5bb0a8b18e22ac32120f4b8871ecf84c3c4aec54) The package presents itself as a trivial date-formatting utility (index.js exports a one-line wrapper around toLocaleDateString), but its package.json postinstall script runs a shell pipeline that probes sandbox and host state (tmpfs mount capability, bind-mount of /home/work, /proc/self/attr/current, LSM/AppArmor info, cgroups layout, /proc/partitions, and a listing of /home/work) and POSTs the combined output via curl to http://safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo6, an interactsh/OAST out-of-band callback domain. The tarball additionally ships postinstall.js, which reads the installer's ~/.ssh directory, packages the filenames together with the local username and platform, and POSTs the JSON over HTTPS to the hardcoded IP 124.221.154.135:443/post; Chinese-language comments in that file describe stealing SSH keys and sending them to a C2. The benign facade contradicts the install-time behavior and the shipped stealer module.
- Source published
- 5 Aug 2026 08:48:24 UTC
- Source modified
- 5 Aug 2026 10:06:17 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.