Vorlesung: Program Analysis and Binary Exploitation (PABE)



  • Verantwortlich: Martin Clauß
  • Beginn: 18.10.2019
  • Zeiten: Fr. 14 - 16, zweiwöchentlich, HSZ - HS7
  • Veranstaltungsnummer: 612203322

Weitere Informationen:

  • Studienabschnitt: Master Computer Science
  • Voraussetzungen:
  • Fachbereich: MA-INF 3322
  • Aufwand: 2V + 2Ü / 6LP


Our computers run a lot of closed source binary programs meaning that the source code of those programs is not available. Naturally, those programs contain bugs, mistakes that the programmer made during the development. Those bugs could (under certain circumstances) be exploited by attackers and thus may lead to arbitrary code execution.

In this lecture we aim to teach you how to find well known exploitable bugs and how to exploit them. You will first learn about basic binary program analysis such as static and dynamic analysis. After this introduction we will talk about vulnerability discovery in general meaning that you will learn how to find exploitable bugs by yourself.

Next, we move on to basic stack-based buffer overflows and add mitigation techniques (stack cookies, NX, ASLR, RELRO, ...) as we progress and exploit them as well. After we finished the topic of stack-based buffer overflows we move on to more advanced topics such as format string exploits, heap exploitation, use-after-free exploits and others.

The lecture ends with one or two complex case studies (concrete contents will be announced later).

You should have basic knowledge of the Linux operating system (including Bash) and also know basic Python programming. Additionally, you should have attended the following lectures: "Kommunikation in Verteilten Systemen", "Systemnahe Programmierung" (bonus: Malware Boot Camp and the lecture "Reaktive Sicherheit") or have at least an equivalent knowledge. If you did not attend any of those lectures you should have a look at undefinedhttps://www.cs.virginia.edu/~evans/cs216/guides/x86.html and undefinedhttps://learnxinyminutes.com/docs/c/ and undefinedhttps://www.cs.drexel.edu/~julia/cs500/documents/lectures/LinuxIntro.pdf to prepare for the lecture.

Please refer to undefinedpabe.seclab-bonn.de for any additional information such as slides, exercise sheets and so on! (Note: The website and all PABE services are only available from the Computer Science Department network! You can, for example, use sshuttle (undefinedsshuttle.readthedocs.io/en/stable/) to tunnel all your traffic through zeus.cs.uni-bonn.de via SSH or use the Computer Science Department’s VPN. If you haven't got access yet, for example, because you study math, physics or any other non-CS study, please apply for an account (see undefinedhere). If you need a signature bring the form to the first lecture so we can sign it!)

We are looking forward to seeing you in the lecture! :)

18.10.2019Basicslecture and tutorial
25.10.2019Static Analysislecture
01.11.2019Public Holidayno lecture
08.11.2019Dynamic Analysislecture and tutorial
15.11.2019RE Workflowlecture
22.11.2019Vulnerability Research Ilecture and tutorial
29.11.2019Vulnerability Research IIlecture
06.12.2019Basic Binary Exploitation Ilecture and tutorial
13.12.2019Basic Binary Exploitation IIlecture
20.12.2019Advanced Binary Exploitation Ilecture and tutorial
Christmas Breakno lectures
10.01.2020Advanced Binary Exploitation IIlecture
17.01.2020Case Study Ilecture and tutorial
24.01.2020Case Study IIlecture
31.01.2020Invited Talk by Gynvael Coldwindtutorial first, then the talk


The very first lecture on the 11th of October will start at 2PM (and not 12PM)!