{"slug": "find-gov-domain-strings-in-bundled-claude-code-binaries-on-macos-requires-python", "title": "Find .gov domain strings in bundled Claude Code binaries on macOS. Requires Python 3.", "summary": "A developer published a short shell script that scans the bundled Claude Code binaries on macOS for embedded .gov domain strings, using Python 3 to read the local files under the Claude application support directory. The script performs no network requests and does not execute Claude, printing any matching hostnames it finds or a message if the binary is absent.", "body_md": "|  | #!/bin/sh | \n|  | # macOS + Python 3. Finds .gov domain strings in bundled Claude Code binaries. | \n|  | # Reads local files only; does not run Claude or make network requests. | \n|  | python3 - <<'PY' | \n|  | from pathlib import Path | \n|  | import re | \n|  | root = Path.home() / \"Library/Application Support/Claude/claude-code\" | \n|  | files = sorted(root.glob(\"*/*/claude.app/Contents/MacOS/claude\")) | \n|  | if not files: | \n|  | print(\"Bundled Claude Code binary not found at this path.\") | \n|  | for f in files: | \n|  | hosts = sorted(set(re.findall( | \n|  | rb\"(?:[a-z0-9-]+\\.)+(?:ic\\.gov\\|sgov\\.gov)\", f.read_bytes() | \n|  | ))) | \n|  | print(f\"\\n{f}\") | \n|  | print(\"\\n\".join(h.decode() for h in hosts) or \"No matching strings.\") | \n|  | PY |", "url": "https://wpnews.pro/news/find-gov-domain-strings-in-bundled-claude-code-binaries-on-macos-requires-python", "canonical_source": "https://gist.github.com/alesha-pro/daa2cd202c4e5716d30eccac014e897a", "published_at": "2026-10-08 16:06:52+00:00", "updated_at": "2026-10-08 19:21:15.333636+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools"], "entities": ["Claude Code", "Anthropic", "macOS", "Python"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/find-gov-domain-strings-in-bundled-claude-code-binaries-on-macos-requires-python", "markdown": "https://wpnews.pro/news/find-gov-domain-strings-in-bundled-claude-code-binaries-on-macos-requires-python.md", "text": "https://wpnews.pro/news/find-gov-domain-strings-in-bundled-claude-code-binaries-on-macos-requires-python.txt", "jsonld": "https://wpnews.pro/news/find-gov-domain-strings-in-bundled-claude-code-binaries-on-macos-requires-python.jsonld"}}