Slashdot Mirror


Windows Rootkits

GuidoJ writes "The Register is running an article by Kevin Poulsen of SecurityFocus Online about rootkits in Windows NT. While rootkits are a well-known issue in Unix and Linux systems, they have rarely been found on compromised Windows machines. According to the article, Windows NT backdoors have always been 'trivial', and they have caused enough havoc already. Imagine what a stealthy rootkit could do!"

64 of 322 comments (clear)

  1. And all this time by antis0c · · Score: 5, Funny

    I thought Windows WAS a rootkit.

    --

    ..There's a-dooin's a-transpirin'
  2. Roots on Windows aren't as l337 by numbski · · Score: 2, Funny

    What I mean, is that what are you going to do from a windows remote terminal? I mean honestly, it's not that cool to have a windows terminal server session open (presuming that service is even set up), and even though you can telnet into windows, hacking in DOS just isn't 1337 enough. :P

    Watch as I type edit and the screen goes blank!

    --

    Karma: Chameleon (mostly due to the fact that you come and go).

    1. Re:Roots on Windows aren't as l337 by slugo3 · · Score: 4, Insightful

      What I mean, is that what are you going to do from a windows remote terminal you don't necessarily have to set up a shell, you could install port scanners, eggdrop bots and ddos tools. even though its windows you dont want to get hacked for a lot of the same reasons you dont want any computer with internet access to become compromised.

    2. Re:Roots on Windows aren't as l337 by j_kenpo · · Score: 4, Interesting

      A windows command prompt is only the beggining of the fun. Once there, you can install a hidden VNC server and get your remote desktop, as outlined in "Hacking Exposed" 2nd and 3rd editions in the section under Windows NT and Windows 2000. Also, if it is a Win2k box, you can enable the terminal service and run something like RT client or in linux Rdesktop to get a remote desktop. There are other things you can do with a command prompt to, such as install any other trojan along the lines of BO, or Sub7 for remote control havoc, not to mention things like run irc bots, zombies, or be really lame and set up crappy things like DDOS nodes. Or if you feel like cheating at SETI, you can set up a remote SETI client, or as some people saw, there was a virus/trojan that ran around and set up a Distributed.net client. Those are just basic examples of what you can do, and if there were a good Root kit for Windows, you could hide those processes. In truth, you could do all the same things you could do with a Windows root kit that can be done with a Unix one, only it just wouldnt be as cool for some reason.

    3. Re:Roots on Windows aren't as l337 by muletool · · Score: 2, Informative

      Heres some info for Win2k

      http://lists.isb.sdnpk.org/pipermail/comp-list/2 00 1-December/000558.html

      --
      Can I bum you a .sig?
    4. Re:Roots on Windows aren't as l337 by zbuffered · · Score: 2, Informative

      if it is a Win2k box, you can enable the terminal service

      Point of clarification: W2K Professional does not have terminal services available to it, although Server and Advanced Server both do. WXP has it tho, and it's nice and easy to use.

      --
      Synergy is your friend
    5. Re:Roots on Windows aren't as l337 by Hork_Monkey · · Score: 4, Informative

      Change the port number in this registry key:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Terminal Server\winstations\RDP-TCP

      In the client, just append a ":" to the hostname/ip.

  3. Rootkits in brief by Anonymous Coward · · Score: 5, Informative

    Published on The O'Reilly Network (http://www.oreillynet.com/)
    http://www.oreillynet.com/pub/a/linux/2001/12/14/r ootkit.html
    See this if you're having trouble printing code examples
    Understanding Rootkits
    by Oktay Altunergil
    12/14/2001

    A rootkit is a collection of tools an intruder brings along to a victim computer after gaining initial access. A rootkit generally contains network sniffers, log-cleaning scripts, and trojaned replacements of core system utilities such as ps, netstat, ifconfig, and killall. Although the intruders still need to break into a victim system before they can install their rootkits, the ease-of-use and the amount of destruction they cause make rootkits a big threat for system administrators.

    The main purpose of a rootkit is to allow intruders to come back to the compromised system later and access it without being detected. A rootkit makes this very easy by installing a backdoor remote-access daemon, such as a modified version of telnetd or sshd. These will often run on a different port than the one that these daemons listen on by default.

    Most rootkits also come with modified system binaries that replace the existing ones on the target system. At a minimum, core binaries such as ps, w, who, netstat, ls, find, and other binaries that can be used in monitoring server activity, are replaced so intruders and the processes they run are invisible to an unsuspecting system administrator.

    Because most rootkits will mimic the creation dates and file sizes of the original system binaries while replacing them with infected versions, keeping records of these file statistics is not sufficient. Thus, the best way to make an inventory of system file information that can be used to identify suspicious activities on the server is to calculate the cryptographic checksums of these files and store this information in a safe location, such as on a CD.

    Third-party tools such as Tripwire or AIDE make this process much easier and more robust by automating the calculation of these file signatures.

    Here's a quick explanation of Tripwire from the organization's web site:

    "Tripwire is a tool that checks to see what has changed on your system. The program monitors key attributes of files that should not change, including binary signature, size, expected change of size, etc."

    Obviously this process has to be repeated as you introduce more software and other files into your system. You can also use the RPM signatures on RPM-based systems such as Red Hat and SuSE to compare the current MD5 signatures of your files to those in the RPM installation database. Unfortunately, the RPM application itself and the local RPM database cannot be trusted to provide accurate information because intruders can potentially infect them too.

    Some rootkits may also contain sniffer or keylogger applications that are used to gather passwords for other systems and listen to traffic for sensitive information. To do this, the rootkits set the PROMISCIOUS mode on the target machine's network interface card (NIC). In normal operation, a network interface card only listens to traffic that is specifically addressed to itself and traffic that is coming through the broadcast address that everyone listens to.

    On a "non-promiscuous" network adapter, the packets that are addressed to other network interfaces are silently discarded without even looking at the actual data in them. However, when using directly connected computers or a network that uses basic, non-switching HUBs, your interface actually can listen to all traffic if it's in PROMISCIOUS mode.

    If an intruder listens to this traffic on a relatively large network, the results may be catastrophic. To protect the whole network even when one of the machines is broken into, using direct cable connections and basic HUBs should be avoided. Switching-hubs and other more advanced networking equipment do not broadcast traffic to all the machines on the network, but only send it to the machine that is supposed to receive it, effectively protecting all the other machines on the network.

    Because the first thing a system administrator does to monitor unusual activity is to check the system log files, it is very common for a rootkit to include a utility to modify the system logs. In some extreme cases, rootkits disable logging all together and discard all existing logs. Usually if the intruders intend to use the server for an extended period of time as a launch base for future intrusion activity, they will only remove those portions of logs that can reveal their presence. Because the absence of log files or stopped logging activity is a sign of suspicious activity itself, only attackers who have adopted the hit-and-run style will choose to blindly discard all logs.

    One method administrators can use to maintain logs about an intrusion attempt -- successful or otherwise -- is to devise a system that detects network anomalies and alerts the system administrators by sending them notification email messages and/or log files. Obviously, the network intrusion detection and periodic log-file transfer methods cannot be trusted after the intruder gains access to the machine.

    Related Reading

    Building Internet Firewalls, 2nd Ed. Building Internet Firewalls, 2nd Ed.
    By Elizabeth D. Zwicky, Simon Cooper & D. Brent Chapman
    Table of Contents
    Index
    Sample Chapter
    Full Description
    Read Online -- Safari

    Arguably the most severe threat to system security that can be caused by a rootkit comes from those that deploy LKM (Loadable Kernel Module) trojans. Loadable Kernel Modules are a mechanism for adding functionality to an operating-system kernel on the fly -- without requiring a kernel recompilation. Although the benefits of using LKMs are universally recognized, they are also subject to abuse by intruders who use the kernel module-loading mechanism for malicious purposes. Even if you reboot a system that is infected by an LKM Trojan, the LKM process will reload it during boot-up just like any other kernel module. Loadable Kernel Modules are used by many operating systems including Linux, Solaris, and FreeBSD.
    According to SANS, "Kernel [LKM] rootkits do not replace system binaries, they subvert them through the kernel. For example, ps may get process information from /proc (procfs). A kernel rootkit may subvert the kernel to hide specific processes from procfs so ps or even a known good copy from vendor media will report false information."

    Although it is thought to be possible to cryptographically sign kernel modules, the best mode of prevention against this security threat is to compile all functionality statically into the kernel and disable the LKM functionality -- especially on a server system which is not likely to need additional kernel functionality at a later time.

    Knark, Adore, and Rtkit are just a few of many LKM rootkits available today.

    The only way to avoid rootkit installations on your system is to stop them before they enter your system. Remember that a rootkit is not designed to help an intruder gain access to a system. A rootkit is designed to make the intruders feel at home and allow them work silently on your system without being disturbed. To install a rootkit, an intruder still must gain unauthorized access to your server using traditional methods, such as exploiting known vulnerabilities or even practicing social engineering to get the password information from a well-meaning person who happens to have it.

    To avoid future headaches, you should always install firewalls on your machines that are accessible via some type of a network, apply all published patches to your software, and disable any services that are not absolutely necessary. Coupling these practices with strong passwords and secure protocols, such as SSL and SSh where applicable, you can be sure that your system will never be compromised.

    Well ... not exactly. Even if you make the maximum effort possible to secure your system, given enough exposure, it is still very likely that someone will break into your system and install a rootkit or two.

    In my next article, I'll discuss some of the tools that are at your disposal in your quest to detect the existence of a rootkit on your system. I will also talk about what you can do to clean up a rootkit after you discover it.

    Oktay Altunergil works full time as a Unix Administrator and PHP Programmer.

    Return to the Linux DevCenter.

    oreillynet.com Copyright © 2003 O'Reilly & Associates, Inc.

  4. rootkit my ass by B3ryllium · · Score: 2, Insightful

    Can't a decent firewall counter 90% of rootkits?

    1. Re:rootkit my ass by Angry+White+Guy · · Score: 5, Interesting

      There are ways to get around that. Make the compromised machine initiate all the communications, and you can punch a hole through all but the most determined firewalls. That's why irc bots are so popular.

      --
      You think that I'm crazy, you should see this guy!
    2. Re:rootkit my ass by Elwood+P+Dowd · · Score: 2, Interesting

      Not only that, you could easily make the rootkit query a webpage for instructions. It could check slashdot for posts by an anonymous coward with a certain set of keywords. If you are rooted, and your attacker has 10 ounces of creativity, a firewall will offer you zero protection. The firewall is there to make it more difficult to get rooted in the first place.

      --

      There are no trails. There are no trees out here.
    3. Re:rootkit my ass by Anonymous Coward · · Score: 3, Funny

      But why would you do that? Delerious you are! That would be so hard to command.Compare that to a simple telnet session.

    4. Re:rootkit my ass by Openadvocate · · Score: 3, Insightful

      Depends on how it's configured and is a excellent example of why doing NAT on your router does not equal firewalling.
      I have seen may firewalls allowing everything outgoing, even for servers that had no reason to connect to the internet had access to the outside. Sure it might be easier to run that "Windows Update" but still.

      --
      my sig
  5. Is this new??? by TopShelf · · Score: 4, Funny

    I thought this was called "Windows Update"...

    --
    Stop by my site where I write about ERP systems & more
  6. This shows that Windows by ksheka · · Score: 4, Funny

    ...is approaching parity with Linux.

    --
    alias uptime="echo '5:33pm up 22342352324 days, 6:28, 2124315623 users, load average: 2432.40, 12312.31, 123123.19'"
  7. rootkit redundant. by aePrime · · Score: 5, Interesting

    Well, as most Windows users run their boxes as Administrator anyway, a rootkit can almost be any program that's run with malicious intent.

    I too, in the rarity that it's on, run my Windows box as Administrator because, unlike *nix, there's no easy way to become Admin (root) when you need to. You have to logout and log back in, unless they've changed it in recent releases.

    1. Re:rootkit redundant. by BagOBones · · Score: 5, Informative

      Its called Run As.. It should be in every NT version of windows and its in the Right Click menu.. (I think you have to hold Shift or Ctrl some times) Lets you try and run an app as any user you know the login too.

      --
      EA David Gardner -"... but the consumers have proven that actually what they want is fun."
    2. Re:rootkit redundant. by glenebob · · Score: 3, Informative

      There's no need to run as Administrator. Pretty much any user account can mess up a Windows system pretty bad, even the Guest account.

      But what you say is also true. I too run an account that's a member of Administrators because it's too much trouble to become all-powerful when needed.

      It's kinda funny now that I'm thinking of it. You have to be an admin to install a printer, but any old account can delete the printer driver files. Nice.

    3. Re:rootkit redundant. by stratjakt · · Score: 5, Insightful

      There's no need to run as Administrator. Pretty much any user account can mess up a Windows system pretty bad, even the Guest account.

      But what you say is also true. I too run an account that's a member of Administrators because it's too much trouble to become all-powerful when needed.

      It's kinda funny now that I'm thinking of it. You have to be an admin to install a printer, but any old account can delete the printer driver files. Nice.


      Not if you've spent some time locking down the box, and designing and implementing security properly. Users cant delete anything they dont have write access too.

      Now, out of the box, WinXP and its predecessors install by default in a very insecure state. That I take issue with, but there's nothing stopping you from fixing that.

      If you have your /bin directories set up as uog+rwx then I can screw around with your printers too. This doesnt mean that linux is "insecure".

      And if you run as administrator all the time, that's just like always logging in as root.

      Too many people like to dump on Windows security, but very few have ever even bothered to try and set it up properly.

      After the filesystem permissions are properly set, the local and domain policies in place and checked, the services audited for necessity and security, then what's left is a legitimate fault with Windows.

      --
      I don't need no instructions to know how to rock!!!!
    4. Re:rootkit redundant. by BroccoliGod · · Score: 5, Informative
      Its called Run As.. It should be in every NT version of windows and its in the Right Click menu.. (I think you have to hold Shift or Ctrl some times) Lets you try and run an app as any user you know the login too.

      Just to clear up a few things: "Run as" is not in Windows NT 4.0 (or below I would assume). In Windows 2000, you Shift-right_click to get "Run As" as an option. You cannot run another copy of Explorer.exe with it (and so you cannot access the control panel as administrator using this trick). Windows XP's fast user switching is better in this regard- no need to close programs to do something as administrator, but still not as nice as nix. Windows NT Resource kit has a command line SU utility, but I've never used it.

    5. Re:rootkit redundant. by Fishstick · · Score: 2, Insightful

      RUNAS USAGE:

      RUNAS [/profile] [/env] [/netonly] /user: program /profile if the user's profile needs to be loaded /env to use current environment instead of user's. /netonly use if the credentials specified are for remote access only. /user should be in form USER@DOMAIN or DOMAIN\USER
      program command line for EXE. See below for examples

      Examples:
      > runas /profile /user:mymachine\administrator cmd
      > runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
      > runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""

      NOTE: Enter user's password only when prompted.
      NOTE: USER@DOMAIN is not compatible with /netonly.


      Yeah. MS has "caught on", somewhat. 2000 will sometimes prompt you (esp when inserting a CD and it thinks you want to install something) if you want to run as administrator when it detects that you need higher privs to run something. But it doesn't always work.

      I've noticed this with things like installing patches for installed apps (like Adobe Acrobat, for instance). Acrobat will periodically check for updates and then ask if you want to install and download. I got tired of hitting the 'no, ask me later' button so I went ahead said yes. It finished downloading and then stopped saying I had to log in as 'administrator' to install the update. Would have been nice if it had said so in the first place or gave me an option to use 'runas'.

      I've tried to get out of the habit of running with an administrator priv account. I don't need administrator very much for day-to-day stuff at work (they deliver the machines with owner's domain account in the administrator's group by default), but it is a pain to have to log out and back in to be able to install something.
      --

      There is much cruelty in the universe, John.
      Yeah, we seem to have the tour map.

    6. Re:rootkit redundant. by Jouster · · Score: 4, Informative
      ...(and so you cannot access the control panel as administrator using this trick)
      Au contraire--the control panel is easy!
      RunAs /user:Administrator MMC
      Then, File->Open, navigate to %WINROOT%\SYSTEM32, and there are your control panels. Choose your poison.

      Jouster
    7. Re:rootkit redundant. by KJKHyperion · · Score: 3, Informative
      You cannot run another copy of Explorer.exe with it (and so you cannot access the control panel as administrator using this trick).

      wrong, and wrong

      First, you can. Kill explorer.exe from the task manager, and then rerun it as Administrator: you'll get the Administrator's taskbar, desktop, etc.

      Second, you don't need to. You can run the command prompt as Administrator, and launch all the commands you need from there, including control panel applets and MMC snap-ins (you learn soon which has what filename). Or you can start Internet Explorer (iexplore.exe) as Administrator, instead - when browsing local folders, it will turn into an Explorer workalike, with just some UI problems (it won't be able to receive update notifications, not even from itself, so you'll need to refresh directory listings manually with F5)

      --

      Make a difference - use Windows! (open source clone of Windows NT)

  8. Interesting by einhverfr · · Score: 3, Interesting

    I suspect that too many of the Windoze h4x0rz are too lazy or incompetent to really put in a root-kit. It is possible (imagine if a backdoor installs a .vxd) and this could be devastating (of course driver signing might help).

    --

    LedgerSMB: Open source Accounting/ERP
  9. The really worrying part by djkitsch · · Score: 3, Insightful

    The bit that really concerns me is that it's possible at all, to install a device driver without the user's consent that can directly mediate between the hardware layer and the kernel -

    But then I guess that it's possible precisely because MS have made it simple to manage, and thus simple to mis-manage.

    Of course, the best way to defeat this kind of trojan is simply to use a firewall and block the ports being used to remotly configure the hidden driver. So then, the worrying part is not the trojan itself, but the competancy of the average user...

    --
    sig:- (wit >= sarcasm)
  10. Heh...that's one way to decrease install size.. by A_Non_Moose · · Score: 4, Funny

    quote:
    "The stealth driver in my mind is the scary concept," says Mertens. "You can hide an elephant with it."


    So the first thing they do is hide the \winnt folder?
    .

    --
    Have you read the moderator guidelines? Well, have you, PUNK? (and I want a Karma: Gnarly option)
  11. Imagine a beowulf cluster of rootkits! by Qrlx · · Score: 5, Interesting

    But seriously, I'm asked to "Imagine what a stealthy rootkit could do!"

    Having lived thru Melissa and ILOVEYOU, I can't imagine it would get much worse than that. The way security is(n't) done in Windows pretty much obviates the need for a rootkit, almost by design you could say.

    People keep talking about the "next" Melissa, but I don't think there will be one -- for basically the same reason there won't be another 4 planes hijacked and crashed into buildings. Microsoft has learned from past mistakes, and Outlook is far far more secure "out of the box" than it once was.

    People have learned, too; for example if you buy a new Dell it comes with McAfee Security Center, which gives you antivirus and (hopefully) some basic firewall protection. It took a few good beatdowns, but Joe User is at least aware of the dangers out there. To a degree I think we can thank the spammers; people are less likely to open suspect attachments nowadays because they prolly think it's spam. I'll take the silver lining and be happy.

    I'd be far more worried about a rootkit/attack on the Internet itself (e.g. core routers, DNS) than the Next Big Windows Vulnerability. With the increasing trend towards Internet Everything, were I in the mood to break things, I would be hacking DNS and Cisco -- break the mesh and the nodes are useless. Conversely, clueful people weren't affected by SQL Slammer since why would you let your SQL Server talk to the Internet on port 1433 anyway?

  12. rootkit detection tool by mrkitty · · Score: 4, Informative
    --
    Believe me, if I started murdering people, there would be none of you left.
  13. Let's pretend I'm on linux... by pr0ntab · · Score: 2, Funny

    Aha! I compromised a process running as root (for example). What shall I do now? I know, I'll insmod IHAX0REDUGOOD.so after dld'ng it from my xoom.com warez page. Oooh, now I can install zombieslaved and use IHAX0REDUGOOD to prevent anyone from seeing it.

    So what about this is more difficult than windows? An API must exist for a driver to be loaded, therefore it can be exploited. The tool that interacts with a user installing a driver uses this API, the rootkit bypasses all possible interaction (and uses its priveledged position to hide its existance)

    --
    Fuck Beta. Fuck Dice
    1. Re:Let's pretend I'm on linux... by djkitsch · · Score: 2, Informative

      My point was not that it's easier to do on Windows than on Linux (it's not), but that the average Linux user is a lot more likely to already have 'locked down' their system than the average Windows user, not to mention is more likely to hve the skills to remove it.

      Also, since Linux is a file based config OS, it's gonna be a damn sight easier to remove a rootkit than it would be with Win32. Having had experience (trying to) remove undesirable VXDs and so forth from Windows systems, if the driver in question is resident Windows itself tries very hard not to let you remove it, and there's no easy way to edit the registry without booting fully into the OS.

      --
      sig:- (wit >= sarcasm)
  14. You have to think like an admin by Angry+White+Guy · · Score: 3, Interesting

    From trusted ports to trusted ports work for most firewalls. Another way is to control by e-mail. You could even make it look like DNS queries if you wanted. The trick is not getting caught on the way in. Once in, there's not a lot holding you back.

    --
    You think that I'm crazy, you should see this guy!
  15. Silly article, sensationalism and slim facts by AEton · · Score: 2, Funny

    Jon Littman wrote an interesting book about Kevin Mitnick entitled The Fugitive Game. In it he partly addresses the situation of an FBI informant and not-so-l33t hax0r, Kevin Poulsen. 100 to 1 this is the same l33t hax0r. Way back in the day--1990--Poulsen was described as not very l33t:

    Their UNIX expertise was not high....I got the feeling these were guys not used to thinking in terms of multiuser systems, not being alert to the fact that "who"s and "ps"s casually invoked by someone else could expose them.

    Now I grant you that 13 years is a lot of time for someone to change and learn to abandon stupid sensational media tactics. But look at the substance of the linked slashdot article : "I wrote a rootkit for Windows, I'm cool, and I ran a script kiddie workshop so lots of people can do it! By the way, I screwed up the old code. But the new ones the evil hax0rs will make will be really bad. .. So hire me as a consultant!"...um, yeah, right.

    --
    We recently had heard in the office over one of the Yellow Machine that's made by Anthology Solutions.
  16. How to clean boot Windows? by Anonymous Coward · · Score: 5, Interesting
    One of the annoying things about Windows, is that there doesn't seem to be any simple way to "clean boot" it off a floppy or CD.

    It used to be that I would scan someone's system for malware by booting DOS6.22 (or later, Win98 since it could support some newer,bigger filesystem) and run F-Prot. This eventually became less and less practical. The scanner didn't even fit on a floppy anymore, so I was doing thing like clean booting and making a RAM disk, and then unzipping several floppies onto the RAM disk just so I could run a scanner. But eventually people started using NTFS which my DOS/Win98 boot floppies could read anymore.

    I guess I didn't keep up, and I didn't know what the orthodox approach to safe scanning was anymore. Eventually we started telling customers to see someone else about their Windows problems; we just wanted to support our apps and that was it.

    Eventually I found out what the so-called "experts" we were referring people to were doing: they would boot the unclean, suspected system, and install some Windows-based antivirus program (McAffee, Norton, whatever), and then run it to scan the (possibly) infected system, while it was running in a (possibly) infected state. Holy shit, how stupid can you be? No wonder stuff doesn't get detected.

    People were getting huge bills for techs' time too. The amount of waste I saw was staggering, and these were small businesses, not big megacorps.

    I guess the only way to reliably scan a Windows system is take the hard disk out and mount it as a secondary drive in a known clean system? Beats me. Just about every other OS can be booted from removable media, but I don't know a way to do that with Windows. Oh well, somebody else's problem.

    Except there isn't a "somebody else." The customers call around to try to find someone to help them, and in a city of half a million people, no one can. They ask again a couple of weeks and a few thousand dollars later, more desperate. And I tell 'em the only thing I know will work for sure: Totally wipe the HD and reload your apps.

    1. Re:How to clean boot Windows? by j_kenpo · · Score: 3, Interesting

      Id have to agree with this. With the exception of the Emergency Recovery Console, in Win2k and WinXP, there isnt really a safe way that I can think of to clean out a infected Windows box the same way as the old Dos days (or even up to WinME). In Unix you could at least boot off a floppy or CD like Knoppix and mount the drive in some form of a safe manner. Ive heard that there is supposidly a way to do this with Windows, but since I have no real desire to go back to Windows nor do I support Windows, so I dont know the legitimacy of that statement nor have I checked. If a Win2k or winXP system is partitioned for FAT32, you could still boot off a floppy and run, but like you said, NTFS is a bitch. If theres some sort of corruption of the boot sector or fat table, mounting it secondary in another system would be suspect, and I have seen viruses that disable virus scanners (or at least attempt to) so installing one after the fact is only partially reliable, if at all. Anyone have any ideas on this?

    2. Re:How to clean boot Windows? by jd142 · · Score: 3, Informative

      Boot from a Linux floppy/cdrom or Windows cd. Boot to console, mount your drives as ro and scan them. Then if you find something, boot into safe mode and remove the offending files.

      Pretty simple.

    3. Re:How to clean boot Windows? by jetmarc · · Score: 2, Informative

      I hate to reply to myself, but even more I hate to not check links :(

      The link is in german and requires a lot of click-though until you hit the download. An easier location to get KNOPPIX is the ftp server, eg this one:

      ftp://ftp.tu-chemnitz.de/pub/linux/knoppix/

      You find KNOPPIX on many big linux distro mirrors, so go to your favourite one..

      Marc

    4. Re:How to clean boot Windows? by sludg-o · · Score: 3, Insightful

      How did this get modded insightful? If the root kit modifies core system binaries (which is exactly the M.O. of most root kits), then it would still get loaded in safe mode.

    5. Re:How to clean boot Windows? by krray · · Score: 2, Interesting

      Create a bootable Linux CD with whatever you need on there. I happen to throw on McFee's UVSCAN Linux based scan software and go.

      The downside is everytime I need one I have to re-create/burn a CDR that is garbage as soon as another virus is found and the database is updated (pretty much daily).

      I personally like to make it VERY CLEAR what I am running and how I am doing what I am doing when I do bother to help yet another lost Windows user. My parting statement to many has become, "I told you to buy a Mac..."

      My going rate for such garbage services is $125/hr.
      I also happen to have many "clients" where I work on their Linux machines for ... free. Because I *ENJOY* it.

      Bill raped 'em, why can't I?

    6. Re:How to clean boot Windows? by Jmstuckman · · Score: 2, Funny

      Did you ever try to boot a CD-R on a machine that doesn't support bootable CD's? It's not much fun.

  17. Imagine how many out there are already compromised by terraformer · · Score: 4, Insightful
    According to the article, Windows NT backdoors have always been 'trivial'...

    And given this, I wonder how many windows machines are already compromised?
    I read this article a couple of days on bugtraq and they were speculating that with one known kit in existence, there are probably ten more they don't know about. They literally stumbled onto this one by accident.

    Imagine these sleeping beauties (well beasts) all just waiting for the signal...

    --
    Who are you? The new #2 Who is #1? You are #617565. I am not a number, I am a free man! Muhahaha.
  18. Terminology by gmuslera · · Score: 3, Funny

    For what the article say, it is more a BSODkit than anything else.

  19. runas - Re:rootkit redundant. by Malc · · Score: 5, Informative

    That's not true - I do it all the time using "runas". I use it mostly to launch MMC with the permissions I need to access IIS on a test web server. I also occasionally use it to run Explorer with elevated permissions to save me effort accessing administrative shares. I think it's supposed to be one of the ways to install applications that require administrative permissions, although I'm not sure on that.

    C:\>runas /?
    RUNAS USAGE:

    RUNAS [/profile] [/env] [/netonly] /user:<UserName> program

    /profile if the user's profile needs to be loaded
    /env to use current environment instead of user's.
    /netonly use if the credentials specified are for remote access only.
    /user <UserName> should be in form USER@DOMAIN or DOMAIN\USER
    program command line for EXE. See below for examples

    Examples:
    > runas /profile /user:mymachine\administrator cmd
    > runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
    > runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""

    NOTE: Enter user's password only when prompted.
    NOTE: USER@DOMAIN is not compatible with /netonly.

  20. Tips of using Windows rootkits by Anonymous Coward · · Score: 5, Informative

    I'm a black hat and have had my hand in the creation in them at a few times. You've got to realise that you have to target a default installation of windows given a certain platform. Here's some of my tips of how we go about infecting Windows computers as so they are 'easier' for us to use..

    1: We use packers and unpackers to protect all of our payloads, along with standard de-ICEing as to make casual debuggers simply crash. Look at some of the cracking group trainers as to understand how we hide stuff.

    2: Sometimes, we put utilites on the machine (like grep, ps, kill) that normally arent on Windows machines, however the Internix package makes a garbage DOS shell verrry usable ;-)

    3: We hit many of the files, such as ntoskern, explorer, and others that are ran many times per session. What's better is if you can offload the code to a common library.

    4: If you target a Windows 2k or XP platform, make sure to install the payload inside a system file and its backup. If you dont, windows will overwrite your trjaned package with the known good one. With the bad in the cab, you'll be guaranteed a hole. Sometimes, however, the packages cause problems with windows updates. If that kind of thing happens, it usually causes a bluescreen.

    5: A smart cracker will program the trojaned executable to check a web page on the net (say geocities) and parse the html for commands to do. This way, you have no direct 'link' to the rooted system, and somebody else takes the rap. Using an anonymizing proxy is highly reccomended.

    I've had no experience in writing a kernel-level NT driver, but what I hear from my pals, it's a bitch to do right. I mostly do packages/integration with known software. You'd be amazed how many kid back hats think Netbus, Sub7 or Backoriface is the way you do such things. You just do NOT WANT TO TOUCH THIS CODE, as damn near every anti-virus software will alert the user. That equals a re-Ghost (which that's a good reason to infect the main ghost image...),

    I'll hang around a little while if there's any questions.

    Ja ne..

    1. Re:Tips of using Windows rootkits by The+Ape+With+No+Name · · Score: 2, Insightful

      4: If you target a Windows 2k or XP platform, make sure to install the payload inside a system file and its backup. If you dont, windows will overwrite your trjaned package with the known good one. With the bad in the cab, you'll be guaranteed a hole. Sometimes, however, the packages cause problems with windows updates. If that kind of thing happens, it usually causes a bluescreen.

      I had on a box that would not do windows update. The complaining dll had a very recent modification date. So I cracked it open in CYGWIN and diffed it against a copy off the Win2K cd (this dll had not changed from default because the luser -- not me -- had never run WindowsUpdate. D'oh.) Hrm. Then I extracted the DLL from the CABS on the drive and rebooted. Same problem. Diffed the CAB extracted file with the one on the CD. Guess what. This was my first experience with a win2k rootkit. I forget what it was called, but a rebuild was in order. Man was it slick. I've seen rootkits on linux, BSD and solaris, but damn was this smooth with the packing it into the CABS. I wish I knew what it was up to.

      --
      Comparing it to Windows will be a moot point, since El Dorado is going to have a 40% larger code base than XP.
    2. Re:Tips of using Windows rootkits by Anonymous Coward · · Score: 2, Informative

      If you'd post a binary dump, I might have see it before. Sounds similar to my style... I do know mine bluescreened on win2k sp3 on an older version.

      Most of the true windows rootkits have no names. It's just a patch/repack. We prefer NOT to put names/sigs/gr33ts on software we make. One less identifier is one less way we can be 'found out'.

    3. Re:Tips of using Windows rootkits by Anonymous Coward · · Score: 3, Interesting

      +Sorry. It's all long gone.

      Darn. I always keep archives of things I think might be important. On a system I had once (some dweeb had win98 on a t-1), explorer.exe was doing weird stuff to images.excite.com, but there was a hosts delimiter to redirect it to some cable IP addy. I sent a 'kill' command to my setup which proceeded to undo all I installed. That is one rule I do follow.. if something doesn't feel right, drop it like a bad habit, and fast.

      +I meant that I don't remember the DLL name that was acting up. I googled(tm) and googled(tm) and couldn't find anything.

      Exactly. Actually, people usually equate more to instability than to trojaned executable. Most just dont have the know-how to protect themselves against us. They see software firewalls, but who doesnt allow iexplore.exe contact the internet (talking about general users)?

      The best security is to surf from a public terminal and transfer only known good stuff. How many of you would use something like Bitkeeper and get Linux ISO's? How do you know a trojan wasnt installed into server X or Linux kernel compile 2.4.20z? You usually can trust the main servers. You know that the main developer isnt inserting garbage like this into it..... but what if the ftp server was hacked? What would it take to hack a hole in a server to grant server permissions (eg root)? 10 lines max.

      I know there'll be a few that say I have no ethics, but a few things I will not stand by is hacking of servers which provide GPL-like source programs. Hacking them help nobody. Not even people like me.

      Still it's been glad to talk with you and the slashdot community. I was expecting a more - negative attitude towards me. I'm glad I was wrong :-)

  21. Re:Duh... by The+Evil+Couch · · Score: 2, Insightful

    yes and no. on win 9X systems (to include ME), yes. however, on NT based systems, not everyone is administrator. for home users, nearly everyone runs as admin, though. for network use, none of my users get much in the way of permissions, and I don't know a lot of windows sys-admins that give their users permissions much higher than bare minimum.

    as a side note, don't I know you?

  22. I like the detection method they used, BSoD by Erris · · Score: 3, Interesting
    ... the mysterious crashes were actually a lucky break -- they gave away the presence of an until-then unknown tool that can render an intruder nearly undetectable on a hacked system. Now dubbed "Slanret", "IERK, ..."

    Field Day!

    And here we thought that unstable interfaces for device drivers were a bug, they are a feature! This would be really useful if a BSoD only indicated intrusion, sadly it only indicates that your computer is turned on and what module it ran last. Hint to all you LEET HAXORS, make your names dumb like M$ does, rather than "0wned", "R000TED" or any varient of common four letter words like jerk.

    Who says the ierk was responsible for the crash? We know that Windows does that, but we don't know anything about the ierk? Applying the razon, it's best to accept that Windows is still BSoD.

    Oh the list of laughs to be had here go on and on. Who actually thought that it was impossible to hide applications and files on a system that's designed for DRM? Ha! those are features. Who would really trust an O$ by a company who's EULA says the company has the right to inspect and delete files at will and without notice? If they can read and delete, you bet they can write. The system is backdoored by design, of course people are going to take advantage of it.

    --
    DMCA, Hollings, Palladium. What might have sounded like paranoia is now common sense.
  23. No need to run Windows as an Administrator by mintech · · Score: 5, Insightful

    Theres no reason to run Windows as an Administrator except in unique circumstances. I still dont understand why people run as an administrator.

    We're all familiar with sudo for linux. There's an equivalent for Windows. Theres a program called "runas" and its included with Windows 2000 and XP.

    You can do runas /user:administrator cmd to get a dos prompt with Admin privs.. and then do whatever you want.

    You can read the docs on runas by going to http://support.microsoft.com/default.aspx?scid=kb; en-us;294676

    1. Re:No need to run Windows as an Administrator by stratjakt · · Score: 2

      You can also right click an icon, select properties, and check the "run as another user" box. Kind of like the suid bit in linux, but it'll prompt for a password every time.

      Which is kind of a pain if you're trying to include runas in a script.

      --
      I don't need no instructions to know how to rock!!!!
    2. Re:No need to run Windows as an Administrator by g0hare · · Score: 2, Funny

      hey, be careful, actually knowing how w2k and xp work could get you banned from slashdot.

      --
      Vote Quimby!
  24. Windows NT isn't a multiuser 'Time Sharing' system by SN74S181 · · Score: 3, Interesting

    Since Windows NT isn't a multiuser timesharing system, the power of 'root', in particular remotely, isn't that great. The remote login and remote administration tools for NT are patched on kludges.

    You can install Hummingbird Inetd or Interix, or use the built in but anaemic Telnet server that comes with W2K, but since NT's focus is not to be a symmetrical multi-user timesharing system, the default system most people think of as 'NT' isn't that fun to hack into.

    Now, I've supported many simultaneous users on an NT box running Interix, but that's the exception. I've wondered for awhile how well Apache would run in an Interix subsystem. But it's not interesting enough that I've tried it.

  25. Why install a rootkit? by CoyoteGuy · · Score: 3, Funny

    Why install a rootkit when there are so many other, much easier vulnerabilities to exploit? I mean, come on... What haxx0r has time to write a rootkit, when they have oodles of options at their fingertips? It's the difference between a script kiddie and a real h@xx0r..

    If it were me, I would just find a buffer overflow, and have some fun..

    --
    Slashdot.. Land of nerds, trolls, and FlameBait..
  26. How do you know Bill didn't? by queenb**ch · · Score: 5, Interesting

    With closed source code, how do you know that there isn't a root kit included? There are so many "undocumented features", "easter eggs", flight simulators, etc. included free of charge in Windows, what else is in there that we haven't found yet?

    Queen B

    --
    HDGary secures my bank :/
    1. Re:How do you know Bill didn't? by Imperator · · Score: 4, Funny
      With closed source code, how do you know that there isn't a root kit included?
      Because China is getting access to the code, and if there's one code review team to make Microsoft trustworthy, it's the Chinese government.
      --

      Gates' Law: Every 18 months, the speed of software halves.
    2. Re:How do you know Bill didn't? by t0ny · · Score: 2, Funny
      With closed source code, how do you know that there isn't a root kit included?

      I heard that they put code in Windows XP that will drink your last beer, leave the toilet seat up, and sleep with your wife while you are at work.

      --

      Manipulate the moderator system! Mod someone as "overrated" today.

  27. Look at Phrack and so on by hughk · · Score: 2, Informative
    These guys do root kits that can hide in protocol eror messages so unless you have an air-gap, all a firewall will do is to stop it being installed in the first place. Standard messages often have unused places in which a covert channel can be established. The message can go out from the rooted system looking like anything. The trick is to ensure that the firewall is open for the technique used.

    The main issue is that although NT has quite good privilege separation and 2K even better (both better than a non-security enhanced Unix), 90% of the apps don't use this. That means once you're in, you have the machine.

    --
    See my journal, I write things there
  28. Boot Disk by hendridm · · Score: 3, Interesting

    You could always create an NTFS Boot Disk to scan a suspect system. If you want write access, you'll need a boot disk capable of writing data though. Haven't seen a free read/write solution yet...

  29. Windows Rootkit by Sgs-Cruz · · Score: 2, Funny

    A simple windows r00tkit can be found here. :)

    --

    Karma: pi (Mostly due to circular reasoning in posts).

  30. Re:Windows NT isn't a multiuser 'Time Sharing' sys by spectecjr · · Score: 2, Informative

    Since Windows NT isn't a multiuser timesharing system, the power of 'root', in particular remotely, isn't that great. The remote login and remote administration tools for NT are patched on kludges.

    You can install Hummingbird Inetd or Interix, or use the built in but anaemic Telnet server that comes with W2K, but since NT's focus is not to be a symmetrical multi-user timesharing system, the default system most people think of as 'NT' isn't that fun to hack into.

    Now, I've supported many simultaneous users on an NT box running Interix, but that's the exception. I've wondered for awhile how well Apache would run in an Interix subsystem. But it's not interesting enough that I've tried it.


    Look at PSTools on www.sysinternals.com.

    They let you do all kinds of wonderful things on a system as long as you have a user account with which to access it, through RPC.

    Amongst other things, you can remotely install and run executables. Very handy.

    --
    Coming soon - pyrogyra
  31. No no no by wobblie · · Score: 4, Insightful

    Well I would have to disagree. Let's peel the onion back one layer - why on earth would anyone have to change the default filesystem permissions?

    The reason is that windows has no concept, and never did, of paritioning user data from system data. In any unix, the filesystem is sensibly laid out such that removing write access to huge swathes of it do absolutely nothing to hinder it's usability. Not so in windows, everything's mixed together in one big steaming mess. Instead of simple read access, we have confusing messages from explorer telling users "OH MY GOD! You shouldn't look at the files in this directory, it can cause obesity, nausea, jet-like diarrhea and insanity - but click here if you really really want to see them ..." or some other such nonsense. W2K isn't much better, but at least it's less obnoxious.

    Secondly - and this is mroe of a cultural issue which flows naturally from the above situation - this isn't even realistic. I used to do this, locking users out of c:\ and \system32\ etc., but I would find that we had all these boneheaded programs we had to run which needed to write to various parts of the filesystem for no apparent reason other than ignorance. This problem is so rife with windows developers that locking users out of peices of the filesystem is almost useless, because you wind up not being able to do it anyway.

  32. installing a Windows rootkit by g4dget · · Score: 2, Funny

    Is that like pouring a bucket of water into the ocean? Or bringing a boxed lunch to an all-you-can-eat buffet?

  33. The very best line from the article: by shrikel · · Score: 3, Funny

    "I'm absolutely, one hundred percent positive that there's probably ten more that we haven't seen publicly,"

    --
    Any sufficiently simple magic can be passed off as mere advanced technology.
  34. Re: rootkit redundant by ergo98 · · Score: 2

    You have to have a bleeding PhD in Windows technology to even figure out how to do basic stuff like locking down important files.

    Right click on the file/directory, choose properties, go to the Security tab. It's as simple as that. Windows 2000 and above includes an inherit bit that will inherit the permissions of the parent, easing administration (on NT4 you can cascade the setting down, or use a tool like cacls), or if you're really serious you can turn off "Bypass Traverse Checking" and the user will require access up the entire folder chain to access a file (useful if you are REALLY hyper serious and want to ensure that a random file somewhere doesn't have User rights). In any case a default install of Windows 2000 or Windows XP is quite secure, with only read access on system files for non-Admins (despite the FUD on here), however there are a slew of security kits Microsoft distributes that let you choose your configuration (i.e. "Web server on the internet") and it goes through and sets ACLs and user rights system wide.