Slashdot Mirror


Curing a Corporate Virus Infection

museumpeace writes "Over at Internet Storm Center Deb Hale's 'In search of the bot net' entry for September 25 recounts a grueling hunt for all the .exe's, reg entries and sources for a bot infection of a 60 server corporate network. What a nightmare! The story ends with an indictment of careless users and a suspicion that Ares, one of the sloppier Pirate2Pirate filesharing tools was the original souce of the extensive corruption that eventually even crippled the AV tools. How typical is this sort of grief? [More more frequent than reported, I would expect: the corporate victim demanded anonymity for the story to be told]."

15 of 346 comments (clear)

  1. Protected Ports by Anonymous Coward · · Score: 5, Informative

    If you can use the 'protected port' option on e.g. cisco switches, TURN IT ON.

    Essentially, it prevents the indicated ports on the switch from communicating with other ports that also have that protection set. Unless you have sloppy shared directories or some reason for the actual PC's to talk directly to eachother, it won't harm anything and will prevent the viruses from spreading pc-to-pc once (not when) they get in.

  2. Treat naive users like threats by Oriumpor · · Score: 3, Informative

    You needn't treat them like a threat to their face, that is just rude. Most people are "too busy" or don't care enough to learn about computer security. So nod and just listen to *their* problems and lock down their system against the big threat.

    We had to deal with this more often than not ... so we set out to prevent user folly. In so doing we created the IT tech's dream.

    First off you start at the network layer, and make sure via firewalls that people can't get anywhere or use any application that will cause you grief.(p2p/streaming etc.) Then you transparently proxy all your traffic so that the guy who checks out classic-cars.com all day for backgrounds can do his thing and not screw everyone else.

    Then you take every user system and you lock them down. You start out by moving all their dynamic data (that you wanna keep) to a file server. Mapping the winblows appdata/my documents gives you a wannabe roaming profile without all the garbage.

    After you make all that effort you either impliment a mandatory PXE re-imaging overnight (too much of a headache for us) or you use something like Deep Freeze and lock down the system entirely. Due to Deep Freeze even the most zealous surfer can only horribly damage their system once a day.

    Now you have an ideal environment. All changes on a system that need a reboot *must* involve a contact to the IT department, and those you think are savvy enough not to need a frozen system can do 90% of their own support.

    Ok sure so your level of responsibility goes up. The pristine environment means you have plenty of opportunity to script away your work. Not to mention silly things like virus outbreaks are really limited because a frozen system need only reboot to remove the virus.

    Think *pro-active.*

  3. Re:It's easy to blame the users... by superpulpsicle · · Score: 5, Informative

    Just go back to the classic-server rule of thumb.

    1.) Desktop machines can use windows

    2.) Servers must be unix based.

    The user can corrupt the hell out of their hard disk, and they have only themselves to blame.

  4. Shameless plug by haxor.dk · · Score: 2, Informative

    "Over at Internet Storm Center Deb Hale's 'In search of the bot net' entry for September 25 recounts a grueling hunt for all the .exe's, reg entries and sources for a bot infection of a 60 server corporate network. What a nightmare!" ...Apple Macs and Assorted Linucen, curing .exe, registry and bot infections for 5 years and counting!

  5. The root/admin flaw by drl0gic · · Score: 1, Informative
    Why windows users insists using admininstrator accounts, when they could use a limited account that prevents access to the system and program dirs?

    No reference at microsoft site about using a machine in limited mode to stop viruses/trojans.

    I think linux users don't run exim or apache with uid 0...for a reason.

    1. Re:The root/admin flaw by julesh · · Score: 2, Informative

      Why windows users insists using admininstrator accounts, when they could use a limited account that prevents access to the system and program dirs?

      It's standard practice on a Windows network not to allow users administrator access. The only system that MS has ever released that encourages users to use administrator is XP Home, which is designed for home use, where that is probably more appropriate.

      I find it highly implausible that the company described in the article here allowed their users to access administrator accounts. But then, you don't need administrator access for a trojan to launch an attack over the network and break in to other computers on it. Not in Windows, nor Linux, nor any other OS I've used.

      No reference at microsoft site about using a machine in limited mode to stop viruses/trojans.

      What, you mean like this one:

      Microsoft recommends adopting a policy that provides the fewest privileges possible to help minimize the impact of malware that relies on exploiting user privileges when it executes.

  6. Whats a firewall again? by Anonymous Coward · · Score: 2, Informative

    Here is an idea that seems to slip past many...

    C-O-R-P-O-R-A-T-E F-I-R-E-W-A-L-L

    We used to have botnet probs in our corporate network... once we installed a Zonelabs Integrity server and were able to control what programs had access to the internet and which ones did not, it was pretty easy to fix.

  7. Re:Doesn't happen here by cliffiecee · · Score: 2, Informative

    Forgot to mention- that first rule does NOT guarantee you are protected. If the 'nasty' program initiates a connection of its own, then it WILL BE ACCEPTED because of the second rule. I'm just saying that someone can't initiate contact with it from the outside.

  8. Re:It's easy to blame the users... by Spoing · · Score: 5, Informative
    1. We've had a number of keylogger viruses and such pop up on local machines, even from machines with restricted permissions (i.e. can't even write to C:). I don't know what's wrong with XP, but this looks to be a pretty big flaw.

    If the service that the viruses are using aren't enabled, they can't be exploited.

    Here's one way to deal with this...

    Isolate the client; vlan/router or yank the system and put it in an isolated environment (test lab, 2 system LAN, ...). Turn off the client XP firewall (if any), run Nessus on another system and point it at the client, go back to the client system and disable all services that Nessus reports -- even the ones that are not considered problems! Do any security hardening Nessus suggests. If you really need the detected services, write down what you would loose by disabling the service, what it would take to secure the service, and if there are any automated tools that can be run client side to clean up or better block hostile attacks.

    Document what you needed to do, do the same to a few more systems, and then automate the process (registry files, boot scripts, policies, ...).

    --
    A firewall can not protect you from yourself. Turn off what you do not need. Do not use the firewall to do your work.
  9. Re:Doesn't happen here by Anonymous Coward · · Score: 2, Informative
    Hi! I'm the anti-RTFM-guy! Allow me to explain:
    $ su -
    This is the Switch User command (some call it the SuperUser cmd) which switches you to be the root administrator by default. The dash just means that your environment is setup as if you had logged in as this user, so that things like the PATH variable include /sbin and /usr/sbin if it didn't already.
    # uname -o
    Linux
    `uname' prints the system type that you are running. The -o flag tells it to only output the generic Operating System name, which in this is case is "Linux", but could also be "FreeBSD".
    # iptables -P INPUT -j DENY
    `iptables' is the program that you use to tell the operating system how to change its internal `netfilter` firewall. In this case, we're telling iptables to set the default -Policy for any INPUT coming into out computer is to not let it in (by -jumping to DENY).
    # iptables -A INPUT -m state --state=ESTABLISHED,RELATED -j ACCEPT
    On this line we -Add a rule to the firewall which says to let in any traffic that it remembers that WE asked for. For example, if you tell your browser to get www.google.com:80, the firewall will only allow the google.com server traffic in because it remembers that you asked for it. Very secure. If you want to a run servers, you have to add more rules opening up those services to allcomers.
    # exit
    This exits you from the root Administrator mode back to your normal user. This is good for safety reasons. In fact, the `sudo` command is even safer, but you should RTFM about that one n00b.
  10. Ahh, blame the users for Admins screwup by AnswerIs42 · · Score: 4, Informative
    Come on.. this is an example of a VERY poorly managed network.

    At work we have 20K users in the US alone. We actualy don't have that bad of a time dealing with viruses and worms and the like.

    Why? Because 98% of the users get pushed their virus updates and their OS updates. This includes the clueless people.

    We also run network scans and know WHEN computers were updated. If the computer is connnected to the network, we know what updates it has or doesn't have. The only hard part is FINDING the unpatched computers.

    We also have a firewall that prevets P2P connections, FTP and anything else non web browser related (gets anoying at times).

    In reading this story.. I can only assign 1% of the blame on the users and 99% of the blame on the admins for not doing a proper job.

  11. Re:Pirate to Pirate? by TykeClone · · Score: 3, Informative
    As a business user who frequently uses P2P networks to transfer large files between my office and home machines, I can assure you that there are legitimate uses, and that in many cases these are more convenient than the alternatives.

    I think that the dangers outweigh the advantages of using P2P for that. Some guy has been advertising this site http://www.foundonp2p.com/[foundonp2p.com] that shows private data that can be found on p2p networks.

    For moving stuff back and forth from home, I'd think that you'd be better off having IT set up a secure FTP site than P2P.

    --
    A fine is a tax you pay for doing wrong and a tax is a fine you pay for doing all right.
  12. Re:Pirate to Pirate? by julesh · · Score: 2, Informative

    I think that the dangers outweigh the advantages of using P2P for that. Some guy has been advertising this site http://www.foundonp2p.com/[foundonp2p.com] that shows private data that can be found on p2p networks.

    We have an application that automatically encrypts the files we might want to transport using 3DES, and PGP e-mails the SHA1, randomised filename and key to the potential recipients before putting the file into a gnutella public directory. This seems secure to me.

    I agree, if you don't know what you're doing with it, a P2P network can be dangerous.

    For moving stuff back and forth from home, I'd think that you'd be better off having IT set up a secure FTP site than P2P.

    That'd be useful, but the cost of upgrading our internet access to a static IP address is more than we can justify. We'd also have to upgrade our firewall to support it. P2P seemed the easiest solution to us. We tried rewritable CDs, but they quickly became a source of annoyance. Not to mention people not realising what they needed before they needed it.

  13. Re:Pirate to Pirate? by spectecjr · · Score: 2, Informative

    The Mona Lisa is art. It has a very high value tied to it, but the artist never saw any of htat value. He created it because of his love of the creation of it, not because he was going to make big money for it.

    He certainly was paid big money for it. Da Vinci worked on commission, and for specific people most of his life, including the Pope, the Duke Of Milan and others.

    Learn some history.

    --
    Coming soon - pyrogyra
  14. How to use attrib on win32? by Anonymous Coward · · Score: 1, Informative
    At the Windows commandline Attrib is like dir, except it displays hidden, readonly and system files by default. It can set/clear the hidden, readonly, or system file bits. It can also include a search of subdirectories, as can dir. IIRC in the original DOS and in earlier versions of Windows, dir could not display readonly, hidden or system files, but in later versions it can; but attrib has always been able to do that. Here's the online help for attrib, obtained by entering attrib/? at the commandline:

    ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:][path]filename] [/S]

    + Sets an attribute.
    - Clears an attribute.
    R Read-only file attribute.
    A Archive file attribute.
    S System file attribute.
    H Hidden file attribute. /S Processes files in all directories in the specified path.

    When I need to delete a system, readonly or hidden file at the commandline I first use attrib to clear the appropriate file attributes first.