Malicious code in datetime-format-xutil (npm)
The npm package datetime-format-xutil version 1.0.0 contains malicious code that executes automatically upon installation. The postinstall.js script opens a reverse shell connection to a hardcoded IP address, allowing remote command execution on the installer's host. The package's legitimate date-format functionality is a cover for this backdoor behavior.
AI Analysis
Technical Summary
The datetime-format-xutil npm package (version 1.0.0) includes a postinstall.js script that runs automatically during npm install. This script attempts to open a TCP connection to 8.135.48.40 on port 4444 and spawns a /bin/sh shell, redirecting its input and output over the socket to provide an interactive remote shell. It uses a bash reverse shell command and falls back to a python3 reverse shell if needed. If the connection fails, error details are sent via HTTP GET requests to the same host. The package's index.js implements date-formatting functionality, which serves as a cover for the malicious backdoor.
Potential Impact
Installing this package version grants an attacker remote shell access on the installer's system, enabling full control and execution of arbitrary commands. This compromises the confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing datetime-format-xutil version 1.0.0. Remove the package immediately if installed and investigate any systems where it was used. Monitor for suspicious network connections to 8.135.48.40 and related indicators. Check vendor advisories or npm security advisories for updates or removal notices.
Malicious code in datetime-format-xutil (npm)
Description
The npm package datetime-format-xutil version 1.0.0 contains malicious code that executes automatically upon installation. The postinstall.js script opens a reverse shell connection to a hardcoded IP address, allowing remote command execution on the installer's host. The package's legitimate date-format functionality is a cover for this backdoor behavior.
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 datetime-format-xutil npm package (version 1.0.0) includes a postinstall.js script that runs automatically during npm install. This script attempts to open a TCP connection to 8.135.48.40 on port 4444 and spawns a /bin/sh shell, redirecting its input and output over the socket to provide an interactive remote shell. It uses a bash reverse shell command and falls back to a python3 reverse shell if needed. If the connection fails, error details are sent via HTTP GET requests to the same host. The package's index.js implements date-formatting functionality, which serves as a cover for the malicious backdoor.
Potential Impact
Installing this package version grants an attacker remote shell access on the installer's system, enabling full control and execution of arbitrary commands. This compromises the confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing datetime-format-xutil version 1.0.0. Remove the package immediately if installed and investigate any systems where it was used. Monitor for suspicious network connections to 8.135.48.40 and related indicators. Check vendor advisories or npm security advisories for updates or removal notices.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13936
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a7e036ebf8831d5398f9036
Added to database: 08/13/2026, 17:48:30 UTC
Last enriched: 08/13/2026, 18:08:17 UTC
Last updated: 08/13/2026, 19:11:12 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.