Archive of AI

Source Snapshot / 2024-05-31-huggingface-spaces-secrets-unauthorized-access-3

Secrets Exposed in Hugging Face Hack

Linked event: 2024-05-31 · Hugging Face Spaces Suffers Unauthorized Access, Exposing Application Secrets and Authentication Tokens

Publisher
SecurityWeek
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 9d02febac33bdfc7
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

SECURITYWEEK NETWORK:

Cybersecurity News

Virtual Events

ICS Cybersecurity Conference

Connect with us

Hi, what are you looking for?

SecurityWeek

Malware & Threats

Cyberwarfare

Data Breaches

Fraud & Identity Theft

Nation-State

Vulnerabilities

Security Operations

Threat Intelligence

Incident Response

Tracking & Law Enforcement

Security Architecture

Application Security

Cloud Security

Endpoint Security

Identity & Access

IoT Security

Mobile & Wireless

Network Security

Risk Management

Cyber Insurance

Data Protection

Privacy & Compliance

Supply Chain Security

CISO Strategy

CISO Conversations

Industrial Cybersecurity

Cybersecurity Funding

Artificial Intelligence

Secrets Exposed in Hugging Face Hack

AI tool development platform Hugging Face has detected a Spaces hack that resulted in the exposure of secrets.

Eduard Kovacs

June 3, 2024 (3:35 AM ET)

AI tool development company Hugging Face informed customers on Friday that it had detected unauthorized access to its Spaces platform.

Hugging Face Spaces makes it easier for users to create and share machine learning (ML) applications and demos with others.

According to the company, the unauthorized access to the Spaces platform may have exposed “a subset of Spaces’ secrets”.

In response, it has revoked tokens present in the compromised secrets and it has notified impacted users.

“We recommend you refresh any key or token and consider switching your HF tokens to fine-grained access tokens which are the new default,” Hugging Face said in a blog post.

The company has called in external forensics experts to assist with the investigation, and it has notified law enforcement and data protection authorities.

Advertisement. Scroll to continue reading.

“Over the past few days, we have made other significant improvements to the security of the Spaces infrastructure, including completely removing org tokens (resulting in increased traceability and audit capabilities), implementing key management service (KMS) for Spaces secrets, robustifying and expanding our system’s ability to identify leaked tokens and proactively invalidate them, and more generally improving our security across the board,” Hugging Face said.

“We also plan on completely deprecating ‘classic’ read and write tokens in the near future, as soon as fine-grained access tokens reach feature parity,” it added.

In late 2023, an AI security startup discovered more than 1,600 Hugging Face API tokens exposed in code repositories, providing access to hundreds of organizations’ accounts.

Related: Critical Flaw in AI Python Package Can Lead to System and Data Compromise

Related: Eight Vulnerabilities Disclosed in the AI Development Supply Chain

Related: Critical Vulnerabilities Found in Open Source AI/ML Platforms

Eduard Kovacs (@EduardKovacs) is senior managing editor at SecurityWeek. He worked as a high school IT teacher before starting a career in journalism in 2011. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert

More from Eduard Kovacs

JPMorgan, Visa, Mastercard Cite Third-Party Incidents Amid Data Leak

Newly Patched VMware vCenter Flaw Exploited as Zero-Day by Chinese APT

Nvidia Responds to Gentlemen Ransomware Claim

Hackers Exploit Cisco Expressway Vulnerability Soon After PoC Release

Critical Apache Roller, Axis Vulnerabilities Exploited in Attacks

Java4Shell Exploitation Attempts Begin as Vendors Rush Out Advisories

Last of Five Defendants Sentenced in US Scattered Spider Hacking Case

Microsoft Takes Perception Agentic Security Platform Out of Preview

FBI Investigating Apparent Hack of Its Key National Criminal Justice Database, AP Source Says

President Trump Taps Kirsten Davies as National Cyber Director

Amazon: China-Linked Hackers’ AI Agents Exploited Medical Software Zero-Day

WhatsApp Fixes Flaw Uncovered While Disrupting Scam Campaign

In Other News: Norwegian Energy Firm Cyberattacks, Supercomputer Hack, New Nightmare Eclipse Exploit

Industry Reactions to Major Outages and AI Patching Debate: Feedback Friday

SBC Medical Group Data Breach Impacts Over 2 Million

European Commission Confirms AI-Assisted Cyberattack Disrupted Services

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

NOW LIVE: CISO Forum 2026 Summit

November 10 & 11, 2026

Join as we bring together CISOs, senior cybersecurity executives, practitioners, industry experts, and other security leaders to share practical experience and examine the issues shaping enterprise cybersecurity strategy.

Webinar: The Agentic SDLC Security Playbook

December 3, 2026

Join to learn the four levels of architecting security into the agentic SDLC – from securing the code your developers' agents write to running a coordinated system of security agents you've built yourself.

People on the Move

Kirsten Davies has been appointed National Cyber Director.

Zifino has appointed Toney E. Jennings as CRO.

Zeke Maldonado has been named Principal Deputy CIO at the US Department of Commerce.

More People On The Move

Expert Insights

The Governance Gap in Open-Weight AI and What to Do About It

Lower costs, data privacy, and greater control are driving open-weight AI adoption, but many organizations are not addressing the risks that come with it.

Is AI Making Us Worse at Cybersecurity?

Overreliance on AI could erode the creativity, clear communication, and critical thinking security teams need when there’s no playbook.

(Joshua Goldfarb)

The Agent Smith Dilemma: Governing Agentic Identities

Every autonomous AI agent deployed across your enterprise today is a new proxy identity operating inside your perimeter.

(Danelle Au)

Passkeys Are Better Than Passwords. But They Are Not Enough.

As organizations eliminate passwords, attackers will adapt. Instead of attacking the authenticator directly, they will look for opportunities around it.

(Torsten George)

When Risk Becomes Personal: What Security Leaders Can Learn From a Cancer Diagnosis

Risk managers are trained to spot weak signals, plan for disruption and make hard decisions under uncertainty. But the discipline looks different when the risk is not a system or an enterprise, but you.

(Steve Durbin)

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity

news, threats, and expert insights. Unsubscribe at any time.