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.py uses subprocess.run to execute hf models list. The implementation is resilient to shell injection because it passes arguments as a list rather than a single string, and does not use shell=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 in SKILL.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-evals skill).
  • 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.md and the scripts utilize uv run --env-file backend/keys.env to supply necessary credentials to the environment, preventing hardcoding of sensitive tokens.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 22, 2026, 05:24 PM