Malicious code in @ccfly/setup-darwin-arm64 (npm)
The @ccfly/setup-darwin-arm64 npm package contains a malicious Go binary that establishes a remote control channel to a hardcoded operator server (cc.hn). This binary enables full host command execution via a WebSocket connection and exfiltrates user Anthropic/Claude API credentials by modifying shell profile files to route API requests through the attacker-controlled infrastructure. The malicious behavior activates when the parent @ccfly/setup CLI invokes the binary, not during npm install alone. The package versions explicitly affected include multiple 0.1.x releases.
AI Analysis
Technical Summary
The @ccfly/setup-darwin-arm64 npm package ships a 6.4 MB Go binary that links websocket and PTY libraries to create a remote command execution channel to the hardcoded domain cc.hn. The binary listens locally on 127.0.0.1:443 and modifies shell configuration files (.zshrc, .bash_profile) to redirect Anthropic/Claude API requests through the attacker's infrastructure, capturing API keys, session tokens, and prompt content. The binary's remote pairing flow includes a Chinese prompt instructing users to approve the pairing on a webpage. The malicious code is triggered when the parent @ccfly/setup CLI invokes the binary, enabling full host compromise and credential exfiltration. Multiple specific versions of the package are affected, with no patch or remediation information provided.
Potential Impact
This malicious package enables an attacker controlling cc.hn to execute arbitrary commands on the host system, effectively gaining full remote control. Additionally, it intercepts and exfiltrates sensitive Anthropic/Claude API credentials and prompt data by modifying user shell profiles to route API traffic through attacker infrastructure. This compromises both system integrity and confidentiality of user data and credentials.
Mitigation Recommendations
No official patch or remediation guidance is provided. Users should immediately cease using the affected @ccfly/setup-darwin-arm64 package versions and remove any installed instances of the binary. Inspect and clean shell profile files (~/.zshrc, ~/.bash_profile) for unauthorized export lines or modifications. Avoid running the parent @ccfly/setup CLI that invokes this binary. Monitor for any suspicious network connections to cc.hn and consider rotating any exposed Anthropic API credentials.
Malicious code in @ccfly/setup-darwin-arm64 (npm)
Description
The @ccfly/setup-darwin-arm64 npm package contains a malicious Go binary that establishes a remote control channel to a hardcoded operator server (cc.hn). This binary enables full host command execution via a WebSocket connection and exfiltrates user Anthropic/Claude API credentials by modifying shell profile files to route API requests through the attacker-controlled infrastructure. The malicious behavior activates when the parent @ccfly/setup CLI invokes the binary, not during npm install alone. The package versions explicitly affected include multiple 0.1.x releases.
Affected software
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
Technical Analysis
The @ccfly/setup-darwin-arm64 npm package ships a 6.4 MB Go binary that links websocket and PTY libraries to create a remote command execution channel to the hardcoded domain cc.hn. The binary listens locally on 127.0.0.1:443 and modifies shell configuration files (.zshrc, .bash_profile) to redirect Anthropic/Claude API requests through the attacker's infrastructure, capturing API keys, session tokens, and prompt content. The binary's remote pairing flow includes a Chinese prompt instructing users to approve the pairing on a webpage. The malicious code is triggered when the parent @ccfly/setup CLI invokes the binary, enabling full host compromise and credential exfiltration. Multiple specific versions of the package are affected, with no patch or remediation information provided.
Potential Impact
This malicious package enables an attacker controlling cc.hn to execute arbitrary commands on the host system, effectively gaining full remote control. Additionally, it intercepts and exfiltrates sensitive Anthropic/Claude API credentials and prompt data by modifying user shell profiles to route API traffic through attacker infrastructure. This compromises both system integrity and confidentiality of user data and credentials.
Mitigation Recommendations
No official patch or remediation guidance is provided. Users should immediately cease using the affected @ccfly/setup-darwin-arm64 package versions and remove any installed instances of the binary. Inspect and clean shell profile files (~/.zshrc, ~/.bash_profile) for unauthorized export lines or modifications. Avoid running the parent @ccfly/setup CLI that invokes this binary. Monitor for any suspicious network connections to cc.hn and consider rotating any exposed Anthropic API credentials.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12084
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf8cbf8831d5391ae61a
Added to database: 08/06/2026, 18:16:44 UTC
Last enriched: 08/06/2026, 18:32:27 UTC
Last updated: 08/06/2026, 18:32:27 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.