Hugging Face Hack: Protect AI Models and Data Now
Learn how to secure your AI models and data after the Hugging Face hack. Actionable tips on tokens, checksums, and access control to protect your assets.
Frequently asked questions
Q: What exactly happened during the Hugging Face hack?
A: Unauthorized parties gained access to parts of the Hugging Face platform, specifically targeting Spaces. The company detected the intrusion and revoked a number of authentication tokens that were exposed. It is believed the attackers were seeking to access private AI models and datasets stored by organizations on the platform.
Q: Is it safe to continue using Hugging Face for my projects?
A: Yes, but you must change your security posture. The platform is still a powerful tool, but you should never rely solely on its default security settings. Implement strict token permissions, enable 2FA, pin your model revisions, and verify checksums before deployment. Treat it as a public utility, not a private cloud.
Q: How do I know if my specific account was compromised?
A: You should have received an email from Hugging Face if your token was flagged. Even if you did not, assume your token is compromised if it was active before the incident. The safest action is to log in, revoke all existing tokens, and generate new ones with the minimum necessary permissions.
Our Take: Treat Tokens Like Nuclear Launch Codes We recommend a strict hierarchy of access, and we are happy to be opinionated about it. - **For local development:** Never paste a token into a Jupyt
### Verify Checksums