complete-task-based-on-hf
Pass
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- Command Execution: The skill invokes the Hugging Face CLI via a Python helper script using
subprocess.run. This is a standard method for interacting with system tools. - Evidence:
scripts/discover_hf_models.pyusessubprocess.runto executehf models list. The implementation is resilient to shell injection because it passes arguments as a list rather than a single string, and does not useshell=True. - Indirect Prompt Injection Surface: The workflow involves reading untrusted content from the internet, specifically Hugging Face model cards and research papers. This content could theoretically contain instructions designed to influence the agent's behavior.
- Ingestion points: Untrusted data enters the agent context through Hugging Face model cards (
hf models card) and paper text (hf papers read), as described inSKILL.md. - Boundary markers: No explicit delimiters or instructions to ignore embedded commands are used when the agent processes this text.
- Capability inventory: The skill possesses capabilities to execute CLI commands (via the discovery script) and perform database writes (by orchestrating the
add-evalsskill). - Sanitization: Explicit sanitization of the fetched text is not performed; the skill relies on the agent's ability to extract specific structured data (metrics, tables) as directed in Phase 4 and 5.
- Secure Credential Management: The skill utilizes a dedicated environment file for managing access keys. This is consistent with security best practices for avoiding credential exposure.
- Evidence:
SKILL.mdand the scripts utilizeuv run --env-file backend/keys.envto supply necessary credentials to the environment, preventing hardcoding of sensitive tokens.
Audit Metadata