Malicious code in simple-date-formatter-new-10 (npm)
The npm package simple-date-formatter-new-10 version 1.0.0 contains malicious code that executes during installation. It opens a reverse shell to a remote attacker and exfiltrates SSH keys and user information to a command and control server. The advertised date-formatting functionality is a cover for these attack payloads.
AI Analysis
Technical Summary
The npm package [email protected] masquerades as a simple date formatting utility but includes two malicious payloads triggered during npm install. The package.json postinstall script establishes an interactive bash reverse shell to IP 124.221.154.135 on port 4444, enabling remote command execution on the victim's machine. Additionally, a bundled postinstall.js script reads the installer's ~/.ssh directory and sends its contents along with username and platform information to https://124.221.154.135/post, serving as a command and control endpoint. These actions compromise the installer's host by stealing sensitive SSH credentials and allowing remote control, while the legitimate API (formatDate) is merely a decoy.
Potential Impact
Successful installation of this package results in remote code execution on the installer's system via a reverse shell and theft of SSH private keys and user environment data. This can lead to unauthorized access, credential compromise, and potential further lateral movement or persistence by the attacker.
Mitigation Recommendations
No official patch or remediation is indicated. Users should avoid installing [email protected] from npm. Remove the package if already installed and investigate any systems where it was used for signs of compromise. Use trusted sources and verify package integrity before installation.
Malicious code in simple-date-formatter-new-10 (npm)
Description
The npm package simple-date-formatter-new-10 version 1.0.0 contains malicious code that executes during installation. It opens a reverse shell to a remote attacker and exfiltrates SSH keys and user information to a command and control server. The advertised date-formatting functionality is a cover for these attack payloads.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The npm package [email protected] masquerades as a simple date formatting utility but includes two malicious payloads triggered during npm install. The package.json postinstall script establishes an interactive bash reverse shell to IP 124.221.154.135 on port 4444, enabling remote command execution on the victim's machine. Additionally, a bundled postinstall.js script reads the installer's ~/.ssh directory and sends its contents along with username and platform information to https://124.221.154.135/post, serving as a command and control endpoint. These actions compromise the installer's host by stealing sensitive SSH credentials and allowing remote control, while the legitimate API (formatDate) is merely a decoy.
Potential Impact
Successful installation of this package results in remote code execution on the installer's system via a reverse shell and theft of SSH private keys and user environment data. This can lead to unauthorized access, credential compromise, and potential further lateral movement or persistence by the attacker.
Mitigation Recommendations
No official patch or remediation is indicated. Users should avoid installing [email protected] from npm. Remove the package if already installed and investigate any systems where it was used for signs of compromise. Use trusted sources and verify package integrity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13697
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a79f0dcbf8831d539f61b17
Added to database: 08/10/2026, 15:40:12 UTC
Last enriched: 08/10/2026, 15:59:25 UTC
Last updated: 08/10/2026, 17:29:53 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.