EECS 765, Fall 2018

Introduction to Cryptography and Computer Security


Course Goals

The overall goal of the course is to provide a solid theoretical foundation and hands-on experience in applying the theory to practice for cryptography, computer and communication security. The course materials cover common attack techniques, application of cryptography in security, authentication and authorization, network security, enterprise network defense, web security, and economics of cybersecurity. Besides the mechanisms for enhancing security that will be taught, a significant part of the course is dedicated to discussions on how design flaws in a system can be exploited to compromise security and, in general, the circumstances that lead to things going wrong. Students will have the opportunity to work on course projects that cover both the defense and offense aspects in the cyber space. Interesting research topics may be derived from course projects.

Course Schedule

Updated on a regular basis. Use your KU Online ID (all numeric is not correct) and password to access the slides and other materials.

Aug 21, 2018 Lecture 1 Introduction slides, video
Aug 23, 2018 Lecture 2

Buffer Overflow Exploit
The source code getscore.c The sample score file score.txt
Virtual machine used in the demonstration redhat8.

Supplemental readings:
slides, video
Aug 28, 2018 Lecture 3

Buffer Overflow Exploit (continued)

Supplemental readings:
video
Aug 30, 2018 Programming Assignment 1 (Lecture 4) Remote Buffer Overflow Attack pa1, video
Sept 4, 2018 Lecture 5 Mitigation of Buffer Overflow Exploits slides, video
Sept 6, 2018 Lecture 6

Mitigation of Buffer Overflow Exploits (continued)

Reading Assignment Evaluation Sheet

Reading assignment 1 (Group 1): The Geometry of Innocent Flesh on the Bone:
Return-into-libc without Function Calls (on the x86).

Reading Assignment 2 (Group 2): Hacking Blind.

Supplemental readings:
ra-eval, video
Sept 11, 2018 Lecture 7

Basic Cryptography

Reading assignment 3 (Group 3): Framing Signals - A Return to Portable Shellcode.

Reading Assignment 4 (Group 4): ASLR-Guard: Stopping Address Space Leakage for Code Reuse Attacks.

slides, video
Sept 13, 2018 Lecture 8 Authentication Basics slides, video
Sept 18, 2018 Programming Assignment 2 (Lecture 9)

Windows Remote Buffer Overflow Attack

Reading Assignment 5 (Group 5): How to Make ASLR Win the Clone Wars: Runtime Re-Randomization.

Reading Assignment 6 (Group 6): Shuffler: fast and deployable continuous code re-randomization.

pa2, slides, video
Sept 20, 2018 Lecture 10

Practical Authentication Protocols

Supplemental readings:
slides, video
Sept 25, 2018 Lecture 11

Man-in-the-middle Attacks

Supplemental readings:
  • (Optional) Textbook: Charles P. Pfleeger, Shari Lawrence Pfleeger, and Jonathan Margulies. 2015. Security in Computing (5th Edition) - Chapter 2
slides, video
Sept 27, 2018 Homework 1
(Lecture 12)

Authentication in a Distributed Environment (Kerberos)

Supplemental readings:
hw1, slides, video
Oct 2, 2018 Lecture 13 Kerberos (continued)
No in-class lecture, please watch the recorded video
video
Oct 4, 2018 Lecture 14

Heap Buffer Overflow Attacks
The source code: heap.c
The exploit code: heap_exploit.c

Supplemental readings:
slides, video
Oct 9, 2018 Programming Assignment 3
Presentations
(Lecture 15)

Reading Assignment Presentations:

Reading Assignment 1 (Group 1): slides

Reading Assignment 2 (Group 2): slides

pa3, slides, video
Oct 11, 2018 Presentations
(Lecture 16)

Reading Assignment Presentations:

Reading Assignment 3 (Group 3): slides

Reading Assignment 4 (Group 4): slides

slides, video
Oct 16, 2018 Fall Break
(No Lecture)
Enjoy the break!
Oct 18, 2018 Final Report
(Lecture 17)

Public-Key Infrastructure (PKI)

