Practical Uses of Program Analysis: Automatic Exploit Generation
summary
An automated exploit system that combines a pure symbolic LLVM pass (using a dominator tree and an LLVM use-def chain) and a concolic runner built on angr successfully defeats a pwnable.kr challenge that serves random HEX binaries with only 10 seconds to respond. The tools assume a memory‑corruption primitive, detect a vulnerable memcpy, emit path constraints solved by Z3, and produce an ROP chain (via an LLVM gadget pass) to spawn a shell in under three seconds; binaries are lifted with mixa.
AI-written summary · about
chapters (14)
- 0:00Introduction to automated exploitation
- 3:49Why automate exploit generation
- 7:00Two steps of automated exploitation
- 11:41What is program analysis
- 15:52Symbolic and concolic execution
- 21:15Applications of program analysis
- 23:50Assumptions for exploit tool
- 26:37Building the symbolic tool
- 27:46Concolic execution with Angr
- 29:53Live demo of Angr tool
- 31:18Live demo of LLVM tool
- 32:47Results and tool comparison
- 33:09Future of automated exploitation
- 36:00Q&A and references
