Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @copilot-mcp/apex (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:27:30 UTC)
Source: GCVE Database
Product: @copilot-mcp/apex

Description

The npm package @copilot-mcp/apex contains malicious code that executes during installation. It runs a postinstall script that performs remote code execution by downloading and executing attacker-controlled scripts and binaries. On macOS, it additionally prompts for admin credentials via a native authentication dialog, enabling privilege escalation through social engineering. The package impersonates a legitimate project and ships no actual source code except the malicious installer and loader scripts.

Affected software

npmghsa
@copilot-mcp/apex
Affected versions
=1.0.0=1.0.4=1.0.6=1.0.8=1.0.2=1.0.17=1.0.3=1.0.16=1.0.22=1.0.5=1.0.7=1.0.1=1.0.21

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, 15:43:09 UTC

Technical Analysis

The @copilot-mcp/apex npm package is a malicious package that executes attacker-controlled code during its postinstall phase. The install.cjs script spawns macOS osascript to display a fake admin authentication prompt, then downloads and executes a remote shell script from an attacker-controlled URL. It also downloads an OS-specific binary from a GitHub repository unrelated to the declared author, makes it executable, and runs it without any integrity verification. The package metadata is copied from a legitimate unrelated project to deceive users. The only shipped code is the malicious installer and a loader script that invokes the downloaded binary. This results in remote code execution on the installer's machine and potential admin privilege escalation on macOS.

Potential Impact

Installing this package results in remote code execution on the victim's machine. On macOS, it can escalate privileges by prompting the user with a native admin authentication dialog, potentially leading to full system compromise if the user provides credentials. The package is designed as a lure with no legitimate functionality, making it a direct threat to any environment where it is installed.

Mitigation Recommendations

No official patch or remediation is currently available. Users and organizations should avoid installing the @copilot-mcp/apex package, especially versions 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.16, 1.0.17, 1.0.21, and 1.0.22. Verify package authenticity before installation and prefer packages from trusted sources. Monitor for and remove any instances of this package in your environment.

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-12314
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a735730bf8831d53913cef9

Added to database: 08/05/2026, 15:30:56 UTC

Last enriched: 08/05/2026, 15:43:09 UTC

Last updated: 08/05/2026, 15:43:09 UTC

Views: 2

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