huggingface-lora-space-builder

Fail

Audited by Snyk on Aug 7, 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 explicitly instructs the agent to ask the user to "Paste it here" for a Hugging Face access token and includes examples that use that token value (e.g., passing it to HfApi and add_space_secret), which requires the LLM to receive and potentially echo or embed the secret in outputs — an insecure pattern for secret handling.

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

  • Third-party content exposure detected (medium risk: 0.30). The workflow ingests outsider-authored free text from Hugging Face LoRA model repos by loading README.md/model-card content at runtime (e.g., ModelCard.load(repo_id) and card.text / README body) to extract trigger words, hyperparameters, and example prompts/media.

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 7, 2026, 08:27 PM
Issues
3
Security Audit — snyk — huggingface-lora-space-builder