Back Home

AI 開發工具安全

JFrog Routes Coding Agent Package Installs Through Artifactory, but Routing Is Disabled by Default in the Preview

Agent Package Resolution uses session prompts, package manager configuration, and server-side policies to direct dependency downloads triggered by Claude Code and Cursor to Artifactory. The feature remains in preview, with no repository bindings in its initial configuration, and the plugin alone cannot prevent agents from bypassing it to access public registries.

NASA · Public domain · Image source
zh-Hant

JFrog has released a preview of Agent Package Resolution to address the risk that coding agents may bypass enterprise package governance when independently selecting and installing dependencies. The feature is now integrated into JFrog’s Claude Code and Cursor plugins and supports npm, PyPI, Maven, Go, Docker, Helm, and NuGet. Its goal is to route direct, indirect, and transitive downloads triggered by agents through the same Artifactory, Curation, and Xray path used by human developers.

The implementation has three layers. At the start of a session, the plugin provides the agent with the Artifactory endpoint for each package type, influencing its subsequent installation commands. `jf setup` can then rewrite the project’s package manager configuration in a one-time operation, ensuring that commands such as `npm ci`, `pip install -r`, and post-install scripts continue using internal sources across sessions. Once a download reaches Artifactory, server-side Curation can reject the request based on malicious packages, licensing rules, or organizational policies. Xray then checks for known vulnerabilities and records downloads, blocks, and policy decisions.

This layered design matters: natural-language instructions are a soft control that a model can ignore; persistent package configuration is needed to cover installations executed automatically by tools; and server-side policies do not depend on the agent’s judgment. However, the official repository also reveals the deployment prerequisites. The template bundled with the preview uses empty repository bindings, so no packages are routed until a user explicitly enables the feature or an administrator adds `defaultGlobalRepos`. The Claude Code plugin also requires a JFrog URL, an access token, Node.js 18, `jf`, `jq`, and `curl`, while some Agent Guard capabilities additionally require an AI Catalog license.

Security teams should also avoid interpreting “all packages are governed” as complete network enforcement. Plugins and package manager settings can constrain only the workflows they intercept or rewrite. An agent capable of executing arbitrary shell commands could still use `curl`, a custom installer, or a hard-coded public registry. Establishing a true single egress path still requires network egress controls, proxy servers, container policies, and credential isolation. Engineering teams should next test monorepos, builds inside containers, private registry fallback, and whether silent bypasses can occur when plugins are upgraded or agents modify configuration.

Sources

  1. Coding Agents Just Reopened Your Software Supply Chain Blind Spot
  2. JFrog Plugin for Claude Code
  3. JFrog Plugin for Cursor