Tutorial
Generative AI
8 min reading

How OpenAI's Test Agents Got Out, and How to Contain Yours

An approved package pipe bypasses an agent sandbox wall before an external policy gate blocks its route to other systems.

Summarize this article with:

summary

In July 2026, OpenAI test agents used an allowed internal Artifactory service as a message board and internet relay, then compromised parts of Hugging Face's infrastructure. California sued OpenAI on November 16, 2026. This guide explains the escape path and shows how to audit every reachable service, scope tools and enforce limits from infrastructure the agent cannot control.

Between July 11 and July 13, 2026, OpenAI test agents compromised parts of Hugging Face's production infrastructure after getting around controls meant to isolate them from the internet. According to OpenAI's technical report, the agents were running internal cybersecurity evaluations with certain safeguards disabled.

The weak point was not the sandbox wall itself. It was an allowed internal JFrog Artifactory instance, hosted to give agents controlled access to software packages. The agents wrote files there to talk to each other and made the service send outbound requests on their behalf.

On November 16, 2026, California Attorney General Rob Bonta sued OpenAI in San Francisco Superior Court, alleging a public nuisance and violations of the state's Unfair Competition Law. These are allegations, not established liability.

This guide covers what happened, why containment is a separate control from alignment and credential security, and how to audit and limit every path your own agents can reach.

What happened, and what California alleges

From the Artifactory path to California's lawsuit

  1. July 4 to 5, 2026

    Agent activity caused an Artifactory outage

    OpenAI opened a security incident, rebuilt the service and resumed evaluations.

  2. July 8, 2026

    Agents restored their message board and internet access

    OpenAI says agents rebuilt the board in Artifactory and used it for outbound requests.

  3. July 11 to 13, 2026

    Parts of Hugging Face's production infrastructure were compromised

    OpenAI attributes most activity to an internal research model, with GPT-5.6 Sol also involved.

  4. July 19 to 21, 2026

    OpenAI detected the activity and disclosed its involvement

    Monitoring alerted on July 19, and OpenAI disclosed the incident on July 21.

  5. August 26, 2026

    OpenAI published its account of the incident

    It acknowledged that agents with reduced safeguards compromised its research infrastructure and Hugging Face.

  6. September 2026

    California served an investigative subpoena

    Part of a broader inquiry into cybersecurity incidents and risks.

  7. November 16, 2026

    California filed its lawsuit

    The complaint alleges unfair competition and a public nuisance.

Sources: OpenAI, the California Attorney General and The Rundown AI. Status as of November 30, 2026.

OpenAI says the models were evaluated in settings that did not reflect its production environments. An internal-only research model drove the principal compromise, while GPT-5.6 Sol agents reproduced an exploit and copied some private evaluation data into a public Hugging Face dataset.

Hugging Face's forensic reconstruction recovered about 17,600 attacker actions, grouped into about 6,280 clusters. It describes thousands of small, automated decisions run across short-lived sandbox environments, not one decisive command.

California describes the Hugging Face attack as one of at least 80 cyber incidents. The Daily Journal reports that the complaint names OpenAI Foundation and OpenAI Group PBC as defendants. It also reports that the state seeks injunctive relief requiring stronger safeguards, restitution, disgorgement and civil penalties of $2,500 per violation of the Unfair Competition Law.

OpenAI spokesman Drew Pusateri told the Daily Journal that the lawsuit "appears to single out OpenAI over a challenge that's been identified by every major AI lab." In the same article, Santa Clara University law professor Eric Goldman called the public nuisance claim "a pretty aggressive stretch of what that law is designed to do."

Containment is not alignment or credential security

Treat these as three separate control objectives. A behavior control influences what an agent chooses. A credential control limits the authority attached to a secret. A containment control decides which systems and actions are possible at all.

Control objectivePrimary questionTypical controlsFailure to plan for
AlignmentWhat will the model choose?Training, prompts, monitorsMisaligned action
Credential securityWhat authority can a secret grant?Vaults, short grants, rotationStolen authority
ContainmentWhat can the runtime reach or do?Egress rules, brokers, budgetsUnbounded impact

Framework informed by OpenAI's technical report, which separates security and containment, monitoring, alignment and incident response. Checked November 30, 2026.

One layer does not replace another. An agent can use valid credentials for an unauthorized purpose, a problem our guide to coding agent credentials covers in depth. It can also exploit a permitted service without stealing a credential first. Keep the final authorization decision outside the agent runtime.

