transformers
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process data from external sources such as the Hugging Face Hub (models) and various datasets. The processing of potentially attacker-controlled models or datasets presents a surface for indirect prompt injection.
- Ingestion points: Uses
datasets.load_datasetandAutoModel.from_pretrained(e.g., inSKILL.md,references/models.md, andreferences/training.md) to fetch external content. - Boundary markers: The provided code snippets do not demonstrate explicit boundary markers when interpolating dataset content into prompts.
- Capability inventory: The skill environment permits
Bash,Read,Write, andEdittools, which could be abused if malicious instructions are followed. - Sanitization: The instructions do not include specific sanitization steps for external data beyond standard library usage.
- [DYNAMIC_EXECUTION]: The documentation provides patterns for using the
trust_remote_code=Trueparameter, which enables the execution of arbitrary code included in remote model repositories. - Evidence:
SKILL.mdandreferences/models.mddiscuss the use oftrust_remote_code=Truefor custom model architectures. - Mitigation: The skill correctly warns users to only enable this for reviewed code, but the capability remains a high-tier risk factor.
Audit Metadata