Instructors:
Lectures:
Addresses:
Announcements, questions: the class Piazza site, which you sign up for here.
Feel free to mark your question as private if you don't want other students to see it.
Midterms & Final:
- MT1: July 15, 5pm-7pm, LeConte Hall, Room 1.
- MT2: August 5, 5pm-7pm, LeConte Hall, Room 1.
- Final: August 15, 5pm-8pm, LeConte Hall, Room 1.
DSP and other accommodation contact:
Lectures:
The lecture schedule is subject to change and will be revised as the course progresses.
Calendar:
Staff
Rafael Tupynambá Dutra | Ruta Jawale |
Spencer McCall | Ryan Lehmkuhl | Peyrin Kao |
Office hours:
Time | Room | TA |
---|---|---|
Mo 3:00 - 5:00 PM | Soda 651 | Peyrin |
Mo 5:00 - 6:00 PM | Soda 651 | Ryan |
Tu 10:00 - 11:00 AM | Soda 611 | Ruta Jawale |
Tu 2:00 - 3:00 PM | Soda 651 | Rafael Dutra |
Tu 3:00 - 4:00 PM | Soda 651 | Spencer |
We 10:00 - 11:00 AM | Soda 611 | Ruta Jawale |
We 3:00 - 5:00 PM | Soda 651 | Spencer |
Th 10:00 - 11:00 AM | Soda 611 | Ruta Jawale |
Th 2:00 - 3:00 PM | Soda 651 | Rafael Dutra |
Th 3:00 - 4:00 PM | Soda 651 | Peyrin |
Fr 2:00 - 3:00 PM | Soda 651 | Rafael Dutra |
Discussion Section Handouts:
- Discussion 0: No Handout
- Discussion 1: x86, GDB and Security Principles: worksheet 1; solutions 1
- Discussion 2: TCB, Buffer Overflows and Defenses: worksheet 2; solutions 2
- Discussion 3: Cryptography I: worksheet 3; solutions 3
- Discussion 4: Cryptography II: worksheet 4; solutions 4
- Discussion 5: Cryptography III: worksheet 5; solutions 5
- Discussion 6: Network I: worksheet 6; solutions 6
- Discussion 7: Network II: worksheet 7; solutions 7
- Discussion 8: Network III: worksheet 8; solutions 8
- Discussion 9: Web I: worksheet 9; solutions 9
- Discussion 10: Web II: worksheet 10; solutions 10
- Discussion 11: Special Topics I: worksheet 11; solutions 11
- Discussion 12: Special Topics II: worksheet 12; solutions 12
Discussion Section Times:
Section | Time | Room | TA |
---|---|---|---|
101 | Mo/We 1:00 - 2:00 PM | Dwinelle 242 | Spencer |
102 | Mo/We 2:00 - 3:00 PM | Wheeler 224 | Peyrin |
103 | Mo/We 2:00 - 3:00 PM | Dwinelle 229 | Ryan |
Homeworks:
No late homeworks accepted.
Schedule for homeworks:
- HW0: Logistics and Setup. Due on June 26.
- HW1: Memory Safety and Crypto. Due on July 9.
- HW2: Network and Web Security. Due on August 2.
- HW3: Review and Network Monitoring. Due on August 13.
Homeworks are different from prior semesters'. If you previously take a look at the prior semesters' questions, note that they might already be changed.
Projects
Note that this late policy applies only to projects, not homeworks (homeworks cannot be turned in late).
Schedule for projects:
- Project 1: Memory Safety (instructions) Due on July 11.
- Project 2: Secure File Storage (instructions, skeleton code, user library). Design Draft due on July 22, project due on July 30.
- Project 3: Web Security. (instructions, source code) Due on August 12.
Exams
There will be two midterms and one final exam.
All exams are mandatory. If you will be unable to attend any of the
dates, you must contact the instructor during the first week
after the times are finalized.
- MT1: July 15, 5pm-7pm, LeConte Hall, Room 1.
- MT2: August 5, 5pm-7pm, LeConte Hall, Room 1.
- Final: August 15, 5pm-8pm, LeConte Hall, Room 1.
Grading
We will compute grades from a weighted average, as follows:
— | Homeworks: | 10% | (1% HW0, 3% HW1, 3% HW2, 3% HW3) |
— | Projects: | 30% | (9% Project 1, 12% Project 2, 9% Project 3) |
— | Midterms: | 30% | (15% MT1, 15% MT2) |
— | Final exam: | 30% |
Course Policies
Contact InformationAnnouncements
Prerequisites
Collaboration
Ethics
Computer accounts
Textbook
Lecture notes
Discussion sections
Re-grading policies
Late homework policy
Advice
Contact information
If you have a question, the best way to contact us is via the class Piazza site. The staff (instructors and TAs) will check the site regularly, and if you use it, other students will be able to help you too. Please avoid posting answers or hints for either homeworks or projects before the assignment is due.
If your question is personal or not of interest to other students, we encourage you to mark the question as private on Piazza: select "Post to: Individual Student(s)/Instructor(s)" at the top and then type "Instructors" in the field underneath it. If you wish to talk with one of us individually in person, you are welcome to come to any of our office hours. We prefer using these methods instead of sending email; regrettably, email does not scale well to a class of this size.
Announcements
The instructors and TAs will periodically post announcements, clarifications, etc. to the Piazza site. It is important that you check it regularly throughout the semester.
Prerequisites
The prerequisites for CS 161 are CS61C (Machine Structures), and CS70 (Discrete Mathematics). You will need to have a basic familiarity using Unix systems. We assume basic programming experience in common languages (C, Java, Python). Projects typically involve analyzing C programs and developing an application in Go. No prior knowledge of Go is expected.
Collaboration
Homeworks may be done on your own or may be done in groups. Either way, you must write up your solutions entirely on your own. As a general rule of thumb, you should never possess solutions to exact homework questions other than solutions you have written yourself. For homeworks, you must never read, see, or copy the solutions of other students, and you must not allow other students to see your solutions. For projects, you must never read, see, or copy the code or solutions of other students (other than your project partner, for group projects), nor allow students other than your partner to see your solutions or code.
We believe that most students can distinguish between helping other students understand course material and cheating. Explaining a subtle point from lecture or discussing course topics is an interaction that we encourage, but you should never read another student's assignment solution or partial solution, nor have it in your possession (other than for project partners). You must never share your written solutions, or partial solutions, with another student. You must write your homework solution strictly by yourself. You must not ask for homework/project solutions on Stack Overflow or other online sites; you may ask for help with conceptual questions, but you must credit your sources. You must not receive help on assignments from students who have taken the course in previous years, and you must not review homework or project solutions from previous years.
You must ensure that your solutions will not be visible to other students. If you use GitHub or another source control system to store your solutions electronically, you must ensure your account is configured so your solutions are not publicly visible. If you use GitHub, GitHub offers free private repositories that allow you to keep your solutions private; please use one.
Warning: Your attention is drawn to the Department's Policy on Academic Dishonesty. In particular, you should be aware that copying or sharing solutions, in whole or in part, from other students in the class or any other source without acknowledgment constitutes cheating. Any student found to be cheating will (1) be referred to the Office of Student Conduct, (2) receive negative points on the assignment (i.e., worse than not doing it at all), and, depending on severity, (3) fail the course. Cheating students will be directed to Nick Weaver and should know that he is noted for having a sense of vengeance.
Ethics
We will be discussing attacks in this class, some of them quite nasty. None of this is in any way an invitation to undertake these attacks in any fashion other than with informed consent of all involved and affected parties. The existence of a security hole is no excuse. These issues concern not only professional ethics, but also UCB policy and state and federal law. If there is any question in your mind about what conduct is allowable, contact the instructors first.
Computer accounts
If you need access to instructional computers, you can get a class account at webacct.
When you first log in to your account, you will be prompted to
enter information about yourself.
Here is a list of available Instructional "login servers" that can be
ssh
ed into can be found.
Textbook
The class does not have a required textbook. We have not found one that fully treats the material covered in the course, and we want to help you save money, so please don't feel obligated to buy a textbook. However, we know that some students appreciate additional reading to supplement lectures; for them, we recommend Introduction to Computer Security by Goodrich & Tamassia. We also recommend The Craft of System Security by Smith & Marchesini. We will list readings from these textbooks in the syllabus, but these are entirely optional.
Lecture notes
We will provide lecture notes and/or slides for many of the lectures. These materials are not a substitute for attending class, as our discussion in class may deviate from the written material. You are ultimately responsible for material as presented in both lecture and section.
Summer sessions are not webcast.
Discussion sections
Discussion sections will sometimes cover important material not presented in lecture, and we expect you will attend. Outside of your discussion section, you should feel free to attend any of the staff office hours (not just your section TA's office hours) and ask any of us for help. If your discussion section is too crowded, feel free to switch to a different one.
Re-grading policies
Any requests for grade changes or re-grading must be made within one week of when the work was returned. Requests should be submitted on Gradescope. We will not accept verbal re-grade requests. Note that a re-grade can result in a decreased score as well as an increased score, if upon revisiting we discover problems in your work that we previously overlooked.
Bear in mind that a primary aim in grading is consistency, so that all students are treated the same. For this reason, we are unlikely to adjust the score of individual students on an issue of partial credit if the score allocated is consistent with the grading policy we adopted for that problem.
More on homeworks: If a problem can be interpreted in more than one way, clearly state the assumptions under which you solve the problem. In writing up your homework you are allowed to consult any book, paper, or published material, except solutions from previous classes or elsewhere, as stated under the Collaboration section. If you consult external sources, you must cite your source(s). We will make model solutions available after the due date, and feedback will be available via Gradescope.
Late homework policy
We will give no credit for homework turned in after the deadline. Please don't ask for extensions. We don't mean to be harsh, but we prefer to make model solutions available shortly after the due date, which makes it impossible to accept late homeworks.
Don't be afraid to ask for help! Are you struggling? We'd much rather you approached us for help than gradually fall behind over the semester until things become untenable. Sometimes this happens when students fear a possibly unpleasant conversation with a professor if they admit to not understanding something. We would much rather resolve/remedy your misunderstanding early than have it expand into further problems later. Even if you are convinced that you are the only person in the class that doesn't understand the material, and think it must be entirely your fault for falling behind, please overcome this concern and ask for help as soon as you need it. Helping you learn the material is what we're here to do, after all!
Likewise, if you are a DSP student, please get your letters in now.
Advice
The following tips are offered based on our experience with CS 161:
1. Don't wait until the last minute to start projects! The projects can be time-consuming. Pace yourself. Students who procrastinate generally suffer.
2. Make use of office hours! The instructors and TAs hold office hours expressly to help you. It is often surprising how many students do not take advantage of this service. You are free to attend as many office hours as you wish. You are not constrained just to use the office hours of your section TA. You will likely get more out of an office hour visit if you have spent some time in advance thinking about the questions you have, and formulating them precisely. (In fact, this process can often lead you to a solution yourself!)
3. Participate actively in discussion sections! Discussion sections are not auxiliary lectures. They are an opportunity for interactive learning. The success of a discussion section depends largely on the willingness of students to participate actively in it. As with office hours, the better prepared you are for the discussion, the more you are likely to get out of it.