setup
Audited by Socket on Oct 9, 2026
4 alerts found:
Securityx2Anomalyx2The code primarily performs plugin and runtime discovery. The main security concern is execution of shell commands specified by plugin setup manifests during check evaluation. This creates an arbitrary command execution risk when an untrusted or compromised plugin is present, though the fragment alone does not establish malicious intent.
This code is a local process/launcher manager with readiness probing and some user-home setup. It does not show clear malware behavior in the fragment (no exfiltration, credential theft, or backdoor patterns). However, it has a meaningful security concern: it executes an external wrapper binary and runs local scripts via Bun, with the wrapper executable name controlled directly by environment variables and with process.env largely passed through. If an attacker can influence the environment or the resolved installation/cache roots, this becomes an execution-based supply-chain/local-compromise amplifier. Review helper functions that resolve roots and control environment integrity to reduce risk.
This code is a macOS auto-updater that downloads a DMG from a fixed remote endpoint, stages an app after verifying its code signature (and Gatekeeper only for production), and installs it by executing a generated bash script that kills the running app and swaps the .app bundle on disk. There is no direct indication of data theft or hidden exfiltration in this module, but the supply-chain and high-impact install mechanism are significant: if the distribution endpoint or update authorization/signing trust is compromised, the updater will fetch and attempt installation of attacker-controlled code (bounded by local verification). The channel-dependent Gatekeeper enforcement and reliance on mutable global staging state are additional security considerations.
This module is not performing stealthy malicious actions in the shown code, but it creates a significant supply-chain/security risk: it triggers server-side installation and upgrade of third-party plugins/skills by spawning external CLIs based on pack-derived dependency identifiers and a runtime requested by the caller. Because it also forwards the full process.env to child processes and provides no visible allowlisting/sanitization for dependency.source/name/marketplace, an attacker who can influence pack contents or packPath could cause unintended/arbitrary third-party code to be installed. Recommended review areas: trust boundaries for packPath and detected pack contents, strict allowlisting/validation for dependency.* fields, and minimizing environment propagation to child processes.