Telematics Security
Telematics Control Units (TCUs) provide cellular connectivity for remote services, over-the-air updates, and fleet management - and a potential remote attack vector.
Authorised Accounts, Names and VINs Only
Telematics Attack Surface
Telematics Unit Components:
├── Cellular Modem (2G/3G/4G/5G)
│ └── Remote attack surface
├── GPS Receiver
│ └── Spoofing target
├── Vehicle Interface (CAN)
│ └── Pivot to vehicle systems
└── Backend Services
└── API vulnerabilities
Common services exposed:
- Remote start/stop
- Door lock/unlock
- Vehicle tracking
- Diagnostics
- Over-the-air updatesTesting Telematics APIs
The mobile app is the cheapest way in: proxy it through Burp Suite (with a certificate-pinning bypass such as Frida or apk-mitm if the app pins), and the whole backend surface is in front of you. The classes of bug worth hunting are consistent across manufacturers — IDOR on vehicle or user identifiers, broken authentication on refresh tokens, missing authorization on the command endpoints, and verbose error responses that leak VINs. UN Regulation No. 155 makes the manufacturer's own threat analysis public in outline, so the OEM's CSMS scope often tells you which endpoints they consider security-relevant before you send a single request.
# Authenticated as your own test account: swap the vehicle ID and check
# whether the response is the other vehicle's data. That is the IDOR test.
curl -s -H "Authorization: Bearer $TOKEN" \
https://api.authorized.example/v1/vehicles/12345/location
curl -s -H "Authorization: Bearer $TOKEN" \
https://api.authorized.example/v1/vehicles/12346/location
# Compare the two responses: a 200 with different coordinates is a finding,
# a 403 is the control working.Some TCUs also accept commands over SMS, which puts a text parser in front of the vehicle interface: test for injection and for commands accepted from an unpaired number using a SIM in the vehicle you are authorised to test. On the radio side, the lawful options are a shielded enclosure or operator cooperation — a fake base station is not one of them, and TCU identification does not require one: the unit's IMEI and firmware version are normally readable over the diagnostic interface or from the head unit's engineering menu.
The SMS Command Surface
A Number You Control, A Vehicle You Own
SMS is on the TCU because data coverage is not guaranteed, and it carries none of the authentication an API call would. The sender ID a message appears to come from is a network-populated field, and spoofing it is a known weakness; the SMSC provides routing, not proof of the sender. The command needs its own authentication, and where it has none, the number plus the grammar is most of the attack.
Replay is the second problem: SMS has no session, so a captured command stays valid unless it carries a counter the TCU remembers as spent. The grammar is the third — delimiters, quoting, multi-part concatenation and GSM-7 versus UCS-2 encoding each give a parser room to disagree with the sender. Verbs accumulate because a channel built for poor coverage accretes diagnostics and configuration beside lock and start.
That grammar is two grammars. The modem runs an AT command interpreter with its own quoting and escaping; the application above parses the body on rules of its own, and any of it handed back to the modem crosses the AT grammar as well. A command has to survive both, and the layers disagree: one strips quoting that the other preserves; a single character can push the message from GSM-7 into UCS-2, changing its segment count and payload layout; and concatenated messages are reassembled from a user-data header whose segments can arrive out of order. What the first layer accepts may not reach the second intact.
The OTA Update Chain
Authorised Images And Channels Only
An update is a package, a manifest that describes it, and signatures over both. The manifest carries each image's hash and size, and the metadata that signs it nests: Uptane's split is the clearest published form, with an Image repository signed by offline keys, an online Director deciding which images a given VIN receives, and Root, Snapshot and Timestamp roles around them. Delta packages ship only changed blocks, and the receiver verifies the assembled result against the target hash rather than trusting the patch. A/B partitions make the write atomic: install into the inactive slot, verify, mark it bootable, keep the old one until the new one has booted.
Rollback protection is the part an OTA review usually finds missing. A channel that verifies signatures but has no notion of "older" is downgradeable: any image the OEM ever signed can be served, and the vulnerability it fixed returns to a patched vehicle. Uptane names the attack — causing an ECU to install a previously valid revision older than the installed one — and answers it with per-role version numbers and a per-image release counter the ECU refuses to go backwards on, which holds even where the Director is compromised. A monotonic counter in secure storage does the same job without a network. Either way the ECU, not the server, holds the floor. UN Regulation No. 156 and ISO 24089:2023 put that process under audit, and AUTOSAR's Update and Configuration Management (AP R24-11) implements it; none of them supplies that counter.
Campaigns, Halts and the Recovery Path
Recovery Mode Is Still Firmware Access
A staged rollout narrows the Director's per-VIN answer — what a vehicle installs next — to a cohort. Uptane does not name campaigns; that policy is the operator's. It does say an ECU that aborted a cycle should still be able to update again, which is what makes a halt survivable. Completion is evidenced only by the version report: a served image is not an installed one.
Both slots failing to boot is the case A/B does not answer, so recovery is a third stage — a ROM bootloader or recovery partition the campaign does not touch — accepting a signed image over a wired link. That makes it the highest-value target on the vehicle: it runs before the verified application, must stay writable in the field, and is the least-exercised code in the image. A halt halfway leaves a mixed fleet, so the next fix must suit the oldest version still reporting.
RXSWIN is where that halt becomes a compliance question. UN R156's software update management system requires the manufacturer to identify the software each type approval depends on, and the RX Software Identification Number is the dedicated, manufacturer-defined identifier for it — one per regulation whose approval the software affects, not a version number. R156 requires each RXSWIN to be uniquely identifiable and readable in a standardised way over at least the OBD port, and updated when a change leads to a type-approval extension or a new approval. A fleet left mixed by a halted rollout is therefore represented vehicle by vehicle, because the identifier is read off the car.
eSIM and the Private APN
A TCU's SIM is an eUICC: a tamper-resistant element holding one or more operator profiles. Remote provisioning is what lets a vehicle change operator without a visit — GSMA SGP.22 for the consumer flow, and SGP.32 (V1.3) for IoT, which adds an eSIM IoT Manager so a headless device can be provisioned without a user interface. Profiles are signed and installed only if the eUICC accepts them.
Provisioning is not the network boundary; the APN is. A private APN gives the TCU an operator-hosted network whose routing points at the OEM's backend, and that policy, not the SIM, is what keeps the vehicle off the public internet. "The TCU has a SIM" therefore means the vehicle sits on a routable network whether or not anyone designed it as one. Where that APN, or the TCU's own routing, reaches the diagnostics Ethernet, the DoIP entity described on the OBD-II page is reachable from the cellular side — with TLS still optional.
What The Telematics Unit Knows
The TCU is the only part of the vehicle awake, online and talking to somebody else's server for its whole life, which makes it the aggregation point for everything the vehicle measures: a position trace sampled on a timer or a distance delta; trip segmentation with a start and an end per ignition cycle; odometer and, on an electric vehicle, state of charge and energy per trip; harsh-braking, acceleration and cornering events with a timestamp and a place; diagnostic trouble code snapshots taken as they set; and, where the contract includes one, a driver-behaviour score derived from those events. Each field exists because something else needed it, which is why the set is larger than the notice usually describes.
What binds those records to a person is the identifier layer. The
IMSI changes when a
profile is re-provisioned; the
IMEI belongs to the
modem and does not; the eUICC's
EID belongs to the
soldered chip and survives both a profile swap and a change of owner. "We replaced the SIM" is therefore not
de-identification: two of the three identifiers are unchanged.
The Private APN Is A Network Boundary, Not A Privacy Boundary
The section above is right that the APN, not the SIM, is the boundary that matters — the question is which boundary. A private APN keeps the vehicle off the public internet and off other subscribers' traffic: the carrier routes the profile into a network the manufacturer controls, and its addresses are not reachable from outside. That is a real control, and it says nothing about who can read the traffic, because the manufacturer terminates both ends — the profile on the eUICC and the backend the APN routes to belong to the same party. Traffic on a private APN is private from other subscribers and fully visible to the organisation that owns the account, the app and the processing agreement. The APN is a network boundary; the privacy boundary is the manufacturer's policy.
The unit also beacons on a schedule nobody asked for: a keepalive, a position report, a heartbeat that keeps the subscription's session state alive. An in-vehicle "privacy mode" is a design claim to verify, and it has at least three shapes — it stops the uplink, which is rare; it stops the customer app displaying a position while the backend keeps recording it; or it narrows the reported fields and leaves the cadence intact. Telling them apart means comparing what leaves the APN against what the telemetry policy says should leave it: destinations, cadence and payload size are observable from the network side. A position field missing from the app is not a position missing from the record.
Retention is where the records outlive their purpose. The vehicle keeps a ring buffer of recent trips that overwrites itself; the backend keeps the archive, and for how long is a policy question answered in the notice rather than a property of the hardware. Aggregation is not anonymisation: a trip record stripped of its VIN is still linkable by its home location. The EU Data Act (Regulation (EU) 2023/2854) creates a right of access to data generated by a connected product and a right to share it with a third party (its applicability date is not stated here). The GDPR gives a subject access, erasure and portability over the same records (UNVERIFIED: the controller is often split between manufacturer, importer, dealer and service provider — see the legal frameworks page).
The transfer is where it leaves the manufacturer's hands. A usage-based insurance product takes a trip feed or a derived score, consented to at policy inception, and withdrawing consent usually governs the future rather than the archive. A fleet contract routes the same records to an operator who is not the driver. A data broker licenses aggregated or per-VIN data and joins it to other records about the registered keeper. Each is a transfer with its own recipient, purpose and retention — which of them applies is a question the policy answers, not one you can infer from the vehicle being connected.
That reframes the finding. When a telematics API answers a request for one VIN with another vehicle's location, trip history or diagnostic snapshot, the defect is an authorisation failure and the impact is a personal-data breach: the record names a vehicle, and the vehicle names a keeper whose movements it describes. A report that stops at "IDOR" has described the mechanism and not the harm. Say whose data it was — another customer of the same tenant, a customer of another tenant, a vehicle no longer on the platform — how many records it held. Then say what you kept: the minimum needed to prove the point, under the engagement's terms. A paginated dump taken "to establish scope" is a second incident with your name on it. The account-level questions belong with data privacy, the device-identity mechanics with device tracking.
Manifest And Modem Practice
Neither exercise needs a vehicle network. The first triages signed update metadata from a public reference repository, so the role nesting and version counters are real rather than described; the second explores SMS encoding and AT quoting on a modem you own with your own SIM, without sending anything to a TCU. Done when the manifest inventory states, per image, which role signed it and what version counter governs it, and you can show one payload whose character count forces it from GSM-7 into UCS-2 and a second where the two parser layers disagree about quoting.
Evidence Collection
A telematics finding is an API exchange or a signed artefact, and in both cases the account it was made under is part of the record. Record:
Account, VIN and authorisation: The test account, the VINs the engagement names, and the subscription state. A request touching a vehicle the scope does not name is a privacy incident rather than a finding.
Request and response pair: Method, path, the headers that carry identity, the request body, and the full response body with other customers data redacted, plus the status code. A screenshot of a JSON blob is not the pair.
The identifier swap: Both requests, the one bearing your own identifier and the one bearing the other, and what differed. A 200 on its own proves nothing if the server ignored the parameter and answered from the token.
Manifest and roles: For an update finding: the manifest, each image hash and size, which role signed it, and the version or release counter that role carries. That per-role counter is what rollback protection rests on.
Rollback state: The version the vehicle reports installed and the version the channel served, plus what the ECU did with a previously valid older image. A server refusing to serve it is policy; the ECU refusing it is a control.
SMS grammar and sender: The message body as sent, the encoding (GSM-7 or UCS-2), the segment count, and the number the TCU accepted or refused, with the vehicle response recorded separately from the modem acknowledgement.
Radio-side conditions: If a shielded enclosure or operator cooperation was used, name it. A claim about the radio path without that note reads as interception, which is not a lawful test.
False Positive Identification
- An IDOR that returned your own vehicle: Some APIs ignore the path identifier and answer from the token. Test with two accounts you control before describing broken object-level authorisation.
- A refusal from the wrong cause: Rate limiting, WAF rules and certificate pinning all produce 403s and resets. Read the body and the headers before attributing the refusal to authorisation.
- A verbose error that leaks your own data: An error naming the VIN you authenticated with is not a disclosure. It becomes one when it names a vehicle the account does not hold.
- A command accepted but not executed: An API returns 202 and the car never moves. Confirm the state change, or state that only the acceptance was observed.
- Rollback blocked by the server: A Director declining to serve an older revision is policy. The question is whether the ECU refuses it, so test the ECU with the image rather than the API with the request.
- A modem acknowledgement read as a vehicle action: An SMS reply proves the modem parsed the message. Record what the vehicle did as a separate observation, from a separate source.
Telematics Checklist
API surface
- ☐ Confirm the account, VIN and subscription are in writing in scope before the first request.
- ☐ Proxy the mobile app, with any pinning bypass done only on your own device and build.
- ☐ Enumerate endpoints read-only first, and record the authorisation header shape for each.
- ☐ Run the identifier swap against two accounts you control before trying a VIN in scope.
- ☐ Check refresh-token rotation and revocation: a token still valid after logout is a finding on its own.
Update chain and SMS
- ☐ For a bundle, inventory every image hash and which role signed it, then read each role version counter.
- ☐ Verify whether the ECU, not the server, refuses a previously valid older revision.
- ☐ Note whether recovery media and its signature live outside the campaign the Director controls.
- ☐ For SMS, record encoding, segment count and sender, and test one command from a number that is not paired.
- ☐ Leave fake base stations alone: a shielded enclosure or operator cooperation is the lawful route to any radio finding.
Remediation
The API defects below are ordinary software classes; the update and SMS items are design.
Authorisation
- • Authorise every vehicle identifier against the authenticated account on the server side rather than trusting a path parameter.
- • Require authorisation on each command endpoint, including those the app does not call, and deny by default.
- • Return a generic refusal: VINs, internal object identifiers and stack traces are not part of an error contract.
Session, update and delivery
- • Rotate refresh tokens on use, revoke the family on reuse, and expire them server-side at logout.
- • Enforce a release counter the ECU refuses to go backwards on, held in secure storage rather than derived from the server.
- • Carry a counter or nonce the TCU remembers, so a captured SMS command is spent once it has been used.
- • Gate remote commands on a state the vehicle reports rather than on the API having accepted the request.
CWE References: CWE-639, CWE-862, CWE-287