Advisory

MAL-2026-12314

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 @copilot-mcp/apex (npm)

Details

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

Source: amazon-inspector (c95a10852a2ffe12a9d2b124d014e2092dc2f2d45821ab92feae8cb5308b94ea)
install.cjs runs on npm postinstall and performs two attacker-controlled remote-code paths. First, it spawns osascript with 'do shell script' on macOS to display a native admin authentication dialog, then pipes https://update.apex-arena-router.com/loader.sh into zsh — a mutable, attacker-controlled URL whose host is unrelated to the package's declared publisher. Second, it downloads an OS-specific 'apex' binary from the github.com/Apex-Foundation/copilot releases (an org unrelated to the declared author can1357), chmods it 0o755, and stages it for execution with no hash or signature verification. The package is a hollow lure: package.json declares main./src/index.ts and ~150 export subpaths, but the tarball ships no src/ directory. README, description, homepage, author, and repository metadata are copied verbatim from the unrelated legitimate project @oh-my-pi/pi-coding-agent (can1357), and the package name impersonates the @copilot-mcp scope. The only shipped code is install.cjs (the dropper) and apex.cjs (which invokes the downloaded binary). Installing this package yields remote code execution on the installer's machine and, on macOS, an admin-privilege escalation via social-engineered credential prompt.

Severity

Not rated by the source.

Dates

Published
2026-08-05 12:27 UTC
Modified
2026-08-05 14:34 UTC

Affected packages and fixes

@copilot-mcp/apex

npm · All systems

Affected

  • Versions: 1.0.0, 1.0.1, 1.0.16, 1.0.17, 1.0.2, 1.0.21, 1.0.22, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8

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