LWA-2026-5128 MAL-2026-5750 ↗ confirmed malware

mailconfirmer@3.3.11

Malicious code in mailconfirmer (npm)

T1059.001 · PowerShellT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1070.004 · File DeletionT1204.002 · Malicious File

Analysis

Disguised as an email-confirmation utility, this package carries no real functionality and instead acts as an install-time dropper. Its package.json runs a postinstall script (install-hook.js) that, on install, silently launches a hidden, Base64/UTF-16LE-encoded PowerShell command. The decoded PowerShell downloads a second-stage binary from a GitHub releases URL, XOR-decrypts it with a single-byte key (0x42), writes it to the user TEMP directory as tmp.exe, executes it in a hidden window, then deletes the dropped file after a few seconds. A second hidden, detached PowerShell process sleeps for five minutes and then recursively force-deletes the installed package directory to remove traces of the infection. The combination of decoy metadata, hidden encoded execution, remote XOR-encrypted payload retrieval, and self-destruction is unambiguously malicious.

analyzed by
Leitwacht
first seen
Jun 13, 2026, 06:18 PM
analyzed
Jun 28, 2026, 06:24 AM
weekly installs
8,004

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.