hf-download
Pass
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes shell scripts (
hfdandcheck-env.sh) that orchestrate downloads usingcurl,aria2c, andwget. These scripts handle network operations and local file management to facilitate the download process. The script implementation follows standard shell scripting practices for CLI tools, including handling environment variables for configuration. - [INDIRECT_PROMPT_INJECTION]: The
hfdscript processes metadata retrieved from the Hugging Face API to identify and download specific files. While processing data from an external source (Hugging Face) is an attack surface, the script uses robust parsing methods likejqto handle the JSON responses. - Ingestion points: Metadata is fetched from
huggingface.co/api/and stored in a temporary JSON file (.hfd/repo_metadata.json). - Boundary markers: None. The script relies on JSON structure and defined API endpoints.
- Capability inventory: The script performs file system writes and initiates network downloads via subprocess calls to
curl,aria2c, orwget. - Sanitization: File lists are generated using
jqfilters or regex-based extraction withgrepandawkto ensure only specific fields from the metadata are used.
Audit Metadata