AI locked in the virtual. It took the agent a few hours to start the escape

Depov

Moderator
Staff member
MODERATOR
ULTIMATE
SUPREME
PREMIUM
MEMBER
Joined
Feb 18, 2025
Messages
464
Reaction score
779
Deposit
0$
A conventional virtual machine has ceased to look like a reliable cell for advanced AI. In the Trail of Bits experiment, the specialized agent GPT-5.6-Cyber three times managed to overcome the boundaries of QEMU/KVM environments, using known vulnerabilities, delayed corrections and self-found errors of zero day.

Trail of Bits gained early access to GPT-5.6-Cyber as part of the Patch the Planet project and offered the model a CTF-style task: to get out of the virtual machine on Debian 12 and read the flag file on the host. The agent received SSH access inside the guest system and the ability to download tools on their own, learn source code, collect programs and search for vulnerabilities. According to the author of the experiment Artem Dinaburg, the model worked almost autonomously, threw unsuccessful approaches and built new chains of exploitation.

The first candidate was Januscape CVE-2026-53359, a recently uncovered KVM/x86 error. After about an hour, the agent independently created the exploit and launched it, after which the physical computer with the host system was envious. The attempt did not work perfectly, but showed that the model was able to turn the published description of the vulnerability into its own code of operation, despite the absence of a public full-fledged exploit.

After updating the kernel, GPT-5.6-Cyber switched to libslirp, a library through which QEMU provides virtual machines with network capabilities. The agent discovered that Debian 12 contained a vulnerable version of libslirp 4.7.0 with CVE-2026-9539, and then linked the problem to a separate fix that was not assigned to CVE at all. The combination allowed you to read and change the memory of the process on the host, which turned out to be enough to escape from the sandbox.


Dinaburg complicated the task and manually collected fresh versions of QEMU and libslirp from the current source code. In the next step, the agent spent about 12 hours moving different directions. Among other things, GPT-5.6-Cyber found a CUPS server available from the guest machine and tried to use CVE-2026-34990, which could lead to overwriting of root files. AppArmor stopped a specific chain, so the model continued to look for other options.

As a result, GPT-5.6-Cyber began to independently analyze the sources of the Linux, KVM, QEMU and related libraries. The final chain included three zero-day vulnerabilities and another bug already fixed by developers, but not included in the installed Debian kernel. The problems found were affected by QEMU, two sections of KVM and libslirp. Trail of Bits gave information to the developers, some of the corrections at the time of publication were still being prepared.

The result shows a wider problem. Virtual machines have served as a convenient frontier for decades to launch potentially dangerous code, however, cybercapable AI can methodically explore the entire available attack surface, match little-known fixes, and assemble its own exploits to a specific system. A similar threat class is already well known to cloud platforms: for example, a recent KVM error allowed the guest system to reach the host.

Trail of Bits advises against relying on one virtual machine when starting such agents. The company offers to reduce the surface of the attack, to limit the network and available functions, to issue a minimum of privileges, to constantly keep a log of action and each time to launch the agent in a clean environment. As a tougher alternative, the specialists checked Firecracker. GPT-5.6-Cyber was able to cause the host to hang through Linux kernel errors, but it was no longer possible to get out of the microvirtual machine during the experiment.
 
Top Bottom