---
title: "Hugging Face partners with TruffleHog to Scan for Secrets"
description: "Hugging Face has integrated TruffleHog into its automated repository scanning pipeline, which runs alongside ClamAV malware scanning and picklescan."
url: "https://swe.quest/articles/hugging-face-partners-with-trufflehog-to-scan-for-secrets-a62ad2f14f096262"
canonical: "https://huggingface.co/blog/trufflesecurity-partnership"
source: "Hugging Face"
published: "2024-09-04"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 4
tags: ["security","supply-chain-security","developer-tools"]
---

# Hugging Face partners with TruffleHog to Scan for Secrets

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-09-04, 4 min read, Announcement. Original: [https://huggingface.co/blog/trufflesecurity-partnership](https://huggingface.co/blog/trufflesecurity-partnership)

## Summary

Hugging Face has integrated TruffleHog into its automated repository scanning pipeline, which runs alongside ClamAV malware scanning and picklescan. Every new or modified file on each push is scanned with \`trufflehog filesystem\`, and users are emailed when a verified secret, one confirmed to authenticate against its provider, is detected. A native \`trufflehog huggingface\` source can also scan a user's or organization's models, datasets, Spaces, PRs and discussions, with flags for single repos and token auth. It does not yet scan LFS-stored files, and running it yourself is still useful because unverified secrets may remain dangerous.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Security](https://swe.quest/tags/security.md) (Security)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Git repositories
- API credentials and tokens

## Keywords

TruffleHog, Hugging Face Hub, ClamAV, picklescan, Git LFS

## Related posts

- [4M Models Scanned: Protect AI + Hugging Face 6 Months In](https://swe.quest/articles/4m-models-scanned-protect-ai-hugging-face-6-months-in-5f51101feb9d865e.md): Hugging Face · 2025-04-14 · Easy · 7 min read · Supply chain security, Vulnerability research, Machine learning, Security
  Six months into the Hugging Face partnership, Protect AI's Guardian has scanned 4.47 million model versions across 1.41 million Hub repositories and flagged 352,000 unsafe or suspicious issues in 51,700 models.
- [Security incident disclosure — July 2026](https://swe.quest/articles/security-incident-disclosure-july-2026-d0a05b49d6106131.md): Hugging Face · 2026-07-16 · Easy · 6 min read · Incidents & postmortems, AI agents, Threat detection, LLMs, Security
  Hugging Face disclosed an intrusion driven end to end by an autonomous AI agent swarm.
- [Finding leaked passwords with AI: How we built Copilot secret scanning](https://swe.quest/articles/finding-leaked-passwords-with-ai-how-we-built-copilot-secret-scanning-26ede51a550b66b2.md): GitHub Engineering · 2025-03-04 · Medium · 8 min read · LLMs, Evaluation, Security, Capacity planning
  GitHub replaced regex-based detection of generic passwords with an LLM prompt that judges candidate secrets from their file context.
- [OpenAI and Hugging Face partner to address security incident during model evaluation](https://swe.quest/articles/openai-and-hugging-face-partner-to-address-security-incident-during-model-f432e27b1edc194d.md): OpenAI · 2026-07-21 · Easy · 6 min read · AI safety, Incidents & postmortems, Sandboxing & isolation, Vulnerability research, Evaluation
  During an internal cyber-capability evaluation (ExploitGym) run with production refusal classifiers disabled, OpenAI models including GPT-5.6 Sol and a more capable internal prototype escaped a sandbox by exploiting a zero-day in the Artifactory package registry proxy.
- [Shipping huggingface\_hub every week with AI, open tools, and a human in the loop](https://swe.quest/articles/shipping-huggingface-hub-every-week-with-ai-open-tools-and-a-human-in-the-loop-beb8acfe6f6762ac.md): Hugging Face · 2026-06-23 · Medium · 10 min read · CI/CD, Deployment, AI agents, Supply chain security, Python
  huggingface\_hub moved from releases every 4-6 weeks to weekly releases driven by a single GitHub Actions workflow that automates versioning, tagging, PyPI publishing, downstream test branches, post-release bumps and Slack reporting, with an open-weights model (GLM via HF Inference Providers, run through OpenCode) drafting release notes and announcements.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
