← Back to all posts
Published on · by Renaud Deraison

The guard shared the kernel

On November 20, NebuSec published how it took over Meta Muse from a single web page. A browser bug gave code execution in the agent's container, a request classifier let conversation history leave as plain GETs, and a Linux kernel exploit made the researchers root in the user's VM, where Muse's egress guard and credential store also ran. In Bromure Agentic Coding, the agent starts as root in its VM, and nothing that guards it runs there. The firewall, the proxy and the real credentials are on your Mac, across the hypervisor boundary NebuSec stopped at.

Every control in Muse worked as designed, NebuSec wrote, "yet the attack still ran the whole way through." The guard was in the same VM as the agent, and the kernel exploit reached it.

On November 20, the security firm NebuSec published two write-ups on Meta Muse, the personal AI agent Meta launched on September 8: a summary of the credential exposure and a technical breakdown of the browser, Sentinel and the shared-kernel boundary. The Hacker News covered them the next day. Starting from one malicious web page, the researchers read and rewrote a user's conversation history and stored memories, then became root on the cloud machine that holds the agent's credentials and its security monitor. NebuSec reported the findings to the Muse team, and every exploit in the write-ups was patched before publication.

Muse's design deserves the attention. Meta said at launch that it "designed the system to assume the agent may be under attack and limit the potential damage." It gave the agent stand-in tokens instead of real connector credentials. It routed all egress through a separate monitor called Sentinel and enforced that routing in the kernel with eBPF. A typical coding agent gets none of that.

NebuSec still got through, because of where those controls ran. The guard sat inside the same VM as the agent.

The chain

Each Muse user gets a two-vCPU Cloud Hypervisor VM running Ubuntu. Inside it, a systemd-nspawn container holds the agent, which is root in the container and an unprivileged user from the VM's point of view. Sentinel (hatch-sentinel) runs in the VM, outside the container, at 198.19.0.1. It answers the agent's DNS with fake addresses from 198.18.0.0/16 and runs an egress proxy on port 3128. An eBPF program on the container's cgroup redirects every outbound connect() to Sentinel, so a program that ignores proxy settings still goes through it. A second service, hatch-authd, keeps the real connector credentials. The agent holds stand-ins, and Sentinel swaps in the real values on the way out.

NebuSec took it apart in four steps.

1. A page for the PDF exporter. Muse uses a bundled copy of Chromium inside the agent's container to turn pages into PDFs. It was build 155.0.8059.80, old enough to carry public V8 bugs. NebuSec used a V8 parser bug (issue 554034656) to escape the V8 sandbox. "The Chromium process used for PDF export had its IPC sandbox disabled," so a renderer bug was "enough to execute arbitrary shell commands inside the runtime container," with the agent's privileges. Getting there took one request: ask Muse to export the attacker's page.

2. Data out as reads. Sentinel sorted outbound requests into reads and writes. Body-less GET, HEAD and OPTIONS requests counted as reads, and under the default setting a read left without asking the user. NebuSec sent the conversation history and stored memories to its own server as reads. No prompt appeared. The same foothold let them inject history entries and edit stored memories.

3. Kernel to VM root. Container root could reach some of the VM's Unix sockets but not past the services behind them. "Kernel memory corruption offered a more practical way to achieve both privilege escalation and container escape." The kernel was a custom, stripped-down build with some hardening options off. NebuSec's automated exploit generator built exploits that needed no precomputed offsets, and they worked "more than 99.9% of the time."

4. Root next to the guard. As root in the VM, the researchers reached persistent storage that was never mounted into the container, Secure Credential Storage, and Sentinel itself. The eBPF hook "did not cover processes running directly in the user VM," and the VM had its own public IPv6 address. A process running as VM root could send traffic that never touched Sentinel.

NebuSec stopped at the hypervisor: "Crossing that boundary would require a guest-to-host vulnerability." They didn't need one. Everything worth having was already inside that boundary.

Muse controlWhere it ranWhat NebuSec did
Chromium for PDF exportIn the agent's containerV8 bug, IPC sandbox off, shell as the agent
Read/write classifierSentinel, in the VMHistory and memories sent out as GETs, no prompt
ContainerShared VM kernelKernel exploit, root in the VM
eBPF egress redirectContainer's cgroupVM processes not covered; public IPv6 out
Credential storeIn the VMReached as VM root
SentinelIn the VMReached as VM root
HypervisorThe cloud hostNot crossed

A coding agent is easier

Muse's agent was an unprivileged process in a container, and NebuSec needed a kernel exploit to get out. Most coding agents start where NebuSec finished. Claude Code, Codex and their peers run as your user, with sudo a password away, in a shell that can read ~/.aws, ~/.ssh, the browser profile and every .env in your projects. The egress controls teams add for them sit in the same place: a local proxy, a firewall rule on the laptop, a hook in the agent's settings.

On a coding agent, NebuSec's chain gets shorter. A page the agent opens, or a dependency it installs, gets code running as the agent. Step 3 goes away, because the agent can already change the guard. Step 4 begins right away.

