Monday 6 December 2010 0:00
HeapLocker is a new tool I’m releasing to mitigate heap spray attacks. But be patient, don’t use this version (V0.0.0.2) yet for other reasons than experimenting! I’m still testing newer versions that I’ll release soon.
HeapLocker uses 5 mitigation techniques.
1) Like EMET, HeapLocker will pre-allocate virtual memory pages to protect the addresses often used in exploits with heap sprays. HeapLocker can go one step further than EMET: it can inject its own shellcode to warn the user in case of an attack:

2) HeapLocker can also pre-allocate memory page zero, like EMET.
3) To detect heap sprays in action, HeapLocker monitors private memory usage:

4) HeapLocker can monitor the application’s memory for NOP-sleds:

5) The last technique, monitoring the application’s memory for specific strings, proved to be very successful to detect malicious PDF documents:

I will detail these techniques in upcoming posts.
Posted by Didier Stevens
Categories: My Software, PDF, Vulnerabilities
Tags:
Mobile Site | Full Site
Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.
How hard would it be for Antivirus vendors to implement such a tool, or natively in an OS by the creators? Well done. Makes me feel a little better knowing people are actually doing something to combat the attacks instead of merely using band-aids to fix individual outbreaks patch by patch.
Someone had mentioned EMET a while back and i forgot all about it as well.
By DigiP on Monday 6 December 2010 at 9:05
This looks extremely interesting and very relevant for a project of mine at the moment.
I’m looking forward to see the development of this.
Great work.
By Thomas Stig Jacobsen on Monday 6 December 2010 at 9:46
Thanks for all your valuable work!
Hurray for the good guys!
By Jonathon on Monday 6 December 2010 at 15:33
Awesome Didier, keep it coming.
By Thierry Zoller on Monday 6 December 2010 at 17:48
This looks very interesting. Am not a malware expert, on a particular platform I believe some types of checks can be done in a generic way for all applications ? And some others can be done in a specific way. I look forward for more details.
By Madhusudan Challa on Tuesday 7 December 2010 at 1:43
Didier,
I certainly don’t want this post to sound like I’m knocking your good work, because believe me everything you have been giving to the community is top notch and keep it up! One question I have on this though is how do you compare it’s use to EMET? Is your tool covering areas that EMET is not? Do you see usefulness is running both this and EMET?
By Curt Shaffer on Wednesday 8 December 2010 at 13:04
@Curt Shaffer It’s my plan that HeapLocker can be used together with EMET, and I’ve already performed tests with both.
By Didier Stevens on Wednesday 8 December 2010 at 17:34
This tool looks very interesting! I hope you release a stable version soon so I can test it =P
Good job!
Greetings.
By Shyish on Saturday 8 January 2011 at 21:25