hf-space-recovery
Pass
Audited by Gen Agent Trust Hub on Jun 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [Command Execution]: The skill executes several local shell commands and scripts to manage deployments. This includes standard utilities like
hf,jq,curl, anduv, as well as project-specific scripts such asscripts/prepare_hf_deployment.shandscripts/manage_hf_collection.py(found inSKILL.mdandreferences/troubleshooting.md). These are used to automate deployment and reconciliation tasks. - [Information Ingestion Surface]: The skill reads external data from the Hugging Face API, including event streams, metrics, and runtime error messages (e.g., in
SKILL.mdstep 3). This introduces a potential surface for indirect prompt injection if an attacker-controlled Space provides malicious logs, although the risk is categorized as low in this context. - Ingestion points:
hf spaces info,curl .../events, andcurl .../metrics(SKILL.md). - Boundary markers: None explicitly defined for the output of these commands.
- Capability inventory:
hf repo delete,restart_space(viahuggingface_hub), andscripts/prepare_hf_deployment.sh(SKILL.md). - Sanitization: The skill does not implement specific sanitization or escaping for the data fetched from the runtime APIs.
- [Administrative Actions]: The skill includes instructions to restart Spaces and, as a last resort, delete and recreate repositories (
hf repo deleteinSKILL.md). These are powerful administrative functions appropriate for the stated goal of recovering stuck environments. - [External API Interaction]: Network operations are performed against official Hugging Face domains (
huggingface.co,hf.space) to retrieve telemetry and status information. These operations use standard security practices like timeouts and limited output processing (sed -n '1,140p').
Audit Metadata