~/talk

There and Back Again: Reverse Engineering Python Binaries

Talkat PyCon US 2024 · 2024-05-15..05-23· [security]
links:none on file
slides:none on file

Shows how to recover readable .py from .pyc by hand with a concrete pipeline: segmentation, translation, control-flow reconstruction and demonstrates practical tools like the dis module, uncompyle6, bilingual and a compile-then-compare verification. Reports surprising churn in opcodes (roughly under 10% yearly, ~25% in 3.11), explains handling exception tables and block stack changes, and shows a neural decompiler that mostly works while leaving small omissions that are fixable by hand. Targets CPython bytecode; nonstandard compilers or obfuscation break verification.

AI-written summary · about

  1. 0:00Reverse engineering Python binaries
  2. 2:38Python bytecode compilation
  3. 10:25Python bytecode execution
  4. 15:43Manual bytecode decompilation
  5. 21:18Control flow reconstruction
  6. 27:19Stitching code objects
  7. 28:47Automating decompilation
  8. 33:53Summary
~/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.