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?"

80 of 833 comments (clear)

  1. If you can stand waiting... by foidulus · · Score: 5, Informative

    You can get a cd from microsoft(more info here that would have a lot of the updates you are looking for. You could also download it from your linux machine, and then do the whole installation offline.

    1. Re:If you can stand waiting... by XaviorPenguin · · Score: 5, Informative

      There is another way. If you go to Autopatcher.com, you can download all of Service Pack 1 and pre-Service Pack 2 updates with all critical and recommended updates. It is a hefty download (300MB +) but it is worth it. It comes with:
      -Direct X 9.0b + Updates
      -XP Powertoys
      -SP1 Critical and Recommended Updates
      -Pre SP2 Critical and Recommended Updates
      - + More

      I use it and it is updated every month. Get it while you can!

      --
      Friends help you move...
      REAL Friends help you move dead bodies... ^_^
    2. Re:If you can stand waiting... by LoneIguana · · Score: 5, Informative

      You can access the windows update catalog here: http://v4.windowsupdate.microsoft.com/catalog/en/d efault.asp There you can get secruity updates for all versions of windows. You actually download them to your computer rather then installing them. You could download them on another computer burn them to a CD, then install before connecting to the internet. The only problem is you need a computer with IE. Maybe get a friend to burn it for you?

    3. Re:If you can stand waiting... by TPS+Report · · Score: 5, Informative

      You can (with just a few mouse clicks) automatically create an up-to-date ISO of Windows XP/2000/2003 with XPCreate. It's a really nice utility.

      --
      I was told that I could listen to the radio at a reasonable volume from nine to eleven...
    4. Re:If you can stand waiting... by zoloto · · Score: 5, Informative

      DUDE THIS ROCKS!
      Actually, what you can do is use Wine or WinEX and install Internet Explorer 5.5 from an old 5.5 installation CD on Linux,... download then burn to CD and you'll be great. I did that just now and i have to say thank you for the link.

      It seems that any useful links, MS hides behind a rediculous naming scheme for some odd reason.

      Thank you again, if I had MOD points, I'd certianly give them to you.

    5. Re:If you can stand waiting... by BollocksToThis · · Score: 5, Informative

      The only problem is you need a computer with IE.

      If you go to the Microsoft download center, you can download every patch with (almost?) any browser. I downloaded service pack 1 and every patch after that using nothing but Opera.

      It was less convenient than using WindowsUpdate/IE, but it would still have worked on a linux machine. The best part is, when friends give me their computers to reinstall XP, I don't need to spend four hours downloading patches from scratch.

      --
      This sig is part of your complete breakfast.
    6. Re:If you can stand waiting... by gmplague · · Score: 2, Informative

      Actually, that's just the site that http://windowsupdate.microsoft.com/ automatically redirects you to... I know that "rediculous" naming scheme may seem unfathomable to you, but I think at least a few people in the /. crowd are capable of handling it.

      --
      __________________________________________
      Take comfort in your ignorance.
      Grandmaster Plague
    7. Re:If you can stand waiting... by Condor7 · · Score: 5, Informative



      Autopatcher.com also has a Lite version and an UltraLite version.

      The UltraLite version contains only Critical and Recommended updates, along with IE and Outlook patches, and weighs in at 89MB.

    8. Re:If you can stand waiting... by Glamdrlng · · Score: 1, Informative

      Considering that Microsoft hasn't been hit upside the head with the MD5 clue by four yet, I wouldn't recommend getting MS patches from a 3rd party. With no way to verify that the file you're downloading is the file you want, getting OS patches from anywhere but the vendor is a bad practice IMO.

      --

      Yes, my only tool is a hammer. And you're starting to look like a nail.
    9. Re:If you can stand waiting... by jonfelder · · Score: 4, Informative

      Sure. But *CAN* you do this?

      Absolutely. Just install the hotfixes that pertain to kernel vulnerabilities.

      But it's the *RIGHT* thing to do from a security point of view. If you're file-server is running X & Gnome & KDE & Wine & Kazaa, you're *BEGGING* for trouble.

      While you can't avoid installing the gui and what not in windows, you can turn off almost all of the running services. Technically, not that I'd advise it, you could avoid running IE, Outlook Express, etc...and forgo patching them in a server environment. Just don't run any apps either.

      The hard part about microsoft is that it's really hard to do that, since (as the article pointed out) the default install has everything with all the holes pre-installed and running.

      So does a default install of many distros...ones as old as XP even more so.

      I'm not a Microsoft advocate, I dislike Microsoft products for multiple reasons, but the size of the patches isn't one of them. All I'm saying is that when comparing a default (normal size) linux distro install to a default windows one, the amount of patches you need to install are similar.

    10. Re:If you can stand waiting... by ComaVN · · Score: 3, Informative

      MD5 is weak in the sense that it is possible to create two files with identical hash. It's NOT possible (at the moment) to create another file that has the same hash as an existing one.

      So, for this purpose, MD5 is adequate.

      You're right about SHA being better though.

      --
      Be wary of any facts that confirm your opinion.
    11. Re:If you can stand waiting... by Simon+Lyngshede · · Score: 2, Informative

      You can't use IE running under Wine, or you can, but you're not allowed to. The IE EULA states that you may not run IE on a platform for which it is not designed for.

    12. Re:If you can stand waiting... by lofoforabr · · Score: 2, Informative

      Yes, but normally, when you update your linux distro, you get newer versions of the programs and libraries.
      On MS, at least on our daily patching routine, the updates are only bugfixes, and usually don't introduce new features or enhancements.
      It's true, when I update Linux, it usually downloads tons of things. But just count how many separate programs there is. There are tons!
      On MS, you usually get updates on Windows itself, IE and Outlook.
      Did you ever get a new version of Paint, or WordPad, or some other component of Windows?
      On Linux, I get new versions of everything, from jpeg libraries to web browsers. It's way more programs to update.

  2. SP1 From CD by The+Snowman · · Score: 4, Informative

    When I install Windows it is behind a NAT firewall which helps (no open ports from the outside). The first thing I do is install SP1 from CD, next I update from Windows Update.

    I recommend downloading SP1 and burning it in Linux, then using that CD to patch up the Windows box before connecting it to the network.

    --
    24 beers in a case, 24 hours in a day. Coincidence? I think not!
    1. Re:SP1 From CD by msobkow · · Score: 3, Informative

      I run behind a firewall as well. Last time I did a WinXP install (not that long, unfortunately), I had no problems.

      But I don't install or enable any services during an initial installation, just the core OS. I don't do anything but install manufacturer's drivers before installing an anti-virus product.

      After the anti-virus is fully updated, then I start dealing with Windows updates.

      At no point have I ever had to disable hardware or software firewalls to install Windows updates. I have no idea why they continue to insanely recommend you remove all your security just to download updates -- you don't need to.

      In fact, the only time I shut down the antivirus is during a disconnected defrag. And there is no way to disable the hardware firewall.

      If you're connecting directly to the net with a Windows box, you're just getting what you deserve. Either hide it behind a hardware firewall, or accept the fact that you're just another spambot-in-waiting.

      --
      I do not fail; I succeed at finding out what does not work.
  3. Easy by daveschroeder · · Score: 5, Informative

    Do the installation behind a personal NAT/firewall device.

    (Or, read all the posts about how you can put together some huge, convoluted update CD that's never completely up-to-date instead of just spending $35 on a little hardware firewall.)

    1. Re:Easy by Josh_Borke · · Score: 5, Informative

      or install zonealarm. and don't turn off the firewall. I've never had to turn off my firewall when doing any windows update.

      I would update windows before updating the firewall, that way you don't have to worry so much about being shutdown while the firewall is down.

      my .02

    2. Re:Easy by Otter · · Score: 3, Informative
      OR turn on the windows XP firewall under the advanced tab on your network connection's properties before you plug the network cable in.

      I've installed Windows once (98, several years ago) and even I know about turning the firewall on. Why?

      Because this is at least the fouth freaking article Slashdot has run on this question!!!

      (Remember the one that linked to an article about "Installing Windows Safely" and all the posts were "Instead of linking to a large PDF, why not tell people to just turn the firewall off?"?)

    3. Re:Easy by moosesocks · · Score: 2, Informative

      No need to put together a huge convoluted update CD.

      Some people have already done it. Autopatcher contains every update available on Windows Update since SP1 and then some (it's advisable to download SP1 onto the CD as well, though most recent WinXP CDs have SP1 pre-installed).

      Basically, you put the CD in, click 'Update', and all the relevant patches are installed. No downloads. Only one reboot at the end. No virus risk. It's also excellent for my clients who are still on 56k :)

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
    4. Re:Easy by pjt33 · · Score: 2, Informative
      If you RTFA, you'll see that
      per Microsoft's instructions, all firewalls are turned off.
      Microsoft need to fix one of the update process, the firewall, or the docs.
    5. Re:Easy by Salamanders · · Score: 2, Informative

      I actually got really good help from MS when I contacted them about a Windows Update issue I was having with XP.... It shocked the hell out of me. Proactively following up with me, various ideas to solve the problem, it was great.

    6. Re:Easy by Gordonjcp · · Score: 2, Informative

      Ahaa, you could make an ethernet "wrap plug" - get a normal RJ45, fit a wire from pin 1 to pin 3, and from pin 2 to pin 6. Crunch with your cable cruncher, and when you plug it in, the link light will magically come on!

  4. Its easy... by CyberBill · · Score: 4, Informative

    Leave the software firewall turned on if you can, if not, get a cheap Linksys Cable/DSL router, it will block all of those viruses.

    I have to reinstall most of my family's computers when I go home, I made all of them have routers. :P

    -Bill

    --
    -Bill
  5. Firewall by jpaz · · Score: 5, Informative

    Keep the firewalling on, no matter what Microsoft says. I've never had an instance where having a firewall turned on kept windowsupdate from working properly.

    1. Re:Firewall by orin · · Score: 4, Informative

      This is absolutely correct. You can even use the simple Internet Connection Firewall that is built into Windows XP

    2. Re:Firewall by sumdumass · · Score: 2, Informative

      Are you sure that someone asking this question would know what to allow in and what to disallow?

      I agree that an aplication level firewall is great. ONe that can do nat also is even better. (thats why i like iptable/netfilter so much) I am afraid that the level of knowlegde needed to be using one of them aren't the same level most users have.

      Most tech supports personel also have a default answer for not being able to download somethign and that is turn the firewall off. I have a client that is an acountant and all that needed to be done is to allow her tax software directly conect to the efile site. Thier tech support (drake software) told her to disable the firewall and anti virus in order to conect. This left a windows xp machine completly unprotected, open to the internet, with thousands of people tax information including social security number and everthign. of course it got msblast and openserve worm and i think one or 2 others. TO open the rules up took 3 clicks with a witha popular software firewall product. There is no reason to disable it on broadband internet but they defenmded it with "well she could conect afterwards couldn't she?"

      Maybe the answer is that microsoft quit pushing holes in thier code and tighten it up a little. There is alot of stuff on the windows xp install that should be left off uuntill the user needs it. How will a user know if they need it? the instruction for whatever they are doing will tell them. simple as that.

  6. Easy by Masami+Eiri · · Score: 5, Informative

    We do this all the time where I work.
    Use another machine to burn a copy of the latest service pack, and the Sasser worm fix, and whatever other updates you want to include.
    After installing, install the updates from the CD, then check windows update for anything else.

  7. Kerio Personal Firewall! by Anonymous Coward · · Score: 1, Informative

    Learn it, love it. Free for non-commercial use, KPF rules me.

    Bla bla bla long post extra padding blapsux.

  8. Probabl redundant at this point, but... by __aavhli5779 · · Score: 4, Informative

    Yes, a firewall and/or NAT is all you really need. Evidently Norton Internet Security did not live up to its promise, which comes as little surprise to me, I must admit.

    I've had success installing Windows XP and upgrading it with only Microsoft's Internet Connection Firewall enabled.

  9. Firewall by fremen · · Score: 3, Informative

    ...all firewalls are turned off.

    Why don't you try turning the firewall on? It will block the RPC calls that are necessary to infect your machine with the most recent series of worms and allow you to install whatever patches are necessary worry free.

    Plus, it just makes your PC safer in general.

  10. Comment removed by account_deleted · · Score: 4, Informative

    Comment removed based on user account deletion

  11. Slipstream it! by DarkHelmet · · Score: 2, Informative
    Easy... I would Slipstream a copy of Windows SP1 or SP2 onto a burned CD, so that the windows I install is a fresh copy that's not suseptible to worms off the bat.

    Even better, I would get a hardware firewall, so that none of the ports that worms travel through are even open.

    Basic security from automated attacks isn't particularly hard, you know. Why is this even on slashdot?

    --
    /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
  12. Download the Service pack before install by borwells · · Score: 4, Informative

    Download the SP1 Network install before beginning your XP installation. Stick it on a CD or a Samba share and install it prior to connecting to the Internet.

    --
    "We can't solve problems by using the same kind of thinking we used when we created them."
  13. External firewall? by pilkul · · Score: 5, Informative
    You say you're a Linux user; why not plug one of your Linux boxes to the 'net, use it as NAT-routing firewall using iptables, and download the updates from behind the firewall? It's always worked for me. Or if you only have one machine, you can buy a cheap NAT router for 50$ nowadays.

    This solution seems so obvious to me that I wonder why you even bothered to ask. With your apparent technical knowledge, surely you must've thought of this. I'm inclined to think this question was just a veiled way to start an article bashing Microsoft about all the worms affecting their system.

  14. For the love of god... by alyandon · · Score: 2, Informative

    Just turn on the internal XP firewall (Network Properties -> -> Properties -> Advanced) before you connect to the net. You'll be safe long enough to get SP1/Kerio/etc all downloaded and installed.

  15. firewall or CD by Cyberop5 · · Score: 2, Informative

    When I'm forced to build an XP box on an unsecured network, I leave it offline until the install is done, enable the integrated windows firewall, plug the CAT 5 in, and fetch the updates. The built in firewall is typically good enough to fend off blaster, nachi, etc. After that, I install antivirus then Zone Alarm and disable the integrated firewall. Whenever possible, run behind a hardware firewall and you won't have this problem.

    If you have another windows XP box, you can use the corporate windows update to download all the patches and service packs to CD and update the system offline.

    FYI, if you do get infected, running "shutdown -a" from the command dialog (windows+R) will abort the 1-minute shutdown timer.

    --
    Urgo: "I want to live. I want to experience the universe and I want to eat pie!"
    Jack: "Who doesn't??"
  16. Re:Simple, Get an external Router. by yamla · · Score: 4, Informative

    You don't believe you can get infected in 20 minutes? The record at the undergraduate department of Computing Science at the University of Alberta is SIX SECONDS from plugging in an installed, unprotected Windows XP system until the time it is infected.

    It is highly unlikely that you could run an unprotected XP system with no firewall and no patches, hooked up via a cable modem or ADSL, for even ten minutes before getting infected.

    --

    Oceania has always been at war with Eastasia.
  17. Autopatcher! by calebb · · Score: 3, Informative

    I can't believe nobody's posted this yet!

    Autopatcher

    AutoPatcher was started in October of 2003. It was started by Jason Kelley and was a simple batch program that would install many updates silently. Upon reaching version 2.65, Jason was contacted by Antonis Kaladis, who offered to help make a VB front-end for the program. And thus, the current incarnation of AutoPatcher was born.

    Not only does it install all your Windows updates with just one reboot, it can also (optionally) install many other programs such as the Windows XP Powertoys, IESpell, etc. There's even some registry config options such as increasing the max connections per server (IE) to something greater than 2.

  18. Found at isc.incidents.org: by BandwidthHog · · Score: 5, Informative
    --

    Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
  19. but if you can't.... by Mydron · · Score: 5, Informative
    There are a few guides out there explaining what to do. Most of them involve shutting off windows services (such as file sharing and the windows network client) and using the firewall included with Windows XP before connecting to the internet.

    Here is a fairly comprehensive guide, aptly named: Windows XP: Surviving the First Day

    1. Re:but if you can't.... by dknj · · Score: 5, Informative

      This is a pretty poor Ask Slashdot article, IMHO. Here is how I do it within an hour and have nothing to worry about:

      1. Unplug network cable
      2. Install Windows XP
      3. Upon first boot turn on the Windows Firewall and reconnect network cable
      4. http://www.windowsupdate.com
      5. Wait for patches to download, then remove network cable and reboot after patches have installed
      6. Return to http://www.windowsupdate.com and download the remaining patches
      7. Reboot (no need to unplug network cable this time) and install a Virus Scanner/Firewall Suite.

      This takes an hour and isn't rocket science.

      -dk

    2. Re:but if you can't.... by innosent · · Score: 3, Informative

      Problem is, the Windows Firewall is almost completely useless, and the average computer is probably hit by an attack every 20 minutes, which is far less time than it takes to download all of the patches, especially since the first reboot will only cover SP1, which only eliminates about 5% of the active exploits. The original (I'm told the SP2 version is better) windows firewall does not protect people from any of the attack vectors I've seen coming through my network so far this year. It is a "stateful firewall", it's just that the only state it maintains is an open one. It does not protect the computer from access to system services (most notably RPC), so it cannot protect people for long enough to patch their systems. There are only two methods for a clean install, either install and patch offline from CDs, or install from behind a stateful firewall (either a cheap linksys/dlink/netgear type or your network firewall). All installations we do at work are done initially on the private segment of the network, with packets sent through a NATd portion of the firewall (which by the nature of NAT accomplishes exactly what is needed). Of course, we also drop packets which have no legitimate purpose on our network, and log the supposed legitimate ones, which is probably a bit beyond the requirements for installing XP on granny's computer.

      --
      --That's the point of being root, you can do anything you want, even if it's stupid.
    3. Re:but if you can't.... by dknj · · Score: 4, Informative

      Except the firewall will block incoming connections. Don't go to other sites which will exploit old IE bugs and install spyware/viruses/etc, go straight to windows update after installing windows. That will patch up to SP1.. there is a known bug with the firewall that will leave the machine vulnerable for a few seconds (enough to get infected) during the boot before SP1 finishes (or it may be another patch that fixes it.. i don't remember), this is why you remove the network cable before you boot the second time. After you patch it completely, you can install your firewall suite and virus scanners (as i stated).

      I used to do this on a daily basis, before I switched to a fully automated ris build, and never had an infected machine.

      -dk

    4. Re:but if you can't.... by Glamdrlng · · Score: 2, Informative

      The ICF is no less useful than a linksys box running NAT. I frequently run portscans on machines running ICF, and the only ports that ever come up are the ones I've opened.

      --

      Yes, my only tool is a hammer. And you're starting to look like a nail.
    5. Re:but if you can't.... by innosent · · Score: 2, Informative

      The ones you've opened, like 135,137-139, and 445? You don't open ports in XP, you close them, the OS starts with all services enabled, all relative ports open. The ICF doesn't do anything about these ports, unless explicitly instructed to, and these are the ones that matter. NAT, or more accurately PAT (Port Address Translation), maintains the source and destination ports, just as a stateful firewall will, and makes the machine inaccessible to non-solicited ip/port combinations. This way, only the requests and responses to/from windows update/symantec/whoever are allowed to pass through, which is exactly how all home machines should always be, and exactly what is needed for a clean install. In addition, there have been vulnerabilities in the ICF itself, which will remain open until SP1 is installed. Host-based security is a nice addition to network security, but I would be very nervous having the machines I administer connected the internet with nothing more than ICF and an AV package, even though all of them are up to date on patches. There are more vulnerabilities out there, patches from Microsoft are far from pre-emptive, and signature-based (AV) software is reactive, often missing signatures until it is too late (someone had to get infected to get the signature).

      --
      --That's the point of being root, you can do anything you want, even if it's stupid.
  20. When it asks if you agree to the onerous EULA... by Anonymous Coward · · Score: 1, Informative

    Just click on "NO" and install Linux instead.

  21. Re:Where from? by saroth2 · · Score: 2, Informative

    That's not true, a worm needs no user intervention in order to infect a computer. Think Sasser .

  22. make sure you block all incoming ports by steve.m · · Score: 3, Informative

    sasser exploits a vulnerability in lsass.exe, which listens on 445. Some software firewalls leave this open, as it is required for Active Directory logins under some circumstances. If you do that and then go straight to windows update you should be fine.

  23. I work for an ISP by mAineAc · · Score: 2, Informative

    I have people do this all the time without any problems. I have the WinXP firewall enabled then connect and go to windows update. No one has an issue doing it this way.

  24. Here's your problem(s) by ellem · · Score: 2, Informative

    1 - Hardware Firewall Only. Software firewalls are for pikers and people waiting to be hacked.

    2 - Download SP1 to a CD.

    3 - STOP USING NORTON for ANYTHING OTHER THAN ANTIVIRUS

    4 - Read 3 again

    --
    This .sig is fake but accurate.
  25. Heh by kastberg · · Score: 2, Informative

    What about using Tiny Personal Firewall? It fits on a floppy (last time i checked atleast)

  26. Buy a Linksys Broadband Router by pixel_bc · · Score: 2, Informative

    ... or any brand name for that matter. My windows box is behind one of these and I've never had any problems. You can choose to forward any ports you DO care about (it blocks by default), and you can also set up some cool net policy stuff on the later models.

    Seriously -- you can pick one of these puppys up for about $50... and they're incredibally functional if you ever decide to start you own little home network (5 ports is the norm for the price).

  27. Howto from SANS Institute Storm Center by MDFedderly · · Score: 2, Informative

    step 1:
    do not connect the pc to any phone or network and no wireless connections either.

    step 2: install winxp

    step 3: admin password
    --at least 8 chars long
    --letters numbers AND other charactors
    --not a dictionary word
    --not easily guessed

    step 3: networking setup
    choose custom
    unselect client for msft networks
    unselect file and printer sharing
    (you can enable after it's all patched up)

    on the 'will this computer coneect to the internet directly...' dialog, select the proper settings as they will be, but it still should not be plugged into the network

    don't activate, remind every few days

    step 4: user accounts
    setup whatever user accounts you need, same rules apply to passwords. also, if your account has no password, it will not be accessable through the network.

    step 5: verify network settings
    in the network connections dialog, for each connection,
    -- make sure client for msft networks and file & printer sharing are STILL off
    -- turn on the windows based firewall

    reboot now

    step 6: windows update pass 1
    -- you can now get online, because you should be safe enough with the firewalling set up

    step 7: run windowsupdate/reboot as needed until the system is FULLY patched.

    step 8: install other software, such as virus checking.

    (it's still a bad idea to disable the firewall, but it's much safer now than before)

    for the pdf guide that I basically copied here, check
    http://isc.sans.org

  28. Re:Its easy... go to grc.com by acariquara · · Score: 2, Informative
    As the title says, there IS a single-step solution, at least for the Blaster variants and other things that attack DCOM service.

    Go to grc.com and get DCOMbobulate, click DCOMbobulate me! and you are safe from those worms.

    While you are at it, get also the UPNP disabler and Shoot the Messenger! to avoid getting popups offering U N I V E R S I T Y D I P L O M A S (yuck)

    --
    Dear aunt, let's set so double the killer delete select all
  29. All you have to do is read the online guide. by Beardo+the+Bearded · · Score: 1, Informative

    There's a guide called "Surviving the First Day of Windows XP". Google it; I'll abstain. You should do this:

    Basically, do this:
    1. Install your hardware firewall. Configure it using the guidelines at Gibson Research. If your time's not worth the $30 for an on-sale router, don't bother installing anything and stop reading, since you're not worth my time.
    2. Get your fresh install completed. Bring a book.
    3. Disable messenger, server, and enable the XP firewall. Check with black viper to see what's safe to disable. (Hint: almost everything!)
    4. Install an antivirus program.
    5. Update your virus program.
    6. Download your critical patches. DO NOT INSTALL ANYTHING BUT CRITICAL PATCHES.
    7. Update your hosts file using Mike Skalla's ad blocking file. (Google for Mike's ad blocking)
    8. Download Spybot-search and destroy. It has an immunize feature to stop a lot of processes from running.
    9. Now you can update your non-critical files. This includes thing like driver updates, DirectX, etc. If you're keen, Spybot will check for registry changes so you can keep your eye out for spyware.
    10. Check with Gibson Research again, and see if you've got a full green spread on the scan.

    That's it. You can now enjoy a year or so of XP use before you have to go through this again.

    --

    ---
    ECHELON is a government program to find words like bomb, jihad, plutonium, assassinate, and anarchy.
  30. Re: doh....go to grcsucks.com by Anonymous Coward · · Score: 1, Informative
    By the time you've downloaded DCOMbobulate with an unpatched/unprotected, freshly installed XP machine, you'll be infected (unless you're behind a router). Best bet is to disconnect the machine from any network and do the following immediately after the install:
    1. Click on Start -> Programs -> Administrative Tools - Component Services
    2. On the left-hand window pane, expand Component Services -> Computers
    3. Right-click My Computer and select Properties
    4. Click the Default Properties tab
    5. Uncheck the Enable Distributed COM on this computer checkbox.
    6. Click OK and close the Component Services console window.
  31. Try going here instead... by Arivia · · Score: 2, Informative

    http://www.microsoft.com/downloads/search.aspx?dis playlang=en If you visit the Windows Update site in anything other than IE, you'll get redirected to there-but it works in Firefox. Also easier(because of the non-ActiveX packaging) to just download and burn.

    --
    The role of the writer is not to say what we can all say, but what we are unable to say. -Anais Nin
  32. Hardware firewalls. (simple iptables) by darkonc · · Score: 2, Informative
    I pretty much refuse to run a Windows box on the net without a firewall... The $40 cable routers will generally do a fine job. If you're doing it in the same place as your Linux box, you can use IP Tables to do the same thing..

    Get either a dumb hub or a crossover cable, and connect the Windows box by that.
    turn on NAT via iptables:

    • iptables -t nat -I POSTROUTING -s 192.168.1.0/24 --out-interface eth0 -j MASQUERADE

    • iptables -I FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
      iptables -I FORWARD --in-interface eth1 --out-interface eth0 -j ACCEPT
      # turn off most packet forwarding (other than outgoing connections above) iptables --policy FORWARD DROP
    Turn on packet forwarding
    ( echo 1 > /proc/sys/net/ipv4/ip_forward )

    This, of course, presumes that ETH1 is facing your windows box with an IP address in 192.168.1.{1-254}.

    You can then either set your Windows box IP address manually, or learn how to turn on dhcpd (i'm not going to go there, but it's not too hard.). In any case, this should be enough NAT protection to allow you to get out on the net from your Windows box without opening it up to inbound virus connections. You can then get to places like Microsoft and Norton's without being pre-emptively infected.

    --
    Sometimes boldness is in fashion. Sometimes only the brave will be bold.
  33. Re:I CALL BULLSHIT ON ARTICLE by binaryspiral · · Score: 2, Informative

    Benna, you're ignorant if you think it's bullshit - infected zombie machines are common and infect people quickly.

    Want proof these worms are targeting every IP out there - go visit dshield.org, and you'll see what the Internet is dealing with.

    My firewall logs a regular blip of hits on port 445, 25, 135, 3127, 1434, 1433.

    All of these are various worms looking for an unprotected host. Until then... keep using linux, you're much better off.

    It's almost common for a fresh install to be infected on the first few minutes of connection to the Internet - Microsoft made it far to easy.

  34. Very very simple. by skinfitz · · Score: 2, Informative

    1. Disconnect machine from net
    2. Install XP
    3. Before connecting to net, enable XP firewall. (Right click on network connection, properties, advanced, "Protect my computer.."
    4. Turn on Automatic Updates (Right click on My Computer, properties, then click tick box on automatic updates).
    5. Connect to net.
    6. Let it patch itself, or if you want, do it manually via Windows Update.

    Really, why this simple simple process seems so difficult to Linux users is beyond me. You wouldn't connect a Linux system running say, an old version of Samba or Apache to the net without IP Tables now would you?

  35. Get someone else to do it... by oogoliegoogolie · · Score: 2, Informative

    ...because obviously you're too stupid to do it yourself.

    You say you've been using Linux since 95, yet the obvious solution of using a firewall excapes you! If you're such a linux expert then where's your iptables firewall machine? Or even your $50 router/firewall. I have one for sale for $40 if you want. That's Cdn $$ too! Man, even installing sygate, zonealarm, or any other personal firewall right after winxp is installed would prevent the shit out there from getting onto your machine.

    I've been using Linux since 95 too, but I know better to put any machine, Linux or Windows, directly on the net or in the DMZ unless that's my intention. Windows is much worse than other OS's, but I wouldn't even put a fresh linux install of any distribution on the net without doing some work on it first.

  36. Re:XP software firewall is useless before SP2 by initialE · · Score: 2, Informative

    Well if you don't trust the built-in firewall, just turn on the IP filter before patching. It's under IP settings->Advanced->Options-> TCP-IP filter
    Enable only IP port 80 and you're set. Heh or you can do what Scott Riley down at Redmond recommends and use IPSec to specify rules...

    --
    Starbucks, Harbuckle of Breath.
  37. OP: The 100% best answer by Glonoinha · · Score: 5, Informative

    Go to Best Buy and get a Linksys BEFSR41 router / firewall device.
    Plug your computer into the LAN side.
    Clone the MAC address of your computer.
    Change the password on the router to something other than 'admin'.
    Plug in your cablemodem into the WAN side.
    Enjoy your new worm/virus/trojan free existance.

    How many times do we need to spell it out??

    --
    Glonoinha the MebiByte Slayer
    1. Re:OP: The 100% best answer by tiger99 · · Score: 2, Informative
      To add to that, if you don't want to buy a firewall, and you have an old PC handy, configure it with something like OpenBSD. For the minimal cost of a second network card, you have a firewall, in fact a much better one, because you can configure it any way you want. OK, it is larger than the Linksys, but you can dispense with the screen, keyboard and mouse (in fact you don't need a mouse anyway, it can be configured in text mode) once it is set up. The big advantage is that bug fixes will be available very quickly.

      But of course I will never install any M$ product again, ever, I have already wasted far too much time.....

      Even Zone Alarm (probably the best software firewall, don't use XP's own, it is useless) on any Windoze box with dialup shows an alarming number of serious intrusion attempts. No-one should ever be on-line without at least Zone Alarm, if they must go on line at all with Windoze. I do all my browsing and email in SuSE Linux now, my Windoze PC is only for a few programs that really need it, and they are being used less and less.

      The sad thing is that the vast majority of the public don't read Slashdot, or anything else for that matter, and so don't have a clue about the risks they are taking and the effect they are having on others. We are probably all agreed that spam from (usually) broadband-connected PCs with one or more trojans is a very real menace. It seems that in the UK (and likely the same in most places) 1 in 3 PCs is infected with at least one trojan, doing the work of the bulk spammers. I for one am sick of it, so I tend to tell everyone, at every opportunity, to get a properly configured firewall, and of course fully up to date anti-virus software. Even Linux users have to take these precautions, root access to a Linux box on broadband would be a hacker's delight.

      We may need laws to enforce safe use of the internet, if present trends continue. I had not checked my email for 4 days, when I did, there were about 50 spam emails showing an act that in the UK is illegal between male and female. I really do not want that kind of thing. I am quite sure that most of them had come via trojaned PCs. In fact under existing UK law, the owners could probably be prosecuted.

      The vast majority who leave their wireless networks unsecured are even more culpable. A spammer sitting in his car with a laptop will not be caught except by accident, one who operates illegally on-line with a direct connection might be.

    2. Re:OP: The 100% best answer by raymo03 · · Score: 2, Informative

      Yeah, I definitely agree to this. We bought a Linksys router to do windows 2000 installs. Before that, a new machine would get hit within 5 minutes by some blaster variant. Now we can get the machine completely set up before we switch it over to the university network.

    3. Re:OP: The 100% best answer by racermd · · Score: 2, Informative

      Perhaps it's already been said in a post further down - A complete solution is to compile a custom-install CD of Windows XP that includes SP2, all current hotfixes, system drivers (better than MS-supplied ones, anyway), and any other extras you can think of. Heck, this works with DVD+/-R discs so you'll have more than enough space for those really big programs (like MS Office). Details on how to do this are all over the internet, just use Google to find it. I update my install CDs/DVDs every month. In fact, I have a CD for simple, bare installs and a DVD for more complete installs complete with applications. What about the old CD/DVD every month? I archive them and use them as a starting point if I ever have a complete loss of my systems. (Knocking on wood) Even if you only go so far as to patch up to SP2, you should patched well enough to get online and get the rest of the updates in a much more reasonable time.

      Of course, this is no guarantee of true network security. For that, you'll need something between the internet source (cable modem, DSL adapter, carrier pigeon, etc.) configured appropriately to filter the traffic.

      What works for me is a Netgear RT311 - a 1 WAN, 1 LAN, SPI NAT router (with the latest firmware update) - and the custom CD mentioned above. I've *never* gotten a virus during a standard Windows XP install from just being connected to the network behind the router. I can leave an unpatched system up for weeks at a time and never see a problem, not that I ever really do that. The fact that I *can* do it is a very secure feeling, indeed. And the fact that I'm, at most, 1 month from being completely up-to-date on my own systems at any given install makes the update process that much quicker and safer.

      The Windows XP built-in firewall is a complete joke, as mentioned before. It's not that it doesn't work - it does. It's just that it's not a very efficient solution. Enable it on a lower-powered system, and you're going to be using almost all of your CPU time just analyzing packets of data. Besides, you really want to prevent the traffic from getting to your system in the first place, which is why I can't stand using ZoneAlarm or any other software-based firewall as a primary point of defense. It should be used as a last-resort solution or in cases where you won't have a physical firewall to protect your computer (a roaming laptop is a great example). Given a lack of other, more effective blocking, software firewalls should be a *requirement*. But it should be complementary to a proper firewall whenever possible.

      --
      My sources are unreliable, but their information is fascinating. -- Ashleigh Brilliant
  38. This is exactly how to do it. by Anonymous Coward · · Score: 4, Informative

    1. Pull machine off net
    2. Install box
    3. Configure TCP/IP and enable windows firewall
    4. Plug in network cable
    5. Windows update
    6. Repeat windows update

    Job done.

  39. Do it right: Use hardware... by KC7GR · · Score: 2, Informative

    Use a hardware firewall, or a decent router with a firewall built in, instead of depending on something that's software-based. That way, the nasties are stopped before they even get to your computer.

    I've not had personal experience with them, but others I've spoken with have had good luck with Linksys and D-Link. For my part, I've always depended on our Watchguard Firebox II to handle things.

    Granted, such a unit is well beyond the cost range of most home setups (unless you get a phenomenal deal on it used, as I did). However, before I had the Firebox, I was part of the Beta testing team for the Zyxel 'Prestige 312' combo dual-Ethernet router/firewall. The 312 has been discontinued for some time now, but it performed like a champ for me.

    If I were going to pick another unit today, I would look at Zyxel's ZyWall 100 series, or something similar. They're quite a bit less expensive than Watchguard's products, and I see no reason they shouldn't work just as well.

    If the 100's a little too costly for you, the entire ZyWall series comes in a variety of sizes from 1 on up. The number usually designates the number of VPN connections the unit allows.

    If you're a DIY'er, you can, of course, just get hold of a spare PC, stick a couple of NICs in it, load it up with FreeBSD or some such, and turn it into a router/firewall.

    The bottom line is that I don't believe any purely software-based firewall can ever be as secure as one that's hardware-based, and dedicated to the purpose of just being a firewall. I certainly don't trust Uncle Bill or Symantec to do it right (witness the problems you've already had).

    Happy hunting.

    --

    Bruce Lane, KC7GR,

    Blue Feather Technologies

  40. Hardware Firewall Appliance, not just builtin by billstewart · · Score: 2, Informative
    Some of the people replying to this message seem to think you're talking about XP's built-in firewall features. While they may be nice, a cheap hardware NAT firewall is just about a necessity for installing Windows safely, because you need to reduce the rate of attacks until you can get all the updates installed, which might include firewall updates.

    NAT is an evil abomination that breaks the Internet's end-to-end model, but for machines that will really never receive incoming connections (VOIP, games, IM, etc. as well as web servers), it's cheap insurance, and for machines that aren't ready to connect to the net, like unpatched Windows, it's pretty much essential. And once you've got your machine patched, you can then open up whatever ports you want on your firewall, if it's bright enough to do that.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  41. Re:RTFQ by jhoger · · Score: 2, Informative

    There are reasons for choosing a dedicated firewall over a add-on software to a general purpose computer.

    Having worked for a firewall company, you are correct, there is no inherent difference between the software in a firewall that runs on your computer and one that runs on separate hardware... a so called "hardware firewall" (the correct term I would use is "dedicated firewall")

    Hardware firewall are just dedicated computers. They don't generally implement hardware state machines, or whatever. They are typically an embedded OS and TCP/IP stack with stateful packet inspection, NAT, application level gateways, etc. No sane person would try to implement that in silicon, and certainly not silicon that can be kept up-to-date. It's software, plain and simple.

    HOWEVER. You should not run your firewall on your general purpose computer.

    A dedicated firewall defaults to being "safe" out of the box, unlike your typical operating system. It doesn't have a lot of crap running on it that could be compromised. The amount of software on there is minimal (depend on that... the economics of mass producing hardware enforces that rule for you).

    Another way to think about it is: if the hacker is battling to get into your network, would you rather have him hacking away at a little box on the edge of your network that will probably trip alarms and if compromised just fail closed, or would you rather have him on your desktop hacking away directly trying to get in, where, when he defeats your desktop firewall, he's inside the gates?

  42. serious problem , easy to fix by Blue_MiSfit · · Score: 2, Informative

    This is a 100% true story. Any time this year I tried to reinstall a machine at school (UC Santa Cruz) that was connected to the network, it would immediately be attacked by blaster. No warning, the system would get the RPC death knell and die. This was with a copy of XP that I made that had SP1 slipstreamed into it. The answer, however, is very simple. 1) Download the SP2 network install ahead of time and burn it on a CD (throw on your chipset drivers too) 2) format and reinstall with the network unplugged 3) install chipset drivers (for DMA) 4) install SP2 5) plug into network and run windows update etc... volia. If you can't get ahold of SP2 ahead of time, use any decent software firewall (Zone alarm and norton both work pretty well) or a hardware firewall preferably. They aren't really necessary though, SP2 will save your life.

  43. NEVER connect a PC directly to a cable modem by krick-zero · · Score: 2, Informative

    You should always use a router between your PC and the cable modem. My PC is safely hidden behind the router and has never been hacked.

  44. Cert.org by The_jos · · Score: 2, Informative

    Cert/CC has an article called "Before You Connect a New Computer to the Internet"

  45. NAT-Router / Hardware-Firewall / Old PC by Tux2000 · · Score: 2, Informative

    Like many others said: Get a cheap "internet router" that does NAT (Network Address Translation). If the attackers can't get to the fresh XP machine, they can't kill it. Easy, isn't it? Just turn OFF UPNP support and all DMZ / port forwarding stuff on the router.

    If you still have a spare PC (minimum 486SX-25, 8 MB RAM, Floppy, two ethernet cards), give fli4l (or any other small Linux router software) a try. Download size is a few MBytes (ask your friends / neighboors), complete boot floppy is created within a few minutes on any Windows system. No linux knowledge required.

    Keep the NAT router between the XP machine and your internet connection even after you have completed the XP setup. Though the router may not help against using IE and Outlook, it will help against all TCP and UDP based attacks. All viri and worms that spread by connecting to any TCP or UDP port on your machine will fail to infect your machine thanks to the NAT router.

    Tux2000

    --
    Denken hilft.
  46. Re:February? by CrudPuppy · · Score: 1, Informative

    why anyone would put a Windows machine directly on a cable modem in the first place is beyond me. who in th geek crowd doesnt have a POS computer sitting around to load openbsd and configure as a firewall/NAT??

    now, for the tech-challenged community, I think the responsibility should fall on MS and cable companies. MS should definitely be allowing pirated copies to update, and cable companies should encourge customers to NEVER hook a windows box directly to a cable modem.

    --
    A year spent in artificial intelligence is enough to make one believe in God.
  47. router by DerWulf · · Score: 3, Informative

    Pick up a router from SMC ( I can recommend the 7008/4 ABR series). Even if you don't want to setup a home network, this is the best way to go I think. Even with the sygate firewall it could ( in theory) happen that the software silently crashed, leaving the icon still in the system tray until you move the mouse cursor over it. Also I wouldn't rely on Windows Update to keep your computer safe. If your unpatched version can get infected, your updates will not prevent infection when someday an exploit gets releases sooner than the patch. When using a router, all incoming connections will be refused by default since the router itself is only running the administration tool. Add a personal firewall for save measure in case the router gets compromised and you are set to go. Also you can seamlessly add computers to your network, all sharing the same internet connection and printer. As a side note, the Norton firewall has crappy configuration options and its all in baby talk. I didn't like it very much. Zonealarm doesn't work well with edonkey, overnet, emule, also, if you forbid all the notorios windows applications (explorer.exe, alg.exe, svchost.exe) all access to the network, you are in for a very unstable windows expierence. Sygate is still the best of the three.
    I bought the router to finally rid me of the personal firewalls tedious configuration ( which btw, you have to do again on each install, with the router it stays with you forever ;)

    Not associated with SMC, I just picked up the model mentioned above friday and I am very happy with it.

    --

    ___
    No power in the 'verse can stop me
  48. Re:February? by pogle · · Score: 2, Informative

    I work part time for a cableco, and while it is our official policy that we do not support, endorse, or have anything to do with routers, I still recommend them. I explain that the cableco cannot support them, etc, first. Then I explain the benefits of getting one; few people bother unless they have multiple computers, but I feel better whenever I convince someone that its a worthwhile investment.

    People get irritated at the cost of cable modem service, at the cost of the cable modem itself (whether buying or renting). Telling them to go spend even more money afterwards doesn't go over well. Cable modem manufacturers should start following linksys and making 'all in one' units, with DOCSIS compliant cable modems and a cable/dsl router built as one box; the configuration was a bit weird, but it seemed infinitely more secure by default.

    --
    http://thechubbyferret.net - Ferret pictures and informative links.
  49. Enable the built in firewall by cascadefx · · Score: 3, Informative

    Enable the built-in firewall in Windows XP before going online. This will resolve a lot of your problems.

    Also go into the widnows update site (on another connected computer) and click the update options to the right. There is an option to turn on the catalog view (or something like that... in Linux right now). This will allow you to search for all the updates of a particular Windows platform.

    Use this to download the patches and burn them to a CD... Use this CD to patch your system.

    Jim

  50. hardware by portscan · · Score: 2, Informative

    just buy a hardware firewall. do the install with the network cable unplugged, then plug in from behind the firewall to get the updates.

    alternately, you could download all the service packs, patches, etc., burn them to a CD, and do the install completely disconnected from the internet, then run the patches, then connect.

  51. An alternate approach by babbage · · Score: 2, Informative
    Hmmm...
    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.)

    Using TCP/IP may have been a mistake. It was, after all, the vector by which the malware installed itself to begin with.

    A better approach may be to do this with two computers, where one is the machine onto which you need to install XP and the other is already up & running with whatever operating system you like.

    This second computer will act as a bridge to the internet, speaking TCP/IP only on its WAN interface, and speaking a non-routable protocol like NetBEUI to the XP machine on the LAN interface.

    This way, the XP machine can only speak to other local machines.

    With a setup like this, you can download the necessary service packs and other updates to the gateway machine -- people have already explained this in some detail elsewhere in this discussion -- and then the XP box can access the updates by regular old fashioned Windows file sharing.

    Once you have the minimal updates, then and only then does it make sense to turn on TCP/IP support on the XP machine.