I would like to see a tool that combines "version control" and executable tracing, where you can take a snapshot of stack/heap and registers and allows you to move through each snapshot and see what changed, essentially allowing you to replay the execution instruction by instruction (with "proper" I/O result code/data simulation). I know George Hotz was working on something like this before he got into the Comma AI t…
Qiling Framework - Advanced Binary Emulation Framework
11–14 of 14 posts
Re: Qiling Framework - Advanced Binary Emulation Framework
#12How does this compare to angr?
Angr is a static analysis and symbolic execution framework. It contains many components. It's built around Valgrind's VEX IR and provides an API that allows for lifting binaries from various architectures to a common IL. Angr also provides libraries to aid in CFG recovery, concolic testing, and other program analysis techniques. Angr does not do software emulation and is used mostly for static analysis. Qiling is alm…
> [Qiling] is an extra layer on top of Unicorn (a library that can emulate CPU instructions using QEMU).
This is what is mostly confusing me -- angr has support for unicorn, so how is it different from angr's support of Unicorn?
Re: Qiling Framework - Advanced Binary Emulation Framework
#13Earlier quoted context omitted.
Angr is a static analysis and symbolic execution framework. It contains many components. It's built around Valgrind's VEX IR and provides an API that allows for lifting binaries from various architectures to a common IL. Angr also provides libraries to aid in CFG recovery, concolic testing, and other program analysis techniques. Angr does not do software emulation and is used mostly for static analysis. Qiling is alm…
I've had no trouble using angr on real binaries, including self-modifying binaries. > [Qiling] is an extra layer on top of Unicorn (a library that can emulate CPU instructions using QEMU). This is what is mostly confusing me -- angr has support for unicorn, so how is it different from angr's support of Unicorn?
Using QEMU with full system emulation can do some of this, but you don't get the scriptable control and deep analysis capabilities of Unicorn.
angr, from what I gather, can be useful for targeting specific sections of code. If you've reversed a binary enough to know where to target, this is useful. For example, code such as as parsers which are typically complex and vulnerable or finding a specific input to reach a desired location (i.e. ctf challenges).
The problem qiling solves is that applications don't run in a vacuum, they are highly dependent on the OS they run on. Emulating each OS allows for dynamic analysis not possible with other frameworks. Some tools like Corellium provide great system emulation, but qiling has much better potential for analysis purposes.
The slides in the 'News' section of the page do good job of explaining in detail. https://www.qiling.io/docs/Qiling-NullCon2020.pdf
Re: Qiling Framework - Advanced Binary Emulation Framework
#14Earlier quoted context omitted.
Angr is a static analysis and symbolic execution framework. It contains many components. It's built around Valgrind's VEX IR and provides an API that allows for lifting binaries from various architectures to a common IL. Angr also provides libraries to aid in CFG recovery, concolic testing, and other program analysis techniques. Angr does not do software emulation and is used mostly for static analysis. Qiling is alm…
I've had no trouble using angr on real binaries, including self-modifying binaries. > [Qiling] is an extra layer on top of Unicorn (a library that can emulate CPU instructions using QEMU). This is what is mostly confusing me -- angr has support for unicorn, so how is it different from angr's support of Unicorn?
My previous understanding is that angr uses unicorn for instruction emulation for symbolic execution. Although, I see they also have what they call a "simulation engine" that provides a similar interface to Qiling's and allows for setting breakpoints and poking around in memory. To your point, there is definitely overlap. Qiling is much more narrowly scoped, but I think Qiling has a better understanding of the OS. It can do syscall and I/O handling for Windows, Linux, and Mac binaries regardless of what host OS you are running.