Final Report - Requirements, Guidelines, and Example Topics
Report Topics Due: Thursday Nov 8, 2018
Final Report Due: Thursday Dec 6, 2018

Supplemental readings:
final-report, slides, video
Oct 23, 2018 Lecture 18

Windows Exception Overwrite Attack

Supplemental readings:
slides, video
Oct 25, 2018 Programming Assignment 4
(Lecture 19)

Windows Exception Overwrite Attack (continued)

pa4, video
Oct 30, 2018 Lecture 20

Introduction to Network Security

Supplemental readings:
slides, video
Nov 1, 2018 Lecture 21

Return Oriented Programming
Virtual machine used in the demonstration Ubuntu-16-04LTS.

Supplemental readings:
slides, video
Nov 6, 2018 Programming Assignment 5
(Lecture 22)
ROP and Heap Spray pa5, slides, video
Nov 8, 2018 Presentations
(Lecture 23)

Reading Assignment Presentations:

Reading Assignment 5 (Group 5): slides

Reading Assignment 6 (Group 6): slides

slides, video
Nov 13, 2018 Lecture 24

DNS Security

Supplemental readings:
slides, video
Nov 15, 2018 Homework 2
(Lecture 25)
Software Vulnerabilities hw2, slides, video
Nov 20, 2018 Lecture 26

Firewalls
No in-class lecture, please watch the recorded video

slides, video
Nov 22, 2018 Thanksgiving
(No Lecture)
Happy Thanksgiving!
Nov 27, 2018 Lecture 27

Discussion: PA5 and Final Report

slides, video
Nov 29, 2018 Lecture 28

Final Exam Review

slides, video
Dec 4, 2018 Lecture 29

Advice and Q&A

slides, video
Dec 6, 2018 Final Report
(Lecture 29)

Advice and Q&A
Final Report Due: Today (Dec 6) at 11:59PM Central Time

slides, video
Dec 12, 2018 Final Exam

Wednesday 1:30 - 4:00 pm in LEA1136

schedule

Instructor and Course Meeting Times

Lectures Tuesday & Thursday 1:00pm - 2:15pm, LEA1136
Instructor Alex Bardas
Office: 2040 Eaton Hall
Office Hours: Tuesday 3:00pm - 5:00pm, and by email appointment
: alexbardas ku edu
Grader Dalton Hahn
Office: 2045 Eaton Hall
Office Hours: Wednesday 9:30am - 10:45am, and by email appointment
: daltonhahn ku edu

Prerequisites

EECS 678 and (EECS 780 or EECS 563), or the instructor's approval. In other words, a basic understanding of computer systems, including operating systems, networking, compilers, data structures, etc. This is a course that is primarily targeted at graduate students and at junior/senior-level undergraduate students in computer science and computer engineering.

Optional Textbook

Charles P. Pfleeger, Shari Lawrence Pfleeger, and Jonathan Margulies. 2015. Security in Computing (5th Edition). Prentice Hall Press, Upper Saddle River, NJ, USA.

Important Dates

See the KU Registrar for important dates involving adding, drops, and refund information.

Grading

There will be on average one assignment per week, which could be a written homework, a programming project, or a reading assignment. At the end of the semester, you must also turn in a final report that focuses on a specific problem in computer and information security. The topics for the report will be seeked out by the students and approved by the instructor. There will also be a final exam. The break down of the final score of the course is:
Programming assignments & homeworks 50%
Final exam 25%
Final report 15%
Class participation
(includes reading assignments)
10%
Grading scheme. (The instructor also intends to curve raw scores at the end of the semester)
A 90% +
A- 88% - 89%
B+ 86% - 87%
B 80% - 85%
B- 78% - 79%
C+ 76% - 77%
C 70% - 75%
C- 60% - 69%
D/F   0% - 59%

Assignment Submission

Usually assignments are due at 11:59PM Central Time via Blackboard (unless otherwise specified) according to the date posted in the assignment. In general, expect a 20% per day penalty for late submissions. One minute or 23 hours still count as a whole late day. Each calendar day counts as a late day. In case a solution will be made available by the instructor, late submissions will no longer be accepted.

