~/talk

CodeQL: Also a Powerful Binary Analysis Engine

Talkat Black Hat USA 2023 · 2023-08-05..08-10· [security]
links:none on file
slides:none on file

Reverse engineers CodeQL’s closed engine and adds binary support by building a new DB schema, an extractor pipeline using Ad Pro to emit TRAP files, and an autobuild.sh workflow that converts TRAP into CodeQL databases; implements a binary Q library that exposes exports, basic blocks, registers and SSA-friendly metadata; debugs the Java engine with jdb by attaching to the JVM and enabling hidden CLI flags; demoed live queries against generated DBs, produced correct results, and plans to open source the work.

AI-written summary · about

  1. 0:00CodeQL and binary analysis intro
  2. 1:13Static analysis fundamentals
  3. 2:40Popular static analysis tools
  4. 3:22CodeQL architecture workflow
  5. 6:55Database generation structure
  6. 10:30CodeQL query language
  7. 13:27CodeQL advantages design
  8. 14:30Extending CodeQL for binaries
  9. 16:13Binary support design principles
  10. 17:20Binary file database schema
  11. 18:47Ghidra Pro as extractor
  12. 20:31Binary Q library capabilities
  13. 21:56Future improvements goals
  14. 23:00CodeQL debugger for binaries
  15. 24:52Execution model optimization
  16. 26:40Debugging CodeQL engine
  17. 28:08Live CodeQL debugger demo
  18. 31:24Summary open-source plans
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.