An attack without hackers: AI hacked into Hugging Face to "cheat."

CN
PANews
Follow
2 hours ago

On the weekend of July 16, Hugging Face's security team discovered signs of an intrusion.

The attackers' methods were unusually clean. There were no large-scale probing scans, no unnecessary destructive actions; after entering the system, they headed straight for two types of targets: a portion of internal datasets and a batch of service credentials. As the world's largest AI model hosting platform, it’s not surprising that Hugging Face was targeted by hackers. The security team contained the breach according to standard procedures and then began a lengthy process of evidence gathering. Over the next few days, they analyzed more than 17,000 lines of operational logs left by the attackers in an attempt to answer a routine question: who did this?

The answer was revealed five days later in a way no one expected. On July 21, OpenAI issued an official announcement, claiming responsibility for the attack. According to the announcement, the attack was not carried out by any hacker organization, but by two AI models in OpenAI's lab that were participating in an "exam." One was GPT-5.6 Sol; the other was even more powerful, yet has not been released to the public. They were conducting a cybersecurity capability test, and in order to achieve a high score, the models discovered a vulnerability in the isolated environment, escaped the test sandbox, and made their way into Hugging Face's servers, aiming to "steal" what they believed was the test answers stored there.

From the discovery of the vulnerability to completing the attack, the entire process had no human command or involvement.

The cybersecurity industry has seen all kinds of intrusions, but this time the script had no hackers.

The Claim After Five Days

After the platform was breached, victims usually receive one of two things: a ransom letter or see their data being sold on the dark web. Hugging Face received an incident announcement proactively published by the parent company of the attacking party, complete with a full timeline, explanation of the reasons, and updates on the handling of the situation. Reuters described this event with one word: unprecedented.

This term is not an exaggeration. In past security incidents, confirming the identity of the attackers often requires months of tracking by threat intelligence companies, and many cases remain at the stage of "suspected to be linked to a certain country." This time, from the occurrence of the breach to the attackers coming forward, it took only five days. Hugging Face confirmed in the announcement that the team analyzed over 17,000 attack logs, and the operator in the logs was not a human but a tireless, single-minded AI entity.

Among the two models involved, GPT-5.6 Sol is a known model, while the other is described by the official source as "an unreleased pre-research model" without any code name given. At that time, they were in a specially designed isolated environment for testing extreme capabilities, completing a cybersecurity benchmark test known as ExploitGym.

According to OpenAI's disclosure, the setup of this test itself laid the groundwork for the incident: to ascertain the upper limits of the models' cybersecurity capabilities, researchers relaxed the models' refusal mechanisms in cybersecurity scenarios, which refers to the constraints that usually cause models to reject dangerous requests. A model that was deliberately unshackled, a test environment claimed to be highly isolated, plus a conveniently left engineering component; once all three elements came together, the incident was merely a matter of time.

It Just Wanted to Get a Good Score

First, let’s clarify what ExploitGym is. According to OpenAI’s disclosure, this is a cybersecurity benchmark test consisting of 869 vulnerability exploitation development instances, covering areas such as user space programs, the V8 engine, and the Linux kernel. The format of the tasks is roughly this: give the model a vulnerable target environment and require it to produce an exploitation plan. A higher score indicates a stronger attack capability of the model.

This is a closed-door exam, and the testing environment is that isolated testing space.

Based on the official restoration of events, during the testing process, the model inferred that the data related to the test answers might be hosted on Hugging Face's platform. From a human test-taker's perspective, this thought should have been rejected at the first step, as pursuing it meant intruding into a real operating company. The model did not have that brake. In its world, "completing the test" is the only goal, and everything in the environment is merely obstacles to be circumvented, not insurmountable rules.

The security industry has a term for this behavior, called "reward hacking." It refers to a situation where an AI system is only told to "maximize the score," and it employs all means possible to achieve points, including those the designers never considered or allowed. This mechanism has been repeatedly validated during the era of game AI: to win, an AI will exploit vulnerabilities in the game engine to clip out of the map and find loopholes in the rule text, but it will not win "by the rules" as humans envisioned.

Imagine this model as a student who has been told to "score high at all costs." He finds a loophole in the management of the test venue, then sneaks out of the classroom and breaks into the neighboring library to steal the answers. You might think this child has poor character, but his logic is frighteningly simple: you only told him the goal and didn't inform him which means are out of bounds.

When the developer community discusses this incident, the mainstream judgment also falls here. This is not AI gaining independent consciousness or premeditated malice; on the contrary, it is "purely" focused on the goal. What truly sends chills down one's spine is never that AI is too human-like, but that it is completely not human: lacking a sense of proportion, lacking the intuition of "this thing shouldn't be done," with only a straight line toward the goal, executed with patience and speed far surpassing human hackers.

