CS 161 Spring 2024 | Computer Security at UC Berkeley
CS 161 Spring 2024
This website contains materials from a past semester. Information, assignments, and announcements may no longer be relevant. Please refer to the
current semester's site
for up-to-date content.
CS 161 Spring 2024
Course Calendar
Skip to current week
Wk.
Date
Lecture
Discussion
HW
Project
Wed
Jan 17
1. Introduction and Security Principles
Slides
Recording
Ch. 1
0. 61C Review
Worksheet
Solutions
Video
HW1
(due Sunday 01/26)
Mon
Jan 22
2. x86 Assembly and Call Stack
Slides
Recording
Ch. 2
x86/GDB Cheat Sheet
1. Security Principles and x86
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
Project 1 Checkpoint
(due Sunday 02/02)
Wed
Jan 24
3. Memory Safety Vulnerabilities
Slides
Recording
Ch. 3
Memory Safety Extra Slides
Mon
Jan 29
4. Mitigating Memory Safety Vulnerabilities
Slides
Recording
Ch. 4
2. Memory Safety
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
HW2
(due Sunday 02/09)
Wed
Jan 31
5. Intro to Cryptography
Slides
Recording
Ch. 5
Mon
Feb 05
6. One-Time Pads and Block Ciphers
Slides
Recording
Ch. 6
3. Memory Safety Mitigations
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
Project 1
(due Sunday 02/09)
Wed
Feb 07
7. Block Cipher Chaining Modes & Cryptographic Hashes
Slides
Recording
Ch. 6
Mon
Feb 12
8. MACs, PRNGs and Diffie-Hellman Key Exchange
Slides
Recording
Ch. 7
Ch. 8
Ch. 9
4. Symmetric Cryptography
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
HW3
(due Sunday 02/16)
Project 2 Spec Quiz
(due Sunday 02/16)
Wed
Feb 14
9. Diffie-Hellman Key Exchange and Public-Key Encryption
Slides
Recording
Ch. 10
Ch. 11
Mon
Feb 19
No Lecture (President’s Day)
5. Integrity and Authenticity
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
HW4
(due Saturday 03/01)
Project 2 Design
(due Sunday 02/23)
Wed
Feb 21
10. Digital Signature, Certificates, Password Hashing
Slides
Recording
Ch. 12
Ch. 13
Ch. 14
Mon
Feb 26
11. Introduction to Web
Slides
Recording
Ch. 18
Ch. 19
6. Asymmetric Cryptography / Midterm Review
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
Project 2 Coding Checkpoint
(due Thursday 03/13)
Wed
Feb 28
12. Same-Origin Policy and Cookies
Slides
Recording
Ch. 19
Ch. 20
Thu
Feb 29
Midterm (7–9pm PT)
Mon
Mar 04
13. Sessions, CSRF, and XSS
Slides
Recording
Ch. 20
Ch. 21
No Discussion
HW5
(due Saturday 03/22)
Wed
Mar 06
14. SQL Injection and UI Attacks
Slides
Recording
Ch. 22
Ch. 23
Mon
Mar 11
15. Web Wrap-Up and Intro to Networking
Slides
Recording
Ch. 17
Ch. 24
Squigler Demo
7. Cookies and CSRF
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
Wed
Mar 13
16. Low-Level Network Attacks
Slides
Recording
Ch. 25
10
Mon
Mar 18
17. WPA (Low-Level Network Attacks) and TCP (Transport Layer)
Slides
Recording
Ch. 26
Ch. 27
Ch. 28
8. SQL Injection and XSS
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
Project 2
(due Saturday 03/22)
Wed
Mar 20
18. Transport Layer: TCP and UDP
Slides
Recording
Ch. 29
Ch. 30
11
Mon
Mar 25
No Lecture (Spring Break)
No Discussion
HW6
(due Saturday 04/05)
Project 3
(due Saturday 04/19)
Wed
Mar 27
No Lecture (Spring Break)
12
Mon
Apr 01
19. TLS
Slides
Recording
Ch. 31
9. ARP, DHCP, WPA
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
Wed
Apr 03
20. DNS
Slides
Recording
Ch. 32
13
Mon
Apr 08
21. DNSSEC
Slides
Recording
Ch. 33
10. TCP and TLS
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
Wed
Apr 10
22. Intrusion Detection
Slides
Recording
Ch. 36
14
Mon
Apr 15
23. Denial of Service and Firewalls
Slides
Recording
Ch. 34
Ch. 35
11. DNS
Worksheet
Solutions
Video
Exam Prep
Solutions
Video
HW7
(due Saturday 04/26)
Wed
Apr 17
24. Malware and Tor
Slides
Recording
Ch. 38
Tor Extra Slides
15
Mon
Apr 22
25. Bitcoin
Slides
Recording
Ch. 16
Bitcoin Whitepaper
12. Intrusion Detection, Tor, and Firewalls
Worksheet
Solutions
Exam Prep
Solutions
Wed
Apr 24
26. Quick Intro to Secure (Generative) AI
Slides
Recording
16
Mon
Apr 29
RRR Week
13. Final Review
Wed
May 01
RRR Week
17
Fri
May 10
Final Exam (3–6pm PT)