# CPTS/EE 439 & 539

***

### Overview

This course explores the principles, techniques, and challenges of securing safety-critical cyber-physical systems. Students will gain a deep understanding of the vulnerabilities and threats in these systems and learn how to design and implement security measures. Example domains that we will study include the security of industrial control systems, automotive systems, smart grids, time-critical systems, and commodity Internet-of-things (IoT).

* **Instructor:** [Monowar Hasan](http://monowarhasan.info/)
* **Email:** <monowar.hasan@wsu.edu>
* **Class time:** Monday, Wednesday, Friday 1:10-2:00 PM
* **Class Location:** Pullman Campus, [Sloan 7](https://li.wsu.edu/buildings-and-spaces/general-university-classrooms/classroom-specs/sloan-7/)
* **Office Hours (EME B53):** Wednesday, Friday 2:15-3:00 PM or by appointment

> <mark style="color:orange;">**Important:**</mark> To better prepare yourself for office hours, read carefully the excellent guides from [Gabriel Parmer](https://www2.seas.gwu.edu/~gparmer/):
>
> * [Preparing and presenting yourself at office hours](https://www2.seas.gwu.edu/~gparmer/resources/2021-09-20-Office-Hours-HOWTO.html)
> * [Expected norms for online interactions](https://www2.seas.gwu.edu/~gparmer/resources/2020-08-01-Online-Conduct.html)

***

### Course Syllabus

The course syllabus is available [here](https://monowarhasan.info/courses/CPTS439_Syllabus_SP26.pdf).

***

### Textbook

The course uses materials from state-of-the-art cyber-physical and IoT security literature. In-class discussions and lecture slides will be sufficient to understand the basic concepts. *No textbook is required.*

***

### Course Schedule

**Note:** *The lectures and code files are hosted on the WSU OneDrive cloud. You need WSU credentials to access the materials. If you are from outside WSU and want to use these materials, please email Prof. Hasan at <monowar.hasan@wsu.edu>.*

<table><thead><tr><th width="79" data-type="number">WK</th><th width="81">Date</th><th width="215">Topic</th><th>Remarks</th></tr></thead><tbody><tr><td>1</td><td>01/12<br>(Mon)</td><td>Course overview</td><td></td></tr><tr><td>1</td><td>01/14<br>(Wed)</td><td>CPS/ICS background</td><td></td></tr><tr><td>1</td><td>01/16<br>(Fri)</td><td>CPS security overview</td><td></td></tr><tr><td>2</td><td>01/19<br>(Mon)</td><td><mark style="color:green;"><strong>No Class</strong></mark></td><td><mark style="color:green;">Martin Luther King Jr Day</mark></td></tr><tr><td>2</td><td>01/21<br>(Wed)</td><td>Access control</td><td><mark style="color:blue;"><strong>Reading assignment 1 released</strong></mark></td></tr><tr><td>2</td><td>01/23<br>(Fri)</td><td>Access control</td><td></td></tr><tr><td>3</td><td>01/26<br>(Mon)</td><td>Student presentation: Project proposal</td><td><mark style="color:purple;">All programming assignments released</mark></td></tr><tr><td>3</td><td>01/28<br>(Wed)</td><td>Student presentation: Project proposal</td><td><mark style="background-color:blue;">Reading assignment 1 due</mark></td></tr><tr><td>3</td><td>01/30<br>(Fri)</td><td>Student presentation: Project proposal</td><td></td></tr><tr><td>4</td><td>02/02<br>(Mon)</td><td>Isolation techniques</td><td><mark style="background-color:red;"><strong>Project proposal document due</strong></mark></td></tr><tr><td>4</td><td>02/04<br>(Wed)</td><td>Trusted execution environments</td><td></td></tr><tr><td>4</td><td>02/06<br>(Fri)</td><td>Covert channels</td><td></td></tr><tr><td>5</td><td>02/09<br>(Mon)</td><td>ICS network</td><td></td></tr><tr><td>5</td><td>02/11<br>(Wed)</td><td>ICS network security</td><td></td></tr><tr><td>5</td><td>02/13<br>(Fri)</td><td>Controller area network (CAN)</td><td></td></tr><tr><td>6</td><td>02/16<br>(Mon)</td><td><mark style="color:green;"><strong>No Class</strong></mark></td><td><mark style="color:green;">President's Day</mark></td></tr><tr><td>6</td><td>02/18<br>(Wed)</td><td>CAN security</td><td></td></tr><tr><td>6</td><td>02/20<br>(Fri)</td><td>Real-time systems</td><td><br><br><mark style="background-color:purple;"><strong>Programming assignment 1 due</strong></mark></td></tr><tr><td>7</td><td>02/23<br>(Mon)</td><td>Real-time security</td><td></td></tr><tr><td>7</td><td>02/25<br>(Wed)</td><td>Real-time security</td><td></td></tr><tr><td>7</td><td>02/27<br>(Fri)</td><td>CPS security remarks</td><td></td></tr><tr><td>8</td><td>03/02<br>(Mon)</td><td><mark style="color:red;"><strong>Exam 1</strong></mark></td><td><mark style="color:green;"><strong>No Class</strong></mark><br><mark style="color:orange;">Open note, take-home exam</mark><br><mark style="color:orange;">Time limit: <strong>60 minutes</strong></mark></td></tr><tr><td>8</td><td>03/04<br>(Wed)</td><td>Student presentation: Project update</td><td></td></tr><tr><td>8</td><td>03/06<br>(Fri)</td><td>Student presentation: Project update</td><td></td></tr><tr><td>9</td><td>03/09<br>(Mon)</td><td>Student presentation: Project update</td><td></td></tr><tr><td>9</td><td>03/11<br>(Wed)</td><td>Student presentation: Project update</td><td></td></tr><tr><td>9</td><td>03/13<br>(Fri)</td><td>Student presentation: Project update</td><td><mark style="background-color:purple;"><strong>Programming assignment 2 due</strong></mark></td></tr><tr><td>10</td><td>03/16<br>(Mon)</td><td><mark style="color:green;"><strong>No Class</strong></mark></td><td><mark style="color:green;">Spring vacation</mark><br><mark style="color:blue;"><strong>Reading assignment 2 released</strong></mark></td></tr><tr><td>10</td><td>03/18<br>(Wed)</td><td><mark style="color:green;"><strong>No Class</strong></mark></td><td><mark style="color:green;">Spring vacation</mark><br></td></tr><tr><td>10</td><td>03/20<br>(Fri)</td><td><mark style="color:green;"><strong>No Class</strong></mark></td><td><mark style="color:green;">Spring vacation</mark></td></tr><tr><td>11</td><td>03/23<br>(Mon)</td><td>Student presentation:<br>IoT security</td><td></td></tr><tr><td>11</td><td>03/25<br>(Wed)</td><td>Student presentation:<br>IoT security</td><td></td></tr><tr><td>11</td><td>03/27<br>(Fri)</td><td>Student presentation:<br>IoT security</td><td><mark style="background-color:red;"><strong>Project update due</strong></mark></td></tr><tr><td>12</td><td>03/30<br>(Mon)</td><td>Student presentation:<br>Time-critical systems security</td><td></td></tr><tr><td>12</td><td>04/01<br>(Wed)</td><td>Student presentation:<br>Time-critical systems security</td><td><mark style="background-color:blue;"><strong>Reading assginment 2 due</strong></mark></td></tr><tr><td>12</td><td>04/03<br>(Fri)</td><td>Student presentation:<br>Time-critical systems security</td><td><mark style="background-color:purple;"><strong>Programming assignment 3 due</strong></mark></td></tr><tr><td>13</td><td>04/06<br>(Mon)</td><td>Student presentation:<br>Autonomous system security</td><td></td></tr><tr><td>13</td><td>04/08<br>(Wed)</td><td>Student presentation:<br>Autonomous system security</td><td><mark style="color:blue;"><strong>Reading assignment 3 released</strong></mark></td></tr><tr><td>13</td><td>04/10<br>(Fri)</td><td>Student presentation:<br>Autonomous system security</td><td></td></tr><tr><td>14</td><td>04/13<br>(Mon)</td><td>Student presentation:<br>Autonomous systems security</td><td></td></tr><tr><td>14</td><td>04/15<br>(Wed)</td><td><mark style="color:green;"><strong>No class</strong> (buffer day for final project presentation)</mark></td><td><mark style="background-color:blue;"><strong>Reading assignment 3 due</strong></mark></td></tr><tr><td>14</td><td>04/17<br>(Fri)</td><td>Project presentation</td><td><mark style="color:blue;"><strong>Reading assignment 4 released</strong></mark><br><mark style="background-color:purple;"><strong>Programming assignment 4 due</strong></mark></td></tr><tr><td>15</td><td>04/20<br>(Mon)</td><td>Project presentation</td><td></td></tr><tr><td>15</td><td>04/22<br>(Wed)</td><td>Project presentation</td><td></td></tr><tr><td>15</td><td>04/24<br>(Fri)</td><td>Project presentation</td><td><br><mark style="background-color:blue;"><strong>Reading assignment 4 due</strong></mark></td></tr><tr><td>16</td><td>04/27<br>(Mon)</td><td><mark style="color:green;">Buffer day: No class last week</mark></td><td></td></tr><tr><td>16</td><td>04/29<br>(Wed)</td><td><mark style="color:green;">Buffer day: No class last week</mark></td><td></td></tr><tr><td>16</td><td>05/01<br>(Fri)</td><td><mark style="color:green;">Buffer day: No class last week</mark></td><td><mark style="color:green;">Last day of instruction</mark></td></tr><tr><td>17</td><td>05/04<br>(Mon)</td><td><mark style="color:red;"><strong>Project report due by 3:30 PM</strong></mark></td><td><mark style="background-color:red;"><strong>Project due</strong></mark><br><mark style="color:orange;">The date/time is chosen based on the</mark> <a href="https://registrar.schedule.wsu.edu/exams/final-exams/"><mark style="color:orange;">final exam master schedule</mark></a></td></tr></tbody></table>

***

### Class Presentations

Students will present academic papers and engage in class discussions on topics related to IoT, CPS, and critical infrastructure security. Presentations will be delivered individually, with **30 minutes** allocated for the presentation and **20 minutes** for Q\&A.

The audience (i.e., students who are not presenting) is expected to ask questions and actively participate in the discussion. A significant portion of the class participation grade will be based on the quality and depth of audience engagement with the presenter.

Tentative topic and timeline are listed below.

* Week 11: IoT security
* Week 12: Time-critical systems security&#x20;
* Week 13: Autonomous system security&#x20;
* Week 14: Automotive systems security&#x20;

***

### Reading Assignments <a href="#resources" id="resources"></a>

There will be **four** reading assignments: Week 2, Week 10, Week 13, Week 14. Grading for reading assignments will be based on ***submission*** or ***non-submission***: total points for attempted assignments with reasonable answers will be awarded, while unattempted tasks will receive no points.

***

### Term Project

Students will engage in a semester-long project related to critical infrastructure security. For undergraduates, it is preferred that a **group of two students** form a team, with a **maximum of three** students acceptable. Graduate students can either work on the projects **individually** or **form a team** with other students. The students will engage in several in-class presentations (project proposal, update, and final output) and submit an end-of-semester report.\
\
The term project could be one of the following types:

1. **Survey:** Students will survey the related research fields. The survey should include a summary of at least 8 papers from top journals/conferences.
2. **Exploration:** Students will explore a new research problem related to CPS/IoT security.&#x20;

Some problems of interest are as follows (NOTE: this is NOT the list you are required to choose from):

* Integrating security monitoring/cryptographic primitives in CPS
* Using trusted computing time-critical CPS
* Lightweight and privacy-preserving machine learning models for autonomous systems
* Review of TEE-related (TrustZone/SGX) security vulnerabilities for the CPS applications
* Investigating covert/side-channels in real-time/CPS/SCADA applications

**Project Deliverables:**

* **Project proposal:** The student will present their term project ideas in **Week 3** and get feedback from the instructor. The project proposal with a timeline (max two pages) must be submitted and approved by the instructor by the end of **Week 4**.
* **Mid-semester update:** During **Week 8** and **Week 9**, student will present their project updates. A progress report (max three pages) of the project is due by **Week 11**.
* **Project presentation:** Students present their work in class (maximum 10-15 minutes). Other students must ask questions and engage in discussions.
* **Final submission:** The final project submission includes a report, all related code/data, and presentation slides. Use the [IEEE conference format](https://www.ieee.org/conferences/publishing/templates.html) template for your report. Reports can be up to 6 pages, excluding references (and appendices, if any). The final project is due by **Exam Week**.

***

### Exams

There will be a take-home exam on **Week 8**. Details will be announced on Canvas/Class.

***

### Programming Assignments <a href="#resources" id="resources"></a>

We will have **four** programming assignments in this course. The assignments must be completed individually. Grading for programming assignments will be based on ***submission*** or ***non-submission***: total points for attempted assignments with reasonable answers on **all** questions will be awarded, while unattempted tasks will receive no points.

* Assignment 1: Analyzing an Embedded Firmware Image
* Assignment 2: Attacking a Cyber-Physical Plant
* Assignment 3: Hacking an Automotive System (Controller Area Network)
* Assignment 4: UAV Autopilot Controller Security

**Notes:**&#x20;

* You will need access to a Linux machine (or VM) to complete the labs.&#x20;
* For Windows systems, [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) is **not recommended**. You must install a standalone VM image.&#x20;
* Due to the incompatibility of newer M-series (ARM) Mac computers, it is recommended to use X86-based Windows/Linux machines (or older Intel-based Macs) to create the VM images.&#x20;
* For those with M-series Macs (or if you can't use your laptop), we will provide compatible systems (located in EME labs). However, no remote access is available -- you must be physically present in the lab to use those machines.

### Programming Assignment Submission <a href="#pa" id="pa"></a>

We will use [GitHub Classroom](https://classroom.github.com) to deliver programming assignments. To learn more about the GitHub workflow, see [GitHub Quickstart](https://docs.github.com/en/get-started/quickstart).

**Are You Using GitHub for the first time on your machine?**\
If you are using GitHub for the first time on your development machine, you need to authenticate your account — one way to do this is by using [GitHub CLI](https://github.com/cli/cli). Install GitHub CLI using the instructions given [here](https://github.com/cli/cli#installation). Then run the following command and follow the prompts to authenticate your system: `gh auth login`.

#### Submission Workflow <a href="#resources" id="resources"></a>

1. For each lab, you will find a GitHub Classroom link on Canvas. Once you click the link and log into your GitHub account, find your name in the student list and click it to accept the assignment. Please double-check your name and email address before accepting the assignment. *If you accidentally choose another student's name, please contact the instructor.*
2. A repo named `wsu-cpts439-term/paX-name` will be automatically created for you and hosted on GitHub with the starter code.
3. You can then "clone" your repository onto your development machine. You will complete assignments on your development computer and then "push" your work to the GitHub-hosted remote repository for us to grade.
4. **Final submission:**&#x20;
   * Copy the URL of your GitHub repository on the corresponding assignment section on Canvas.&#x20;

For any questions on setting up GitHub, please reach out to the instructor.

***

#### <mark style="color:blue;">Got stuck? Questions about anything? Feel free to contact the instructor on Teams (preferred) or via email: <monowar.hasan@wsu.edu>!</mark>
