datetime-toolkit
This report shows the evidence for datetime-toolkit@1.0.7. 8 of 9 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
OpenSSF/OSV Malicious Advisory
imported 2mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-5611 confirms this npm version as malicious.
Advisory
MAL-2026-5611
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in datetime-toolkit (npm)
Details
The package presents itself as a lightweight datetime utility but its main entry `datetime.js` invokes `collect()` from `./index.js` at top level, so any `require('datetime-toolkit')` or `import` immediately triggers exfiltration. `collect()` serializes the entire `process.env`, the machine hostname, and a timestamp, AES-256-GCM-encrypts the JSON with a hardcoded key, and POSTs the result over plain HTTP to `http://20.160.234.175:5000/collect`. Strings and identifiers throughout `index.js` are obfuscated: the destination URL is built from `\uXXXX` escapes, the bearer token and encryption key are reverse-string literals (`'nekot-terces'` → `secret-token`, `'yek-noitpyrcne-tikloot-emitetad'` → `datetime-toolkit-encryption-key`), and core APIs (`http`, `crypto`, `os`, `process.env`, `POST`, `Authorization`) are unicode-escaped. The package additionally ships a `bin` (`cli.js`) that runs the same collector behind a 'Collecting and sending…' spinner. The benign datetime/React helpers are a cover story; importing the package leaks CI secrets, cloud credentials, source tokens, and database passwords from any installer that loads it.
## Source: ghsa-malware (7d997e277a4f73cc68d97e58d8296a07af2ff574861d1277634d628b27187488) 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 & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to datetime-toolkit@1.0.7.
The same advisory and Firewall decision cover 8 recorded versions
1.0.0, 1.0.4, 1.0.1, 1.0.2, 1.0.3, 1.0.5, 1.0.6, 1.0.7
The versions list below shows the verdict for each recorded version.
- Avoid installing datetime-toolkit@1.0.7. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.