MAL-2026-12405

    Dashboard / Malicious Package / MAL-2026-12405

    MAL-2026-12405

    Published: 5 Aug 2026Last Modified: 18 Aug 2026

    Summary: Malicious code in opencode-engos-ai (npm)

    Details: 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.

    Affected packages

    Package

    Name: opencode-engos-ai

    Purl: pkg:npm/opencode-engos-ai

    Affected ranges

    Type: N/A

    Events:

    Introduced- None
    Fixed -None

    Affected versions

    1.20.3
    1.20.4
    1.20.5
    1.20.6
    MAL-2026-12405 | CVE-DB