@essentialai/cogent-bridge@3.26.0
Malicious code in @essentialai/cogent-bridge (npm)
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
- @essentialai/cogent-bridge@3.26.2 same package
- hushed_zebra_green-81@2.4.2
- inadequate_earwig_magenta-66@3.4.3
- southern_duck_tan-16@2.4.3
- xenacious_kangaroo_blush-47@4.3.3
- babyyodaa@1.1.0
- @ubedsockets/baileys@1.4.0
- @ubedsockets/baileys@1.6.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.