Lion Cipher Lab
Triage an unknown binary from the terminal with Rizin: headers, imports, strings, functions and a saved project
- Digital Forensics & IR (DFIR)
- Intermediate
- ~60 min
- Free · no account required
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
- building a small test program on purpose so the answer is known
- reading a binary's type, protections, imports, strings, sections and entry point with rz-bin
- opening a file in Rizin with analysis already run, and listing its functions
- reading a function's disassembly and finding which code uses a string
- dumping bytes with px and doing quick math with the % calculator
- viewing a function as a control-flow graph with VV
- renaming a function, adding a comment, and saving and reloading a Rizin project
- knowing when a terminal triage is not enough and what to reach for next
Steps in this lab
- What Rizin is, and where it came from
- Build a target you fully understand
- Triage with rz-bin: what kind of file is this?
- Imports and strings: the two fastest clues
- Open it in Rizin with analysis already run
- Read a function: seek, print disassembly, follow a string to its code
- See the same function as a graph
- Stripped binaries: rename what has no name
- Save a project, close Rizin, and reopen it
- When this is not enough, and how a pro does it better
- Clean up
Open the full interactive lab →