New Windows Rootkit

Started by iago, July 13, 2006, 12:51:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iago

http://it.slashdot.org/article.pl?sid=06/07/13/1456217&from=rss

The cool part is that it uses NTFS' Alternate Data Streams.  ADS' are a poorly documented/mostly unknown feature of NTFS which lets you hide a file within another file such that it can't be spotted with most tools. 

Additionally, the rootkit blocks ADS-reading, making it impossible to even detect that the ADS stream exists. 

Warrior

One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Newby

Hooray for M%body%#039;s poor documentation that allows a rootkit to succeed! :D

Didn't you show us how to use ADS at one point in time, iago?
- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Ergot

So... if you don't use NTFS, are you safe?
Quote from: Newby on February 26, 2006, 12:16:58 AM
Who gives a damn? I fuck sheep all the time.
Quote from: rabbit on December 11, 2005, 01:05:35 PM
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Newby

Quote from: Ergot on July 13, 2006, 01:26:14 PM
So... if you don't use NTFS, are you safe?

That's actually what I wondered. I told my dad that, and he laughed at me.

I wonder why... FAT32 sucks and Windows refuses to format a partition as FAT32 if it's <32 GB in size (iirc that's the size, I know FAT16 was 2/4gb, so eh?) so eh? I doubt any WinXP users are using FAT32...
- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Ergot

Quote from: Newby on July 13, 2006, 01:29:12 PM
Quote from: Ergot on July 13, 2006, 01:26:14 PM
So... if you don't use NTFS, are you safe?

That's actually what I wondered. I told my dad that, and he laughed at me.

I wonder why... FAT32 sucks and Windows refuses to format a partition as FAT32 if it's <32 GB in size (iirc that's the size, I know FAT16 was 2/4gb, so eh?) so eh? I doubt any WinXP users are using FAT32...
:(! I do...
Quote from: Newby on February 26, 2006, 12:16:58 AM
Who gives a damn? I fuck sheep all the time.
Quote from: rabbit on December 11, 2005, 01:05:35 PM
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

iago

Quote from: Newby on July 13, 2006, 01:01:27 PM
Hooray for M%body%#039;s poor documentation that allows a rootkit to succeed! :D

Didn't you show us how to use ADS at one point in time, iago?
Yeah, I was going to link to it but didn't feel like finding it. 

Quote from: Ergot on July 13, 2006, 01:26:14 PM
So... if you don't use NTFS, are you safe?
You're safe from that rootkit, yeah.

MyndFyre

It's really a neat plan of attack, but it's still susceptible to the fact that you have to be a moron downloading shit and be a privileged user to do it:
Quote
Mailbot.AZ is usually installed to the system by a separate dropper component, detected as Trojan-Dropper.Win32.Small.ape. When the dropper is executed, it drops the rootkit driver to %TEMP%\pe386.sys and runs it. After installation, the dropper deletes itself from the system.

You need to be a privileged user to run drivers, yes?
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

iago

Of course you have to be a privileged user.  Of course, on Windows almost everybody is. 

MyndFyre

#9
Ergot:
Quote
If the file system does not support Alternate Data Streams, the driver is installed to:

%SystemRoot%\System32\Drivers\pe386.sys
No, you're not safe without NTFS.


Also interesting:
QuoteExecutes from dynamically allocated memory
so NX should prevent execution.
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Warrior

Vista should stop this if you arn't priviledged then? If anything Microsoft just rehauls that section of NTFS, releases a patch, and boom. Rootkit gone.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

iago

Quote from: MyndFyrex86] link=topic=6649.msg80953#msg80953 date=1152836630]
Also interesting:
QuoteExecutes from dynamically allocated memory
so NX should prevent execution.

I've never actually seen NX used.  However, depending on how it's programmed, it might be able to mark the pages as executable before using them, which I think is possible if you are running code as administrator. 

Quik

#12
Quote from: iago on July 13, 2006, 01:54:12 PM
Quote from: Newby on July 13, 2006, 01:01:27 PM
Hooray for M%body%#039;s poor documentation that allows a rootkit to succeed! :D

Didn't you show us how to use ADS at one point in time, iago?
Yeah, I was going to link to it but didn't feel like finding it. 

I've referenced it semi-frequently for testing purposes. I like it, it's a neat little trick, and I was sure this would happen eventually.

http://www.x86labs.org:81/forum/index.php/topic,22.0.html

BTW: in an effort to not bump that old topic, I'll say it here.

Quote from: iago on October 19, 2004, 08:11:43 AM
I've never tried deleting the original, but I would imagine it woulnd't work.

Wrong, not only does it still work after you've deleted the file and emptied the recycle bin, but the txt (example in that original post) size will not enlarge.
Quote[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Blaze

I currently use this trick to store cdkeys so nobody can see them.  :)
And like a fool I believed myself, and thought I was somebody else...

AntiVirus

Okay, I am a newb.. But how do you get these "hidden" files out of the hidden folder if you can't see them?

??? :-[
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus