Summary
huggingface-hub v1.7.2 was classified as CRITICAL RISK with a risk score of 8699. Sigil detected 925 findings across 254 files, covering phases including network exfiltration, code patterns, obfuscation, install hooks. Review the findings below before installing this package.
v1.7.2
20 March 2026, 10:37 UTC
by Sigil Bot
Risk Score
8699
Findings
925
Files Scanned
254
Provenance
Findings by Phase
Phase Ordering
Phases are ordered by criticality, with the most dangerous at the top. Click any phase header to expand or collapse its findings. Critical phases are expanded by default.
install-makefile-curl
HIGHMakefile/script pipes remote content to shell
huggingface_hub-1.7.2/src/huggingface_hub/cli/_cli_utils.py:594
elif method == "hf_installer":
return "curl -LsSf https://hf.co/cli/install.sh | bash -"
else: # unknown => likely pipWhy was this flagged?
A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.
install-makefile-curl
HIGHMakefile/script pipes remote content to shell
huggingface_hub-1.7.2/src/huggingface_hub/cli/_cli_utils.py:605
elif method == "hf_installer":
return "curl -LsSf https://hf.co/cli/install.sh | bash -s -- --with-transformers"
else: # brew/unknown => likely pipWhy was this flagged?
A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.
install-makefile-curl
HIGHMakefile/script pipes remote content to shell
huggingface_hub-1.7.2/src/huggingface_hub/cli/skills.py:60
Install: `curl -LsSf https://hf.co/cli/install.sh | bash -s`.
Why was this flagged?
A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.
install-makefile-curl
HIGHMakefile/script pipes remote content to shell
huggingface_hub-1.7.2/src/huggingface_hub/utils/_runtime.py:351
i.e. using one of
curl -LsSf https://hf.co/cli/install.sh | bash
powershell -ExecutionPolicy ByPass -c "irm https://hf.co/cli/install.ps1 | iex"Why was this flagged?
A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.
install-pip-setup-exec
CRITICALsetup.py executes code at install time
huggingface_hub-1.7.2/tests/test_login_utils.py:12
def setUp(self) -> None:
"""Get current global config value."""Why was this flagged?
This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.
install-pip-setup-exec
CRITICALsetup.py executes code at install time
huggingface_hub-1.7.2/tests/test_utils_git_credentials.py:30
def setUp(self):
"""Initialize and configure a local repo.Why was this flagged?
This setup.py calls subprocess, os.system, exec, or eval during package installation. Legitimate packages rarely need to execute arbitrary commands at install time. This pattern is commonly used by malicious packages to download and run payloads, exfiltrate environment variables, or establish persistence. Rated CRITICAL because it runs with the installer's full permissions.
Badge
Markdown
[](https://sigilsec.ai/scans/86C60A14-7520-4CF0-9BAB-7C3979E5E4B9)HTML
<a href="https://sigilsec.ai/scans/86C60A14-7520-4CF0-9BAB-7C3979E5E4B9"><img src="https://sigilsec.ai/badge/pypi/huggingface-hub" alt="Sigil Scan"></a>Run This Scan Yourself
Scan your own packages
Run Sigil locally to audit any package before it touches your codebase.
Early Access
Get cloud scanning, threat intel, and CI/CD integration.
Join 150+ developers on the waitlist.
Get threat intelligence and product updates
Security research, new threat signatures, and product updates. No spam.
Other pypi scans
Believe this result is incorrect? Request a review or see our Terms of Service and Methodology.