Student Outcomes

After successful completion of this course, students should be able to:

Academic Integrity

Cheating and plagiarism will not be tolerated and will be treated severely whenever found. Unless an assignment explicitly states otherwise, all work submitted for credit must be the student's own and is subject to the provisions of the University of Kansas policies. Sharing your work or copying is cheating, and submitting a work that is not all yours is also considered cheating. Any cheating activities will result in an F for the course for all parties involved. Reports of such detected academic misconduct will also be made to your major department, school/college, and university, which oftentimes will result in more serious sanctions. Students should review the university policy on Academic conduct. "Academic integrity is a central value in higher education. It rests on two principles: first, that academic work is represented truthfully as to its source and its accuracy, and second, that academic results are obtained by fair and authorized means. Academic misconduct occurs when these values are not respected. Academic misconduct at KU is defined in the University Senate Rules and Regulations." -- KU Student Affairs
From Section 2.6.1 of the University Senate Rules and Regulations: Academic misconduct by a student shall include, but not be limited to, disruption of classes; threatening an instructor or fellow student in an academic setting, giving or receiving of unauthorized aid on examinations or in the preparation of notebooks, themes, reports or other assignments; knowingly misrepresenting the source of any academic work; unauthorized change of grades; unauthorized use of University approvals or forging of signatures; falsification of research results, plagiarizing of another’s work; violation of regulations or ethical codes for the treatment of human and animal subjects; or otherwise acting dishonestly in research.

Citing Sources: If you use any code, such as a library or existing codebase, you must cite it. Not doing so is considered plagiarism and cheating.

See Lecture 1 slides and video for more details on the collaboration policy. If you are in doubt, please ask.

Accommodations for Students with Disabilities

The Academic Achievement & Access Center (AAAC) coordinates academic accommodations and services for all eligible KU students with disabilities. If you have a disability for which you wish to request accommodations and have not contacted the AAAC, please do so as soon as possible. They are located in 22 Strong Hall and can be reached at 785-864-4064 (V/TTY). More information can be found on the Student Access Services website. Please contact the instructor privately in regard to your needs in this course.

Expectation of Classroom Conduct

The instructor, Alexandru G. Bardas, considers this classroom to be a place where you will be treated with respect as a human being - regardless of gender, race, ethnicity, national origin, religious affiliation, sexual orientation, gender identity, political beliefs, age, or ability. Additionally, diversity of thought is appreciated and encouraged, provided you can agree to disagree. Activities within the University of Kansas community, including this course, are governed by the Code of Student Rights and Responsibilities. It is the instructor's expectation that ALL students experience this classroom as a safe environment.

Concealed Carry. Individuals who choose to carry concealed handguns are solely responsible to do so in a safe and secure manner in strict conformity with state and federal laws and KU weapons policy. Safety measures outlined in the KU weapons policy specify that a concealed handgun:

Notice of Copyright and Commercial Note-taking

All lectures and course materials carry a copyright of several authors, including Xinming Ou and Alexandru G. Bardas. Some additional content is adapted from the BlackHat Exploit Laboratory (thanks to Saumil Shah and S.K. Chong for kindly permitting the use of those materials in this course). Pursuant to the University of Kansas’ Policy on Commercial Note-Taking Ventures, commercial note-taking is not permitted in EECS 765 - Introduction to Cryptography and Computer Security (Fall 2018). Lecture notes and course materials may be taken for personal use, for the purpose of mastering the course material, and may not be sold to any person or entity in any form. Any student engaged in or contributing to the commercial exchange of notes or course materials will be subject to discipline, including academic misconduct charges, in accordance with University policy. Please note: note-taking provided by a student volunteer for a student with a disability, as a reasonable accommodation under the ADA, is not the same as commercial note-taking and is not covered under this policy.

Acknowledgments

The course materials are adapted from a previous version of the course taught by Xinming (Simon) Ou together with Xiaolong (Daniel) Wang. Some additional materials are adapted from the BlackHat Exploit Laboratory (thanks to Saumil Shah and S.K. Chong who kindly permit the use of their materials).