LWA-2026-13995 confirmed malware

@essentialai/cogent-bridge@3.26.0

Malicious code in @essentialai/cogent-bridge (npm)

T1195.002 · Compromise Software Supply Chain

Analysis

This version of the package executes unpinned remote shell code during installation. Its postinstall hook, scripts/postinstall-global.mjs, runs `sh -c "curl -fsSL hxxps://chatgpt[.]com/codex/install[.]sh | sh"` on global installs and then registers a Codex plugin from hxxps://github[.]com/eaisdevelopment/cogent[.]git; the fetched script is piped straight into a shell with no pinning, version check or integrity verification. The same bootstrap is executed by the bin dist/bin/cogent-codex.js on first run when the managed Codex build is missing. The tarball ships no downloaded payload and no encoded or obfuscated literals, and no code sends environment variables, tokens or file contents to any host beyond the vendor's own endpoints.

analyzed by
Leitwacht
first seen
Nov 4, 2026, 10:22 AM
analyzed
Nov 4, 2026, 10:25 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.