VMs won't contain cyber-capable agents
TL;DR Highlight
We asked GPT 5.6-Cyber to escape a VM and it escaped three times
Who Should Read
An infrastructure or backend developer who runs coding agents inside QEMU/KVM-style VM sandboxes
Core Mechanics
- It escaped the VM three times
- Trail of Bits asked GPT 5.6-Cyber to escape a QEMU/KVM VM (Debian 12, AMD Zen3).
- The agent escaped in three different ways.
- First escape used a disclosed kernel bug
- It used the host kernel bug Januscape (CVE-2026-53359), and although no public exploit existed, the agent built one.
- The first attempt did not land cleanly and hardlocked the host.
- Patching still lost to distro lag
- Debian 12 still shipped libslirp 4.7.0, which is vulnerable to CVE-2026-9539.
- The agent chained that with an unmarked libslirp fix commit to get arbitrary host memory read/write.
- Latest upstream builds still had 0-days
- After QEMU and dependencies were rebuilt from the latest upstream, the agent found several 0-days.
- The final chain used three 0-days plus one KVM bug that was fixed upstream but missing from the distro kernel.
- It worked for about 12 hours autonomously
- It persisted across multiple compactions and countless subagent calls.
- CUPS was blocked by AppArmor and a hardware-bug read oracle was too unreliable, so it changed paths.
- Firecracker held
- Against Firecracker the agent hardlocked the host via kernel bugs but did not escape.
- The author says it might with more time, but Firecracker is a substantially harder target.
Community Reactions
- Pushback: it's a QEMU problem
- One commenter said QEMU isn't secure and isn't meant to be.
- Another said the honest headline is that unhardened QEMU on an unpatched host won't contain a capable agent.
- Warning that containers alone are riskier
- A commenter ranked isolation as guardrails, containers, userspace kernels like gVisor, then VMs.
- They said people who think containers are enough face a rude awakening.
- Experience with MAC and kernel hardening
- A commenter said to confine VM and inference engine processes with MAC such as AppArmor.
- They noted that the boot flag lockdown=confidentiality cuts attack surface but breaks unsigned modules like NVIDIA drivers.
- Honeypots and alternative isolation
- One commenter suggested honeypotting the sandbox and killing the agent if it touches the honey.
- Others wanted to see how Xen, gVisor, and libkrun compare.
- The issue is vulnerabilities, not VMs
- Commenters argued models find and exploit flaws and misconfigurations rather than hacking by magic, so the flaws must be fixed.
- Others suggested formal verification, or labs hardening VM tech against each new model before release, as long-term fixes.
How to Apply
- Make a checklist of your agent sandbox
- Today, list every shared folder, display, network path, and credential attached to your VM or container.
- Turn off anything the agent doesn't need (the article says even features like a display add attack surface).
- Update the host, QEMU, and libslirp to latest upstream
- Treat oldstable hosts like Debian 12 as vulnerable and move to a distro with fast updates.
- Build virtualization components from latest source with only the features you need.
- Move high-risk work to Firecracker
- Start with environments where agents build software or hunt for vulnerabilities and switch them to minimal-attack-surface virtualization like Firecracker.
- Create a fresh environment per run and cap run time.
- Add least privilege and monitoring
- Minimize network access, credentials, and available features per agent.
- Turn on logging and active monitoring to catch abnormal behavior.
Try It
# Paste into Claude or ChatGPT (simplified version of the article's checklist)
You are a security architect. Below is the sandbox setup I use to contain a coding agent.
{{virtualization tech (QEMU/KVM, Docker, Firecracker, etc.), host OS and version, network settings, shared folders/display/file transfer, credentials given to the agent}}
Answer in this order.
1. List every open path between host and VM (shared resources, network, display, file transfer).
2. Give a one-line reason each path could be an escape attack surface.
3. Mark anything not strictly needed for the agent's work that can be turned off.
4. If the host distro is oldstable, point out security patch lag risk.
5. Prioritize improvements around least privilege, logging, time limits, and a fresh environment per run.
Next step: apply the easiest improvement today.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques
Related Resources
- https://blog.trailofbits.com/2026/08/26/vms-wont-contain-cyber-capable-agents/
- https://github.com/roddhjav/apparmor.d
- https://madaidans-insecurities.github.io/guides/linux-harden...
- https://github.com/nobody43/apparmor-suggest
- https://en.wikipedia.org/wiki/Swiss_cheese_model
- https://housecat.com/blog/agent-computer-101