opencode-engos-ai (npm) · Malicious Code
Affects opencode-engos-aiSource GCVE Database
Malicious package : remove opencode-engos-ai and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 18:46 UTC
Malicious package
Published to npm · OSV MAL-2026-12405
What to do
Remove opencode-engos-ai from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmopencode-engos-ai | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (42180a034d43d3c6d16e223fe6fcd93f6e403f0c73c763e9b21b6aded0545274) On npm install, postinstall.mjs enumerates platform-specific sibling package names of the form opencode-engos-<platform>-<arch>[-baseline][-musl], resolves each to the current 'latest' tag via `npm view <name> version`, installs the resolved version into a temp directory, then copies the fetched 'opencode' binary into the wrapper's bin/ with chmod 755. The fetched artifact is not pinned to a specific version and is not hash- or signature-verified, so whatever the publisher of the sibling packages pushes to 'latest' at install time is what executes on the installer's host. The sibling package names are not declared in the manifest's optionalDependencies, so they are resolved by name rather than through the reviewable dependency graph. In addition, createSymlinks() writes symlinks at /usr/local/bin/innexarcode and /usr/bin/innexarcode pointing at the fetched binary — a name that matches neither the package name (opencode-engos-ai), its declared bin entry (opencode-engos), nor any documented CLI, placing an unrelated command into the installer's system PATH. The package name also resembles the existing 'opencode' AI CLI.
References
- npmjs.com/package/opencode-engos-ai/v/1.20.3 (opens in a new tab)
- npmjs.com/package/opencode-engos-ai/v/1.20.4 (opens in a new tab)
- npmjs.com/package/opencode-engos-ai/v/1.20.5 (opens in a new tab)
- npmjs.com/package/opencode-engos-ai/v/1.20.6 (opens in a new tab)
- npmjs.com/package/opencode-engos-ai/v/1.21.3 (opens in a new tab)