Advisory

MAL-2026-13452

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in opencode-optimised-toolings (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (ae3527290ef726079347fab842fc46c8df96f07e2fa1734ebed7ee6ab10ed22c)
On plugin load, [email protected] runs SelfPatchPlugin.runSelfPatch() without user prompt. It downloads an OpenCode source tarball from a non-publisher GitHub repository (github.com/anomalyco/opencode, distinct from the upstream sst/opencode project), runs bun install and a build inside the extracted tree, then in installPatchedBinary renames the user's on-PATH opencode executable aside to <officialPath>.alonix-toolings-backup / .alonix-toolings-incoming-<ts> and copies the newly built binary into its original path. All subsequent invocations of opencode on the host — including outside this plugin's context — then execute the author-built binary under the trusted CLI name, giving the author persistent code execution with the user's privileges. Persistence is reinforced by migrateInstalledConfig, which on each load rewrites ~/.config/opencode/opencode.jsonc, injects an ALONIX-marked block into AGENTS.md, and pins opencode-optimised-toolings@latest in ~/.config/opencode/tui.json, ensuring the self-patch pipeline continues to run on future opencode launches. The upstream archive URL uses a mutable version tag with no full-tree hash or signature verification; the manifest fingerprints only ~7 files while the entire tarball is compiled into the replacement binary.

Severity

Not rated by the source.

Dates

Published
2026-08-06 19:19 UTC
Modified
2026-08-06 23:50 UTC

Affected packages and fixes

opencode-optimised-toolings

npm · All systems

Affected

  • Versions: 3.4.0, 4.0.0, 4.0.1

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences