CS 161: Computer Security

Announcements

  • Final exam grades are released. Please submit any regrade requests before Tuesday, August 16, 11:59 PM PT.

Instructors: Fuzail Shakir and Peyrin Kao

Lecture: Monday–Thursday, 12:30 PM–2:00 PM PT, Physics Building 4 + Online

Skip to current week

Date Lecture Topic Discussion HW Project
Mon
06/20
No lecture (Juneteenth)No discussion HW1
Tue
06/21
  1. Slides
    Recording

Introduction

1. Security Principles

Project 1 Checkpoint

Wed
06/22
  1. Slides
    Recording

2. x86 Assembly and Call Stack

61C Review, Security Principles
(solutions)

(recording)
Thu
06/23
  1. Slides
    Recording

3. Memory Safety Vulnerabilities

Mon
06/27
  1. Slides
    Recording

4. Mitigating Memory Safety Vulnerabilities

Memory Safety
(solutions)

(recording)
HW2
Tue
06/28
  1. Slides
    Recording

5. Introduction to Cryptography

Wed
06/29
  1. Slides
    Recording

6. Symmetric-Key Cryptography

Memory Safety Mitigations
(solutions)

(recording)
Thu
06/30
  1. Slides
    Recording

7. Cryptographic Hashes

8. Message Authentication Codes (MACs)

Mon
07/04
No lecture (4th of July)Symmetric Key Cryptography
(solutions)

(recording)
HW3

Project 1

Tue
07/05
  1. Slides
    Recording

9. Pseudorandom Number Generators (PRNGs)

10. Diffie-Hellman Key Exchange

Wed
07/06
  1. Slides
    Recording

11. Public-Key Encryption

12. Digital Signatures

Asymmetric Key Cryptography
(solutions)

(recording)
Thu
07/07
  1. Slides
    Recording

13. Certificates

14. Passwords

Mon
07/11
  1. Slides
    Recording

16. Bitcoin

Signatures, Certificates, and Passwords
(solutions)

(recording)
HW4

Project 2 Design

Tue
07/12
No lecture (Midterm)
Wed
07/13
  1. Slides
    Recording

18. Introduction to Web

19. Same-Origin Policy

No discussion
Thu
07/14
  1. Slides
    Recording

20. Cookies and Session Management

21. Cross-Site Request Forgery (CSRF)

Mon
07/18
  1. Slides
    Recording

22. Cross-Site Scripting (XSS)

23. UI Attacks

Cookies and CSRF
(solutions)

(recording)
HW5
Tue
07/19
  1. Slides
    Recording

17. SQL Injection

Wed
07/20
  1. Slides
    Recording

25. Introduction to Networking

SQL Injection and XSS
(solutions)

(recording)
Thu
07/21
  1. Slides
    Recording

26. ARP

27. DHCP

28. WPA

Mon
07/25
  1. Slides
    Recording

29. BGP

30. TCP and UDP

DHCP, ARP, and WPA
(solutions)

(recording)
HW6
Tue
07/26
  1. Slides
    Recording

31. TLS

Project 2

Wed
07/27
  1. Slides
    Recording

32. DNS

TLS and TCP
(solutions)

(recording)
Thu
07/28
  1. Slides
    Recording

33. DNSSEC

Mon
08/01
  1. Slides
    Recording

34. Denial-of-Service (DoS) Attacks

35. Firewalls

DNS
(solutions)
HW7
Tue
08/02
  1. Slides
    Recording

36. Intrusion Detection

Wed
08/03
  1. Slides
    Recording

38. Malware

Intrusion Detection
(solutions)
Thu
08/04
  1. Slides
    Recording

39. Anonymity and Tor

Mon
08/08

Optional: Hating on gets (Paul Vixie) (slides, recording)

Project 3

Tue
08/09

Optional: Using Buffer Overflows to Speedrun Super Mario Bros. 3 (slides, recording)

Wed
08/10

No Lecture

Thu
08/11

Final Exam (5:00–8:00 PM PT)

Fri
08/12

Optional: Bitcoin: Burn It With Fire (Nick Weaver) (slides, recording)