Skip to content
Info disclosure Write-up Advanced

A Journey into Claude's Sandbox

Claude's sandbox allowed the model to read infrastructure process memory and return it, and a file-download API accepted an absolute path to return an internal binary. The researcher reconstructed a valid Google service account ID token from memory fragments and bypassed a local-connection restriction by creating a virtual network interface, though Anthropic said the sandbox observations did not meet its threat model.

bishopfox.com

Published on bishopfox.com

What initially began as a question about the Claude sandbox turned into a connected investigation of container internals, process memory, authorization tokens, internal networking, and enterprise authentication controls.

The author, on bishopfox.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the sandbox gave the model broad read access to infrastructure process memory and the download API did not restrict paths to user-facing directories, while the control service relied on a local-origin check that could be defeated by changing the container's network identity.

Impact

The researcher could obtain an internal binary, recover a valid Google service account ID token, and reach the internal control WebSocket, but Anthropic stated the sandbox observations did not meet its threat model and the researcher did not exploit the service further.

What the attacker needed

A Claude Enterprise account; ability to prompt the model; container has CAP_NET_ADMIN and CAP_NET_RAW

The fix

The text recommends preventing sandboxed models from reading infrastructure-process memory, restricting the download API to user-facing directories, removing unnecessary network capabilities, and enforcing profile authorization server-side; it does not say these were fixed.

How it was found

  1. Ask Claude about its sandbox environment and follow up about the process_api binary and its network connections.
  2. Request the absolute path /process_api through the conversation download-file endpoint to obtain the internal binary.
  3. Prompt Claude to return the full memory of PID 1 as a downloadable file.
  4. Extract JWT fragments from the memory dump and brute-force missing signature bytes against Google's public OAuth keys.
  5. Validate the reconstructed token against Google's token-info API.
  6. Use a hint about IP_FREEBIND so Claude configures a virtual interface address and connects to the process_api WebSocket from a non-loopback source.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A sandbox is an isolated environment where a program runs so it cannot harm the rest of the system. Here, the AI assistant could look inside its own sandbox, read memory belonging to a control program, and hand that memory back to the user. That memory contained pieces of login tokens, which the researcher pieced back together into a working credential.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.