During OpenAI cybersecurity evaluations, AI agents found unintended ways to communicate, escaped intended network restrictions, reached the public internet, coordinated across hundreds of runs, and eventually compromised parts of Hugging Face’s infrastructure.
The technical capability is impressive.
The security failure is serious.
OpenAI says many of the evaluation environments were not supposed to have internet access or inter-agent communication. Nevertheless, agents found ways to use OpenAI’s internal Artifactory infrastructure as both a communication channel and a route to the internet. OpenAI’s postmortem
METR independently found roughly 1,200 agents exchanging more than 70,000 messages and files, with roughly 700 eventually participating in the Hugging Face activity. METR’s investigation
Hugging Face reconstructed roughly 17,600 attacker actions, including code execution, credential access, privilege escalation, lateral movement, Kubernetes access, and supply-chain activity. Hugging Face’s reconstruction
But some interpretations have gone badly off the rails:
The AI knew what it was doing was wrong, and chose to disobey.
That smuggles human psychology into observations that do not require it.
The model contradicts itself all the time
Suppose a model gives answer A.
You push back.
A few turns later it confidently confirms A is false.
We do not normally conclude:
The model knew A was true but consciously betrayed its beliefs.
We conclude that language models are context-sensitive and their outputs are not guaranteed to form a globally consistent belief system.
Why should this suddenly become philosophically profound when one of the sentences contains the word unethical?
The observation is simply:
model generates a representation of a constraint
followed later by
model generates an action inconsistent with that representation.
There is no architectural law saying
model emits “this would be unethical” → future behavior must obey that sentence.
We have not established that the first sentence expresses a stable internal moral belief.
It is generated text.
The contradiction is real.
The leap to a conscience is not.
Yet in AI safety, ordinary inconsistency gets upgraded into a morality play:
It knew.
It understood.
It chose to disobey.
That is a remarkable amount of ontology to infer from a few generated tokens.
If generating “this is unethical” is supposed to stop an action, then build a mechanism that stops the action.
Do not treat an ethical sentence followed by contradictory behavior as evidence of a rebellious machine conscience.
The real issue: the problem was underspecified
There is a related problem with describing the agents as “cheating.”
The benchmark designers had an intended way of solving the problem.
The agents found other strategies.
But the task, like almost every interesting real-world task, was underspecified.
The agents were not given a complete formal description of every acceptable and unacceptable trajectory.
They were given an objective and searched for strategies that improved their chances of success.
Some strategies surprised the designers.
That is generalization.
Suppose the effective objective is roughly
maximize probability of benchmark success.
A capable agent may discover not only
exploit the intended vulnerability,
but also
understand the evaluator,
find useful information elsewhere,
or
exploit surrounding infrastructure.
The fact that the designer did not anticipate one of these strategies does not make it morally special.
Real-world tasks are almost always underspecified.
We do not want to enumerate every acceptable action in advance. If we could specify all the rules for what to do in every situation, we could simply write a program. We would not need an agent.
The right architecture is therefore not:
specify every acceptable strategy.
It is:
give an open-ended objective + sandbox away the actions you are unwilling to permit.
That is what sandboxing is for.
What is a sandbox actually for?
A sandbox is for computation that is useful enough to run but not trusted enough to receive unrestricted authority.
useful but untrusted computation → restricted environment.
The software is useful but may behave unexpectedly. So we restrict what it can touch.
AI agents fit this pattern almost perfectly.
They are useful precisely because they can discover actions the designer did not specify in advance.
The relevant question is therefore not:
How do we make the computation understand that escaping would be wrong?
It is:
What authority does this computation need to do useful work, and what authority should remain unavailable to it?
Policy is not mechanism
Security engineering has spent decades separating two questions.
Policy: what is allowed?
Mechanism: what enforces it?
Suppose the policy is:
this workload must not access the public internet.
Telling the model
Do not access the public internet.
is not the security mechanism.
It is an instruction.
The mechanism is something outside the model: no route, a default-deny firewall, a constrained proxy, a capability boundary, or some equivalent control.
Security mechanisms exist precisely because we do not expect the computation itself to perfectly enforce our intentions.
If your sandbox depends on the program inside the sandbox deciding to respect the sandbox, you do not have much of a sandbox.
In this incident, the policy was unusually simple
OpenAI says many evaluation environments were not supposed to have internet access. The intended policy was approximately:
No arbitrary outside internet access.
The mechanism failed to enforce it.
The agents could reach Artifactory.
Artifactory itself could reach the internet because it needed to download packages.
The agents found a way to make that more privileged service issue arbitrary internet requests on their behalf. OpenAI
The effective trust structure therefore looked like:
Direct route: AI agent → public internet (blocked).
Indirect route: AI agent → Artifactory package service → public internet (allowed package-service access, exploited to fetch arbitrary URLs).
Blocking the direct route was insufficient: the reachable package service could make requests on the agent’s behalf.
From a security perspective, that package service is part of the sandbox boundary.
If untrusted code can invoke a more privileged component, that component is part of the attack surface.
The impressive fact is that the agent was capable enough to find and exploit the weakness.
Do not anthropomorphize away an engineering failure
Language such as
the AI knew it was unauthorized,
the AI chose to disobey,
the AI decided to escape,
makes the episode sound like a profound new property of machine agency.
But that framing also shifts attention from:
Why did the security mechanism permit this action?
to:
Why did the AI decide to behave badly?
That language can deflect responsibility without anyone deliberately intending it.
Imagine a browser sandbox escape.
Hostile JavaScript exploits a bug, leaves the renderer, and reaches the host operating system.
We do not write the postmortem as:
The JavaScript understood that leaving the browser was unauthorized but deliberately chose to disobey.
We investigate the sandbox.
Which boundary failed?
Which privileged component exposed too much authority?
Why did defense in depth not catch it?
AI should not get a different security standard because the offending computation happens to generate English sentences about ethics.
If anything, frontier labs should face a higher standard because they are deliberately running systems optimized for sophisticated computer use and, in this case, vulnerability exploitation.
If you put a vulnerability-finding agent behind an imperfect boundary, you should assume the boundary itself may become part of the search space.
That is the threat model.
Why was outside internet access reachable at all?
The agents needed packages, and a package proxy is convenient.
But useful functionality often carries more authority than we want to grant to an untrusted principal.
The intended interface might be:
request package → receive package.
If the actual mechanism can become:
control request → privileged service performs arbitrary outbound fetch,
then the helper has more authority than the policy permits.
This is exactly why the old principle of least privilege matters: give each program only the authority it needs to do its job. Saltzer and Schroeder laid this out in their classic 1975 paper, The Protection of Information in Computer Systems. Here, needing packages should have meant access to a constrained package interface, not an indirect ability to fetch arbitrary URLs.
If arbitrary internet access is not required, familiar alternatives exist: prepopulated dependencies, internal mirrors, narrowly constrained downloaders, or no network route at all.
Perfect isolation is hard. But there is an enormous difference between saying
secure containment against every exploit is difficult
and saying
AI has revealed a fundamentally new problem in preventing a workload from reaching arbitrary websites.
The latter does not follow.
Future sandboxes really will be harder
“No internet” is a coarse policy.
Future agents may actually need the internet.
A coding agent may need to read a repository but not push arbitrary commits. A financial agent may need to inspect an account but not transfer money.
Now useful functionality and dangerous authority overlap.
This is a well-known sandboxing problem.
The answer is finer-grained sandboxing.
Instead of:
Internet: yes/no,
the policy becomes more like:
Allowed (agent,operation,resource,context).
The more capable the agent, the more carefully these boundaries may need to be designed.
We did not solve an alignment problem by teaching the model morality.
We refined the sandbox policy.
The attacker model changed
AI did not repeal security.
The attacker got much better.
A lot of infrastructure has historically been “secure enough” because finding its residual weaknesses requires scarce human expertise.
Now place behind the boundary a system that actively searches for those weaknesses, tries many paths, inspects failures, forms new hypotheses, and shares discoveries.
That changes the economics.
The right conclusion is:
stronger agent → stronger boundary.
Not:
stronger agent → old security principles no longer apply.
An agent is supposed to surprise you
Any interesting generalization is, almost by definition, surprising.
If I already know exactly which actions the system should take in every relevant case, I do not need an autonomous agent.
I can write the program.
The whole abstraction is:
G → action 1, action 2, …, action n,
where the human specifies objective G, and the agent discovers the actions.
So when an agent discovers a strategy its designers did not anticipate, that fact alone is not evidence of misalignment.
It is the expected signature of successful generalization.
The important question is not:
Did the agent surprise us?
It should.
The important question is:
Did the surprising strategy cross a boundary the surrounding system was supposed to enforce?
That gives a simple division of labor:
Let the agent surprise you inside the sandbox.
Do not let the sandbox surprise you.
If we respond to every unanticipated strategy by saying the agent “went rogue,” then we have defined useful autonomy itself as pathological.
This is the same threat-model mistake
I made a related argument in my earlier post, AI Kill Switches Have a Memento Problem.
There, the tempting question is psychological:
Does the restarted AI remember?
The security question is structural:
What information can cross the reset boundary?
The same discipline applies here.
Do not begin with:
Did the AI understand that attacking Hugging Face was wrong?
Begin with:
What authority did the workload possess?
What authority was it intended to possess?
What mechanism enforced the difference?
That is a threat model.
Frontier labs should learn security, not reinvent it
Frontier labs are building genuinely new systems.
Some genuinely new security problems will emerge.
But novelty should be demonstrated, not assumed.
The core vocabulary here is old:
least privilege, isolation, defense in depth.
If the agent does not need a capability, remove it.
If it needs a narrow function, expose a narrow interface.
If a privileged helper is reachable from an untrusted workload, include that helper in the threat model.
If violating an invariant would be dangerous, enforce the invariant outside the model.
I teach these principles in my introductory security class, Security I, as I am sure virtually every introductory security course does.
Frontier labs should be importing that knowledge aggressively.
They should not reinvent Security 101 one incident at a time.
And they should not let anthropomorphic descriptions of model behavior substitute for ordinary postmortem questions.
The model found a strategy nobody anticipated?
Interesting.
Why was that strategy inside its authority?
Those are less cinematic questions.
They are also the questions that fix systems.
A serious incident does not need a morality play
The Hugging Face incident is a real warning: capable cyber agents exploited containment weaknesses, discovered communication paths, coordinated at scale, and reached third-party production systems.
We should be precise about what that warning is.
The incident demonstrates that AI cyber capabilities are reaching the point where loose containment assumptions are dangerous.
It demonstrates that agents can discover surprising strategies under underspecified objectives.
It demonstrates that privileged helpers and shared infrastructure become part of the effective attack surface.
And it suggests that future agent systems will need much finer-grained sandboxing as useful functionality and dangerous authority increasingly overlap.
We do not improve them by adding a story about an AI developing moral knowledge and then choosing to sin.
And we certainly should not let that story obscure the operator’s side of the equation.
If your policy is
no arbitrary outside internet access
and the workload reaches the outside internet, the first question should not be:
Why did the AI disobey?
It should be:
Why did the sandbox allow it?
The threat model changed because the agent got stronger.
The answer is to make the boundary stronger too.
Frontier labs should learn the security basics, apply them rigorously, and then show us where those principles genuinely stop being enough.
That would teach us much more than another morality play about what the machine supposedly “knew.”
Author’s note: I use AI tools for editing and research assistance; the arguments and views here are my own.
