Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rasb:lab:01 [2026/06/22 02:48]
ciprian.popescu0411 [Exercise 3: Kinetic Cyberattack via Digital Twin]
rasb:lab:01 [2026/06/22 19:13] (current)
ciprian.popescu0411 [Exercise 3: Kinetic Cyberattack via Digital Twin]
Line 40: Line 40:
  
 ==== Exercise 2: CAN Traffic Decoding ==== ==== Exercise 2: CAN Traffic Decoding ====
-**Objective:​** Parse and interpret raw CAN traffic using pre-captured ​message.+**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. ​ 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. ​
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]]
rasb/lab/01.1782085730.txt.gz · Last modified: 2026/06/22 02:48 by ciprian.popescu0411
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0