CS161 Fall 2026 logo

CS161 Fall 2026

Instructors: David Wagner, Peyrin Kao / Lecture: MWF, 12:00–1:00 PM, Physics Building 1 [Zoom, Playlist]

Announcements

Week 13 Announcements

Nov 16
  • We will not have lecture next Monday 11/23. Discussions and OH will also be cancelled next week.
  • Project 3 has been released and will be due this 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 (opens in new tab) (but you can copy across servers). The writeup can be submitted together on Gradescope as usual.
  • We will be hosting a Project 3 Project Party this Thursday (November 19th) from 5-7pm in Gateway Building B1040 Bear. This will replace any overlapping OH times, where we will dedicate these two hours for Project 3 questions.
    • Please sit in groups by question # and we will have staff circulate the area for any questions.
  • Homework 6 has been released. Please find more information at #251. There will be two parts to this homework.
    • A written portion submitted to Gradescope by this Friday, 11/20 which will be graded on completion
    • A self-response form on your solution submitted by next Friday 11/27
    • Keep in mind that since we are releasing solutions right after the deadline, there will be no extensions on this specific assignment. Please give the question a try to the best of your abilities since it is going to be graded on completion and not accuracy.
  • The Final Exam for CS161 will be on Friday December 18, 2026 11:30am–2:30pm.
    • The final accommodations form is now closed. If you have any emergent extenuating circumstances, please reach out to staff through email at cs161-staff@berkeley.edu.
    • Although we will no longer be able to guarantee to accommodate your request, staff will try to work something out with you to the best of our abilities, so please don’t hesitate to reach out.

Past announcements

Course Calendar

Skip to current week

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

61C Review Video

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. Buffer 12. HW7
(due Mon Dec 07)
Wed
Dec 02
38. Case study: Signal
Fri
Dec 04
39. 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)