hf-cli

Pass

Audited by Gen Agent Trust Hub on Nov 22, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONREMOTE_CODE_EXECUTION
Full Analysis
  • [Official Vendor Installation Scripts]: The skill provides commands to install the hf CLI and hf-mount utility by downloading and executing shell scripts directly from official Hugging Face domains.
  • Evidence: curl -LsSf https://hf.co/cli/install.sh | bash -s and curl -fsSL https://raw.githubusercontent.com/huggingface/hf-mount/main/install.sh | sh.
  • Context: These sources (hf.co and github.com/huggingface) are owned by the official vendor and provide the standard installation path. While piped remote execution is generally a security pattern to monitor, here it is used to pull trusted tooling from the author's infrastructure.
  • [Indirect Prompt Injection Surface]: The skill can ingest untrusted data from the Hugging Face Hub, which may contain instructions aimed at the agent.
  • Ingestion points: Commands such as hf datasets card, hf models card, hf papers read, and hf discussions info retrieve READMEs and comments authored by third parties.
  • Boundary markers: The skill does not explicitly define delimiters for this external content, which is typical for CLI documentation.
  • Capability inventory: The agent has permissions to perform sensitive operations like hf auth login, hf repos delete, hf buckets remove, and hf jobs run.
  • Sanitization: No specific sanitization or filtering of Hub content is described.
  • Context: An attacker could theoretically embed instructions in a model card to trick the agent into performing unintended actions once the card is read. This is a common property of tools that process community-generated content.
  • [Sensitive Data Access]: The skill management involves handling authentication tokens.
  • Evidence: Commands like hf auth token print the current access token to the console.
  • Context: This is the primary purpose of the authentication subcommands, but users should be aware that the agent may observe or pass these tokens during a session if requested.
  • [Execution of Remote or External Scripts]: The tool supports running extensions and remote scripts on managed infrastructure.
  • Evidence: hf extensions install REPO_ID, hf jobs uv run SCRIPT (which accepts a URL), and hf sandbox exec.
  • Context: These features enable the deployment and management of AI workloads. Users should ensure they only execute scripts from trusted repositories.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 22, 2026, 05:24 PM