Addressing Recent Security Concerns at Hugging Face: A Commitment to Transparency and Improvement
In the fast-paced world of technology, security breaches can happen, even to the most reputable platforms. Earlier this week, Hugging Face experienced unauthorized access to our Spaces platform, raising concerns about the security of Spaces secrets. This incident underscores the importance of safeguarding user data and maintaining transparency with our community.
What Happened?
Our team recently detected suspicious activity related to unauthorized access on our Spaces platform. Specifically, we identified that a subset of Spaces’ secrets may have been accessed without proper authorization. In light of this incident, we took immediate action to mitigate potential risks and protect our users.
Immediate Actions Taken
As a first step in our remediation process, we revoked several Hugging Face (HF) tokens associated with the compromised secrets. Users whose tokens were affected have already received email notifications informing them of this change. We highly recommend that all users refresh their keys or tokens as a precautionary measure. Additionally, we encourage transitioning to fine-grained access tokens, which are now the new default and offer enhanced security features.
Collaborating with Cyber Security Experts
To address this incident comprehensively, we are collaborating with external cyber security forensic specialists. Their expertise will aid us in thoroughly investigating the breach and reviewing our existing security policies and procedures. This collaborative effort is crucial in ensuring that we understand the full scope of the incident and can prevent similar occurrences in the future.
Enhancements to Security Measures
In the wake of this incident, we have implemented significant improvements to the security of our Spaces infrastructure. Some of the key enhancements include:
-
Removal of Organization Tokens: By completely removing org tokens, we have increased traceability and audit capabilities, making it easier to monitor and manage token usage.
-
Implementation of Key Management Service (KMS): This service will enhance the security of Spaces secrets, ensuring that sensitive data is better protected.
-
Improved Token Monitoring: We have robustified and expanded our system’s ability to identify leaked tokens and proactively invalidate them, minimizing risks to user data.
- Transition to Fine-Grained Access Tokens: We are planning to deprecate “classic” read and write tokens as soon as fine-grained access tokens reach feature parity. This shift will significantly enhance our security framework.
These proactive measures reflect our commitment to enhancing security across our platform and ensuring that our users’ data remains safe.
Reporting to Authorities
In accordance with best practices, we have reported this incident to law enforcement agencies and data protection authorities. Transparency is fundamental to our approach, and we want our community to be fully informed about the steps we are taking to address this situation.
Commitment to Our Users
We deeply regret any disruption this incident may have caused and understand the potential inconvenience to our users. At Hugging Face, we are committed to using this incident as an opportunity to strengthen our entire infrastructure. We are dedicated to maintaining the trust of our users and ensuring the highest standards of security.
For any questions or concerns regarding this incident, we encourage users to reach out to us at security@huggingface.co. Your safety is our priority, and we are here to assist you.
Inspired by: Source