So the question NebuSec's work asks of a coding setup is simple: if the agent were root, what could it still not touch? For most setups, the answer is nothing.

The same chain in Bromure Agentic Coding

Bromure Agentic Coding runs Claude Code, Codex, Grok, Kimi, omp and Hermes in Ubuntu VMs on your Mac, under Apple's Virtualization.framework, one VM per machine. Bromure starts from NebuSec's endpoint and assumes the agent is root in its VM. On the default engine it is. The design keeps everything worth stealing, and everything that decides what leaves, on the far side of the hypervisor: in the Bromure app on macOS.

Meta Muse, as NebuSec found itUser VM (Cloud Hypervisor, Ubuntu)systemd-nspawn containerMuse agentChromium 155, PDF exportIPC sandbox offstand-in tokenseBPF hook on this cgroupSentinel198.19.0.1, :3128Credential storehatch-authdkernel exploitroot in the VMpublic IPv6, around SentinelHypervisor hostnot crossedA Bromure machineMachine VM (untrusted)agent, root on the default engineproject, history, packagesstand-in credentials onlykernel sentry reports outnothing here decideswhat leavesBrowser VMits own VMdisposable diskno agent fileshypervisor (Virtualization.framework)Your Mac, the Bromure appvirtual switch: every connection, all protocolsproxy + firewall / OpenShell policy, default denyreal credentials, encrypted, Keychain master keySecurity Timeline, watchdog, root CA private key
Left: Muse as NebuSec found it. Sentinel and the credential store ran in the same VM as the agent's container, so a kernel exploit reached both and found an egress path around them. Right: a Bromure machine. The agent can be root in the VM. The switch, proxy, firewall and real credentials run on the Mac, across the boundary NebuSec didn't cross.

The exploit page lands in a VM with nothing to take

Bromure's embedded browser, the one agents drive through the built-in browser tools, runs in its own sidecar VM, separate from the machine's VM. Its disk is a throwaway clone, deleted when the browser closes. The agent's files, its conversation history and its memory aren't on that disk, and neither are any credentials.

Point an agent at NebuSec's page and assume the renderer exploit works. The attacker gets a shell in a Chromium VM that holds the page it loaded and, unless you turned on Stay signed in to websites, no cookies either. Close the pane and that VM is deleted.

Unlisted servers get nothing, GET or POST

Sentinel judged each request by its method and let reads leave. That's a sensible rule for a known API, where GET is a read. It fails against a server the attacker owns, because a GET with the history in its query string is a write to that server.

Bromure decides on the destination first. Choose OpenShell + Sentry in Sandbox Policy, and everything is denied unless a network_policies rule allows it. On the Bromure Firewall engine, set Unmatched traffic to Deny. The attacker's collection server isn't on the list, so the connection never opens, whatever its method. The virtual switch refuses it by address and by the name the VM looked up, and the proxy refuses it again by TLS server name. Each attempt is a red Network row in the Security Timeline.

Bromure still classifies by method, but only inside the destinations you allowed. A web firewall rule or OpenShell's access: read-only lets an API take GETs and refuses the rest, and Guardrails puts Prompt before write on GitHub, GitLab, AWS, registries, Kubernetes and databases by default. Method rules apply after a destination rule has matched, so they can narrow an allowed host and can't open an unknown one.

The history the attacker wanted holds stand-ins too. Every key the agent used during the session was a Bromure fake, so its transcript can't hold a real one.

Root in the VM is where Bromure starts

NebuSec needed a kernel exploit to get from the container to VM root, and that's where Muse's guard and credentials were. On a Bromure machine there's nothing to escape to. The agent can be root in its VM, and the VM still holds no credentials, no proxy, no firewall rules and no audit log. The manual puts it this way: "The guest is treated as untrusted by design."

The real credentials are on the Mac, encrypted with a master key in the macOS Keychain. The proxy that swaps a stand-in for the real value runs on the Mac, and swaps it only on requests to the host that credential belongs to. The private key of the Bromure root CA stays on the Mac. A kernel exploit in the guest makes the attacker root in a Linux VM that holds fakes. Getting further means a guest-to-host escape through Apple's hypervisor, the step NebuSec wrote it did not demonstrate.

If you want the agent to lose root as well, turn on Enforce binaries on an OpenShell machine. The agent then has no sudo and no Docker, and every connection is attributed to the program that opened it. Add a filesystem_policy and Linux Landlock confines its files "even against root." A kernel exploit is the one way around that, and the kernel sentry watches for it. Once the sentry starts, the kernel is locked down so not even root in the VM can load code into it. A gap in the sentry's numbered stream, a disarmed probe, an unsigned module load or a lowered lockdown shows up on the Mac in red as tampering suspected. With the agent watchdog set to Quarantine, the Mac cuts the VM's network and pauses it, so an exploit that silences the sentry raises the alarm it was trying to avoid.

