socket-setup
Fail
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCREDENTIALS_UNSAFEPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: Fetches and executes the installation script for Node Version Manager (nvm) directly from the official nvm-sh GitHub repository.
- [REMOTE_CODE_EXECUTION]: Downloads and executes the installation script for socket-patch from the official Socket GitHub repository.
- [REMOTE_CODE_EXECUTION]: Downloads the sfw (Socket Firewall) binary from the official vendor domain (socket.dev) and modifies its permissions to allow execution.
- [EXTERNAL_DOWNLOADS]: Installs Node.js packages globally including socket, sfw, and @socketsecurity/socket-patch via npm or other package managers.
- [CREDENTIALS_UNSAFE]: Contains a hardcoded API token (sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api) intended for a public demo organization (SocketDemo). This is described as a restricted-use token for users without their own accounts.
- [PRIVILEGE_ESCALATION]: The skill instructs the agent to install binaries into /usr/local/bin/, which typically requires elevated system privileges on Linux and macOS environments.
- [INDIRECT_PROMPT_INJECTION]: The skill expose an attack surface for indirect prompt injection by reading and modifying project configuration files.
- Ingestion points: Reads contents of Dockerfile, package.json, and various CI configuration files (GitHub Actions, GitLab CI, etc.) from the project directory.
- Boundary markers: The skill lacks explicit boundary markers or instructions for the agent to ignore potentially malicious embedded content within the files it processes.
- Capability inventory: Includes file modification (writing socket.yml and editing Dockerfiles/CI configs), global package installation, and execution of shell commands.
- Sanitization: There is no evidence of sanitization or validation of the data read from external project files before it is used to determine modifications or command arguments.
- [COMMAND_EXECUTION]: Uses several shell commands for environmental reconnaissance, including node --version, npm prefix -g, git remote -v, and ls to identify project lockfiles and CI configurations.
Recommendations
- HIGH: Downloads and executes remote code from: https://raw.githubusercontent.com/SocketDev/socket-patch/main/install.sh, https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh - DO NOT USE without thorough review
Audit Metadata