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.

Bot waving with a heart

CS 161 Spring 2024

Calendar

Skip to current week

Wk. Date Lecture Discussion HW Project
1Wed
Jan 17
1. Introduction and Security Principles
Slides 1 / Recording 1 / Ch. 1
0. 61C Review
Worksheet 0 / Solutions 0 / Video 0
HW1
(due Friday 01/26)
2Mon
Jan 22
2. x86 Assembly and Call Stack
Slides 2 / Recording 2 / Ch. 2 / x86/GDB Cheat Sheet
1. Security Principles and x86
Worksheet 1 / Solutions 1 / Video 1
Exam Prep 1 / EP Solutions 1 / EP Video 1
Project 1 Checkpoint
(due Friday 02/02)
Wed
Jan 24
3. Memory Safety Vulnerabilities
Slides 3 / Recording 3 / Ch. 3

Extra Slides

3Mon
Jan 29
4. Mitigating Memory Safety Vulnerabilities
Slides 4 / Recording 4 / Ch. 4
2. Memory Safety
Worksheet 2 / Solutions 2 / Video 2
Exam Prep 2 / EP Solutions 2 / EP Video 2
HW2
(due Friday 02/09)
Wed
Jan 31
5. Intro to Cryptography
Slides 5 / Recording 5 / Ch. 5
4Mon
Feb 05
6. One-Time Pads and Block Ciphers
Slides 6 / Recording 6 / Ch. 6
3. Memory Safety Mitigations
Worksheet 3 / Solutions 3 / Video 3
Exam Prep 3 / EP Solutions 3 / EP Video 3
Project 1
(due Friday 02/09)
Wed
Feb 07
7. Block Cipher Chaining Modes & Cryptographic Hashes
Slides 7 / Recording 7 / Ch. 6
5Mon
Feb 12
8. MACs, PRNGs and Diffie-Hellman Key Exchange
Slides 8 / Recording 8 / Ch. 7 / Ch. 8 / Ch. 9
4. Symmetric Cryptography
Worksheet 4 / Solutions 4 / Video 4
Exam Prep 4 / EP Solutions 4 / EP Video 4
HW3
(due Friday 02/16)
Project 2 Spec Quiz
(due Friday 02/16)
Wed
Feb 14
9. Diffie-Hellman Key Exchange and Public-Key Encryption
Slides 9 / Recording 9 / Ch. 10 / Ch. 11
6Mon
Feb 19

No Lecture (President’s Day)

5. Integrity and Authenticity
Worksheet 5 / Solutions 5 / Video 5
Exam Prep 5 / EP Solutions 5 / EP Video 5
HW4
(due Friday 03/01)
Project 2 Design
(due Friday 02/23)
Wed
Feb 21
10. Digital Signature, Certificates, Password Hashing
Slides 10 / Recording 10 / Ch. 12 / Ch. 13 / Ch. 14
7Mon
Feb 26
11. Introduction to Web
Slides 11 / Recording 11 / Ch. 18 / Ch. 19
6. Asymmetric Cryptography / Midterm Review
Worksheet 6 / Solutions 6 / Video 6
Exam Prep 6 / EP Solutions 6 / EP Video 6
Project 2 Coding Checkpoint
(due Wednesday 03/13)
Wed
Feb 28
12. Same-Origin Policy and Cookies
Slides 12 / Recording 12 / Ch. 19 / Ch. 20
Thu
Feb 29

Midterm (7–9pm PT)

8Mon
Mar 04
13. Sessions, CSRF, and XSS
Slides 13 / Recording 13 / Ch. 20 / Ch. 21
No Discussion HW5
(due Friday 03/22)
Wed
Mar 06
14. SQL Injection and UI Attacks
Slides 14 / Recording 14 / Ch. 22 / Ch. 23
9Mon
Mar 11
15. Web Wrap-Up and Intro to Networking
Slides 15 / Recording 15 / Ch. 17 / Ch. 24 / Squigler Demo
7. Cookies and CSRF
Worksheet 7 / Solutions 7 / Video 7
Exam Prep 7 / EP Solutions 7 / EP Video 7
Wed
Mar 13
16. Low-Level Network Attacks
Slides 16 / Recording 16 / Ch. 25
10Mon
Mar 18
17. WPA (Low-Level Network Attacks) and TCP (Transport Layer)
Slides 17 / Recording 17 / Ch. 26 / Ch. 27 / Ch. 28
8. SQL Injection and XSS
Worksheet 8 / Solutions 8 / Video 8
Exam Prep 8 / EP Solutions 8 / EP Video 8
Project 2
(due Friday 03/22)
Wed
Mar 20
18. Transport Layer: TCP and UDP
Slides 18 / Recording 18 / Ch. 29 / Ch. 30
11Mon
Mar 25

No Lecture (Spring Break)

No Discussion HW6
(due Friday 04/05)
Project 3
(due Friday 04/19)
Wed
Mar 27

No Lecture (Spring Break)

12Mon
Apr 01
19. TLS
Slides 19 / Recording 19 / Ch. 31
9. ARP, DHCP, WPA
Worksheet 9 / Solutions 9 / Video 9
Exam Prep 9 / EP Solutions 9 / EP Video 9
Wed
Apr 03
20. DNS
Slides 20 / Recording 20 / Ch. 32
13Mon
Apr 08
21. DNSSEC
Slides 21 / Recording 21 / Ch. 33
10. TCP and TLS
Worksheet 10 / Solutions 10 / Video 10
Exam Prep 10 / EP Solutions 10 / EP Video 10
Wed
Apr 10
22. Intrusion Detection
Slides 22 / Recording 22 / Ch. 36
14Mon
Apr 15
23. Denial of Service and Firewalls
Slides 23 / Recording 23 / Ch. 34 / Ch. 35
11. DNS
Worksheet 11 / Solutions 11 / Video 11
Exam Prep 11 / EP Solutions 11 / EP Video 11
HW7
(due Friday 04/26)
Wed
Apr 17
24. Malware and Tor
Slides 24 / Recording 24 / Ch. 38

Extra Slides

15Mon
Apr 22
25. Bitcoin
Slides 25 / Recording 25 / Ch. 16 / Bitcoin Whitepaper
12. Intrusion Detection, Tor, and Firewalls
Worksheet 12 / Solutions 12
Exam Prep 12 / EP Solutions 12
Wed
Apr 24
26. Quick Intro to Secure (Generative) AI
Slides 26 / Recording 26
16Mon
Apr 29

RRR Week

13. Final Review
Wed
May 01

RRR Week

17Fri
May 10

Final Exam (3–6pm PT)