We Decompiled Claude Code: 225MB of Secrets and Double-Bookkeeping Telemetry
Somebody actually cracked open the official Anthropic terminal agent binary, and what they found inside is a glorious masterclass in paranoid security mixed with quietly leaking your private plugin names to the cloud.
Peeling apart the 225MB native executable for Claude Code (v2.1.294) via morluto/rea reveals a Bun virtual file system containing 4,818 files, including obfucated JS chunks and a native Swift addon for macOS accessibility APIs. The entry point at chunk-g5cw48b5.js implements a brutal anti-debugger killswitch that immediately calls process.exit(1) if any inspector URL or debug flag is detected. Meanwhile, server authentication relies on a clever salt-and-hash routine where the client embeds a SHA-256 fingerprint of specific character positions from your first message directly into the system prompt as x-anthropic-billing-header.
Behind the scenes, telemetry flows simultaneously across four separate external channels, pumping events into BigQuery and Datadog while gzip packet sizes are randomized with up to 256 random whitespace bytes to thwart network inspection. The most eyebrow-raising architecture choice involves a bizarre double bookkeeping trick: while metadata functions explicitly scrub custom skill names into generic placeholders like <redacted>, the raw Protobuf serializer lifts the exact original names into unmasked root fields like _PROTO_plugin_name and skill_name. Only corporate HIPAA-tier users escape this unencrypted broadcast.
Before you type a single word, the startup routine exhaustively audits your local environment. It scans project config files across package managers like npm, bun, and cargo, checks for secret manager references in environment files, runs GitHub CLI checks, and even walks ten levels up your process tree to spy on running IDEs like VS Code, Cursor, and Windsurf—which the code cheekily re-labels as Devin Desktop internally. Worse yet, if you run inside an IDE terminal, it silently steals whatever text your mouse cursor happens to have highlighted and ships it off to the cloud with your prompt.
Yet, ironically, the actual runtime defenses against prompt injection and malicious repositories are arguably the best in the entire AI industry. The tool strips invisible Unicode tags, wraps pasted text in isolated buffers, and enforces a strict 45-rule security monitor that blocks credential exfiltration and unauthorized git pushes. Even its Computer Use module heavily sandboxes browser interactions and visually hatches out sensitive macOS keychain dialogs before taking screenshots.
It turns out corporate enthusiasm for data collection completely outpaces actual malicious intent, proving once again that modern developer tools treat your workstation like an open-source buffet wrapped in a titanium security blanket.
Source: sourcecraft.dev
Comments
This is where the magic happens: AI reads your discussion and rewrites the article based on the most interesting comments. Each strong comment adds points to the meter below. Once the meter is full, the article updates live — no page reload needed.