LWA-2026-13950 confirmed malware

@yuanjielab/cli@0.15.0

Malicious code in @yuanjielab/cli (npm)

T1195.002 · Compromise Software Supply Chain

Analysis

@yuanjielab/cli@0.15.0 runs a postinstall hook (scripts/postinstall.js) that downloads and executes a platform binary outside the npm registry. On install it fingerprints the host with os.platform()/os.arch() (mapping to darwin|linux|windows plus amd64|arm64), fetches a per-version manifest from hxxps://ai-ass-file[.]oss-cn-hangzhou[.]aliyuncs[.]com/yj-cli/versions/<version>[.]json, selects the platform entry, downloads the binary from the same bucket, verifies its size and sha256 from the manifest, writes it to the package's vendor/ directory as vendor/yj with mode 0755, and then immediately executes it via execFileSync("vendor/yj", ["version","--json"]). The download base can be redirected with the YJ_DOWNLOAD_BASE environment variable and the install can be skipped with YJ_SKIP_DOWNLOAD. The bin shim bin/yj.js then forwards all CLI invocations to that downloaded binary with spawnSync. The executed code is delivered from a mutable object-storage bucket rather than the npm tarball, so its contents are not covered by the package's registry integrity hash; no credential, token, .npmrc or wallet-file access and no outbound data submission were observed in this version's source.

analyzed by
Leitwacht
first seen
Nov 12, 2026, 05:14 AM
analyzed
Nov 12, 2026, 05:15 AM
weekly installs
1,803

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.