Emulation basics...
Emulation basics...
I want to create a small emulator for PE executable files to implement dynamic heuristic scanning on PureAV and I need some ideas. How can I emulate an exe? I was thinking to transform the code section in hex values or dissasemble it and emulate the obtained instructions. Any better thoughts?
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Well no need to convert anything i think. The you can check agains Hex values though. It's difficult I think because you will need to simulate the processor and provide a link to the system...
Visit www.sceneproject.org
Euh i doubt this is the way to go. And you can't just create a dangerous app and strip the roules. There are COUNTLESS ways to do it!!!!
and you don't emulate the exe's.
i just thought, perhaps you can find all the api commands it calls, and then have a point system or so. Eg something wich deletes and uses things to make itself self-modificable and so on... But there is a risk that you can grap a totally "legal" exe.
and you don't emulate the exe's.
i just thought, perhaps you can find all the api commands it calls, and then have a point system or so. Eg something wich deletes and uses things to make itself self-modificable and so on... But there is a risk that you can grap a totally "legal" exe.
Thought about this version too, but as you said, it's a huge risk in having false positives. I will add this as a rule too but with smaller impact on detection statistics. Found some papers and an emulator is too hard to build and slow for an av. There is another method though, static heuristics, using a database with different code parts.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Re: Emulation basics...
PE?
...and I thought you left Windows for good...
Welcome back!
...and I thought you left Windows for good...
Welcome back!
Good programmers don't comment their code. It was hard to write, should be hard to read.
Re: Emulation basics...
traumatic wrote:PE?
...and I thought you left Windows for good...
Welcome back!
Nonono, don't get me wrong ! I am on linux, i don't have win installed... If I said i quit using it, believe me i'm not getting back to it
. I want to do heuristics for PE because there are no viruses for elf exes (in fact there are only 13 as I can remember). So I will continue developing it on linux.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)



