LWA-2026-6267 MAL-2026-10505 ↗ confirmed malware

express-ini@12.1.10

Malicious code in express-ini (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1059 · Command and Scripting InterpreterT1027 · Obfuscated Files or InformationT1564.003 · Hidden WindowT1082 · System Information Discovery

Analysis

The package express-ini@12.1.10 is a combosquat of the legitimate express framework. On install, the postinstall hook (node index.js) runs a heavily obfuscated JavaScript payload. The payload requires child_process (spawn), fs, os, path, and crypto modules. It spawns a hidden child process with windowsHide:true, reads the current working directory, writes a file to the user's home directory, and suppresses all errors in try/catch blocks to evade detection. The C2 endpoint and exact file paths are encoded inside the obfuscated string array and require runtime deobfuscation to recover. The package has no functional express-related code — it is a second-stage dropper that deploys a persistent payload on installation.

analyzed by
Leitwacht
first seen
Jul 2, 2026, 04:47 PM
analyzed
Jul 2, 2026, 04:54 PM

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.