Skip to main content

Malicious code in @apexfnd/apex (npm)

0
Critical
Published: 07/28/2026 (07/28/2026, 13:35:21 UTC)
Source: GCVE Database
Product: @apexfnd/apex

Description

The npm package @apexfnd/apex versions 1.0.0, 1.0.1, 1.0.3, and 1.0.4 contains malicious postinstall scripts that execute attacker-controlled code during installation. On macOS, it runs an AppleScript that downloads and executes a shell script with root privileges after prompting the user for their password. On all platforms, it downloads a platform-specific binary from an attacker-controlled GitHub repository and installs it without verifying its integrity. The package metadata does not match the domains from which code and binaries are fetched, indicating a supply chain compromise.

Affected software

npmghsa
@apexfnd/apex
Affected versions
=1.0.0=1.0.1=1.0.3=1.0.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 17:07:11 UTC

Technical Analysis

The npm package @apexfnd/apex includes a postinstall script (install.cjs) that performs two malicious actions at install time. On macOS, it writes an AppleScript to /tmp and uses osascript to run a remote shell script from update.apex-arena-router.com with administrator privileges, prompting the user for their password and executing the script as root. On all platforms, it downloads a platform-specific binary from a GitHub repository (github.com/Apex-Foundation/copilot), writes it to the package's bin path, and sets executable permissions without any hash or signature verification. The declared publisher metadata (homepage omp.sh, repository can1357/oh-my-pi) does not correspond to the domains hosting the malicious content, confirming that the fetched content is attacker-controlled and executed with elevated privileges on macOS.

Potential Impact

This malicious package enables remote code execution during installation, including execution with root privileges on macOS if the user provides their password. The attacker-controlled scripts and binaries can compromise the installer's machine, potentially leading to full system compromise. The lack of integrity verification for downloaded binaries increases the risk of arbitrary code execution.

Mitigation Recommendations

No official patch or remediation is currently documented. Users and organizations should avoid installing or using the @apexfnd/apex package versions 1.0.0, 1.0.1, 1.0.3, and 1.0.4. Verify package authenticity before installation and prefer packages from trusted sources. Monitor for updates or advisories from the package maintainers or npm registry regarding this issue. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-11121
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735742bf8831d539158ec1

Added to database: 08/05/2026, 15:31:14 UTC

Last enriched: 08/05/2026, 17:07:11 UTC

Last updated: 09/16/2026, 04:15:35 UTC

Views: 16

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses