+ Reply to Thread
Results 1 to 7 of 7

Thread: Stopping Autorun Viruses

  1. #1
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Stopping Autorun Viruses

    I was at work one day when a coworker came to me, saying that they were unable to access their hard drive through My Computer. Double-clicking on the C: icon popped up a mysterious message box:

    ERROR: File not found: C:\MS32DLL.dll.vbs.

    * This was over a year ago, so the actual error message might've been slightly different. I'm just writing it from memory.

    Now this looked really suspicious for multiple reasons:
    1) Windows by default hides extensions to known file types. This means that the file would normally show up as MS32DLL.dll, which would appear to be a legitimate file.
    2) The .vbs extension is for VBScript files. What is a VBScript file doing in the root of the hard drive?
    3) Why is Explorer trying to execute it when the drive is opened?

    I right-clicked on the C: drive, and clicked "Explore". Sure enough, after enabling showing hidden and operating system files, there were two very suspicious-looking files: autorun.inf and MS32DLL.dll.vbs.

    Autorun files are only supposed to be used in removable media, like installation CDs. The fact that this was on the hard drive was incredibly suspicious. I deleted it, and opened the VBS file in Notepad. Of course, it was malicious. Using Windows API registry functions, it enabled the Autorun feature and copied itself onto every drive on the system every two minutes, and set itself to be executed on every startup. It also modified the user's home page, among other annoying things.

    So, basic lesson to learn from this:
    1) DISABLE AUTORUN. This will stop a lot of viruses from spreading from one drive to the other. You can do this by opening regedit.exe and modifying the following key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer

    There should be an entry with the name NoDriveTypeAutorun. Set it to 0x95 to disable autorun on everything but CD drives, or 0xB5 (the letter 'B', not the number '8') to disable it on all drives.

    Note: the following menu commands are for XP and previous versions. Vista has a different menu, which I forget at the moment. I'll edit this as soon as I find it.

    2) Enable viewing hidden files. In Explorer or My Computer, go to Tools > Folder Options > View and select "Show hidden files and folders." If you want, you can disable hiding operating system files as well, but I don't really think it's necessary unless you suspect you have a virus.

    3) Disable hiding file extensions. You have no idea how many viruses depend on this for hiding, especially email viruses. Again in Explorer or My Computer, go to Tools > Folder Options > View and uncheck "Hide file extensions for known types."

    5) Keep a close eye on what you stick in your computer. If you're sticking in a questionable flash drive, check the root directory first either through the DOS prompt or Explorer, not My Computer, as it will execute whatever autorun script is there.
    Last edited by dargueta; 08-29-2009 at 09:23 AM.
    sudo rm -rf /

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: Stopping Autorun Viruses

    While I immediately see the logic behind this, I've never once thought of this. In the same thought, I've never had this problem because I have antivirus software. +rep

  4. #3
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Stopping Autorun Viruses

    They did at school, too. The problem was that the script was interpreted by wscript.exe which was a trusted component or something stupid like that, so it just slid right by.
    sudo rm -rf /

  5. #4
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Stopping Autorun Viruses

    Oy. I hate cleaning up crap like that. I'm a firm believer in killing autorun.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: Stopping Autorun Viruses

    I have always viewed known file types just so that I can edit stuff from like .dat to .txt or something easily.

    I never realized you could stop auto run, there are probably tons of things you can do in the registry, ah I remember I played with it once... heh... always make a backup!

    +Rep!

  7. #6
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Stopping Autorun Viruses

    Definitely always make a backup. I've learned the hard way several times. Once I had to create a new user, load the broken user's registry settings, modify those, save them back, log in as the old user and delete the new user. Took me forever. (And thanks for the rep.)
    sudo rm -rf /

  8. #7
    Sanders's Avatar
    Sanders is offline Newbie
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    0

    Re: Stopping Autorun Viruses

    I thought it is temporary problem B4, seems wrong
    Thanx, learned a lot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Thread stopping
    By JARAFG in forum C# Programming
    Replies: 0
    Last Post: 01-25-2011, 05:31 AM
  2. Script stopping before it should
    By dcord in forum PHP Development
    Replies: 7
    Last Post: 11-25-2010, 08:17 AM
  3. How to Autorun HTML in CD
    By kimerajamm in forum HTML Programming
    Replies: 2
    Last Post: 07-02-2010, 10:09 PM
  4. Help a mac user? Creating an autorun CD on Vista!
    By daraclare in forum General Programming
    Replies: 1
    Last Post: 06-20-2009, 06:07 AM
  5. Websense is stopping me from my fun
    By Reiz45 in forum Computer Software/OS
    Replies: 4
    Last Post: 02-28-2008, 11:36 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts