hugging-face-cli

SAFE max severity LOWSkillSpector Do not install 100 registry huggingface last scanned 1 scan

Verdict safe, but 5 findings (5 low), mainly data exfiltration, policy violation, social engineering. Most recent scan 2026-02-07.

The hugging-face-cli skill is a documentation-focused skill that provides command reference and examples for the Hugging Face CLI tool. The skill does not contain executable scripts (Python/Bash) and serves primarily as a reference guide. Security analysis reveals only minor informational issues: missing optional metadata fields (allowed-tools, license, compatibility), missing referenced files, and opportunities to enhance security guidance around token handling. No critical or high-severity threats were identified. The skill does not attempt prompt injection, data exfiltration, command injection, or other malicious behaviors. The internal reference files (references/commands.md, references/examples.md) contain legitimate documentation and examples without malicious content. Overall, this skill presents minimal security risk and functions as intended - a reference guide for Hugging Face CLI operations.

Scanner's overall assessment (LLM analyzer)

Second scanner: NVIDIA SkillSpector

The two scanners disagree: Cisco found nothing and SkillSpector says do not install. One of them has a blind spot here; read the skill before trusting either. How the two scanners compare across the whole corpus: Two scanners, one corpus.

What this skill does

Execute Hugging Face Hub operations using the `hf` CLI. Use when the user needs to download models/datasets/spaces, upload files to Hub repositories, create repos, manage local cache, or run compute jobs on HF infrastructure. Covers authentication, file transfers, repository creation, cache operations, and cloud compute.

Package
3 files, 42 KB
SKILL.md
950 words, 12+ sections
Code
None. Instructions only.

SKILL.md covers: Hugging Face CLI · Quick Command Reference · Core Commands · Authentication · Download · Upload · Repository Management · Delete Files from Repo · Cache Management · Browse Hub · Models · Datasets

Findings

LOW Skill does not specify a license Policy Violationstatic

Skill manifest does not include a 'license' field. Specifying a license helps users understand usage terms.

SKILL.md

Remediation: Add 'license' field to SKILL.md frontmatter (e.g., MIT, Apache-2.0)
LOW Missing allowed-tools Declaration Data Exfiltrationllm

The skill does not declare 'allowed-tools' in its YAML manifest. While this field is optional per the agent skills specification, declaring it would improve transparency about which agent capabilities (Bash, Python, Read, Write, etc.) this skill requires. Since the skill executes Bash commands via the 'hf' CLI, it should ideally declare 'allowed-tools: [Bash]' for clarity.

SKILL.md

allowed-tools: Not specified
Remediation: Add 'allowed-tools: [Bash]' to the YAML frontmatter to explicitly declare the skill's tool requirements. This improves transparency and allows users to understand what capabilities the skill needs.
LOW Missing License and Compatibility Metadata Social Engineeringllm

The skill does not specify 'license' or 'compatibility' fields in its YAML manifest. While these are optional fields, including them would improve transparency about licensing terms and which environments (Claude.ai, Claude Code, API) the skill is designed for.

SKILL.md

license: Not specified
compatibility: Not specified
Remediation: Add 'license' field (e.g., 'MIT', 'Apache-2.0') and 'compatibility' field (e.g., 'Works in Claude.ai, Claude Code, API') to the YAML frontmatter to improve skill metadata completeness.
LOW Authentication Token Handling in Examples Data Exfiltrationllm

The skill documentation includes examples of passing authentication tokens via command-line arguments ('hf auth login --token $HF_TOKEN'). While using environment variables is a reasonable practice, the skill should emphasize secure token handling and warn against hardcoding tokens in scripts or command history.

hf auth login --token $HF_TOKEN            # Non-interactive with token
Remediation: Add a security note in the documentation emphasizing: (1) Never hardcode tokens in scripts, (2) Use environment variables or secure credential storage, (3) Be aware that tokens may appear in shell history when passed as command-line arguments, (4) Consider using interactive login ('hf auth login') for better security.
LOW Missing Referenced Files Data Exfiltrationllm

The skill references several files (cache.py, Repo.py, templates/examples.md, templates/commands.md, assets/examples.md, assets/commands.md) that were not found in the skill package. While two reference files (references/commands.md, references/examples.md) exist, the missing files suggest incomplete packaging or documentation references to non-existent resources.

Referenced files not found: cache.py, Repo.py, templates/examples.md, templates/commands.md, assets/examples.md, assets/commands.md
Remediation: Either: (1) Include the missing files in the skill package if they are intended to be part of the skill, or (2) Remove references to non-existent files from the documentation to avoid confusion.

What is in the package

FileKindSize
SKILL.mddoc7.3 KB
references/commands.mddoc27 KB
references/examples.mddoc8.3 KB

External hosts referenced

huggingface.co

Hostnames that appear in the skill's files. Referencing a host is not a finding; compare against the findings above and the skill's stated purpose.

Environment variables referenced

HF_TOKEN MODEL_NAME ORG HF_HUB_DOWNLOAD_TIMEOUT HF_HUB_CACHE HF_HUB_DISABLE_PROGRESS_BARS HF_HUB_OFFLINE MODELS MODEL_PATH UPLOAD_URL WANDB_KEY

Package contents recorded 2026-10-22 at commit 2afeee6dc727. The scan above ran against the version current at scan time; the two can differ if the skill has since been updated.

What we checked

What we did not check

Sources