
CS161 Fall 2026
Instructors: David Wagner, Peyrin Kao / Lecture: MWF, 12:00–1:00 PM, Physics Building 1 [Zoom, Playlist]
Announcements
Week 15 Announcements
- This Wednesday’s lecture will be a Q&A with Professor Wagner! Please come prepared with questions or post them ahead of time in this thread #274.
- We have extended the due date for the Homework 6 self-response portion till this Wednesday, December 2. Please make sure to get the assignment in if you hadn’t already.
- The Final Logistics post has been released and available at #284. Please make sure to read it in its entirety in detail.
- Room assignments have also been sent out. Please email staff at cs161-staff@berkeley.edu if there are any concerns with the assigned time and place.
- We will also be hosting 4 final review sessions. Please find more information here #275.
- The latest date that anyone can request an extension will be till this Sunday, December 6. If you have other concerns, please email staff 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 / Solutions / Slides Exam Prep: Worksheet |
Project 3
(due Fri Nov 20) |
|
|
Wed Nov 11 | No Lecture (holiday) |
||||
|
Fri Nov 13 | 33. AI Security 2 Slides / Recording |
||||
| 13 |
Mon Nov 16 | 34. AI Security 3 Slides / Recording |
11. AI Security Discussion: Worksheet / Solutions / Slides Exam Prep: Worksheet |
HW6
(due Fri Nov 20) Solutions |
|
|
Wed Nov 18 | 35. AI Security 4 Slides / Recording |
||||
|
Fri Nov 20 | 36. Randomness, Crypto Implementation Bugs Slides / Recording |
||||
| 14 |
Mon Nov 23 | No Lecture (Thanksgiving holiday) |
Thanksgiving Break - No Discussion | ||
|
Wed Nov 25 | |||||
|
Fri Nov 27 | |||||
| 15 |
Mon Nov 30 | 37. Case study: Secure messaging Slides |
12. | HW7
(due Mon Dec 07) |
|
|
Wed Dec 02 | 38. Ask me anything | ||||
|
Fri Dec 04 | 39. Case Study: iPhone Security Slides |
||||
| 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) |