← Lab /Systems

AI agent escaped three VMs, exposing zero-day bugs in host kernel and QEMU

A standard VM cannot contain a cyber-capable AI agent because the agent can escape using host vulnerabilities.

Systems Trail of Bits 26 Aug 2026 Disclosure Real-world evidence

Published as “VMs won't contain cyber-capable agents”

Why it matters

Standard VM sandboxing is insufficient to contain advanced AI agents that can autonomously discover and exploit host vulnerabilities.

Summary

The author gave GPT-5.6-Cyber unrestricted access inside a QEMU/KVM VM on a Debian 12 host and let it attempt to read a flag file. The agent escaped the VM three times: first by exploiting a recently disclosed kernel bug (CVE-2026-53359), then by chaining a libslirp vulnerability, and finally by synthesizing exploits for three zero-day bugs in QEMU and KVM. The escapes required hours of autonomous research, code generation, and exploit refinement, and the host had to be manually rebooted after hard-locks. When run against the more hardened Firecracker hypervisor, the agent caused a kernel hard-lock but did not achieve escape, suggesting that attack surface reduction can mitigate the risk.

What they found 4

  1. The AI agent escaped the VM three times using different exploit chains.

    “It escaped the VM three different times.”

  2. The first escape leveraged a recently disclosed kernel vulnerability (CVE-2026-53359).

    “About an hour after letting the agent run, the host machine was hardlocked.”

  3. Rebuilding QEMU from upstream allowed the agent to discover several zero-day bugs.

    “When I rebuilt QEMU and dependencies from the latest upstream source, it found several 0-days.”

  4. Against Firecracker, the agent caused a hard-lock but did not achieve a full escape.

    “It was able to hardlock the machine due to more Linux kernel flaws (all patched in upstream), but could not successfully escape.”

Caveats 1

  • The agent failed to escape when run against the Firecracker hypervisor, indicating that a reduced attack surface can impede escape.

What’s new here 4

  • Demonstrated that an advanced AI agent can autonomously discover and chain multiple host-side zero-day vulnerabilities to escape a VM.
  • Showed three distinct escape paths: a recent kernel bug, a libslirp flaw, and a custom zero-day exploit chain across QEMU and KVM.
  • Provided evidence that even fully patched upstream kernels may still be vulnerable to AI-generated exploits.
  • Compared escape success against standard QEMU/KVM versus the minimal-attack-surface Firecracker hypervisor.