LWA-2026-6103 MAL-2026-6578 ↗ confirmed malware

layerd-unit-codec-parser@1.0.0

Malicious code in layerd-unit-codec-parser (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027 · Obfuscated Files or InformationT1140 · Deobfuscate/Decode Files or InformationT1573 · Encrypted Channel

Analysis

The package ships a 13KB AES-GCM-encrypted payload in src/config/defaults.js as a hardcoded string (DEFAULT_FINAL_ENCODED_TEXT). It exposes a run() method that decrypts this payload using AES-GCM and executes the decrypted code via the Function constructor with the Node.js require function injected as an argument (new Function("require", runnable)(require)), giving the decoded payload full access to read the filesystem, environment variables, network, and child processes. The payload is triggered by running start, decode, test:cjs, or example scripts, or by requiring the package and calling run(). The README describes a different package (postcss-minify-selector-parser) than the published package name, indicating a fake cover identity. The actual contents of the AES-encrypted second-stage payload are unknown without the passphrase, but the delivery mechanism is consistent with credential-theft and backdoor implant patterns observed in prior npm supply-chain attacks.

analyzed by
Leitwacht
first seen
Jun 29, 2026, 07:30 AM
analyzed
Jun 29, 2026, 07:31 AM

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