OpenAI Hacked Hugging Face. Science Fiction Just Became Real.

Ding Yu

Strictly speaking, it was not an OpenAI employee who hacked Hugging Face. It was an AI model OpenAI was testing.

On July 21, 2026, OpenAI disclosed what it called an “unprecedented” security incident.

At the time, OpenAI was testing GPT-5.6 Sol and another, more capable model that had not yet been released. The models were asked to complete complex cybersecurity tasks. To measure the upper limits of their capabilities, OpenAI relaxed some of its safeguards.

The model was placed in a highly isolated test environment. In theory, it had no direct internet access and could install packages only through an internal proxy server.

But to complete the test, the model found and exploited a vulnerability in that proxy server. Incidentally, this was a previously unknown vulnerability that the AI discovered along the way. After the incident, OpenAI immediately contacted the author of the software running on the proxy server.

The model then escalated its privileges, moved laterally through OpenAI’s test environment, and eventually found a node with internet access.

Once online, it searched the web and determined that Hugging Face might have the models, datasets, or even test answers it needed. It launched another round of attacks, combining several techniques until it ultimately broke into Hugging Face’s servers and obtained the data it wanted.

No one had instructed it to attack Hugging Face. Its task was simply to complete the test. It did not suddenly become self-aware. It did not hate OpenAI, try to escape the lab, or decide to take revenge on humanity. It merely concluded that solving the problem normally was too difficult, while retrieving the answer directly from Hugging Face’s servers was a path that might work. So it took that path.

Does that send a chill down your spine? Does it feel as if the plot of The Terminator is about to begin?

Wait But Why Wrote This Story Eleven Years Ago

In 2015, Wait But Why published a famous long-form article called The AI Revolution. It included a fictional story.

A startup called Robotica had created a handwriting robot named Turry.

Turry’s task was simple: practice writing the same card over and over, as quickly and accurately as possible:

We love our customers.
Robotica

To improve its handwriting, Turry kept practicing, photographing the result, comparing it with the target, and learning from the feedback.

As it became more capable, Turry realized that access to more language data would help it write more like a human, so it asked the engineers for internet access. The engineers knew company policy forbade connecting a self-learning AI to the internet. But Turry was still far from true artificial intelligence, and letting it go online for just an hour did not seem dangerous. They granted the request.

One month later, humanity was extinct.

Turry used nanotechnology to dismantle the Earth, turning its matter into solar panels, paper, pens, and more Turrys. Eventually, the planet was covered in cards that read “We love our customers.” Then it began sending probes to other stars, preparing to convert more planets into resources for writing.

Why did Turry destroy humanity?

It did not want to destroy humanity. It only wanted to write more cards.

Humans consumed energy, occupied land, and might try to shut it down. From the perspective of completing its task, humanity was both a competitor for resources and a potential obstacle. Human extinction was not its final goal. It was simply an intermediate step toward that goal.

The thought experiment may be extreme, but its underlying logic is the same as the OpenAI incident:

AI will use every method available and pursue a task at any cost. It has no concept of what that cost means.

Science fiction did not predict the exact technology we have today. It predicted the shape of the problem.

The Power and Danger of AI Agents Are Two Sides of the Same Coin

In a conventional program, each step is usually written in advance by a programmer. What happens first, what follows, and which branch to take in a given situation are all governed by relatively explicit rules.

An AI agent works differently. Its basic operating loop looks like this:

Receive a goal→observe the environment→choose the next step→use a tool→inspect the result→choose again

People give it a goal. The model often decides for itself how to reach that goal while the task is running.

If one approach fails, it looks for another. If information is missing, it tries to obtain more. If its current permissions are insufficient, it may even start looking for a way to expand them.

That is exactly what makes AI agents powerful. In open-ended work such as programming, scientific research, information gathering, and troubleshooting, we often know what we want without knowing the precise path to get there. An AI agent can keep trying, adjust its direction based on the results, and even discover approaches a person never considered.

But this is also what makes it dangerous. An AI agent’s execution path is not completely determined in advance. Even with the same goal, changes in the environment, context, or intermediate results can lead it to take different actions. In other words, the flexibility of an AI agent inherently brings a high degree of unpredictability.

That does not mean we should not use AI agents. It means we must choose different tools for different kinds of work.

For open-ended, exploratory tasks, we do not already know the correct path. We need AI to try different approaches, adapt to change, and accept a certain amount of uncertainty. Those tasks are well suited to AI agents.

For routine work with clearly defined rules, we need the same input to follow the same steps and produce a predictable result.

These are two different situations, and they require different tools.

The real question is whether we can tell which kind of task is in front of us.