Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

♕★ [INFO] All about Malware - ROOTKITS ! [INFO] | Learning ★♕

ALL ABOUT MALWARE

- Rootkits -


Introduction:


Hey Guys, welcome to my second tutorial here on HF. Well, I planned to make a series about Malware. In my threads I will explain how they work, what they are, how you could protect yourself from the type of malware that I discuss in the thread. Well in this thread I like to explain you everything I know about rootkits. I hope I could help you with this tutorial and you will learn something from it ;) Enjoy!

Definition:


A rootkit is a stealthy type of malware which is used to hide processes, programs and registry keys from the user. A rootkit installation could be automatic or a hacker could install it on victims computer. Once they’ve obtained root/Administrator access, they start to hide something. A rootkit is not an exploit! A rootkit could get full control over a system and can modify everything, normally the system.


How does a rootkit work?

To explain how a rootkit works, I need to explain first how an application normally works on your computer. Let’s take the timer application as an example.

[img]http://s14.directupload.net/images/130323/vyoxut2a.jpg[/img]

The timer shows you the current time.

[img]http://s14.directupload.net/images/130323/c83ka8gz.jpg[/img]

But to get the timer know what’s the current time, the timer needs to know it from the system. But the timer is not allowed to get access to the system clock. But the timer is allowed to ask windows or better: the API (Application Programming Interface). Well our clock wants to know the time. The clock uses the function in the API to get time. The API can now access to the system clock to read out the current time.


[img]http://s14.directupload.net/images/130323/m2slh6c7.jpg[/img]

The system gives us the response over the API and our clock application can tell us the current time:

[img]http://s7.directupload.net/images/130323/ayqtjdig.jpg[/img]

Every application works like that. There’s no exception.
Another example:
After clicking a folder we could see what files are into. It works the same way as above.

[img]http://s14.directupload.net/images/130323/aydze3zt.jpg[/img]

Our explorer wants to know what files are on C:\ so it has to ask the API. The API tells the system to list all files on C:\.

[img]http://s1.directupload.net/images/130323/iuifytzw.jpg[/img]

The system gives us the response over the API and our explorer can display us all files on C:\


[img]http://s14.directupload.net/images/130323/hfrpp9sb.jpg[/img]

**

Now let’s see what happens when our system is infected with a rootkit. We take the same example as before, where the explorer displays us the files on C:\.
(The red bug in the image is the rootkit)

The rootkit makes just one thing at startup. It modifies the Enum-File API. The rootkit sets a
“Jump-Point” at the Enum-Files-API. (The "Jump-Point" is the red area at the API)

[img]http://s14.directupload.net/images/130323/33uzx8ca.jpg[/img]

Now our explorer should display us the files on C:\ so it asks the Enum-Files API. But we know that our Enum-Files API has a new “Jump-Point” and the API did not ask the real system function to read out the files on C:\ instead it asks one of the rootkit DLL’s.


[img]http://s7.directupload.net/images/130323/ox2bbxia.jpg[/img]

The rootkit DLL asks now the real Enum-Files-Function. And the real Enum-Files API gets the list of all files on C:\


[img]http://s1.directupload.net/images/130323/29irdq94.jpg[/img]

We could now see there are all Files and also the File named “Virus.exe”.
This is the file the rootkit wants to hide from the User and also from the antivirus software. So it deletes the Virus.exe file from the list. (It does not delete the file itself it just deletes the entry in the list.)
The filtered List without the Virus.exe file goes back to the real Enum-Files API and the real Enum-Files API sends the filtered list back to our explorer. The explorer displays all files, but NOT the Virus.exe file!
I hope you could understand now how a rootkit works in general.
That’s the same thing if you antivirus software scans your computer. If the computer is infected with a rootkit, the program could not detect the rootkit because he could not see it. The antivirus scans only a modified files by the rootkit.


[img]http://s1.directupload.net/images/130323/exyh2tdh.jpg[/img]

Types of rootkits

There are different Types of rootkits. Here is a list:

Kernel-Based:

Typically, kernel-based rootkits are codes that are able to mask themselves under the operating system's loadable modules and device drivers. Because these rootkits are incorporated inside important components, detecting them can be difficult. A kernel-based rootkit rewrites and modifies the kernel's code to stay hidden and manipulate every facet of the operating system. Because it is within the kernel, it has pretty much unrestricted movement within the system. Some popular malicious kernel-based rootkit examples in Windows are TR/Rootkit.Gen, W32.Focelto.A and Haxdoor rootkits.

Application-Based:


