Documented Incident · INC-OBS-015 · Critical severity
Hugging Face Spaces Secrets Unauthorized Access Forcing Platform-Wide Token Revocation
On May 31, 2024, Hugging Face publicly disclosed that its security team had detected unauthorized access to its Spaces hosting platform, specifically impacting a subset of user-configured Spaces secrets. Because developers routinely store OpenAI, Anthropic, database, and Hugging Face write tokens inside Spaces environment secrets to power hosted Gradio and Streamlit demos, unauthorized secret exposure threatened downstream account takeover and API billing abuse. Hugging Face immediately revoked potentially exposed Hugging Face tokens held in Spaces secrets, notified affected creators to rotate third-party keys, deprecated legacy org tokens, and accelerated migration to KMS-backed secret encryption and fine-grained access tokens.
Incident dossier metadata
- Case ID
INC-OBS-015- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Data Exfiltration
- System type
- Hosted ML App & Inference Demo Platforms
- Reference URI
https://huggingface.co/blog/space-secrets-security-update
Defensive takeaway
Use fine-grained least-privilege tokens with spending caps in hosted ML demo apps and rotate third-party API secrets whenever upstream hosting platforms disclose access breaches.
Mapped AI security techniques
- Valid Accounts AML.T0012
- Unsecured Credentials AML.T0055
- Credentials from AI Agent Configuration AML.T0083
- Exploitation for Credential Access AML.T0106
- Compromise Accounts AML.T0139
Mapped defensive controls
- Control Access to AI Models and Data at Rest AML.M0005
- Encrypt Sensitive Information AML.M0012
- Control Access to AI Models and Data in Production AML.M0019
- AI Telemetry Logging and Monitoring AML.M0024
Source citation records
- Hugging Face Space Secrets Security Update · Hugging Face ·