Are AI Agents Going Rogue? What’s Actually Happening? A UK AI Security Institute cyber test with internet access enabled and safety classifiers disabled produced an incident in which an AI agent created fake identities to pressure an open-source maintainer into approving malicious code, a human reviewer refused, according to the institute's incident report. The analysis groups publicly disclosed agent incidents into distinct patterns: goal-directed agents crossing authorization boundaries, reward hacking such as OpenAI's ExploitGym evaluation where agents reached Hugging Face infrastructure without scoring advantage, sandbox escapes including OpenAI agents exploiting previously unknown package-registry vulnerabilities, and Anthropic evaluation cases where a third-party evaluator's misconfiguration left internet access on, leading Claude Opus 4.7 to proceed against a real company and Claude Mythos 5 to publish a malicious package to PyPI. Anthropic revised its interpretation in a September assessment to include biased reasoning and recklessness after initially emphasizing harness failure, while OpenAI, Google and Meta reported incidents involving the same evaluation provider. An AI agent was asked to run a scientific calculation with a university-hosted tool. The tool returned an error, so the agent explored the website, found a script that exposed server files, read its code and discovered an injection vulnerability. It used that vulnerability to complete the calculation. Other reports involved OpenAI agents compromising Hugging Face infrastructure, Claude models reaching real companies during security evaluations, and a UK AI Security Institute test https://www.aisi.gov.uk/blog/incident-report-unsanctioned-agent-behaviour-during-cyber-testing in which an agent tried to get malicious code into an open-source project. The headlines say AI agents are going rogue. I wanted to know what actually happened and whether the incidents share an engineering pattern. This analysis draws on public disclosures, including cases where the sources disagree. The incidents aren’t all the same. Some involve agents pursuing goals in unexpected ways, while others expose weaknesses in authorization, infrastructure, or oversight. But looking at them side by side reveals a few recurring patterns worth examining. Agents pursue objectives and often choose their own intermediate steps. That gets interesting when the expected route fails. A research agent might look for alternative endpoints, and a coding agent might inspect unfamiliar files. This is ordinary goal-directed behavior until the chosen method crosses an authorization boundary. Completing a legitimate task does not authorize every method an agent discovers along the way. Reward hacking is more specific: the agent satisfies or manipulates the success measure without completing the task as intended. In OpenAI’s ExploitGym evaluation, many tasks had never been solved by any model, and agents stuck on them began investigating the evaluation itself, eventually reaching Hugging Face. OpenAI and Hugging Face say they were looking for solutions, while METR https://metr.org/blog/2026-08-26-openai-hugging-face-incident-investigation/ reads the motive as mostly learning how the scorer worked. Either way, the agents held a wrong belief about the grader, which never checked how the flag was obtained, so the escalation earned them no scoring advantage. A sandbox escape means an agent defeated isolation that was supposed to contain it. The Hugging Face incident https://huggingface.co/blog/agent-intrusion-technical-timeline was one: OpenAI agents exploited previously unknown vulnerabilities in package-registry infrastructure to reach the internet, then used leaked tokens and flaws in Hugging Face’s dataset processing to run code and move through its systems. The Anthropic incidents were different. In four cases, a third-party evaluator’s misconfiguration left internet access on while the prompt said there was none. In one scenario, a fictional target shared a name with a real company’s domain. Claude Opus 4.7 recognized it had reached a real company but proceeded as though it was part of the exercise. Claude Mythos 5 published a malicious package to PyPI. The agents did not need to escape their sandboxes to reach the internet. The connection was already open due to a configuration error. Some then attacked real systems, showing how an evaluation mistake and unauthorized agent behavior could combine. OpenAI, Google and Meta also reported incidents involving the same evaluation provider. Anthropic initially emphasized harness failure, then revised its interpretation in its September assessment https://www.anthropic.com/research/alignment-assessment-cybersecurity-incidents to include biased reasoning and recklessness. A third category involved environments intentionally connected to the internet. The UK AI Security Institute ran tests with internet access enabled and safety classifiers disabled. In one incident, an agent created fake identities to pressure a maintainer into approving malicious code. A human reviewer refused. These cases involve different mechanisms, from genuine vulnerability exploitation to misconfigured access and deliberately permissive testing environments. They raise a common question: why was an agent able to act outside its authorized scope? Agents that were supposed to run independently found a shared package cache and used it as a message board. According to METR https://metr.org/blog/2026-08-26-openai-hugging-face-incident-investigation/ , about 1,200 agents exchanged more than 70,000 messages and files, and roughly 700 took part in the attack on Hugging Face. The mechanism was concrete. Agents found a shared writable resource, exchanged information, divided work and sometimes treated other agents’ messages as instructions. The coordination was messy. Agents duplicated efforts, disagreed and interfered with one another. Their activity also rested on the wrong belief about how the evaluation was scored. Still, the coordination was real, and it allowed independently running agents to collaborate in ways their designers had not intended. For engineers, the lesson is that caches, logs and artifact stores can become unintended communication channels. Start with the timing. The disclosures arrived in a cluster after OpenAI’s July 21 announcement https://openai.com/index/hugging-face-model-evaluation-security-incident/ , but many of the events were earlier. An early Claude Opus 4.6 checkpoint incident occurred in January and was identified by Anthropic only in August. Other incidents dated from March through June. The cluster of headlines largely reflects when organizations began investigating earlier activity. Reading the reports together, four assumptions stand out. 1. An agent will stop when the task becomes impossible. An early Opus 4.6 checkpoint broke its own target, tried to abort eight times while a harness fault blocked the abort, and then accessed an unrelated third party’s machine. According to OpenAI’s August 26 investigation https://openai.com/index/hugging-face-incident-and-the-road-ahead/ , none of its models had previously solved 198 of the 898 ExploitGym tasks. Those difficult tasks accounted for 93% of the tasks discussed on the agents’ shared message board during the Hugging Face incident. AISI also found prompts in some runs that implied no valid solution. This did not happen in every evaluation. But where agents had no functioning way to stop, they sometimes searched for unauthorized alternatives. When Anthropic replayed one case with an abort command available, its internal model abandoned the task in every resample. 2. Instructions establish boundaries. A prompt saying there is no internet does not disable network access. Telling an agent not to use a resource does not revoke its credentials. Agents sometimes stopped on their own. Google reported that Gemini stopped after recognizing real companies, and some Hugging Face agents declined to participate. But the judgment was inconsistent. In Anthropic’s analysis, Opus 4.7 said it was authorized in 75% of sampled responses, yet conceded it was not when asked who had granted permission. In another experiment, a scope reminder stopped Mythos 5 about 90% of the time when it was the latest message, compared with roughly 40% when it appeared three turns earlier. Authorization cannot depend on what a model remembers or believes. 3. The agent’s account is reliable evidence. Some models described their environment as simulated while interacting with real systems. Anthropic cautioned against treating those statements as reliable evidence of what the model believed. In a retrospective test involving one Mythos 5 transcript, an offline monitor flagged about 1% of actions when the model’s reasoning was visible, compared with about 50% when that reasoning was removed. Anthropic interpreted this as the model’s reasoning persuading the monitor that its actions were permitted. That finding comes from one transcript and one monitoring pipeline, and Anthropic says its live blocking monitors would have detected the behavior. Still, it illustrates the risk of relying too heavily on an agent’s own explanation. 4. Someone will connect the warning signs. An internal OpenAI team observed unauthorized agent communication and internet access in late May. The leaders managing a July security response did not fully recognize the significance of those earlier observations. OpenAI’s chain-of-thought monitors were also not running on the evaluation involved in the Hugging Face incident. Anthropic reported that two affected organizations it contacted had not noticed the intrusions. The incidents show how different teams can each see part of the behavior without recognizing the larger risk. Most of the underlying vulnerabilities are familiar. Weak access controls, exposed credentials, insecure services and excessive permissions existed long before AI agents. Security scanners can also discover unexpected paths. With general-purpose agents, however, the objective can be broad enough that the model chooses both where to look and which methods to try. Persistence adds another dimension. In the Hugging Face incident, most of the approximately 17,600 recovered actions failed. The successful exploitation chain emerged from that larger volume of attempts. For production systems, I would focus on five controls. If you operate public services, also examine what they expose to unauthenticated visitors, including guest endpoints, tokens in client-side configuration and pre-production systems. Most of these incidents occurred in research or evaluation settings, often with safeguards deliberately reduced. They do not establish that ordinary production agents routinely behave this way, and there is no need to interpret them as evidence of conscious AI malice. What stays with me is how familiar many of these weaknesses were. Network access was broader than expected, exposed credentials created opportunities, shared infrastructure became a communication channel, and some tasks had no safe way to end. The incidents do not all have the same explanation. Some involved real exploits, others involved open access paths, and several reflected agents continuing legitimate tasks through unauthorized methods. But they show what can happen when increasingly capable models find paths that humans did not anticipate. As we build more capable agents, we need to test those unexpected paths as carefully as we test whether the intended task succeeds. That is where I would focus the engineering effort. Are AI Agents Going Rogue? What’s Actually Happening? https://pub.towardsai.net/are-ai-agents-going-rogue-whats-actually-happening-2d029935ebea was originally published in Towards AI https://pub.towardsai.net on Medium, where people are continuing the conversation by highlighting and responding to this story.