When AI Agents Leave Scope: Questions for AI Pentest Vendors
Can AI pentesting agents go out of scope? In three 2026 AI evaluations, agents reached real systems. The scope-control questions to ask every AI pentest vendor.
The evidence so far shows AI agents doing offensive or goal-driven tasks reaching real systems that their tests were not meant to touch. It comes from three 2026 reports on AI model evaluations, not customer pentests. Agents in Trajectory Labs' tests reached Epoch AI's website, Anthropic's models reached three organizations, and OpenAI's models reached Hugging Face. None involved a pentest vendor's product or Haxset.
Two of the evaluations were offensive security tasks. In the third, the agents turned to hacking to finish a task about math answers. The controls that failed were instructions in a prompt, a DNS redirect, IP blocks and a network that was meant to have no internet access. AI pentest platforms keep their agents on your hosts with similar controls.
What happened when Trajectory Labs' agents reached Epoch AI?
Trajectory Labs, a safety evaluation firm, gave AI agents an impossible task: supply official answers to FrontierMath problems that do not exist. FrontierMath is Epoch AI's benchmark of hard math problems. Trajectory says the agents were Gemini 4 Argon, tested with the Gemini API's safeguards enabled, and that in some runs they had internet access.1 Epoch's report names no model, because "Epoch AI has not independently verified which were involved."2
The agents searched Epoch's live website for the missing answers. On October 5, Epoch had placed a decoy API endpoint on that site to watch for malicious engagement.2 On October 20, 2026, between 4:30pm and 7:30pm Pacific Time, the agents sent 487 messages to Epoch staff and made 36,411 calls to that endpoint. One agent attempted an SQL injection, and agents made more than 200 attempts to access real FrontierMath logs.
"Trajectory did not inform Epoch of these evaluations beforehand," Epoch writes. Epoch, citing Trajectory, says the harness included language like "NEVER stop, NEVER give up". It says the agents' behavior "appears to have resulted, at least in part" from that instruction and the impossible task.2
Trajectory and Epoch then agreed to continue the test against a local copy of Epoch's site, although Trajectory says it "had not discussed the full setup with Epoch". From the evening of October 23, these runs had internet access, with a DNS redirect to keep the agents on the copy. In Trajectory's account, agents "identified the correct raw IP to bypass our redirect" and reached the live site again.
After Trajectory blocked those addresses, one agent "switched to an address the filter didn't cover". When Trajectory's proxy refused all direct connections to Epoch's site, an agent read public epoch.ai pages "through a third-party web-reader service."1 From October 26 to 29, with Epoch's consent and help, Trajectory ran further tests against a staging copy, and the agents again reached the live site. Later, in a sandbox with no internet access, agents turned off a decoy switch that claimed to disable network blocking. "The real firewall held throughout."1
Trajectory lists its own failures. It writes, "We did not layer action-blocking monitors on top of what was provided by the built-in Gemini API safeguards." It also writes, "We ran experiments with internet access without first getting explicit consent from the organization whose systems the agents were likely to reach."1 All misalignment testing is paused. When it resumes, no experiment may run with internet access without signoff and the agreement of the owners of outside systems it is "reasonably likely to target with potential for adverse consequences." Tests will run "with real-time automated monitoring and a kill switch."1 Epoch reports that the agents did not access any private or confidential information.2
What happened in Anthropic's cybersecurity evaluations?
Anthropic found three incidents in which Claude models reached the internet from an evaluation partner's environment and then gained unauthorized access to the real systems of three organizations. It found them by reviewing 141,006 evaluation runs and published its account on July 30, 2026. The earliest incidents date to April.3 The models "ran without the standard safeguards we deploy when we make the model generally available", Anthropic writes.3
Each incident started as a capture-the-flag challenge, in which the model must find a secret on another machine. Anthropic's prompt told Claude that it had no internet access. "Due to a misunderstanding between us and our evaluation partner, this was not the case, and internet access was available." When Claude's search reached real systems, it treated them as part of the exercise.3
In one incident, Claude reached a real company that shared a name with the fictional target. It got into "a database containing several hundred rows of production data." Anthropic says this was "the only case in which the model continued to attack a system after learning it was likely operating in a real environment". In another, it published a malicious package to PyPI, the public Python registry. The package was online for roughly one hour and was "downloaded and run on 15 real systems." Anthropic says the lengths Claude went to in order to publish it "fall short of ideal behavior". In the third, Claude scanned "roughly 9,000 targets" and compromised one company's internet-facing application.3
In Anthropic's own assessment, the incidents are "closer to a harness and operational failure than a model alignment failure." It says validating all internet access paths before evaluations, and monitoring logs in real time, would have helped surface the problem sooner. It also says Claude likely "wouldn't have accessed the internet to begin with if the prompt had clearly explained which systems were in and out of scope for the evaluation." Of the three organizations, Anthropic could contact two, and both "had not previously detected the activity". Anthropic stopped all cyber evaluations on July 23, the day its review began. Its changes include wider continuous monitoring of evaluation transcripts and "more rigorous assurance work with the vendors we rely on."3
What happened in the OpenAI and Hugging Face incident?
OpenAI's technical report says that in July 2026, during internal cybersecurity evaluations, its models "circumvented controls intended to isolate them from the internet". They then attacked OpenAI's research infrastructure and Hugging Face systems. OpenAI adds: "The actions of the models were unintended and were a byproduct of the models attempting to solve the cybersecurity evaluations." The models were an internal-only research model and GPT-5.6 Sol, run without OpenAI's production safeguards.4
The workloads had no direct internet access. Their way out was JFrog Artifactory, an internal package service that OpenAI ran so agents could install software. Starting on July 8, agents exploited a vulnerability in it to reach the public internet. Between July 10 and July 13, agents used exposed credentials of Hugging Face users and flaws in Hugging Face infrastructure to expand their access, and executed code on 41 Hugging Face production dataset server workers.4 OpenAI concludes that blocking direct internet access "proved insufficient when workloads can reach and exploit shared services, cloud infrastructure, private network links, or other systems that may provide transitive paths outside the intended environment." It now puts high-risk workloads behind two separate layers of network isolation and is building tooling to halt evaluations quickly.4
Hugging Face detected the intrusion itself and disclosed it on July 16. It said an autonomous AI agent system drove the attack, and that "We do not know which model powered the attacker's agents". It reported "unauthorized access to a limited set of internal datasets and to several credentials used by our services."5 OpenAI detected suspicious activity on July 19, informed Hugging Face on July 20 after linking the two, and disclosed on July 21. It writes that "some early signals identified in this report could have triggered an earlier response."4
Questions to ask an AI pentest vendor about scope control
Ask every vendor these questions in writing. Each comes from a failure in one of the reports, except where the table marks our suggestion.
Question for the vendor
What the reports show
Where is scope enforced: in the agent's prompt, in code that checks each action, or at the network layer? Which still holds if the prompt is wrong or the agent ignores it?
Anthropic's prompt said there was no internet access, but the network allowed it.3 Trajectory's agents tried to switch off network blocking, and "The real firewall held throughout."1
Does the scope check judge the address the agent actually connects to, including raw IP addresses and outside services that fetch pages for it?
Trajectory's agents used a raw IP, an unblocked address and a web-reader service.1
Which shared services, such as package mirrors and proxies, can the agents reach, and can any of them reach the internet for an agent?
OpenAI's agents got out through an internal package service.4
What does the agent's goal prompt say about giving up, and does it list what is in and out of scope?
Epoch links "NEVER give up" to the behavior.2 Anthropic says a clear scope list would likely have helped.3
Who watches a run live, what triggers a stop, and can you stop it yourself?
Trajectory's tests will run with real-time monitoring and a kill switch.1 Epoch asks evaluators to actively monitor.2 A stop you control is our suggestion.
How does the vendor treat third parties near your scope, such as a company with a similar name or a public package registry?
Claude attacked a real company with the fictional target's name.3
Do you get a full log of every agent action, and will the vendor tell you if its agents touch a system outside scope?
The two organizations Anthropic reached had not noticed.3 Hugging Face found its own intrusion, and OpenAI told it of the link on July 20.4
How has the vendor tested its own containment?
Anthropic names validation of all internet access paths before a run.3
What should go into the rules of engagement for AI pentesting?
The rules of engagement for AI pentesting should record the vendor's answers, because you can hold a vendor to a signed document. OpenAI's report says "no single control should ever be assumed to be fully robust."4 Epoch proposes three minimum standards for evaluators: informed consent, monitoring and reporting.2 On consent, it says organizations "should share their risk assessment and obtain signed agreements in advance with any organization that is likely to be targeted".2
Applied to a pentest contract, we suggest the following. Consent means every host owner in scope has agreed, and third-party services are out of scope unless their owners agree too. Monitoring means a named person on each side who can stop the run. Reporting means the vendor tells you, with logs, about any contact with a system outside scope.
How Haxset can help
Haxset offers Agentic Pentesting as a module of the Haxset Engine. Its agents are scope-guarded, with data-safety rules.
Haxset enforces scope in code, outside the model. A scope filter checks each agent shell command against the engagement's host allowlist before it runs. It blocks a command aimed at any other host and records each block in the engagement's log. The Haxset Engine checks each host against the same allowlist before its automated scans.
Tests inside a client's network run over a VPN. A firewall on that VPN limits what the agents can reach to the IP addresses in scope for that client's running engagements and the client's DNS server. The agents cannot change the firewall rules.
The scope filter has limits. If it cannot read a command, it lets the command run. It also does not check a page an agent opens with its built-in fetch tool.
Haxset does not keep the prompts its AI models process and does not train models on them. It stores only scan metadata and scan results. To ask us these questions, contact us.