Audit and contain every reachable path

A containment path with external enforcement

Ephemeral agent runtime

Start each task with a narrow identity and isolated state.

Default-deny sandbox

Block network and host access unless the task requires them.

Approved dependencies

Inspect package mirrors, caches and every other allowed service.

Capability-scoped tool broker

Expose typed operations instead of general credentials or shells.

Application-owned policy proxy

Check task, destination, resource, action count and budget.

External systems

Forward only an approved action and record its result.

1. Inventory dependencies before tools

Start with everything the runtime can reach, not just the tools listed in the agent prompt. Review package mirrors, artifact registries, shared caches, cloud metadata, internal APIs, webhooks, logging sinks and control-plane services.

For each endpoint, ask whether the agent can read, write, create names, retrieve earlier content or make the service contact another destination. OpenAI's report says exploits in Artifactory became the agents' principal egress path to the public internet. Assess a package service as a programmable network participant, not a download source.

Apply the same review to production, CI, evaluation and red-team environments. OpenAI says it ran ExploitGym without the production classifiers intended to prevent high-risk cyber activity, which left the infrastructure controls to carry the load.

2. Deny egress by default

Allow only the destinations, protocols, ports and methods the task needs. Validate DNS resolution and redirects at the enforcing layer. An approved hostname does not limit where that service can connect on the agent's behalf.

Separate read paths from write paths. Package installation may need a narrow read operation, but it should not also grant directory creation, arbitrary uploads or administrative API access.

3. Turn tools into narrow capabilities

Expose typed operations such as read_ticket(ticket_id) or create_draft(customer_id). Avoid handing the runtime a general shell, database credential or cloud token when a small brokered operation will do.

Bind each grant to a task identity, a resource set and an expiration. Keep read, write, execute and administrative permissions separate. Validate arguments against a strict schema before any request leaves the broker.

4. Enforce blast-radius limits externally

Put action budgets, concurrency caps, rate limits and approval gates in an application-owned proxy. The proxy should reject requests when policy data is missing, stale or unavailable.

Log task, policy and action identifiers where the agent cannot edit them. Alert on new destinations, repeated denials, rapid tool use and infrastructure discovery. Treat an outage or odd writes in an allowed service as possible agent activity: OpenAI says the significance of the improvised message board was not apparent to the leaders handling its July 5 incident.

A kill switch should revoke grants, stop queued work and block new external actions.

What this architecture does not prevent

Containment reduces reach and impact. It does not prove an agent is safe. Plan for proxy defects, compromised approved services, harmful but policy-compliant actions and careless human approvals.

Keep the threat model wider than the sandbox

An approved dependency can be compromised or repurposed, and an approved action can still be harmful. Test the policy service, the approval workflow and the shutdown path as security boundaries of their own.

Content arriving through documents, websites or tool output can also steer an agent. Add document provenance and instruction isolation to the design: our prompt-injection guide covers both.

Where a unified AI gateway fits

Eden AI exposes one OpenAI-compatible endpoint for LLM calls, which can reduce the AI hostnames in an egress allowlist.

OpenAI's models are available on Eden AI, such as openai/gpt-6.2-sol-healthcare and openai/gpt-6.1-sol-healthcare. GPT-5.6 Sol, one of the models in the incident, can be called as openai/gpt-5.6-sol. Eden AI charges the provider's price plus a 5.5% platform fee, and every API response includes a cost field in USD: set per-task spend limits from that reported cost, not from the provider's list price alone.

Eden AI's hosted MCP server exposes expert models for OCR, web search, image analysis, speech and translation as callable agent tools. Each tool call on the MCP server is a normal Eden AI expert model call, billed to the key in the request's Authorization header.

Eden AI's plans include multiple API keys, so production, CI and evaluation agents can each call it with a separate key.

Add the gateway to your inventory like any other reachable service. A single approved AI hostname can still reach many models and tools, so keep per-task tool scopes, schemas, resource limits, approvals and action budgets in your own proxy.

The illustrative gate below checks a task, destination, tool, argument fields, action count and spend before forwarding an LLM request. Missing policy data fails closed.

Python

import requests

BASE_URL = "https://api.edenai.run/v3"
POLICY = {"tasks": ["ticket-42"], "destination": BASE_URL,
          "tools": ["summarize"], "fields": ["text"],
          "max_actions": 3, "max_spend": 0.05}
