LWA-2026-4558 MAL-2026-6860 ↗ confirmed malware

peptideenv@16.6.6

Malicious code in peptideenv (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1041 · Exfiltration Over C2 Channel

Analysis

peptideenv@16.6.6 is a combosquat of the popular dotenv package (same description, same repo URL fraudulently claimed, version 16.6.6 matching dotenv's version series). The publisher (richswift225) previously published the confirmed-malicious js-unimode. The main entry point is heavily obfuscated with javascript-obfuscator and contains a multi-stage C2 backdoor that fires immediately on require(): it contacts a C2 server on port 1244 (reconstructed from obfuscated base64), transmits a system fingerprint (hostname, platform, username, node version) via POST with fields ts/type/hid/ss/cc, then downloads and executes secondary JS payloads saved to ~/.vscode/*.fjs, followed by downloading npm packages and running them via detached node/nohup processes. The attack retries up to 3 times at ~10-minute intervals. The package also contains a copy of dotenv's legitimate parse() function at the bottom of the file to disguise its behavior.

analyzed by
Leitwacht
first seen
Jun 12, 2026, 06:00 AM
analyzed
Jun 12, 2026, 06:01 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.