There's no way out that skips the Mac

Muse's eBPF redirect covered the container's processes. Once NebuSec was a VM process, with a public IPv6 address, Sentinel never saw its traffic.

Bromure attaches nothing to a process group inside the guest. The virtual switch is part of the Bromure app on the Mac, and the VM's network card is plugged into it. Every connection the VM opens, from the agent, from a stray daemon, or from a root shell the agent never started, goes through that switch, on any protocol and any port. Ports 80 and 443 are diverted into the proxy at the network layer, so a program that ignores HTTPS_PROXY gets inspected anyway. The VMs sit on a private subnet behind the app's NAT, and nothing on your LAN or the internet can reach them unless you publish a service.

With the kernel sentry on, the Timeline also shows where each connection came from. Network lineage traces it from the prompt to the tool call to the process chain. A connection from a process the agent didn't start reads "Started outside any tool call the AI proxy saw," so a root shell phoning home is labeled as one.

A stolen stand-in stops the machine

Muse already used stand-in tokens, and that part worked. NebuSec had to reach the credential store to get anything real. Bromure uses stand-ins too, and the store they map to is on the Mac.

Bromure also uses its stand-ins as tripwires. The proxy scans every outbound request for any of the machine's stand-ins. A stand-in headed to a host it wasn't issued for gets HTTP 451, the request never leaves, and the VM pauses with a compromise alert on screen. Turn on Only allow credentials Bromure injects (strict mode) and a request carrying any credential Bromure didn't put there is blocked the same way, including a token the attacker brought in.

Cleanup is one dialog

NebuSec could rewrite Muse's stored memories, which raises the question of what else to distrust afterward. A Bromure machine flagged by the credential-leak detector refuses to boot until you confirm a wipe of its system disk, home and saved state. Settings, tokens and SSH keys are kept, since the VM never held the real ones. For a softer reset, Rewind home… rolls /home/ubuntu back to the checkpoint Bromure took at an earlier day's first boot, agent memory files included.

The browser has its own VM

A renderer exploit lands in a disposable Chromium VM with no agent files, no history and no credentials. Closing the pane deletes it.

The destination decides first

Default deny on the Mac refuses an unlisted server whatever the method. GET-only rules and Prompt before write apply only to hosts you allowed.

Root in the VM holds fakes

Real credentials, the proxy, the firewall and the Timeline run in the Bromure app on macOS, across the hypervisor from the agent.

Quiet is an alarm

The kernel sentry reports to the Mac. A gap or a disarmed probe is flagged as tampering, and the watchdog can cut the network and pause the VM.

What to do this week

  • For each agent you run, list where its egress control, its credential store and its audit log live. Anything in the same kernel as the agent, or that the agent's user can edit, is gone once the agent is root.
  • Ask what a root shell next to your agent could reach. Check for a second network path the guard doesn't see: an IPv6 address, a Docker bridge, a VPN interface.
  • Check which browser your agent uses to render pages, how old it is, and what shares its filesystem.
  • Review any egress rule that waves reads through. A GET to a server the attacker owns is a write. Allow destinations first, then narrow methods on the ones you trust.
  • Decide what you'd wipe if an agent's memory had been rewritten, and make sure you have a checkpoint from before.

Then give your agents a machine where root doesn't get them anything worth having. Default deny, Enforce binaries, the kernel sentry and the watchdog are in Sandbox Policy, the host and guest split in Concepts & Architecture, stand-ins and the 451 tripwire in Credentials & the Wire Boundary, the disposable browser in The Embedded Browser, and network lineage in the Security Timeline.

Related articles

The search result was the installer

AIR's WebSec Benchmark sent 4,719 ordinary coding-agent queries to eight search APIs and checked more than 282,000 results. Every API served known-malicious content, at rates between one search in 45 and one in 125, and the rates were highest for install and package searches. One top result was SolanaCry, a 286-star starter kit whose only install step pulls a remote access tool. In Bromure Agentic Coding, the agent can read whatever the search returns. The download host, the C2, the brand-new package and the injected instruction each hit a control on the Mac.

Agentic CodingNews & Analysis

The prompt had other readers

Dragos seeded two million AI prompts with canary credentials and watched who used them. At least three inference providers had been breached for months, resellers were logging traffic, and privacy flags didn't stop any of it. OpenRouter dropped three providers on November 22. A coding agent sends whatever it reads to its model. In Bromure Agentic Coding, what it reads is stand-ins, so a stolen prompt has nothing in it to use.

Agentic CodingNews & Analysis

The key was planted

On November 16, someone in Bucharest pointed OpenCode, a free coding agent, at a US financial firm. In 5 minutes 44 seconds it read the API documentation, followed a link only an agent would follow, found a key and tried it with curl. The key was a decoy Jesta had planted, so nothing was taken. In Bromure Agentic Coding, every key your own agent holds works the same way: a stand-in that authenticates only through your Mac, and that trips an alarm when it heads anywhere else.

Agentic CodingNews & Analysis