Slashdot Mirror


How To Avoid Viruses At Windows Install Time?

reallocate writes "Can a home user install and update Windows without being attacked by a virus or worm? I'm a Linux user; have been since 1995. Recently, I needed to install Windows XP Pro on a home desktop machine with a Roadrunner cable connection. I tried twice. Both times, the machine was attacked and rendered unusable before I was able to pull down the first update from Windows Update." Read on for more details of what went wrong and when.

Here's a synopsis of my install method:

  1. Put the Windows XP CD in the drive;
  2. Disconnect the cable modem from the network card;
  3. Reboot and install Windows;
  4. The box remains off the net during the entire install: no registering, no setting up an ISP, no activation, no network configuration, no nothing. (BTW, the only networking component that I install is tcp/ip. All the other MS stuff never gets on the machine.)
  5. Reboot; Windows runs and all is well;
  6. Install the current version of Norton Internet Security Professional from a shrinkwrapped CD (firewall, anti-virus, etc.);
  7. Configure the Roadrunner net connection and reboot to pick up a DHCP lease;
  8. Launch the Norton update facility (per Norton's recommendation, the built-in XP firewall is turned off);
  9. Complete the Norton update and reboot;
  10. Launch Windows Update;
  11. Start to pull down Service Pack One; per Microsoft's instructions, all firewalls are turned off.

That's as far I got. During the first attempt, I acquired a virus or worm before I could finish the Norton update (machine powered down). On the second attempt, I got as far as Windows Update and SP1(continual rebooting).

So...how would you do it?"

25 of 833 comments (clear)

  1. Use NAT by hkb · · Score: 4, Interesting

    Duh.

    Perhaps also turning on the firewall just actually might work. Windows is targeted for the average Joe. Microsoft doesn't want to have to incur the support costs of explaining to average Joe how firewalls work, so they suggest you keep it off.

    If you've really been using Linux that long, you'd have a clue. Really, this submission just sounds like a troll...

    --
    /* Moderating all non-anonymous trolls up since 2004 */
  2. loose wire by Anonymous Coward · · Score: 2, Interesting

    It seems more likely you have a dodgy connection or overheat problem than a virus there. Did you detect a virus with Norton or are the shutdowns/reboots all you base this on?

  3. Simple, Get an external Router. by kevlar · · Score: 2, Interesting

    Barring the fact that I don't believe you when you say that you get viruses over the 20 minutes that it takes to download and install the patches, the fix is simple: get some sort of router/firewall combo, or install a soft firewall before doing the update.

    Alternatively, shut down all the services so that you have nothing listening, but if you're too lazy to do that, go out and spend $40 on a Netgear router and voila, you're safe from that crap.

    1. Re:Simple, Get an external Router. by tomakaan · · Score: 4, Interesting

      If definitely believe him. I've seen it happen all the time. My situation may be unique since I'm on a large college network, but I've seen blaster/welchia/gaobot/sasser infect a machine in a quarter of that time without the proper Windows Updates.

    2. Re:Simple, Get an external Router. by Qzukk · · Score: 3, Interesting

      I don't believe you when you say that you get viruses over the 20 minutes that it takes

      Aside from the terminology, consider that at the peak of infection, many nimda attacks were being logged EVERY SECOND by logging machines setup for capturing and monitoring attacks. Slammer was scanning 55 million hosts PER SECOND. These things just pick random addresses and spit data out. If you haven't been getting any of these hits then either you're behind a firewall, or you're less random than the rest of the internet.

      20 minutes is a long time to go without protection in computer time, especially on today's wild west of an internet.

      Agreed though, the questioner should have just gone and gotten a firewall (or used one of his linux machines). I've never seen anything on windows update suggest that I turn off my firewall.

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    3. Re:Simple, Get an external Router. by kevlar · · Score: 4, Interesting

      Actually.... jusdging by my router logs, I can believe it now...

      Sunday, June 20, 2004 20:12:54 Unrecognized access from 24.164.33.43:9118 to UDP port 1026
      Sunday, June 20, 2004 20:16:48 Unrecognized access from 218.88.103.123:3822 to TCP port 1025
      Sunday, June 20, 2004 20:16:51 Unrecognized access from 218.88.103.123:3822 to TCP port 1025
      Sunday, June 20, 2004 20:16:57 Unrecognized access from 218.88.103.123:3822 to TCP port 1025
      Sunday, June 20, 2004 20:21:46 Unrecognized access from 195.250.112.73:35973 to TCP port 443
      Sunday, June 20, 2004 20:22:18 Unrecognized access from 222.183.185.252:3881 to TCP port 1025
      Sunday, June 20, 2004 20:22:21 Unrecognized access from 222.183.185.252:3881 to TCP port 1025
      Sunday, June 20, 2004 20:22:27 Unrecognized access from 222.183.185.252:3881 to TCP port 1025
      Sunday, June 20, 2004 20:31:26 Unrecognized access from 193.227.0.37:3365 to UDP port 1434
      Sunday, June 20, 2004 20:45:50 Unrecognized access from 24.164.31.171:8860 to UDP port 1026

    4. Re:Simple, Get an external Router. by ScrewMaster · · Score: 4, Interesting

      My firewall logs show that I get worm propagation attempts at a significant rate, sometimes dozens per second (you can hear the drive in my firewall machine chattering when that happens.) Mind you, I'm on Comcast and there's a bunch of machines on my subnet that are infected as hell (I've reported this to Comcast, but the same IPs keep showing up, sometimes with attempts from multiple worms!) but I have no problem believing that this dude got infected in twenty minutes. I'm surprised it took even that long. Last year, my cousin hooked up her Win2K box to her brand, spanking new cable modem. After two or three minutes, a console window popped up and she watched some nut case typing in "SECEDIT" trying to guess her admin password. Things happen FAST nowadays.

      --
      The higher the technology, the sharper that two-edged sword.
    5. Re:Simple, Get an external Router. by 87C751 · · Score: 2, Interesting
      Getting a virus within 20 minutes each time sounds more like you've got something stuck in your Master Boot Record or wherever that's simply returning with every reinstall.
      My personal record is less than 3 minutes after the first network-connected boot, while downloading round 1 of the Win2000 updates, on a heavily firewalled corporate intranet that unfortunately has some less than thoroughly careful users in outlying areas (read: people in the Far East divisions that move their laptops from home to work and back). Besides, when one boots from a CD and nukes/recreates the whole partition structure as part of the build process, lingering MBR problems aren't much of an issue.

      Aside: has there ever been a post-NT MBR virus? I can't recall any MBR infectors since the boot-from-floppy days.

      --
      Mail? Put "slashdot" in the subject to pass the spam filters.
  4. Re:If you can stand waiting... by phorm · · Score: 4, Interesting

    You could also download it from your linux machine, and then do the whole installation offline

    Or better yet, use a morphix bootCD. You should be able to download the patches to Welchia et al directly (not using windows update), then reboot w/o the network cable in, patch, reboot, and you should be able to get the other less critical updates without being infected by RPC viruses.

  5. i'm installing right now... by phrasebook · · Score: 5, Interesting

    I'm putting XP on my laptop next to me right now actually. I think it is pretty safe because a) it is connected to the net using NAT, not directly to the modem and b) I slipstreamed SP1 into my XP CD, so that when I install it I'm already at SP1 level. See here for instructions (that's win2k, but same for winxp of course). And I dunno why you'd bother with Norton Anything quite frankly. Maybe you can just buy a cheap router doing NAT and put it between the modem and computer while you get updates.

    1. Re:i'm installing right now... by phrasebook · · Score: 2, Interesting

      We'll see how not running Nortn anything works for you when Outlook auto-installs the next mass-email worm.

      I don't use Outlook, but it's well known that that isn't the default behaviour anymore anyway. I use PINE on a separate system.

      Got Windows? Connect to any other system, ever, including using removable media? You need antivirus software.

      No you don't. I connect to all kinds of machines and have never had a virus, ever. Although I hardly ever share removeable media. How do you think I'm meant to get one? Connecting to machines doesn't mean getting infected. The only way I can think of is by running a suspicious .exe or a macro in a Word document or whatever. Never done anything like that myself.

      It amazes me that people think they're somehow an isolated little island. "Oh, nobody will infect me, I'm too small."

      Nobody will infect me because they can't directly connect to me and I have enough experience and common sense to avoid getting into trouble. I don't see why that sounds too good to be true - I find it quite easy. What amazes me is the amount of crap people install on their Windows machines in the name of protection...

  6. Re:Its easy... by Deathlizard · · Score: 2, Interesting

    I'll second this. putting on the Built in Firewall in XP will stop Blaster from infecting the machine. Pretty unplug from the network, install XP, turn on the built in firewall and hit windowsupdate until you get all the patches.

    With Windows 2000 however, it gets fun since there is no built in firewall for that. You can use zonealarm to block the virus traffic, or you can use a Router/Firewall to block traffic. I know you can set IP security policies in windows 2000 without downloading anything but I never tried it on a machine that was unpatched and able to be infected.

  7. Re:Windows XP: Surviving the First Day by eltoyoboyo · · Score: 4, Interesting

    Excellent article. And this is the number one article on the sans.org reading list. ... Couldn't help noticing number three with its provocative title: Penetration 101.

    --
    Have you Meta Moderated t
  8. Get A Cheap Hardware Firewall by jjohnson · · Score: 2, Interesting

    Buy a LinkSys cable/dsl router for $50, which includes a firewall (if you can't afford a Cisco Pix). I've never had anything get through to any Windows box I was installing up to the point I got it completely updated.

    No one should have any Windows box directly on a cable/dsl line anyway.

    --
    Anyone who loves or hates any language, platform, or manufacturer, doesn't know what they're talking about.
  9. I don't give a DAMN what Microsoft says. by grioghar · · Score: 3, Interesting

    " Start to pull down Service Pack One; per Microsoft's instructions, all firewalls are turned off."

    Firewall is on before I connect to my cable modem if you're going to be DUMB enough to connect it without a hardware firewall protecting the machine. Get an intermediary device like a Linksys or Netgear router, and now you don't have to worry about it. And seriously. Don't install your AV until AFTER you've installed all your updates. You're only complicating the registry before it needs to be.

    Seriously, is Slashdot a "News for Nerds", or "HOWTOs for N00bs"? Some of these questions would be better handled by Google and half a brain about networking.

    --
    Can you ping me now? Gooood! | Manhappenin.Net - Things to do
  10. Re:Odd by Patoski · · Score: 3, Interesting

    How do you get them? All the RPC Worms which currently inflict unpatched Windows NT based OSes is how. These worms do network sweeps and will find a vulnerable machine anywhere from a few seconds to a few minutes depending on the size of your network.

    I recall one particular instance at work where an outside laptop that was infected got plugged into the network (our network has about 2000 various boxes connected to it). Our security team got alerted by our intrusion detection systems was on the way to whack the offending user with a clue stick and unplug the laptop. Too late....

    During that time I had just finished ghosting a machine with SP4 integrated into the build. In only a matter of a minute or two the new box I was working on became infected and started doing net sweeps of its own (the whole process of infection was done silently of course). I don't doubt the tales of machines becoming infected in a very short period of time given the rate of infection with RPC based worms because I have seen it. All it takes is one rogue machine to infect other boxes it can talk to.

    --
    G. Washington on Government "it is force. Like fire, it is a dangerous servant and a fearful master."
  11. Re:RTFQ by photon317 · · Score: 4, Interesting


    There's really no such thing as a hardware firewall. All hardware firewalls are in fact software firewalls running on a peice of hardware, just like all software firewalls do. Perhaps a better re-statement of your point is to say that you should use a seperate non-windows-based firewall rather than one which is installed locally on the windows machine. Personally I use a Sparc/Linux box for this, but you can have good results just using a netgear nat box or something. NAT is the ultimate home firewall anyways, just dont start routing inbound ports through it to your PC and you're gtg.

    --
    11*43+456^2
  12. Re:Odd by ktakki · · Score: 4, Interesting
    How do you get these worms? This sounds incredulous...

    Here's a snippet of the log from my Linksys router:
    00:00:26 TCP from 200.63.154.32:4927 to XXX.XXX.XXX.XXX:445
    00:00:29 TCP from 68.219.231.103:2712 to XXX.XXX.XXX.XXX:445
    00:00:29 TCP from 200.63.154.32:4927 to XXX.XXX.XXX.XXX:445
    00:00:32 TCP from 68.219.231.103:2712 to XXX.XXX.XXX.XXX:445
    00:00:42 TCP from 68.144.136.248:3225 to XXX.XXX.XXX.XXX:445
    00:00:59 TCP from 81.185.113.170:3646 to XXX.XXX.XXX.XXX:445
    00:01:36 TCP from 68.144.169.29:2873 to XXX.XXX.XXX.XXX:445
    00:01:52 TCP from 4.41.255.6:3139 to XXX.XXX.XXX.XXX:445
    00:02:07 TCP from 200.223.92.184:4958 to XXX.XXX.XXX.XXX:445
    00:02:08 TCP from 68.94.121.110:3927 to XXX.XXX.XXX.XXX:445
    00:02:10 TCP from 200.223.92.184:4958 to XXX.XXX.XXX.XXX:445
    00:02:11 TCP from 68.94.121.110:3927 to XXX.XXX.XXX.XXX:445
    00:02:19 TCP from 81.218.207.145:4814 to XXX.XXX.XXX.XXX:445
    00:02:28 TCP from 80.198.29.151:4015 to XXX.XXX.XXX.XXX:445
    00:02:48 TCP from 63.230.237.96:3181 to XXX.XXX.XXX.XXX:445
    00:03:00 TCP from 209.50.93.166:4294 to XXX.XXX.XXX.XXX:445
    00:03:12 TCP from 24.80.105.49:2350 to XXX.XXX.XXX.XXX:445
    The timestamp is hours:minutes:seconds. XXX.XXX.XXX.XXX is my WAN address (redacted), an East Coast Verizon DSL line. Port 445 is probably being targetted by W32.Sasser.

    Sixteen attempts in 3 minutes and 12 seconds.

    A couple of things are interesting about this log excerpt. First, there are no attempts from the 141.154.* netblock (where my WAN address resides). Second, I usually see a number of different ports listed (139, 1025, 1026, 1080, 3129, 5000), from both viruses and people probing for open proxies. Then again, it's Sunday night. I've noticed that virus traffic is higher during business hours in the US.

    k.
    --
    "In spite of everything, I still believe that people are really good at heart." - Anne Frank
  13. Re:Easy by caffeineboy · · Score: 3, Interesting

    EXCEPT that the stupid XP firewall service is not started when the interface is started. You have your ass in the wind every time the machine boots.

    --
    +++ ATH0 +++
  14. Re:Easy by irc.goatse.cx+troll · · Score: 2, Interesting

    There isn't if you don't have a cd burner and you live out in the middle of nowhere (as she does now).
    I'm going to end up having to mail her a patch cd, which is really pretty stupid when you think about it.

    --
    Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
  15. Re:Odd by Funksaw · · Score: 2, Interesting

    It's not as incredulous as it might seem. I use a Mac for my day to day operations - so I don't get virii or trojans or worms - but I do keep a Windows laptop around - I usually only use it when I'm travelling on the road or the mac breaks down. Well, my cable modem's out for about 24 hours, so I decide to take the laptop for a spin earlier this month - connecting to my ISP through the phone line. This, of course, bypasses the router I usually keep the Windows computer on. Without exaggeration, the computer got attacked by the sasser worm within two minutes. PCCillin caught it, but not before it did some damage. I didn't think much of it, and I was back on the Mac within days and let the computer go through a reformat. A few days later, my girlfriend's computer starts having problems - basically, the guy who put it together was a whiz with the hardware but messed up on several software related issues - he didn't install service packs, he even got the partition table wrong (Over 2/3rds of the hard drive was unpartitioned - my girlfriend was using 40 gigs of a 120 gig drive.) So, we decide to reformat and install Windows XP. Now, I'm part of a university which has a licence to software, so I can just download stuff like antivirus programs and firewalls. I decide to download the antivirus first, then the spybot, then the service packs, then the hotfixes... big mistake. After waiting hours to do a complete reformat and another couple of hours tinkering with it to get it to work right, Windows XP reboots unexpectedly then keeps rebooting. I know *exactly* what this is, but the only way to fix it is a reformat - which means that we're going to get hit with the same problems again as soon as it comes online - we have to go online to download the patches... gah! Eventually, we drove back to my place, used my macintosh to download all the patches and hotfixes and whathaveyou - and we made sure to install the firewall -first-. The firewall did the trick, of course, and we were able to get it going. I had to explain to my girlfriend how to *use* the firewall, but considering the alternative, she was very pleased. But the fact that this can happen is completely insane! When the hell will Microsoft fix their operating system? Viruses have gotten progressively worse and more destructive over the past couple of years - and Longhorn is WAY too far away from release (not that I'd want all the DRM crap on it anyway) If it wasn't for the fact that games usually don't work on Linux, I'd have told my girlfriend just to switch over that day...

  16. Re:If you can stand waiting... by jonfelder · · Score: 4, Interesting

    You're being awfully pedantic there. Yes, technically the updates to Linux (i.e. the kernel) are small. However, I'm sure if you just patch kernel32.exe or whatever the binaries for the kernel under windows are, the updates would be small too.

    A system consisting of just the kernel and a few command line tools would be awfully boring and not a particularly fair comparison.

    By "Linux" I'm referring to the kernel itself, along with X and the base applications that come along with gnome or KDE. Installing a distro with the base set of libraries, GUI, window manager, apps, etc that give a reasonable approximation of what you get with windows (no gimp, no koffice, etc) will require a considerable amount of downloading of patches if it's as old as XP.

  17. Re:This is insane by woefulhc · · Score: 2, Interesting

    For the most part, people don't realize there are other options. (Check any number of previous /. discussions.) In certain instances they don't know they have other options. Dell/HP/Compaq/Gateway don't offer Linux. They tell you they include Windows.

    In other cases they literally do NOT have a choice. My brother in law is headed to medical shcool. He was presented with a list of requirements for his computer. One of those is that the computer have Windows XP Professional installed. Half of the requirements are to prevent the students' computers from bringing down the school's network. All of those could be met by using a Mac or installing Linux. Neither is presented as an option. It will take considerably more effort on my brother in law's part to find out if he can use a Linux computer than it would to just click on the "purchase here" link.

    I've strongly suggested that he make the effort to see if he can use Linux and avoid having to purchase the software they recommend (which cost more than the hardware). However, he isn't so interested in that effort or the effort the might be required in running a linux box.

    I have no question why he thinks his only option is a Windows computer. He wants to be a physical therapist, not a computer expert.

    --
    Paul
  18. Re:If you can stand waiting... by andy+landy · · Score: 2, Interesting

    The easiest way is to turn on the Windows XP firewall before you plug in the network/cable/dsl wire.

    * Install Windows
    * Install network drivers
    * TURN ON FIREWALL on the external connection
    * Plug in and dial the 'net
    * Run through Windows Update
    * (At your discretion) turn the firewall off again.

    --
    perl -e 'print "Just another Perl newbie\n";'
  19. Re:This is exactly how to do it. by phasm42 · · Score: 3, Interesting

    Mod parent up. I don't understand why this guy simply didn't use the XP firewall and be done with it. It would've worked better, and he wouldn't have had to install Norton BS. Plus, in step 11 HE TURNS ALL FIREWALLS OFF. Of course he's getting infected. I don't think many people have pointed that out, but he got infected because he turned off the damn firewall like an idiot. Reading MS's line on the subject: here, they say to turn off ANTIVIRUS, not firewall. So he probably turned off all of NISP, not just the AV portion.

    --
    "No one likes working in a hamster wheel, and your shop smells of cedar shavings from here." - TaleSpinner