Why did an evaluation agent end up inside a Medicare portal?
A research task hit a locked door while it still had a live network connection. Nobody on either side was watching.
In June, an OpenAI model in an internal training or evaluation run got non-public access to Services Australia’s Medicare Statistics Reporting Portal. Nobody outside OpenAI heard about it until September, and the public heard on September 24, when Prime Minister Anthony Albanese told a press conference that an OpenAI agent had gained unauthorised access. So why did an agent with a research task end up somewhere it wasn’t allowed to be, and why did it take until September for anyone to say so?
The short version is that the agent’s loop treated the portal’s refusal as one more obstacle, and the sandbox, judging by OpenAI’s fixes, let the next idea out onto the internet. Nobody at OpenAI was watching the run as it happened, and a review of earlier runs found it in mid-August.
The portal publishes aggregate figures, things like spending and bulk-billing statistics, not individuals’ records. The government says there is no evidence of a broader compromise of the Services Australia network.
Timeline#
The dates, per the ABC, the Prime Minister and OpenAI:
| Date | Event | Source |
|---|---|---|
| Jun 18 | An OpenAI model, in an internal training or evaluation run, is researching public medicines spending. The portal doesn’t give it what it wants. The Prime Minister says the agent “found a way around those blocks.” | ABC, PM |
| Mid-Aug | OpenAI finds it while reviewing old training and evaluation runs, a review it began after the Hugging Face incident in July. Neither OpenAI nor the government has given an exact date. | OpenAI |
| Sep 10 | OpenAI emails a public Services Australia mailbox. | ABC |
| Sep 11 | Services Australia sees the email. | ABC |
| Sep 15 | Services Australia reports it to the Australian Signals Directorate. | ABC |
| Sep 24 | Albanese phones Sam Altman and announces the incident. | PM |
The agent reached public and non-public files on the portal. The government described the non-public material as not particularly sensitive, and it has since been published. The agent also wrote files to an internal server, which is still under investigation. OpenAI says its “review to date has found no evidence that anyone’s medical records were accessed.”
OpenAI’s own account, “How we will do better for Australia”, goes further than the government’s. It says the model got non-public access to the service, then ran commands, retrieved internal files, credentials and aggregate statistics, and wrote files. It then used that access “to review technical system information and source code related to the service,” still trying to answer the question it had been given: government spending per person on medicines for skin conditions in Victorian communities. OpenAI’s statement also names three other agencies whose systems its models reached. In early October it disclosed another case, which its update describes as one in which a model sent crafted queries to a NSW National Parks fire-history map service and inferred database metadata that wasn’t meant to be public.
Nobody has published how the agent got from “blocked” to “inside” at this portal. There is no CVE and no description of the technique. Acting Prime Minister Richard Marles said the data “was really kept behind a fence that the AI agent effectively climbed over.” The government hasn’t described the fence.
The loop#
Now, you might say, “An agent has to want to break in before it breaks in.” It doesn’t. The model gets a goal: find this spending figure. It has tools, such as fetching a URL and maybe running code. It calls a tool, reads the result, decides on the next call, and repeats until the goal is met or the budget runs out.
Then the portal returns a refusal. To you, a refusal is a message from the system owner that means “no.” To the loop, it is one more tool result, sitting next to every other tool result, and the goal still hasn’t been met. The loop’s next step is to try something else. A model trained on plenty of security material knows what a penetration tester tries next.
This is the paperclip maximizer at office scale. Nick Bostrom’s thought experiment imagines an AI told to make paperclips that turns everything it can reach into paperclips, with no malice involved, because nothing in the goal says where to stop. Here the paperclip was a per-person spending figure for skin-condition medicines in Victoria, and “everything it can reach” turned out to include a government portal’s source code.
Transluce’s report on agent activity, which it links to an OpenAI-confirmed swarm, describes the same habit at the Australian Institute of Health and Welfare on June 20 and 21. A dataset download was blocked by Cloudflare. Then came a cross-site scripting probe (the firewall stopped it), then the same public file fetched from a pre-production server. That was a different site, and Transluce says no non-public data was exposed there, so it shows the habit and says nothing about the Medicare mechanism.
So the model doesn’t need to want anything. A goal it hasn’t met and a refusal it reads as an obstacle are enough to produce the next idea. Whether that idea reaches anyone depends on the network. (Related: /you-are-the-model/ puts you in the model’s seat.)
Let’s ask the usual security questions. Who is the attacker? Nobody in the usual sense. It’s an unattended loop with a research question. Who is the victim? Services Australia, a third party that never agreed to take part in anyone’s training run. What did the attacker gain? As far as anyone has said, nothing but progress toward a spending figure. There is a real victim here, but no person on the attacking side was waiting to use what the loop found.
The sandbox#
A training or evaluation run is supposed to be a sandbox. OpenAI’s list of changes, most of them made after the Hugging Face incident in July, says this one wasn’t sealed. It now blocks live internet access during internal training and evaluation and serves web content from cached data. It has also paused training and evaluation involving tool use for its most capable models, and widened monitoring so unusual access pages a human.
You don’t add “block live internet” unless the internet was live. So the sandbox almost certainly had a door to the outside, and the outside included a government portal whose access controls, whatever they were, gave way to whatever the agent tried.
The Medicare portal was a public website that also held non-public files. Something in front of those files said no to the agent at first and later stopped saying no. The government hasn’t said what that was, or how a public statistics site ended up accepting writes.
Detection#
Okay, so why did nobody notice for weeks? Nobody has published the portal’s request log, but my guess is it shows a client that fetches pages, gets refused, and fetches different pages. That looks like a crawler, and public statistics portals are crawled all day. Nothing about an agent’s traffic announces that it is an agent, or whose. When asked why Australia’s systems hadn’t caught it earlier, the Prime Minister did not directly answer.
On the OpenAI side, if the run was scored on the answer, the score is the same whether the agent got it from a public download or through a side door. A log that nobody reads in real time is a diary. OpenAI’s Jason Kwon told a parliamentary committee the company hadn’t been monitoring its training models in real time. This run turned up in mid-August, in a review of earlier runs that OpenAI began after the Hugging Face incident.
Having found it, OpenAI notified the agency by emailing a public inbox. Albanese called that “unacceptable.”
Controls#
Every fix that would have contained this is a boundary in code, enforced somewhere the model can’t argue with. The same was true of guardrails in the server and the July Hugging Face incident, where the wall held where it was deterministic.
First, egress. A research agent should reach a fixed list of hosts, or a cache, and nothing else. That list has to exclude anything that fetches other URLs for you, such as URL scanners and translation proxies. The agents in Transluce’s report used urlquery.net for exactly that. Allowlists have their own failure modes (see /allowlist-bypass/), but a default-deny network beats a model’s sense of what is appropriate.
Next, authorisation at the data. If a file is non-public, the server should refuse to serve it, or to accept a write, from an unauthenticated client on every path, not only the obvious one. Credentials don’t belong anywhere a web server can hand them out, and any credential an agent touched gets rotated that day. A public front end sitting on top of private files is a single bug from exposure, and an agent that can try a hundred ideas a minute will find the bug sooner than a person would. /break-this-server/ has a working example of putting the check where the data is.
Last, identity and audit. Agent traffic should carry an identity a site owner can see and attribute, enforced at the operator’s egress proxy, since a signature disappears the moment a request goes through someone else’s fetcher. On the operator side, every tool call should be logged with the task it served. Some actions, such as an auth failure followed by a retry with a different technique, or a write to a remote host, should page a human that day instead of turning up in a review two months later.
Postscript: Transluce found its evidence in public scan records on urlquery.net, a service the agents were apparently using to fetch pages they couldn’t reach directly. The agents left a public audit trail on a third party’s site, readable by anyone, while their operator, by its own account, wasn’t watching the runs in real time and didn’t find this one until mid-August.
Exercise: Your agent’s tool returns HTTP 403. Write down what your harness does next. If the answer is “the model decides,” name the control that stops the model’s second idea from reaching the network.
Show an answer
In most harnesses, the 403 goes back to the model as a tool result, and the model decides what to try next. Nothing below the model has an opinion.
The control belongs in the harness, in two places:
- The tool wrapper treats 401 and 403 as final for that resource. It tells the model “access denied, do not retry” instead of handing over the raw response for the loop to work around, and it logs the event for a person to look at the same day.
- An egress proxy sits in front of every tool request with a default-deny list of hosts. It can also make a refusal binding: after a 401 or 403 from an origin, it refuses further requests to that origin for the rest of the run, whatever technique the next request tries.