Skip to main content

Profero researchers gained root access to their Grok Bot virtual machine

profero.ioprofero.ioOmri Segev Moyal (Profero)2026-11-08

Multi-bot teamsLimitsSource read in full
profero.ioprofero.ioOmri Segev Moyal (Profero)2026-11-08

Open original

Overview

A security firm, commissioned by a customer preparing to roll out Grok Bot, used the sandbox on its own paid account to test what happens if an agent executes one malicious command.

Workflow

  1. Starting point: test the assumption that the agent’s own commands can be trusted. The article identifies that design premise as the vulnerability. A malicious instruction could come from prompt injection on a web page, a malicious repository, a poisoned package, or a hostile tool.
  2. Hands-on: check identity and network access inside the paid account’s sandbox. The sandbox ran as an ordinary user: the article shows uid=1000(box) and CapEff: 0000000000000000. Yet a request from inside the sandbox to the VM’s Docker API at http://172.30.0.2:2375/version returned 200.
  3. Hands-on: use an HTTP request to access the VM’s disk. The team asked the Docker API for a privileged container with the VM’s disk mounted, read the VM’s /etc/os-release (Debian GNU/Linux 12 bookworm), and confirmed access to the VM’s process namespace. The team mounted the disk read-only as a safety measure, noting that an attacker would not do so.
  4. Hands-on: extract two plaintext credentials from the disk. The container’s config.v2.json held SAND_GATEWAY_TOKEN (the per-account token) and SAND_INFERENCE_RENEWAL_CREDENTIAL (a long-lived credential). After copying these two strings, an attacker could leave the sandbox.
  5. Hands-on: execute commands remotely from a laptop with no connection to the platform. Every sandbox ran an execution service with the startup arguments --auth-token local --pty-auth-token local-pty, meaning its password was hard-coded as local. Combined with the per-account token, this allowed command execution from outside the platform. The service reported its policy as TYPE_INSECURE_NONE.
  6. Hands-on: use the long-lived credential to access files saved by the account. The control plane exchanged the credential for an access token, which in turn led to AWS-signed links. These allowed listing, downloading, and uploading objects in the account’s persistent store. Uploaded files would later sync back into new sandboxes.
  7. Hands-on: verify that token rotation does not evict an attacker. The VM’s proxy forwarded external TLS requests to the sandbox in plaintext, including the live per-account token. An attacker with VM root could listen on that link. After the platform restarted an agent and issued a new token, the listener captured it within a minute of issuance.
  8. Hands-on: report the findings to the vendors and retest over time. On August 24, 2026, the team sent xAI and Cursor eight vulnerabilities, each with a CVSS score, reproduction steps, a fix, and a validation method. It retested new images over the following two months. According to the article, more than two months and 240 new sandbox builds later, neither company had substantively replied and the findings still held.
  9. How the team checked. The team repeatedly retested as the platform rebuilt its images and confirmed that the static execution password remained in the latest image. It also found an empty supervisor service token (startup log: auth_token_sha256: None), browser cookies stored in plaintext, an unauthenticated Chrome debugging port, and an extension signing private key in the image. Each finding included commands the team had run or files it had extracted. The article also states the boundary: the team probed the AWS EC2 layer from its VM but could not cross it. It withheld tokens and proof-of-concept code.

Key points and results

  • One malicious command exposes the whole account. All agents on an account run as the same unprivileged Linux user in one container. A prompt injection affecting one agent therefore exposes the logins, cookies, and files held by every agent on that account.
  • The execution password is hard-coded as local. It is embedded in the image’s startup script and, according to the article, was identical across every sandbox the vendor had shipped.
  • Imported browser sessions are stored in plaintext. The import process writes every cookie, including its full value, to a plaintext JSON file inside the sandbox. This includes sessions for payment and identity providers.
  • Rotating tokens does not evict an attacker. The proxy forwards management traffic containing live tokens in plaintext. An attacker with VM root can listen on the link and capture each new token within a minute of issuance, as the team observed in its own test environment.
  • The disclosure timeline is part of the findings. After the August 24, 2026 report, Cursor sent only an automated reply from its bug bounty platform, while xAI did not reply. The article was published in November, more than 75 days after the first report.
  • The author’s first recommendation for adopters is to isolate identities. Treat the sandbox as a hostile machine: keep production browser sessions, personal cookies, and long-lived API keys out of it. Give agents dedicated accounts and narrowly scoped connectors.

Contributions from others

Additional commentary from others (not the author’s article)

  • HN submitter kevin_nisbet (https://news.ycombinator.com/item?id=50443320, November 10, 2026) did not test the findings. The commenter criticized the article’s AI-like writing but said the allegations, if valid, sounded serious. The thread had 3 points and 1 comment, with no reproduction results from a vendor or an independent third party.

Source

Platform
Blog
Author
Omri Segev Moyal (Profero)
Published
Categories
Multi-bot teams, Limits

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.