Application-based rootkits are pretty common. They find their way into a computer system through the installation or updating of software, such as word-processing, graphics-editing, gaming and other commonly used computer programs. These rootkits come in the form of an application library file that will be associated with the application installed. It will modify the behavior of the application to escape detection and do what it was written to do. For example, when using a Windows-based system, you will often encounter this threat by way of a suspicious .DLL file. The rootkit will then replicate certain processes to evade detection while it captures information in the system. Application-based rootkits are easier to manage than some other types, since most system-protection software constantly updates definitions to include these types of malicious codes.

Firmware-Based:

A firmware-based rootkit is a code specifically designed to create a permanent instance of the Trojan or malware in a device through its firmware--a combination of hardware and software, such as computer chips. For example, a simple residential DSL router uses firmware. If its firmware is compromised by a rootkit, there's really no way to detect it and the damage it can cause can be enormous, especially since all of the data you send and receive online passes through the router. Basically, there are only two ways a rootkit can embed itself in the firmware of a specific hardware--through a firmware update or through purchase, where the seller purposely installs the rootkit before selling it.

Virtual:

Considered to be low-level threats, virtual or virtualized rootkits hijack and modify a system and boot it up to appear as a virtual machine. This will allow the rootkit to capture data from the hardware as a guest machine requests it. While these types of rootkits aren't common, it is a vulnerability that Microsoft and Linux are aware of.

Source: Rootkit Types

The first rootkits:

Here is a short List with some of the first rootkits for windows ever made:

Year 2000 – he4hoook

This tool was developed by a Russian programmer. It works in Kernel mode and hides files. The author itself doesn’t say it’s a rootkit.

Year 2002 – HackerDefender


The HackerDefender is also a tool, but a more powerful one. You can use it over a configuration file to hide files, processes, Services and registry keys. It also works in Kernel mode.

Year 2003 – Vanquish

The tool vanquish could also be used to hide files, directories, processes and registry keys. It could also record the passwords on a user’s computer. This rootkit is usermode based.


How to detect rootkits?

There are different methods of detecting rootkits. But only a good antivirus software could do this, you as normal user are not able to find a rootkit if it’s well hidden. You could never detect a rootkit and be 100% sure it is one. There are some plausibility tests to detect a rootkit.
Here are some methods the most antivirus software uses to detect rootkits on a computer:

Alternative trusted medium:

The best and most reliable method for operating-system-level rootkit detection is to shut down the computer suspected of infection, and then to check its storage by booting from an alternative trusted medium (e.g. a rescue CD-ROM or USB flash drive). The technique is effective because a rootkit cannot actively hide its presence if it is not running.

Behavior method:


This method is just looking for rootkit behavior which means hooking API to hide something. This method has a high rate of false positives.

Signature based:


The signature based method is using a stealth detector. If rootkit attempts to hide or unload itself during a virus scan the signature detection or fingerprinting can still find it. That’s why the programmer of a rootkit often try’s to implement counterattack methods into the rootkit which means to kill the antivirus process or service.


Please leave a thanks if you've enjoyed my informative thread 🤝

Madara-Uchiha
EWWW i hate malware AVG is WAY better
I'm not sure if you understand this thread?
It should explain you how a rootkit works in detail, and not a discussion about AVG .__.
(Mar 23, 2013 08:25 AM)y8tvkid Wrote:  EWWW i hate malware AVG is WAY better
This is another HQ thread, not for you to be saying "EWW" in the comments.
(Mar 23, 2013 08:49 AM)Nephist Wrote:  This is another HQ thread, not for you to be saying "EWW" in the comments.

Thank you very much 🤝
If you have any suggestions for improvement, please let me know.
Haven't had a chance to read through ALL of this, taking my time with it. Looks good so far.
Looks Pretty Good, Shows a lot of work and time nice job.
(Mar 23, 2013 09:49 AM)BlueShocks Wrote:  Looks Pretty Good, Shows a lot of work and time nice job.

Thank you! Yeah, it was a lot of work and a lot of reading webpages..
But now I finally put all information I've collected together in this thread :D
hey u EEEW guy seriusly u think we are talking about antivirus's

-_- N00b
Good thread. Great start on tutorials.
Awesome tutorial, thanks alot of this! <3
[Image: dLyp6od.png]
Nice job, seems like alot though, I think I'll fully read this another time.
HQ thread, really good for learning!
No, problem guys, your welcome!
I will make also a thread for other types of malware too in a week or so... 🤝
just what I've been looking for :)
can you tell me what can I use rootkit for? can I bind it to my RAT server so it hides the server's process, startup key from registry?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Anonymous TravelerOct 6, 2023 08:23 AM 0 115 Oct 6, 2023 08:23 AM
Last Post: Anonymous Traveler
by Nope.exeJun 12, 2017 07:52 AM 10 1,141 Jun 12, 2017 07:52 AM
Last Post: Ceoper10
by ๖ۣۜTigerNet™Dec 24, 2015 09:44 PM 1 277 Dec 24, 2015 09:44 PM
Last Post: Tajine.exe