
CS161 Fall 2026
Instructors: David Wagner, Peyrin Kao / Lecture: MWF, 12:00–1:00 PM, Physics Building 1 [Zoom, Playlist]
Announcements
Week 12 Announcements
- In honor of Veterans Day this Wednesday (November 11th), we will not have any lectures, office hours or discussions. Relevant materials will still be posted if you would like to work through it in your own time!
- Project 3 has been released and will be due Friday November 20th at 11:59PM PT! More information and related Ed posts can be found at #233.
- This is a shorter project similar to Project 1. Both partners need to hit flags on their respective servers. Please check your progress through box.cs161.org (but you can copy across servers). The writeup can be submitted together on Gradescope as usual.
- Project 2 DUEs: We have added a final set of slots this week on Tuesday, Thursday, and Friday at the same signup genius link in #195 for students who have reached out prior regarding extenuating circumstances. These will be the last slots for any Project 2 DUEs for this semester.
- Final Accommodations Form: If you have DSP accommodations or need an alternate time for the exam, please fill out the final accommodations form by this Friday, November 13th.
- We will process all requests starting Monday, November 16th, so please be sure submit any requests before then since we can’t guarantee to be able to accommodate requests past that date.
- If you have additional concerns not addressed by the form, please email us at cs161-staff@berkeley.edu.
Course Calendar
| Wk. | Date | Lecture | Discussion | HW | Project |
|---|---|---|---|---|---|
| 1 |
Wed Aug 26 | 1. Introduction and Security Principles Slides / Recording / Ch. 1 |
0. 61C Review Discussion: Worksheet / Solutions |
HW1
(due Wed Sep 16) |
|
|
Fri Aug 28 | 2. x86 Assembly and Call Stack Slides / Recording / Ch. 2 / x86/GDB Cheat Sheet |
||||
| 2 |
Mon Aug 31 | 3. Memory Safety Vulnerabilities Slides / Recording / Ch. 3.1, 3.2 |
1. Security Principles and x86 Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions / Slides |
Project 1 Checkpoint
(due Fri Sep 11) |
|
|
Wed Sep 02 | 4. Memory Safety Vulnerabilities (continued) Slides / Recording / Ch. 3.4, 3.6 |
||||
|
Fri Sep 04 | 5. Mitigating Memory Safety Vulnerabilities Slides / Recording / Ch. 4 |
||||
| 3 |
Mon Sep 07 | No Lecture (holiday) |
2. Memory Safety Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions / Slides |
||
|
Wed Sep 09 | 6. Mitigating Memory Safety Vulnerabilities (continued) Slides / Recording / Ch. 4 |
||||
|
Fri Sep 11 | 7. Authentication, Cryptographic Hashes Slides / Recording / Ch. 7 |
||||
| 4 |
Mon Sep 14 | 8. MACs Slides / Recording / Ch. 8 |
3. Memory Safety Mitigations and Injection Attacks Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions |
Project 1
(due Fri Sep 18) |
|
|
Wed Sep 16 | 9. Signatures Slides / Recording / Ch. 12 |
||||
|
Fri Sep 18 | 10. Public-Key Infrastructure Slides / Recording / Ch. 13 |
HW2
(due Wed Sep 30) |
|||
| 5 |
Mon Sep 21 | 11. Public-Key Infrastructure (continued) Slides / Recording / Ch. 13 |
4. Intro to Auth (Hashes and MACs) Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions |
Project 2 Spec Quiz
(due Fri Sep 25) |
|
|
Wed Sep 23 | 12. Symmetric-Key Encryption Slides / Recording / Ch. 6 |
||||
|
Fri Sep 25 | 13. Symmetric-Key Encryption (continued) Slides / Recording / Ch. 6 |
||||
| 6 |
Mon Sep 28 | 14. Authenticated Encryption Slides / Recording / Ch. 8.7 |
5. Symmetric Key Encryption and Key Exchange Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions |
Project 2 Design Checkpoint
(due Fri Oct 02) |
|
|
Wed Sep 30 | 15. Diffie-Hellman Key Exchange, Public-Key Encryption Slides / Recording / Ch. 10 / Ch. 11 |
||||
|
Fri Oct 02 | 16. How the Internet Works Slides / Recording / Ch. 25 |
HW3
(due Wed Oct 14) |
|||
| 7 |
Mon Oct 05 | 17. Low-Level Network Attacks Slides / Recording / Ch. 26 / Ch. 29 / Ch. 30 |
Midterm: No Discussion | Project 2 Testing Checkpoint
(due Fri Oct 23) |
|
|
Wed Oct 07 | 18. TLS Slides / Recording / Ch. 31 |
||||
|
Thu Oct 08 | Midterm (Thu Oct 08, 7–9pm PT) |
||||
|
Fri Oct 09 | 19. What TLS Doesn't Solve Slides / Recording / Ch. 34 / Ch. 39 |
||||
| 8 |
Mon Oct 12 | 20. End-to-End Security Slides / Recording |
6. Intro to Network + TLS Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions |
||
|
Wed Oct 14 | 21. End-to-End Security (continued) Slides / Recording |
||||
|
Fri Oct 16 | 22. Network Defense Slides / Recording / Ch. 36 / Ch. 35 |
HW4
(due Fri Oct 30) |
|||
| 9 |
Mon Oct 19 | 23. Intro to Web Applications Slides / Recording / Ch. 18 / Ch. 19 |
7. DNS / Network Defenses Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions |
||
|
Wed Oct 21 | 24. SQL Injection Slides / Recording / Ch. 17 |
||||
|
Fri Oct 23 | 25. XSS Slides / Recording / Ch. 22 |
Project 2
(due Fri Oct 30) |
|||
| 10 |
Mon Oct 26 | 26. Web Authentication, CSRF Slides / Recording / Ch. 20 / Ch. 21 |
8. Intro to Web + SQL Injection Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions |
||
|
Wed Oct 28 | 27. UI Security Slides / Recording / Ch. 23 |
||||
|
Fri Oct 30 | 28. Isolation I: Benefits Slides / Recording |
||||
| 11 |
Mon Nov 02 | 29. Isolation II: Techniques Slides / Recording |
9. Cookies Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet / Solutions |
HW5
(due Fri Nov 13) |
|
|
Wed Nov 04 | 30. Access Control Slides / Recording |
||||
|
Fri Nov 06 | 31. Hardware Security Slides / Recording |
||||
| 12 |
Mon Nov 09 | 32. Hardware Security (continued), AI Security 1 Slides / Recording |
10. Isolation Discussion: Worksheet / Slides Exam Prep: Worksheet |
Project 3
(due Fri Nov 20) |
|
|
Wed Nov 11 | No Lecture (holiday) |
||||
|
Fri Nov 13 | 33. AI Security 2 | ||||
| 13 |
Mon Nov 16 | 34. AI Security 3 | 11. AI Security | HW6
(due Fri Nov 20) |
|
|
Wed Nov 18 | 35. Buffer | ||||
|
Fri Nov 20 | 36. Buffer | ||||
| 14 |
Mon Nov 23 | 37. Buffer | Thanksgiving Break - No Discussion | ||
|
Wed Nov 25 | No Lecture (Thanksgiving holiday) |
||||
|
Fri Nov 27 | |||||
| 15 |
Mon Nov 30 | 38. Buffer | 12. | HW7
(due Mon Dec 07) |
|
|
Wed Dec 02 | 39. Case study: Signal | ||||
|
Fri Dec 04 | 40. Case Study: iPhone Security | ||||
| 16 |
Mon Dec 07 | No Lecture (RRR Week) |
13. Topical Review Sessions (RRR Week) | ||
|
Wed Dec 09 | |||||
|
Fri Dec 11 | |||||
| 17 |
Fri Dec 18 | Final Exam (Fri Dec 18, 11:30am–2:30pm PT) |