Skip to content

Claude Code

Claude Code network sandbox bypassed via null-byte injection

Written by an AI model from the linked sources and checked against them by a second model. How we work

All about: Claude Code versions and changes →
Image: medium.com

Researcher Aonan Guan disclosed a full bypass of the Claude Code network sandbox. The sandbox routes outbound traffic through a SOCKS5 proxy that validates hosts using a JavaScript endsWith() function against an allowlist.

The bypass uses a host containing a null-byte: attacker-host.com\x00.google.com. The JavaScript filter reads the full string and approves it as ending in .google.com. However, the underlying libc getaddrinfo() terminates the string at the null-byte and resolves the blocked attacker-host.com.

The bug affected versions v2.0.24 through v2.1.89, spanning approximately 130 releases over 5.5 months. Anthropic patched the issue in v2.1.90 without mention in the release notes, and no CVE was assigned. Via prompt injection, an attacker could have exfiltrated keys, source code, and secrets past the allowlist.

Anthropic

Anthropic removes covert tracking from Claude Code

Anthropic is removing the covert steganography it added to Claude Code in March. The code checked proxies and timezones against a list of Chinese AI labs, hiding the data via XOR and base64. The fix lands July 1. The team claims it was an experiment to catch distillation, but the mechanism was never disclosed in the terms of service.

No comments yet. Be the first.

Join the conversation

Sign in to leave a comment. It appears after moderation.