UIC CS487: Secure Computer Systems

This is the online book for CS487 — Secure Computer Systems at the University of Illinois Chicago. It has two halves that are meant to be used together:

  • Chapters explain the ideas: how attackers think, how real attacks work down to the bytes on the stack, and how defenses are designed. Each chapter ends with Check Your Understanding questions (click to reveal the answers) and points you to the lab that exercises the material.
  • Labs are the hands-on assignments: you will build, break, and then defend real systems software.

The book is written for senior undergraduates and graduate students who are comfortable with C and have seen an operating systems or computer architecture course. Optional Going deeper boxes point graduate readers at the research literature.

How the book is organized

Later parts — heap exploitation and memory-safe languages, malware, cryptography, public-key infrastructure, authentication and access control, network security, OS and hardware security, and AI & security — will be added as the course progresses.

How to use this site

  • Read the chapter before the lab. The labs assume the background in the corresponding chapters; the chapters assume you will try things in a VM as you read.
  • Read the whole lab before starting. Each lab has multiple tasks, and later tasks often depend on files or observations from earlier ones.
  • Work inside the course VM. Every lab is tested on the SEED Ubuntu 20.04 VM. Your local Ubuntu VM should also be fine. However, results on macOS or WSL may differ in ways that make the attacks fail. You may want to ask the instructor for a department VM.
  • Write things down as you go. Every task asks you to describe your observation. The report is where most of the credit lives — see Submitting a Lab Report.

Lab schedule

LabTopicReleasedDue
Lab 1Environment Variables and Set-UID Programs09/0109/11
Lab 2Return-to-libc Attack09/1509/25
Lab 3Format String Attack09/2910/09
OptionalRust Memory Safety10/22—
Lab 4Secret-Key EncryptionTBDTBD
Lab 5Public-Key Infrastructure (PKI)TBDTBD

Acknowledgments

The labs in this course are adapted from the SEED Labs project by Prof. Wenliang Du (Syracuse University), with UIC-specific setup, scoping, and submission requirements added, and the chapters follow the course’s recommended textbook, Computer & Internet Security: A Hands-on Approach. See Attribution and License for the details.

A note on ethics

The techniques in this book are real attack techniques. Use them only inside your own VM, or against systems you have explicit written permission to test. Running these against university infrastructure, or anyone else’s machine, is a violation of the UIC Student Disciplinary Policy and, quite likely, of state and federal law.