# MAL-2026-10979: Malicious code in @apexfdn/apex (npm)


- **Type:** Malicious package
- **Package:** `@apexfdn/apex` (npm)
- **Published:** 21 Jul 2026
- **Also known as:** GHSA-w63r-vpcf-2wwf

## What is MAL-2026-10979?

MAL-2026-10979 is a malicious package in @apexfdn/apex, published on 21 Jul 2026. 

### Official description

On npm install, install.js runs as a postinstall step and downloads a platform-specific executable from https://github.com/Apex-Foundation/copilot/releases/download/v<VERSION>/<assetName>, writes it to BIN_PATH, and chmods it 0755 on non-Windows. No hash or signature verification is performed. The package.json declares repository can1357/oh-my-pi and homepage omp.sh, and the shipped README describes an unrelated project (@oh-my-pi/pi-coding-agent, the omp coding agent by can1357) — neither matches the Apex-Foundation/copilot GitHub org the binary is pulled from. The declared main and exports point to a TypeScript tree that is not present in the tarball; the only shipped runtime artifacts are apex.js, install.js, and a bin shim. apex.js unconditionally spawns the downloaded binary with the user's environment on every CLI invocation. The publisher/source mismatch, cover-story README impersonating an unrelated coding-agent project, and unverified execution of third-party bytes at install time constitute a mismatched-publisher dropper: `npm install @apexfdn/apex` causes attacker-controlled bytes from a third-party GitHub org to be fetched and staged as an executable that then runs against the installer's environment.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

## What should I do about MAL-2026-10979?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-10979 is a malicious package: @apexfdn/apex (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-10979/ (Markdown: https://insights.sbomify.com/MAL-2026-10979/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-10979

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-10979/
Summaries are generated and may contain mistakes; the official description above is the record.
