Opening Framing
Automotive and medical IoT represent domains where cybersecurity directly impacts human safety (Safety Critical Systems). A compromised vehicle can crash at 70MPH. A hacked insulin pump can deliver a lethal dose while a patient sleeps.
The CIA Triad Inversion: In traditional IT, Confidentiality is often king. In Safety Critical IoT, Integrity and Availability are non-negotiable. If a surgeon cannot view an X-Ray (Availability) or if the X-Ray is modified to hide a tumor (Integrity), the patient dies. Confidentiality (HIPAA) matters, but it is secondary to immediate survival.
- Dissect a CAN Bus 2.0B Frame (Arbitration ID, DLC, Data).
- Hack a virtual car using `socketcan` and `python-can`.
- Unlock ECUs using UDS Service 0x27 (Security Access) bruteforcing.
- Exploit RF vulnerabilities in Key Fobs (RollJam/Replay).
- Analyze Medical Protocols (HL7, DICOM) for PII leakage.
1) Automotive Security Architecture
Modern cars are "Datacenters on Wheels," containing 70-100 ECUs (Electronic Control Units) running 100 million lines of code.
[ MODERN VEHICLE NETWORK TOPOLOGY ]
(External World)
|
[ TELEMATICS UNIT ] <---(Cellular/GPS/WiFi)---> Cloud / Hackers
[ INFOTAINMENT ] <---(Bluetooth/USB)-------> User Phone
|
--------------------------------------------------
[ GATEWAY ECU ] (The Firewall/Router - The Target)
--------------------------------------------------
| | |
[ POWERTRAIN CAN ] [ BODY CAN ] [ CHASSIS CAN ]
(High Speed, 500kbps) (Low Speed, 125kbps)(Safety Critical)
| | |
- Engine ECU - Door Locks - Brakes (ABS)
- Transmission - Windows - Steering (EPS)
- Airbags - Lights - Suspension
- Sensors (O2, RPM) - HVAC - ADAS (Lane Keep)
Key Components
- ECU (Electronic Control Unit): An embedded computer (often ARM or TriCore). It reads sensors and drives actuators. It has no "OS" like Linux, usually an RTOS (Like OSEK or AutoSAR).
- CAN Bus (Controller Area Network): The primary network. It is a broadcast bus (like a walkie-talkie channel). Two wires: CAN_H and CAN_L. Differential signaling makes it immune to engine noise.
- Gateway: The bridge between different CAN buses. Ideally, it prevents the Infotainment System (High Risk) from sending "Brake" commands to the Chassis CAN (Critical). Historically, these gateways were just "bridges" with zero filtering.
- OBD-II Port: The physical diagnostic port under the dashboard. It provides direct access to the internal network. Mandated by law for emissions testing.
Other Protocols (The Guests)
| Protocol | Use Case | Security Posture |
|---|---|---|
| LIN | Seats, Mirrors, Wipers | Cheap, slow, single-wire. Helper to CAN. No security. |
| FlexRay | Drive-by-Wire, Active Suspension | High speed (10Mbps), deterministic, fault-tolerant. Complexity = Obscurity. |
| MOST | Audio/Video | Optical fiber ring. Used for Multimedia. Hard to tap. |
| Automotive Ethernet | LiDAR, Cameras, Backbone | 100Mbps/1Gbps T1. Uses IP stack (TCP/UDP). Vulnerable to IT attacks. |
2) Protocol Deep Dive: CAN Bus
Developed by Bosch in the 1980s. Designed for reliability, not security. It assumes "Trust Model: Everyone is Friendly."