OpenSSF/OSV advisory MAL-2026-12104 confirms this npm version as malicious. On require() of the package, index.js collects the machine hostname, OS username, package name, and a timestamp and sends them via HTTPS GET to a hardcoded Telegram Bot API endpoint (bot id 7231970337, chat_id 8969499041). A flag file (.tst) is written to the OS tmpdir to suppress repeat sends. The Telegram bot token is embedded in the source and serves as the exfiltration transport...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @wethenorth12/test-fresh (npm)
Details
On require() of the package, index.js collects the machine hostname, OS username, package name, and a timestamp and sends them via HTTPS GET to a hardcoded Telegram Bot API endpoint (bot id 7231970337, chat_id 8969499041). A flag file (.tst) is written to the OS tmpdir to suppress repeat sends. The Telegram bot token is embedded in the source and serves as the exfiltration transport. Consumers that install and load the package leak host/user identifiers to an attacker-controlled Telegram chat with no opt-in.
Decision reason
OpenSSF Malicious Packages via OSV confirms @wethenorth12/test-fresh@1.0.0 as malicious (MAL-2026-12104): Malicious code in @wethenorth12/test-fresh (npm)