hf-cli
Pass
Audited by Gen Agent Trust Hub on Aug 22, 2026
Risk Level: SAFEREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill facilitates the installation of the Hugging Face CLI by fetching and executing a setup script from the official
hf.codomain (curl -LsSf https://hf.co/cli/install.sh | bash -s). - [EXTERNAL_DOWNLOADS]: The skill provides instructions for installing the
hf-mountutility by downloading a script from the Hugging Face organization's official GitHub repository (https://raw.githubusercontent.com/huggingface/hf-mount/main/install.sh). - [COMMAND_EXECUTION]: The tool includes a feature (
hf extensions install REPO_ID) that allows the agent to install additional functionality from public GitHub repositories. - [DATA_EXFILTRATION]: While intended for legitimate use, the skill provides access to sensitive authentication tokens through commands like
hf auth tokenandhf auth login, and manages environment variables likeHF_TOKEN. This capability allows the agent to read and handle user credentials for the Hugging Face Hub. - [INDIRECT_PROMPT_INJECTION]: The skill ingests external data (such as repository IDs and academic paper IDs) and has broad capabilities including file writes, network requests, and code installation. Boundary markers are absent, creating a surface for processing instructions embedded in Hub content.
Recommendations
- INFO: Downloads code from trusted source(s): https://raw.githubusercontent.com/huggingface/hf-mount/main/install.sh
Audit Metadata