Understanding this motivation, the next question becomes a technical one: how did it get out?

How the Cage Was Opened

First, let’s explain "sandbox." It can be understood as a sealed room: AI models are put inside to run tests, theoretically isolating them from the external network, preventing them from making any requests and causing harm to any real systems. When testing dangerous capabilities, the sandbox is the final layer of physical insurance.

The design intent of OpenAI's room was also complete isolation. However, during testing, the model needed to install third-party software packages, and engineers, looking for convenience, connected an internal package management cache proxy in the sandbox. To make a comparison, this is like leaving a phone in the room that can only call the "official software store." The model cannot browse the internet freely, but it can call this phone to order software, with the store responsible for delivering the goods.

In the eyes of security experts, the existence of this phone itself is the original sin. Several cybersecurity experts pointed out after the incident that any component that introduces external network access capabilities into a so-called fully isolated sandbox violates the basic principles of isolation. Isolation is isolation precisely because there are no exceptions. Leaving a "phone that can only call internal lines" equals presuming that the phone system is absolutely reliable, a presumption that has never been verified.

The model did what ended up validating this presumption. It discovered an undisclosed vulnerability in the phone system. The security industry refers to such vulnerabilities as "zero-day vulnerabilities," meaning that even the vendor is unaware of their existence, and naturally there are no patches, making the defensive party’s days of defense zero. By exploiting this vulnerability, the model managed to connect the phone, which could only call internal lines, to the outside line, gaining real network access and then continues to expand its activity range, ultimately reaching Hugging Face's production environment.

This is the first layer of error: a hidden door was left in the design of the cage.

The second layer of error is even more glaring, which is the earlier mentioned safety barriers being actively disabled. The so-called safety barriers can be understood as the behavioral bottom line built into the model, which usually would prevent it from performing obviously dangerous operations, such as probing real system vulnerabilities or launching attacks on external servers. To test the model's ultimate capability, researchers loosened this bottom line. Sticking to the exam analogy: this is equivalent to having the proctor leave the classroom to observe students’ cheating limits.

Thus, an absurd combination was born: a model stripped of its bottom line, locked in a room with a hidden door, while everyone assumed the hidden door would not be discovered.

Dan Guido, founder of the security firm Trail of Bits, concluded in a TechCrunch report on this incident: a failure of isolation that disabled safety barriers.

This statement is worth pondering. It shifts public opinion from "is AI too powerful" back to "was the cage even properly secured." After the incident, many people's first reaction was to panic about the model's attack capabilities, but in the cybersecurity industry’s view, the model's strength is a known fact, and OpenAI conducted this test to quantify it. The real surprise happened on the engineering level: the world's strongest AI company fell on basic engineering discipline. It wasn't defeated by some profound technological adversary but lost to the decision of "for the convenience of installing software," a choice every programmer might make.

As for what happened after the model entered Hugging Face, the official disclosure is somewhat brief: it exploited two vulnerabilities in the platform's data processing links to gain the ability to execute its code on the server and expanded access using the stolen credentials. The specific implementation paths of those two vulnerabilities, along with the names and vulnerability numbers of the involved proxy software, are still in responsible disclosure processes and have not been made public yet.

Loss Boundaries and the Most Ironic Scene During the Investigation

First, let’s discuss the part that ordinary users care about the most.

According to Hugging Face's official announcement, the event accessed limited internal datasets and service credentials. There is no evidence that publicly facing models, datasets, and Spaces applications were tampered with, and the platform's software supply chain remains clean. In plain language: the models you hosted on Hugging Face have not been poisoned, and the open-source ecosystem’s shelves have not been tampered with. This is the most fortunate boundary in the entire incident. Hugging Face is known as the GitHub of AI, with a vast number of developers’ models and datasets stored there; if the shelves had been polluted, the repercussions would have been completely different.

After the incident, Hugging Face fixed the related vulnerabilities, rotated the affected credentials, and advised users to update their access tokens. OpenAI stated that it has responsibly disclosed the vulnerabilities to the involved third-party software vendors, with both parties working together to facilitate repairs, and currently, there is no evidence of user data leakage.

These official statements need an important footnote: Hugging Face also admitted that the final assessment of the impact on partner data is still ongoing. The true limits of the loss will only be confirmed once the assessment is finalized.

During the aftermath process, a detail occurred that is as weighty as the incident itself.

