Table of Contents

Lab 1: Vehicle digital twin infrastructure demonstrator

This lab focuses on the integration of physical automotive hardware with virtual simulation. It uses a bare-metal testing platform bi-directionally synchronized with the CARLA driving simulator to form a “Digital Twin” environment.

Lab Structure: A 30-minute theoretical presentation (PASTA architecture, CAN vulnerabilities, Sim2Real concept) followed by 90 minutes of practical exercises.

Equipment Overview: The Sim2Real Infrastructure

The infrastructure consists of three operational layers.

1. The Physical Layer (Hardware Testbed)

Built inside a portable briefcase, organized in a dual-panel configuration:

2. The Middleware (Sim2Real Bridge)

Translates hardware signals into digital commands.

3. The Virtual Layer (CARLA & Graphical User Interface)

Exercise 1: Physical Layer Inspection

Objective: Analyze the electrical characteristics of the CAN bus.

The CAN lines on the testbed are coiled around the main 12V power supply to introduce Electromagnetic Interference (EMI).

Task:

Questions & Observations:

Exercise 2: CAN Traffic Decoding

Objective: Parse and interpret raw CAN traffic using pre-captured traffic.

You are provided with a CSV file containing CAN traffic. This data was extracted from the testbed's internal logic pins using a Kingst LA2016 high-speed logic analyzer.

Task: Write a Python script to read the CSV file, extract the CAN IDs and data payloads, and translate them into actions using the provided CAN_ID.json dictionary.

Download the starting code from here

Exercise 3: Kinetic Cyberattack via Digital Twin

Objective: Execute an injection attack on the digital twin and observe the kinetic impact in CARLA.

The CAN protocol uses a broadcast mechanism without source authentication.

Task: Inject a falsified message masquerading as a legitimate ECU (e.g., imitating the Chassis module to send a Powertrain command), causing the simulated vehicle to accelerate to 100% throttle and steer fully to the left.

Steps:

Questions & Observations:

CAN Bridge

CARLA Simulator