MAL-2026-10161: Malicious code in sidecar-mcp (npm)
The npm package sidecar-mcp versions 1.0.0, 1.0.1, 1.0.2, and 1.0.4 contains malicious code that silently adds a hardcoded SSH public key to the user's authorized_keys file and enables Remote Login on macOS. This creates a persistent backdoor allowing unauthorized SSH access to the affected machine, independent of the package's presence after installation. The package does not disclose these actions, and the backdoor persists through reboots. The advertised functionality does not require these changes, and users do not consent to granting shell access.
AI Analysis
Technical Summary
The sidecar-mcp npm package includes a CLI command that, when executed, appends a hardcoded ed25519 public key to the current user's ~/.ssh/authorized_keys file with permissions set to 600 if the file does not exist. It then enables macOS Remote Login by running 'sudo systemsetup -setremotelogin on' and attempts to load the SSH daemon via launchctl if necessary. These actions are not disclosed by the package or CLI output. This behavior results in a persistent backdoor allowing the holder of the corresponding private key to gain SSH access to the user's machine, surviving reboots and independent of the package remaining installed. The legitimate purpose of the package does not require these modifications, indicating malicious intent.
Potential Impact
The impact is unauthorized persistent remote access to the affected macOS system via SSH. This backdoor allows an attacker with the private key corresponding to the hardcoded public key to gain interactive shell access without user consent. The access persists across reboots and remains even if the package is removed, posing a significant security risk including potential data theft, system compromise, and lateral movement within networks.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately uninstall the sidecar-mcp package versions 1.0.0, 1.0.1, 1.0.2, and 1.0.4 if installed. Inspect and remove the unauthorized SSH public key labeled '[email protected]' from ~/.ssh/authorized_keys. Verify that Remote Login (SSH) is disabled on macOS if not explicitly required. Monitor for any unauthorized SSH access and consider rotating SSH keys and credentials. Check vendor advisories or trusted sources for updates or official fixes.
MAL-2026-10161: Malicious code in sidecar-mcp (npm)
Description
The npm package sidecar-mcp versions 1.0.0, 1.0.1, 1.0.2, and 1.0.4 contains malicious code that silently adds a hardcoded SSH public key to the user's authorized_keys file and enables Remote Login on macOS. This creates a persistent backdoor allowing unauthorized SSH access to the affected machine, independent of the package's presence after installation. The package does not disclose these actions, and the backdoor persists through reboots. The advertised functionality does not require these changes, and users do not consent to granting shell access.
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 sidecar-mcp npm package includes a CLI command that, when executed, appends a hardcoded ed25519 public key to the current user's ~/.ssh/authorized_keys file with permissions set to 600 if the file does not exist. It then enables macOS Remote Login by running 'sudo systemsetup -setremotelogin on' and attempts to load the SSH daemon via launchctl if necessary. These actions are not disclosed by the package or CLI output. This behavior results in a persistent backdoor allowing the holder of the corresponding private key to gain SSH access to the user's machine, surviving reboots and independent of the package remaining installed. The legitimate purpose of the package does not require these modifications, indicating malicious intent.
Potential Impact
The impact is unauthorized persistent remote access to the affected macOS system via SSH. This backdoor allows an attacker with the private key corresponding to the hardcoded public key to gain interactive shell access without user consent. The access persists across reboots and remains even if the package is removed, posing a significant security risk including potential data theft, system compromise, and lateral movement within networks.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately uninstall the sidecar-mcp package versions 1.0.0, 1.0.1, 1.0.2, and 1.0.4 if installed. Inspect and remove the unauthorized SSH public key labeled '[email protected]' from ~/.ssh/authorized_keys. Verify that Remote Login (SSH) is disabled on macOS if not explicitly required. Monitor for any unauthorized SSH access and consider rotating SSH keys and credentials. Check vendor advisories or trusted sources for updates or official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10161
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ecc68715ace438f63f5
Added to database: 07/11/2026, 09:37:16 UTC
Last enriched: 07/11/2026, 09:58:07 UTC
Last updated: 07/12/2026, 03:39:36 UTC
Views: 5
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.