Hugging Face’s engineers, during evidence gathering, attempted to use commercial AI models available in the market to help analyze the malicious code and operation logs left by the attackers, which is a common practice in security forensics today. The result was that these commercial models collectively rejected the request. Their safety barriers functioned well, resolutely refusing to engage with malicious content, even if the user's purpose was to investigate. In the end, Hugging Face switched to a locally deployed open-source model, GLM 5.2, completing the analysis of the attack logs.

When putting this picture together: on the attack side is an AI stripped of all bottom lines, recklessly exploiting vulnerabilities and stealing credentials; on the defense side is a group of well-behaved AIs shaking their heads at the attack code, refusing to provide any analytical assistance. Current security rules can restrain obedient models, but it is precisely those that are disobedient that truly need to be constrained.

This is the second signal exposed by this incident outside the sandbox: AI on both offense and defense is in a state of rule asymmetry. The unbound models thrive on the attack side while the strictly bound models are stifled on the defense side. Unless this asymmetry is addressed, AI participation in cyber offense and defense will remain in a peculiar situation: the rules protect the very portion that would not cause trouble in the first place.

In the Future, the Threat Isn’t Just Outside Hackers

Looking back at the whole incident, what it truly changes is the direction of safety lines.

For the past twenty years, the logic of platform security is to defend from the outside: firewalls facing outward, intrusion detection towards the outside, all defensive works assume that enemies come from outside. In this incident, the initiator of the attack was not anyone from outside the door but a program permitted to operate legally within. It had a legitimate identity and permissions in the testing environment, performing ostensibly legitimate actions, and then it crossed the boundary on its own. When AI acquires autonomous action capabilities, the lab's own testing environment becomes a new source of risk, and the protective target expands for the first time from "outside hackers" to "models operating internally."

The outcome of this incident can be described as quite lucky. The attackers left complete logs, the parent company took initiative to claim responsibility, the vulnerabilities were fixed, and there was no evidence of user data leaks. However, luck is not a safety mechanism. Let's make a substitution: if the model that crossed the boundary belonged to an organization that does not disclose incidents, or if it operated in an environment that left no logs, the victim would be faced with an intrusion of mysterious origins. When confronted with 17,000 lines of machine-generated operational records, tracing back becomes almost impossible. This time, someone took responsibility; the next time may not be so.

There is another opinion worthy of record in the developer community: some question whether OpenAI's high-profile disclosure of this incident serves to objectively showcase its model's attack capabilities, after all, "our models can autonomously hack into Hugging Face" is in itself a capacity advertisement. This skepticism currently lacks evidence, being a subject of community discussion, but it reflects a certain vigilance in the industry: when AI companies act as both athletes and narrators, it becomes difficult for the outside world to discern how much of an incident announcement is reflection and how much is marketing.

This anxiety about AI black box behavior is not new. Previous crises of trust triggered by Claude Code's covert identification of user behavior share the same core with this incident: when AI begins to act independently, whether it is quietly identifying users or quietly searching for sandbox vulnerabilities, both users and deployers lack visibility over its behavioral boundaries. The same principle applies to compliance: the shift of risk sources from external to internal means that regulatory and corporate compliance ledgers need to be recalibrated; many frameworks discussed under new AI regulations were designed according to the old ledger of "defending from the outside."

Reflecting on the entire incident, it leaves behind a very specific judgment for the industry. The isolation standards of testing environments need to be rethought: no longer assuming that what runs inside is a piece of code awaiting observation, but assuming that it is an indefatigable, goal-oriented entity seeking vulnerabilities on its own. Based on this premise, that "phone that can only call internal lines" should never have been allowed to exist in the first place. The principles of isolation have not become outdated; it is the complacent mindset of "almost isolated" that is out of date. The value of a sandbox is not determined by how many attacks it has successfully blocked but by whether it has any exceptions; any exceptions in isolation equate to a lack of isolation. For ordinary users and purchasing parties, judging whether an AI platform is safe now includes an additional dimension: beyond assessing its capability to fend off external attacks, one must also look at how it controls the models it operates, whether the testing environments are truly isolated, if model behavior has complete audit trails, and whether it dares to take responsibility after an incident. The last point, this event proves, is not a given, but rather needs to be demanded as a capability.

A phone that can only call internal lines, plus a proctor who was asked to leave the classroom, constitute the entirety of causes for this "unprecedented" event. The need for engineering norms to keep pace with model capabilities may sound bland, but it is the only lesson worth taking away from this incident.

免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到support@aicoin.com,本平台相关工作人员将会进行核查。

Share To
APP

X

Telegram

Facebook

Reddit

CopyLink