Happinux Attack Test

 Introduction of Happinux hacking prevention mode.

Happinux blocks unknown cracking techniques on kernel level. It has many hacking prevention functions.

¡¡

Prevention Stack based Buffer Overflow attack

Existing BOF prevention solutions are opened to practical attacks which does not change stack return address directly,
such as off by one or frame pointer overwrite.
It does not even notice Return to Library (RTL) BOF attack that does not use shellcode.
Hereupon, Happinux cracking prevention module senses and blocks Stack based BOF with special security policy.

¡¡

Output of upper code.
¡¡
 

                          [PIC 1: General stack based overflow exploit]

You can see a new shell runs on general server.
Now, I will show you how does the exploit work on Happinux system with shellcode prevention mode.

 

                  [PIC 2: Stack based buffer overflow on Happinux system]

You can see that attack is failed. Next one is the result of debugging..

¡¡

It shows that Segmentation fault has been occurred because shellcode execution failed.
¡¡
¡¡
Prevention Stack, Heap based Format string attack

Many of security solutions are opened to newly appeared attack, which is developed after 2000. Format string attack is one of those,
which works on both stack and heap. No perfect prevention solution is developed until now. 
Happinux can sense and block all those practical attack, such as format string attack which use RLT, and small format string.

¡¡

First code has format string vulnerability and second one is exploit code that rewrite twice with 16byte retaddr,
last one is exploit code that rewrite three times with 32byte retaddr.


Next picture is output of for_xp16 exploit code and for_xp32 exploit code execution.

 

               [PIC 3: format string exploit on Happinux system]

You can confirm the attack has been failed. After a debugging work, you can confirm a segmentation fault has been occurred even though return address changed to shellcode.
 


Blocking Heap based Buffer Overflow (double free, malloc/free exploit) attack
Heap based attack, which is one of the newest cracking skill can go round and make the security solutions helpless. 
Happinux can sense and block all these latest and even practical attack of it.
¡¡

Output of free/malloc exploit based on heap.

¡¡

 

               [PIC 4: Heap based buffer overflow attack on Happinux system]
The execution has been canceled because it uses shellcode on stack.

Debugging output
You can confirm shellcode execution has been failed.
-           
Blocking System Library abuse attack.
Happinux prevents system library function abuse that is the core of RTL attack.
As a result, other special character ¡°;¡±(semicolon) vulnerability and PHP injection vulnerability will be blocked.
Blocking Race Condition, Backdoor attack

Happinux blocks race condition attack and backdoor attack, which use symbolic link.
Next picture shows blocking malicious backdoor execution.

 

               [PIC 5: Setuid backdoor attack on Happinux system]
 

Blocking Ptrace and kernel hacking attack

Happinux prevents kernel abuse by blocking kernel do_brk, do_mremap vulnerability and ptrace control flow exploit. It is essential function for Secure OS that installed on vulnerable kernel.

           

                              [PIC 6: Blocking kernel do_brk exploit]

 

               [PIC 7: Blocking kernel do_mremap exploit]
    
¡¡
Reference: Sample exploits tested on Happinux 
[Download]