View Full Version : Intel VT and cpuid break
deroko
05-19-2008, 08:40 PM
Do you want to use cpuid as int 3 or any other event? Well Intel VT allows us that, as cpuid always generates VM-Exit. In this case what we do is:
1. Read Guest Cr3 to check correct process
2. inject int 3 event into Guest
3. SoftICE will popup if i3here on is set
4. Enjoy
bin/src -> http://deroko.phearless.org/cpuid_break.rar
Daniel Pistelli
05-20-2008, 02:15 AM
Hi deroko, I remember also reading an article about VT and cpuid on rootkit.com some time ago:
http://www.rootkit.com/newsread.php?newsid=758
The ones interested may wanna read this article as well.
Ciao
dELTA
05-20-2008, 03:45 AM
Another low-level gem from deroko, keep 'em coming.

Maximus
05-20-2008, 06:35 AM
ghgh
thanks
deroko
05-20-2008, 08:25 AM
Hi Daniel,
Yup, I remember that article, but truth is that VT can be used for reversing purposes (rdtsc, dr emulation, idt hooks without hooking idt - did anyone say Patch Guard?, cpuid fakeing for protectors which relay on cpuid as anti-dump etc.) Not sure why everybody try to use this tech for rootkits, as it's real potential is RCE

Daniel Pistelli
05-20-2008, 08:31 AM
Hi deroko,
well this seems a good moment to tell that I have an unfinished article about License Virtualization. That's why I was so interested in cpuid. And yes, it's a great potential for RCE. =)
deroko
05-20-2008, 06:00 PM
can't wait to read it

Sounds like a very interesting topic.
Regards,
Daniel Pistelli
05-21-2008, 03:02 AM
deroko: thanks. JMI, yeah it is, I'm also tempted to write the article pretty soon, because the quantity of code already written for that article borders surreal. But, to offer a demonstration, more code is needed and I guess the demonstration is just too nice to not do it. I'm sorry if I diverted the thread from the cpuid instruction.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.