jfrog-init
Warn
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: MEDIUMPERSISTENCECREDENTIALS_UNSAFEREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [PERSISTENCE]: The installation scripts
jfrog-install-jf-cli.mjsandjfrog-resolve-mcp-config.mjs(specifically for the Kiro CLI harness) modify shell configuration files such as.bashrc,.zshrc,.profile, andconfig.fish. These modifications are used to append directories to the PATH environment variable to ensure the JFrog CLI and other tools are discoverable in future terminal sessions. - [CREDENTIALS_UNSAFE]: The
jfrog-add-claude-marketplace.mjsscript writes authentication credentials (an access token) to the user's~/.netrcfile during Step 8. This is a deliberate mechanism to enable the Claude Code CLI to install plugins from the JFrog marketplace, but it places sensitive tokens in a common configuration file that may be subject to unintended exposure or accidental inclusion in version control systems. - [REMOTE_CODE_EXECUTION]: The skill provides instructions for the agent to install
nvm(Node Version Manager) by piping a remote installation script fromraw.githubusercontent.comdirectly into thebashinterpreter. A similar pattern is used for Windows via a PowerShell one-liner usingInvoke-WebRequest. These patterns represent a remote code execution vector, although targeting a well-known community utility. - [EXTERNAL_DOWNLOADS]: The
jfrog-install-jf-cli.mjsscript facilitates the download and execution of thejfCLI binary fromreleases.jfrog.io. This is an official download from the vendor's infrastructure and is documented as a fallback (Plan C) when standard package managers fail. - [COMMAND_EXECUTION]: The skill makes extensive use of the
Bashtool to execute a suite of internal Node.js scripts. These scripts perform various system checks, handle authentication flows, and manage configuration files. Specific commands likenode --versionandnpx --versionare also executed directly to verify prerequisites. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted data from user inputs and external APIs.
- Ingestion points: Untrusted data enters the context via user-provided platform URLs and project names, as well as project metadata retrieved from the JFrog Platform API in
jfrog-detect-project.mjs. - Boundary markers: The workflow utilizes structural boundaries through the
AskUserQuestiontool to isolate user choices and includes instructions for the agent to suppress narration of internal logic. - Capability inventory: The skill possesses capabilities for file system writes to user home directories, network operations via
fetch, and execution of subprocesses including shell commands and the JFrog CLI. - Sanitization: The skill implements sanitization through regex validation for URLs and tokens (
SAFE_URL,SAFE_TOKEN) and includes logic to reject shell-unsafe arguments in CLI invocations.
Audit Metadata