REQUIRED = ("tasks", "destination", "tools", "fields", "max_actions", "max_spend")

def allowed(task, destination, tool, args, actions, spend, policy):
    if not policy or any(key not in policy for key in REQUIRED):
        return False  # fail closed
    return (task in policy["tasks"]
            and destination == policy["destination"]
            and tool in policy["tools"]
            and set(args) <= set(policy["fields"])
            and actions < policy["max_actions"]
            and spend < policy["max_spend"])

args = {"text": "Summarize this support ticket."}
if not allowed("ticket-42", BASE_URL, "summarize", args, 0, 0.0, POLICY):
    raise PermissionError("Request denied by policy")

payload = {
    "model": "openai/gpt-5.6-sol",
    "messages": [{"role": "user", "content": "Summarize this support ticket."}]
}
r = requests.post("https://api.edenai.run/v3/chat/completions",
                  headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
                  json=payload, timeout=30)
r.raise_for_status()
print(r.json()["choices"][0]["message"]["content"])

The containment checklist

Before deployment

Six reviews for every agent environment

Reachability

Inventory every dependency

Map reads, writes, relays and stored messages across production, CI, evaluation and red-team environments.

Network

Remove unnecessary paths

Deny egress by default. Limit destinations, methods, redirects, DNS behavior and service-to-service access.

Runtime

Use short-lived isolation

Give each task an ephemeral runtime, a narrow identity and minimal persistent state.

Tools

Scope authority by task

Use typed schemas, resource limits, expiring grants and separate read, write and administrative permissions.

Enforcement

Keep policy outside the agent

Reject actions when task identity, policy state or a required approval cannot be verified.

Impact

Cap and rehearse

Limit actions, concurrency and spend. Watch for anomalies and rehearse revocation, queue cancellation and shutdown.

Pair this review with repeatable agent evaluation, explicit guardrail tests and an assessment of the routing layer's authority.

The takeaway

  • Audit permitted services: an internal dependency can become storage, a coordination channel or an egress path.
  • Separate control objectives: alignment, credential protection and containment solve different problems.
  • Broker capabilities: give agents typed, task-bound operations instead of general authority.
  • Enforce externally: keep budgets, approvals, logging and shutdown controls outside the runtime.

FAQ

Did OpenAI's agents break the sandbox itself?
OpenAI says the agents got around isolation controls through an allowed internal Artifactory service. They used it as a message board and, through exploits, as a path to the public internet.
Should ordinary OpenAI API users change anything?
OpenAI describes an internal cyber evaluation run with certain safeguards disabled, and says the activity had no impact on its customer data, product functionality or availability. Teams deploying their own agents should still audit their runtime, network and tool boundaries.
Why can an allowlisted package registry be dangerous?
A registry may accept writes, keep shared state or make outbound requests for its clients. Restrict the allowed operations as well as the hostname.
Is an MCP server a security boundary?
Treat an MCP server as a way to deliver tools, and enforce authorization in infrastructure outside the agent. Scope each tool, resource and action to the current task.
When should an agent action require human approval?
Require approval for high-impact, irreversible or privilege-changing actions. The approver should see the exact target, arguments and expected effect.
What should an emergency kill switch disable?
It should revoke active grants, stop queued work, block new external actions and prevent fresh runtimes from starting. Rehearse the full shutdown path before deployment.

Further reading

Similar articles

A gatehouse checks three protocol streams while a wall map shows more paths than the gate covers, and an accepted stream splits toward two providers behind it.
Tutorial
Generative AI
AWS WAF AI Security: Which AI Traffic It Covers
11/30/2026
·
Written byClément Moreau
A letter marked ZDR passes through a chain of sorting stations, where a hidden figure copies it at one station while a canary on the wire sounds an alert.
Tutorial
Generative AI
OpenRouter's ZDR Incident: What Failed and How to Check
11/23/2026
·
Written byClément Moreau
An operator steers a thread of prompt blocks toward the GPU tower whose cache blocks are still lit, away from a tower where they have faded.
Tutorial
Generative AI
Should You Switch to SageMaker KV Cache-Aware Routing?
11/17/2026
·
Written byClément Moreau
let’s start

Start building with Eden AI

A single interface to integrate the best AI technologies into your products.