hugging-face-model-trainer

Fail

Audited by Snyk on Aug 9, 2026

Risk Level: HIGH
Full Analysis

HIGH W007: Insecure credential handling detected in skill instructions.

  • Insecure credential handling detected (high risk: 1.00). The skill repeatedly instructs embedding HF_TOKEN via constructs like secrets={"HF_TOKEN": "$HF_TOKEN"} and states "$HF_TOKEN" references your actual token value, which requires the agent to include the user's secret token in generated job submissions/commands (exposing secrets verbatim).

MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).

  • Third-party content exposure detected (medium risk: 0.30). In SKILL.md, the workflow’s required dataset validation step can ingest previewed fields from an outsider-authored Hugging Face dataset via scripts/dataset_inspector.py calling the Datasets Server API (e.g., get_rows()), and then prints example text and “MAPPING CODE” to stdout for the agent to consume/act on.

MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).

Issues (3)

W007
HIGH

Insecure credential handling detected in skill instructions.

W011
MEDIUM

Third-party content exposure detected (indirect prompt injection risk).

W012
MEDIUM

Unverifiable external dependency detected (runtime URL that controls agent).

Audit Metadata
Risk Level
HIGH
Analyzed
Aug 9, 2026, 09:30 PM
Issues
3
Security Audit — snyk — hugging-face-model-trainer