transformers

Warn

Audited by Gen Agent Trust Hub on Jul 10, 2026

Risk Level: MEDIUMREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [REMOTE_CODE_EXECUTION]: The skill documents the use of the 'trust_remote_code=True' parameter in SKILL.md and references/models.md. This feature allows the library to download and execute arbitrary Python code from remote model repositories on the Hugging Face Hub.- [EXTERNAL_DOWNLOADS]: The skill provides instructions to download and install numerous Python packages from PyPI, including 'transformers', 'datasets', and 'accelerate'. It also facilitates the download of pre-trained models from the Hugging Face Hub, an established platform for machine learning resources.- [COMMAND_EXECUTION]: The skill utilizes the 'Bash' tool to perform environment setup, library installation via 'uv pip', and authentication with the Hugging Face CLI ('hf auth login').- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection. It demonstrates patterns for ingesting and processing untrusted text data through inference pipelines without recommending sanitization or boundary markers to differentiate between data and instructions.
  • Ingestion points: Text inputs to pipeline objects and 'model.generate()' calls.
  • Boundary markers: Missing; the skill does not explicitly instruct the agent to use delimiters for external data.
  • Capability inventory: The agent has 'Bash' and 'Write' tool access, which could be exploited if malicious instructions are successfully injected and executed as code.
  • Sanitization: None; the documentation does not cover input validation or filtering.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Jul 10, 2026, 04:33 PM