Automotive Security Basics
A vehicle is a set of networks joined at a few enforcement points, and testing one begins by establishing which network you are on. This page maps the segments, the four entry points that reach them, and the confidence each topology claim deserves.
Vehicle Architecture
ECUs are grouped by function, and the group usually decides which bus carries its traffic. That split is why a compromise on the comfort bus does not automatically reach the brakes: the buses meet at a gateway, not on a shared wire. The grouping has moved — domain controllers now own whole areas, and newer platforms aggregate by location in zonal controllers that hand traffic upward over Ethernet. What survives: the traffic is still segmented, and the segments are joined by a router.
ECU Types
- Engine Control Module (ECM) — powertrain CAN
- Body Control Module (BCM) — comfort CAN or LIN
- Transmission Control Module — powertrain CAN
- Telematics / Infotainment — Ethernet or CAN gateway
Diagnostics Reached
- OBD-II (ISO 15765-4) — CAN, pins 6 and 14
- UDS on CAN (ISO 14229) — session and security access
- DoIP (ISO 13400) — diagnostics over Ethernet
- Manufacturer-specific CAN IDs above 0x700
The module list is a map of functions, not of the wire: one domain controller can sit on three segments and be the only node that sees all of them, while a window motor on LIN is reachable only through its master.
Bus Families At A Glance
Six families cover almost everything in production. The table tells you which adapter to attach and which decode to select; frame layout is on CAN Bus Fundamentals, the services above it on Diagnostics.
| Family | Rate | Typical Carrying |
|---|---|---|
| CAN (classical) | 125 kbps – 1 Mbps | Powertrain, chassis, diagnostics |
| CAN FD | 2–8 Mbps data phase | Newer powertrain, gateway links, programming |
| CAN XL | Data field to 2048 bytes | Zonal backbone candidates, rare in the field |
| LIN | ≤ 20 kbps | Switches, actuators, interior sensors |
| FlexRay | 10 Mbps per channel | Time-triggered chassis and steering |
| Automotive Ethernet | 100 Mbps – 10 Gbps | Camera, radar, IVI, DoIP, zonal backbones |
CAN XL is defined in ISO 11898-1:2024 with a data field of up to 2048 bytes, and belongs on new zonal architectures rather than in the field. LIN is single-master, so a LIN segment is reached through its master. Ethernet needs an IP stack rather than a CAN adapter, which is why DoIP work reads as network testing.
Attack Surfaces
Four entry points are reachable on a production vehicle. The question about each is what terminates it, what it lands on, and what that gives a tester: a port is a connector, the segment behind it is the surface.
| Entry Point | Terminated By | Lands On | What A Tester Gets |
|---|---|---|---|
| OBD-II port | Gateway, or the powertrain bus on older vehicles | Diagnostic CAN on pins 6/14, then what the gateway forwards | OBD-II modes and UDS to every module the gateway passes; the whole segment where the port is wired to it |
| Telematics (TCU) | The unit's modem and processor | Vehicle CAN or Ethernet via its second interface | The unit's services and bus access; the remote path is the back-end API, not the radio |
| Infotainment | The head unit SoC and its connectivity stack | Internal Ethernet, then a gateway port to the vehicle buses | Code execution in the IVI if the stack yields it, and the identifiers forwarded to that segment |
| Keyless RF | The UHF receiver and LF driver, usually in the BCM | Comfort CAN or LIN; the immobiliser is a separate check | Unlock, and separately whether start follows: two different authorisations |
The OBD-II connector is standardised; the wiring behind it is not. ISO 15765-4 requires pins 6 and 14 for emissions CAN, but other buses sit on 3 and 11, K-line on 7 and 15, manufacturer-specific pairs on 1/9 and 12/13 — and a filtered diagnostic stub looks the same from the connector as a direct powertrain tap.
The radio entry points end at a component, not a network. A keyless receiver answers at the BCM, and whether the engine starts is a second decision about the immobiliser; the IVI and TCU are computers with a vehicle interface attached, so the first finding is usually about the computer.
Where The Trust Boundaries Are
Inside a segment there is no trust boundary. A classical CAN frame carries an identifier, a length and up to eight data bytes, and nothing says who transmitted it: any node that can drive the differential pair can send any identifier, and every receiver treats it as the real sender's. An injected frame is not a spoof a check catches — it is simply a frame.
The gateway is the only place where one segment's traffic is examined before it reaches another. Its forwarding table is an allowlist of identifiers, per direction and per segment, sometimes narrowed by session state — a routing policy, not a cryptographic control, and unreadable from the bus. That table is the access control model, which makes "forwarded or local" a question about authorisation. CAN Bus Attacks covers what it hides in practice.
Vehicle topology: four entry points behind the gateway
Scroll sideways to see the whole diagram
Two mechanisms soften that picture without changing it. SecOC, the AUTOSAR secure onboard communication profile, attaches a MAC and a freshness value to selected PDUs, so a forged or replayed frame fails at the receiver — but it covers a chosen subset of traffic and needs its own key management. SecurityAccess (0x27) and Authentication (0x29) gate services, not traffic.
One boundary sits outside the vehicle: the same ECUs record and transmit, so the unit reporting position and diagnostics to a back end is a data plane as well as a control path — see Telematics.
Mapping The Topology
The topology in the manual and the one in front of you are different artefacts. Establishing the second takes three steps: record what each entry point gives you, separate forwarded from local, and grade each claim by how it was obtained.
What To Record At Each Entry Point
Before the first request, record what cannot be reconstructed later: the connector and pins, or the radio band and modulation; the interface settings as the adapter reports them, including bitrate and whether frames are classical or FD; the identifier set with a timestamp and vehicle state — ignition, doors, modules awake or asleep; and where the tap sat relative to the gateway. A sleeping bus and an empty bus produce the same five-second capture, and only the recorded state separates them. Attribute responders by reading 0xF190 (VIN) or 0xF187: an identifier names a message, not a module.
Forwarded Versus Local
A forwarded frame is byte-identical to the one the gateway received — same identifier, same payload, and on a lightly loaded bus nearly the same timing — so one tap cannot tell a module on this segment from one three segments away. Gateway latency adds hundreds of microseconds to a few milliseconds, but arbitration and bus load move timing by more. The discriminator is a second observation point: tap both sides of the gateway, or remove it on a bench and see which identifiers survive.
An Identifier At One Port Is Not An Origin
Documented, Observed, Inferred
Three words keep the claim honest. Documented: an OEM repair document, wiring diagram or diagnostic description file names the segment and module — citable, and still possibly wrong for this build, because documents cover harness variants. Observed: you saw the frame at a known tap, in a recorded state, with the interface output to prove the settings — evidence, and reproducible. Inferred: neither; the module is fitted or the harness has the pins, so the segment must exist. A hypothesis, and where most topology claims sit. A claim must not rise a level on its way into the report; the checklist below is this procedure in order.
Where The Rest Of The Section Picks Up
The remaining pages follow the order a test usually takes, from wire to code and back.
- CAN Bus — frame layout, arbitration, CAN FD, ISO-TP.
- CAN Attacks — sniffing, injection, replay, fuzzing.
- Diagnostics — OBD-II modes, UDS sessions, 0x27, 0x29, DoIP.
- Keyless Entry — relay, replay, rolling codes, unlock versus start.
- Infotainment — Bluetooth, Wi-Fi, USB, update path.
- Telematics — cellular unit, back-end API, OTA chain.
- Firmware — acquiring an image, recovering access-control routines.
- Autonomous Vehicles — perception, machine-learning surface.
Evidence Collection
An architecture finding outlives the engagement only if the segment, the rate and the module inventory travel with it. Record:
Entry point and segment:
The connector or radio path used, the bus it actually reached, and the measured rate from ip -details link show rather than the rate the model year should carry. Four entry points on one vehicle reach four different segments.
Gateway position: Whether a central gateway sat between the tap and the module, and which identifiers it forwarded. A finding that names only "the CAN bus" cannot be reproduced, because the filter is part of the path.
Module inventory: Each controller that answered, was named by a periodic identifier, or was refused — with its arbitration ID range and the diagnostic address it responds on. The identifier-to-module mapping is the part nobody can reconstruct afterwards.
Bus rates and frame format: Classical CAN or CAN FD, the arbitration bitrate, and the data bitrate where BRS is in use. A 500 kbps powertrain bus and a 125 kbps comfort bus are different tests with different adapters.
Source of the architecture claim: Whether the topology came from OEM repair documentation, from a scan of the vehicle, or from inference. The first is citable, the second is evidence, the third is a hypothesis the next test supports or retires.
False Positive Identification
The traps on a page about architecture are all about attributing a segment you did not observe.
- A documented segment with no traffic: Topology documents cover harness variants. A bus listed for the model may not be fitted to the vehicle in front of you, so confirm the wire before reporting on its contents.
- Gateway traffic read as local: Identifiers forwarded through the central gateway look identical on the wire to identifiers produced on the segment you tapped. Note where the tap sat relative to the gateway.
- A rate taken from the manual: Trim level, build date and zonal redesigns all move bus rates. Quote the interface output and the VIN, not the workshop manual.
- A diagnostic stub read as an empty bus: The OBD-II pins can reach a filtered stub that presents only diagnostic identifiers. A quiet segment may be a short one rather than a network with nothing on it.
Architecture Mapping Checklist
The procedure above, in the order it is run. Every step produces something that goes into the evidence record.
At the entry point
- ☐ Record the connector and pinout, or the radio band and modulation, before the first request. The same tool reaches a different segment on a different wiring variant.
- ☐ Take the interface settings from the adapter — bitrate, classical or FD, sample point — not from the workshop manual.
- ☐ Log the identifier set with a timestamp and the vehicle state. A sleeping bus and an empty bus produce the same short capture.
- ☐ Attribute each responder by reading
0xF190or0xF187, not by assuming the arbitration ID names one module.
Forwarded or local
- ☐ Tap both sides of the gateway, or bypass it on a bench, before calling any identifier local to the segment.
- ☐ State the tap position relative to the gateway in every finding, so the trace can be re-read without the vehicle.
- ☐ Describe a module that answers through the gateway as reachable from this connector, not as implemented on this segment.
- ☐ Repeat the sweep after a session change: a gateway can widen its table in an extended session and narrow it again on reset.
Grade the claim
- ☐ Mark each topology claim documented, observed or inferred, and keep the level when it moves into the report.
- ☐ Quote the document, the capture file, the interface output and the vehicle state for anything called documented or observed.
- ☐ Leave inferred items in the report as open questions with the test that would settle them, rather than dropping them.