Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Car Hacking with Claude Code

The article explores how to use Claude Code, an AI coding assistant from Anthropic, to reverse-engineer CAN bus data from vehicles. It demonstrates using the AI to parse raw CAN logs, identify signals like speed and RPM, and generate Python scripts for decoding, effectively applying large language models to automotive hacking and diagnostics.

Background

- **CAN bus** (Controller Area Network) is the internal communication system used by modern vehicles — a simple two-wire network that connects ECUs (engine, brakes, airbags, etc.) to send short messages. It lacks basic security protections (no encryption, no authentication), making it a prime target for automotive hacking research. - **CAN bus reverse engineering** normally means manually driving a car, logging traffic, and trying to decode which messages correspond to actions (e.g., pressing the accelerator) — a slow, tedious process. - **Claude Code** is Anthropic's agentic coding tool (an evolution of the Claude AI assistant) that can autonomously write, edit, and run code to solve tasks. - This article shows how Claude Code, given a CAN bus interface and a car, can autonomously sniff traffic, correlate messages with actions, and identify the message IDs that control things like throttle, steering, and gear — dramatically automating what was previously a manual expert task.

Related stories

  • Newer Claude models sometimes invent extra keys in tool call arguments, breaking validation in Pi's edit tool. The author suspects post-training for Claude Code's forgiving harness makes alternative schemas fail. This suggests closed RL training can degrade general tool-use reliability.

  • Simon Willison released llm-coding-agent 0.1a0, an experimental coding agent built on his LLM library. The agent provides tools for reading, editing, searching files and executing commands, and ships with a Python API and CLI. It was developed using Claude Code (Fable 5) via TDD with a spec-first approach, and is available as a slop-alpha on PyPI.

  • Truth Social remains an outlet primarily for Trump's own posts, while other administration officials continue using X. The platform functions as a blog-like channel for Trump's messages rather than a genuine social network competitor.