This shows you the differences between two versions of the page.
|
rasb:lab:01 [2026/06/22 02:49] ciprian.popescu0411 [Exercise 2: CAN Traffic Decoding] |
rasb:lab:01 [2026/06/22 19:13] (current) ciprian.popescu0411 [Exercise 3: Kinetic Cyberattack via Digital Twin] |
||
|---|---|---|---|
| Line 47: | Line 47: | ||
| 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. | 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. | ||
| - | **Implementation Guide:** | + | {{:rasb:lab:lab1_skel.zip|Download the starting code from here}} |
| - | * **File Parsing:** Use Python's ''csv'' module to read the dataset. | + | |
| - | * **Data Formatting:** Convert hexadecimal strings (e.g., ''"0x1B8"'') using ''int(value, 16)'' if necessary to match the JSON keys. | + | |
| - | * **Load JSON:** Use the ''json'' library to load ''CAN_ID.json'', which contains ''can_id'', ''type'', and ''data'' fields. | + | |
| - | * **Logic:** For each row, extract the CAN ID, look it up in the JSON dictionary, and print the Timestamp, Action Name, and raw payload. | + | |
| - | + | ||
| - | **Expected Outcome:** | + | |
| - | A terminal output displaying a chronological log of vehicle events. | + | |
| ==== Exercise 3: Kinetic Cyberattack via Digital Twin ==== | ==== Exercise 3: Kinetic Cyberattack via Digital Twin ==== | ||
| Line 72: | Line 65: | ||
| * **Simulator Impact:** Observe the virtual car's reaction in CARLA. | * **Simulator Impact:** Observe the virtual car's reaction in CARLA. | ||
| * **Defense Mechanisms:** Consider how an Intrusion Detection System (IDS) could detect this based on message frequency and timing constraints. | * **Defense Mechanisms:** Consider how an Intrusion Detection System (IDS) could detect this based on message frequency and timing constraints. | ||
| + | |||
| + | [[https://github.com/ResearchYou/GUI-FOR-CARLA|CAN Bridge]] | ||
| + | |||
| + | [[https://tiny.carla.org/carla-0-9-11-windows|CARLA Simulator]] | ||