Slashdot Mirror


How Can I Tell If My Computer Is Part of a Botnet?

ashraya writes "My father (not too computer literate) has a desktop and a laptop both running Windows in his network back in Hyderabad, India. I set up a Linksys router for him to use with his broadband service. For some reason, he reset the config on the Linksys, and connected it up without wireless security, and also with the default admin password for some time. As you would expect, both of the Windows computers got 'slow,' and the desktop stopped connecting to the internet completely for some reason. As I logged in remotely to 'fix' things, I noticed on the Linksys' log that the laptop was making seemingly random connections to high-numbered ports on various IPs. I did an nslookup on the IPs to see that they were all either in Canada or US, with Comcast and other ISP addresses. Is that a sign that the computers were in a botnet? Are the other hosts part of the botnet too? (I have since rebuilt the Windows hosts, and these connections are not happening now. I have also secured the Linksys.)"

16 of 491 comments (clear)

  1. Assume it is .. by Brigadier · · Score: 5, Interesting

    Overseeing a small office lan, I've come to the conclusion that you will be infected whether you like to or not. Regardless of how much you threaten users. I've resorted to using an drive image (paragon) saved on a drive partition which saves the system in a uninfected state. As soon as a user goes 'uh ooh' or complains of slowness I restore the image (keep in mind data is stored on a server which is backed up and scanned on which no apps are allowed to run). I also run a combination of ccleaner, spybot s&d and windows defender.

    In addition I check the network once a week for mail or ftp sockets ( evidence there is a bot net at work). So far this has been the easiest way to stay on top.

    1. Re:Assume it is .. by realmolo · · Score: 4, Interesting

      You're doing it wrong.

      You need an IDS/IPS system like a Fortigate or ASA that scans all incoming/outgoing packets for viruses/spyware/whatever, and blocks them before they get to the computer (as well as performing standard firewall duties like NAT and traffic filtering). You need Websense Express (or something similar) to block access to malicious websites (and inappropriate websites, which are often malicious anyway). You need to take away the Local Administrator rights from every user on the network, and use Group Policy to a) lock down Internet Explorer, and b) prevent them from installing any software and c)making any system changes.

      This is all easy to do. Why aren't you doing it? For a small office, it wouldn't even be expensive.

    2. Re:Assume it is .. by Brigadier · · Score: 4, Interesting

      All great points, here are mine.

      1.) We are an architecture office which runs AutoCAD problem is this requires Power User group membership in order to run. (also on windows even without admin privs malicious software can infect.

      2.) Unfortunately any expense is an expense, (economy doesn't help.) This is why you will note all my network software is freeware.

      3.) My most malicious user is the owner of the company, who insist on having admin privies ( he equates user authority to company hierarchy) So he constantly does stuff like installs go to my pc, and leaves his system up and logged in.

      unfortunately I don't live in your well funded and taken seriously IT world.

    3. Re:Assume it is .. by peragrin · · Score: 4, Interesting

      for a small office running windows the end users HAVE to run as admin, as Most windows apps require it. My HP printer drivers, and a couple of other apps require my to be fully logged in as an admin or they don't work basically preventing me from doing most of my work.

      I know this as I tried it as I don't believe I should run as admin. Since Windows and MSFT doesn't force developers to code to security standards, including their own. Running as a non admin in a real world environment is impossible. Oh and just to really make you scratch One of those mission critical apps crashes on install because it loads the win16 subsystem for running.

      It gets updated 3-4 times a year but it still requires win16 components. MSFT has enabled that in 2009 that win16 parts are required still. If MSFT would let go of old and outdated parts like the rest of the OS world shit like that wouldn't happen.

      --
      i thought once I was found, but it was only a dream.
    4. Re:Assume it is .. by QuantumRiff · · Score: 5, Interesting

      No! You do not put all your effort at one entry point.. I have seen a company that was totally secure from the old "code red" virus because all the firewalls were updated, and public facing servers were patched. The network guys blocked all the appropriate ports at the firewalls. Then, a Salesman came into the office from out at a client site, and hopped on the network to check his email, and his laptop took out everyone.

      You need layers of defense. preferably from different vendors or makers.

      And really, this is Slashdot, why are you recommending Fortigate or ASA? you should be talking up Snort, or its commercial appliance version, Sourcefire.

      --

      What are we going to do tonight Brain?
  2. Re:Well the only fool proof way... by ls671 · · Score: 4, Interesting

    Agreed, I do it from my Linux router which I assume is not owned.

    It is nevertheless better to reserve a machine on your network for just this usage. Nothing installed on it but tcpdump and similar tools. You should even disconnect than machine from the network when not in use. Again, that's what security expert firms do.

    The important point is to be confident than what you are looking at is not coming from something that is already owned. Many root kits modify netstat, tcpdump and the like... ;-)

    --
    Everything I write is lies, read between the lines.
  3. Re:Well the only fool proof way... by Anonymous Coward · · Score: 5, Interesting

    I agree with your theory, however in practice, a hacker clearly has several million low hanging fruits running unpatched xp with antivirus which expired 60 days after the computer was purchased in 2006.

    The idea that a botnet is really going to worry about the fraction of the fraction of a percent that knows about netstat seems improbable, though obviously not impossible, which is why I agree with you in theory, but in practice netstat would probably answer his question when a hub and a linux box is inconvenient. If someone has an example of a virus masking its connections through netstat I would both eat crow and be interested to hear it.

  4. Some Answers to the questions asked here... by ashraya · · Score: 5, Interesting

    A good many replies here - so I will answer a few questions that have been asked.

    1. For this time, I assumed the systems were owned, and they have now been rebuild (Windows Reinstalled).
    2. The Linksys is re-secured - but I hadnt thought of that being owned - so I have to now do a firmware upgrade on that - Thanks for the suggestion.
    3. Other suggestions are to confirm botnet or sniff traffic - I am in the UK, and I can only do so much remotely.
    4. One of the quesions was how I managed to remote into the windows hosts - No, I managed to remote into the Linksys, not the windows hosts.
    5. The bizzarre situation in the Windows host before it was rebuilt was that if we did (I told the commands over the phone for my dad to execute) ping or traceroute to a destination like www.google.co.in, it would work. It would resolve the right IP. However, with any of the browsers, as soon as access to a site was attempted - We would get a message "Connection Reset" or the browsers equivalent. (Firefox, Chrome and IE tried). Has anyone seen that one before?
    6. Another question asked was if the Windows in question was legit - Yes, I bought him a OEM XP the last time I was there and installed it.

    Regards,
    Ashraya

  5. Solaris does this automatically by JohnnyComeLately · · Score: 4, Interesting

    I remember from my Sun Solaris 8 network or sys admin class that they said the system will automatically configure itself as a gateway between two network cards. When my son gets old enough to start surfing on his own, it's what I intend to do. I've got an old Solaris 8 machine on an Ultra 10. I can put it out in the garage (next to the cable modem) and have it be a physical hop between the cable modem and Dual Band WiFi router.

  6. Re:Well the only fool proof way... by jafiwam · · Score: 5, Interesting

    I don't have any links, but I personally cleaned a PC that had a trojan on it that used netstat hiding tricks. I found it accidentally by looking at files I couldn't delete in the temp folder (trojans often mess with the permissions to make clean-up less likely).

    The contents of the file was a text printout of the netstat command, re created every fifteen or so seconds, MINUS the offending connections. Just by waiting and opening the file again I got new netstat info.

    Running the command, showed the contents of the text file, not the actual output of netstat. I could see traffic going on using a packet sniffer elsewhere on the network, so knew something was up.

    Eventually just wiped and reinstalled anyway because it was faster than fighting it bit by bit.

    So, there are such things out there, yeah, it doesn't make a whole lot of sense for them to spend much time on it, but a lot of that stuff is made from "kits" now days anyway so it's not a big deal to enable the feature.

  7. Re:Force a failover by billcopc · · Score: 5, Interesting

    Please don't make unverified claims. I have seen this happen first-hand on several residential switches (5/8 port Linksys/Acer/whatever). It's how they can get away with crapping 8 ports on an underpowered processor with piddly amounts of memory.

    There's basically 3 ways a switch can deal with ARP overload:

    1. Ditch the least recently seen address (annoying and laggy but relatively clean)
    2. Slow down, panic, and stop forwarding packets altogether (hello Linksys)
    3. Ignore ARP entirely and revert to being a dumb hub, at least temporarily until everyone shuts up

    You'd be surprised how many A+ asshats have daisy-chained those cheap switches to save a buck. I remember one guy who had a cage full of shitty old gear going into a bunch of $40 Aopen switches, because he figured it was cheaper to cram a few U's with those tiny 8-port toys than to drop real money on a bunch of FSM750s. His latency was pretty bad for 100mbit, but his brain was even slower so he cared not. Then one day he added one device too many and a true packet storm ensued, which caused his entire network to seize within minutes. One switch barfed, then another, and another... he had four or five of them per rack, times maybe ten racks. I tried to explain how retarded he was for trying to save maybe $1000 per rack, when each rack had at least 50k worth of gear, but they say ignorance is bliss.

    --
    -Billco, Fnarg.com
  8. Securing Linux Box? by Lotana · · Score: 4, Interesting

    While we are on a topic of security:

    Several months ago I started using Debian as my primary OS at home. I am very happy with it, but don't know much about how to keep it secure or how to tell if I had been compromised. Of course very basics are clear: I do not use root except in those instances of updates, etc. The consensus on this site is that if you run Linux then you are invincible, but I respectfully disagree. The system is only as secure as the competence of the user.

    To cut the long story short:

    - What do you normally do to make sure that your Linux system is clean? Is running apt-get upgrade regularly enough or is there more to it?

    - What articles or books would you recommend to a newbie in this area? I am fully willing to RTFM as such, but please at least give me at least some direction on what to search for.

    - Any other general tips, advice or wisdom would you be willing to share?

    Thank you

  9. Re:Well the only fool proof way... by budgenator · · Score: 4, Interesting

    Yes it does seem possible and you might even get away with it in real life, but the idea of running a 48VDC pair that also uses a 100VAC ring signal right beside your ethernet pairs is scary. Also every time the telephone rings it would induce a hellacious amount of electrical noise into the data pairs; it would probably shut down any data packets on the network and possibly blow out your ethernet cards. If another technician was faninng the wires and happened puncture his skin with them the jolt from the 48VDC would probably make you number ten thousand dirty rotten SOB, a 100VAC ring signal would definitely make you number ten thousand dirty rotten SOB. Telephone and ethernet really don't play well together.

    --
    Apocalypse Cancelled, Sorry, No Ticket Refunds
  10. The takeaway... by Chysn · · Score: 4, Interesting

    I've read this entire thread and learned that it's impossible to tell if your computer is part of a botnet.

    --
    --I'm so big, my sig has its own sig.
    -- See?
  11. Re:Well the only fool proof way... by xianthax · · Score: 3, Interesting

    not really...

    POE uses the two spare pairs to provide 48VDC

    POE+ uses the spare pairs and induces a DC offset onto the differential signal pairs ala "phantom power".

    in either case the specified current is much higher than a phone line can provide.

    doubtful the AC ring would have any effect, the frequency is far too low and current is extremely limited and the differential nature of ethernet's signaling would cancel out noise of this type anyway.

    however, the analog phone line most likely would pick up some rather obnoxious noise from the ethernet lines. the carrier frequencies are clearly well above the audio spectrum but you could likely hear packet bursts, like setting your cell phone next to a speaker.

  12. Re:Well the only fool proof way... by Lord+Bitman · · Score: 3, Interesting

    Indeed. I don't know why security companies don't aggressively push this kind of product for home use- sounds like a win-win for them: sell the consumer an expensive physical box /and/ charge them for monthly firmware updates. Special bonus: An external box would actually /work/ (and with the aid of a USB connection, it could boot into its own environment to do scans) Just for fun, you could throw in a "real" firewall.

    So then you'd provide:
      - Network monitoring for statistical "suspicious packet" analysis
      - Completely detached scanning which doesn't just nicely ask an infected system whether it's infected or not
      - Hardware firewall
      - A solution which potentially /works/, rather than one which is guaranteed not to

    Yet everything I've ever seen pushed to home users has been a software-only package, or just a firewall. When will I be able to tell my mom to "go buy a Norton ActuallyWorX box and plug it between your computer and router"?

    --
    -- 'The' Lord and Master Bitman On High, Master Of All