Lion Cipher Lab

Triage an unknown binary from the terminal with Rizin: headers, imports, strings, functions and a saved project

Why it matters

Reverse engineering means working out what a program does when you do not have its source code. Defenders do it to understand a suspicious file, to check what a vendor binary really contacts, or to confirm a patch. Most of the first ten minutes is not deep assembly at all. It is triage: what kind of file is this, what does it import, what text is inside, where is the code that uses that text. You can do all of that from a terminal with Rizin, over SSH, on a headless analysis box, and scripted in a pipeline. This lab practises that routine on a program you build and fully understand, so every…

What you'll learn

Steps in this lab

  1. What Rizin is, and where it came from
  2. Build a target you fully understand
  3. Triage with rz-bin: what kind of file is this?
  4. Imports and strings: the two fastest clues
  5. Open it in Rizin with analysis already run
  6. Read a function: seek, print disassembly, follow a string to its code
  7. See the same function as a graph
  8. Stripped binaries: rename what has no name
  9. Save a project, close Rizin, and reopen it
  10. When this is not enough, and how a pro does it better
  11. Clean up

Open the full interactive lab →

Keep learning