Slashdot Mirror


Microsoft Bypasses HOSTS File

whitehatlurker writes "Dave Korn announced on the Full Disclosure and Bugtraq security lists that Microsoft is bypassing local lookups for some hosts, meaning that you can't locally block some sites through your HOSTS file. All of these sites are MicroSoft controlled sites. The general feeling in the rest of the thread is that this was to obfuscate these hosts and prevent them from being blocked by malware. However, there are no non-MicroSoft hosts listed, giving a competitive advantage for MicroSoft's anti-malware tools over other brands."

19 of 459 comments (clear)

  1. Re:Is this necessarily a bad thing? by Morvandium · · Score: 5, Informative

    I agree. In addition, as much as I may think they should include other sites on that list, those other sites do not play into what MicroSoft sees as the "integrity" of their product. They're not out to make sure that you can get the latest update of Apache or OpenOffice or whatever; they want to make sure that you can update Windows to the latest version (one that might actually stop the malware they're trying to protect from) or get to a place where you can ask MicroSoft a question (which they may or may not answer, and if they do, the answer to which may or may not be helpful), or, heaven forbid, get to a place where you can order a new MicroSoft product (probably because you haven't realized it will have similar flaws to your current and older MS products).

    --
    "If God's on our side, he'll stop the next war." -- Bob Dylan
  2. Re:Yet Another Band-Aid? by idesofmarch · · Score: 5, Informative

    The solution exists. Running as standard user in Windows XP will prevent changes to the hosts file.

  3. Re:How is this a competitive advantage? by MooUK · · Score: 2, Informative

    Because using an IP address for the program to access causes problems if your server's IP changes. Simple as that.

  4. Route to null by PlusFiveTroll · · Score: 5, Informative

    If the adware can change your hosts file then this is pretty useless anyway. Now all the software has to do is run a script that does the following

    nslookup whatever.microsofts.domains
    takes the list of return addresses and
    route ADD destination MASK mask INVALID INVALID INVALID foreach

    and your traffic to MS wont even leave the network card.

    1. Re:Route to null by MikeBabcock · · Score: 2, Informative

      ... which is why you'd change it to 10.0.0.254 which is an IP of a machine on your LAN with no forwarding allowed.

      --
      - Michael T. Babcock (Yes, I blog)
  5. Re:Is this necessarily a bad thing? by NutscrapeSucks · · Score: 2, Informative

    Actually, there's an anti-spyware available from Windows Update called "Malicous Software Removal Tool". I think it only targets the most common and popular types of hacks,

    --
    Whenever I hear the word 'Innovation', I reach for my pistol.
  6. Re:Not a useful thing for MS to do by Surt · · Score: 2, Informative

    It turns out to be easier to subvert the hosts file than to intercept DNS lookup. There's a really easy way to replace the hosts file from an activex script. How you would subvert DNS from the same point of attack is unclear.

    --
    "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
  7. Re:Permissions? by fermion · · Score: 2, Informative
    So why does the host file have to live in userland, or why can't the computer prompt for the user to verify identiy when certain dangerous operations are about to occur.

    By MS doing this Host file management, they are admitting that most users don't use or know the host files, and the most probable reason for host file change, expecailly as it relates to MS, is an attack.

    I should, in my user account have a wide variety of leeway. If I mess up, I or my qualified agent should be able to go to an admin account and troubleshoot. This measn that as long as I am running XP as a user, that should not mess up the admin host file.

    When I think about this it seems that this seem like guns for airline pilots. We really don't want guns on board an aircraft. The proper fix is to make the cockpit an extremely secure location so that pilots can do thier job, which is not battle terrorists, but fly the plane. It has been shown that as long as a pilot is in control, and given certain leeway, the pilot has a good chance of halting dangerous activity with minimal danger. But simply securing the cockpit is not sexy enough and does not satisfy the ulterior motvies, so we find this other silly thing that does not help much, but does promote secondary goals.

    --
    "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
  8. Re:MSN by mrraven · · Score: 3, Informative

    20 dollars, try free, like AVG. AVG is pretty nice it operates in stealth mode so your computers ports are invisible to probes and alerts you when any new program tries tries to phone home. And no I'm not affiliated or invested in AVG in any way I just think it's cool they make a good firewall available for free.
    Yes it's propitiatory and closed source but at least free as in beer, shrug.
    Anyway I only run Windows in a virtual pc. sandbox so it won't infect my real O.S.

    --
    Tired of all the isms, don't exploit people as an employer, or a government, mmmmK?
  9. So whats the big deal by poind3xt3r · · Score: 2, Informative

    If you want to bypass the hosts file all you need to do is connect by using the IP address as opposed to the DNS name. Sure it seems a bit more complicated or problematic (incase DNS->IP pointing changes) but Im sure all malware programs would rather specify an IP instead of DNS. I would if I was creating a malware program :-)

  10. Re:Permissions? by Foolhardy · · Score: 3, Informative
    On Windows Server 2003 SP1:
    C:\WINNT\system32\drivers\etc\hosts
    BUILTIN\Users :R
    BUILTIN\Power Users:R
    BUILTIN\Administrators:F
    NT AUTHORITY\SYSTEM:F
    Normal and power users get read, Administrators and SYSTEM get full control, all inherited from the drivers directory.

    You're absolutely right about the root problem as running everything as admin. Almost all the malware that I've seen fails miserably unless run as admin, and that which does run can't infect the entire system. I guess the users that know enough to run as a normal user are the same ones that avoid that crap in the first place.
  11. Re:Not a useful thing for MS to do by x0n · · Score: 4, Informative

    >What is there to stop a virus making edits to the dll binary? Changing the strings that presently
    >correspond to the IP addresses of MS domains to some random, invalid address?

    Yes, there is a mechanism built into Windows which uses digital signatures and a watchdog to prevent accidental (or deliberate) changes to sensitive DLLs. Any binary changes to any file will invalidate the signature on the DLL. This is more effective than tripwire or other such things whereby a checksum is held in another location since the DLL itself is signed using a PK and cannot be re-signed to hide the changes.

    Windows File Protection: http://support.microsoft.com/?kbid=222193

    - Oisin

    --

    PGP KeyId: 0x08D63965
  12. Re:Ad blocking by forgotten_my_nick · · Score: 2, Informative

    why not just block them at the router level? or am I missing something obvious?

  13. Re:Smart move from M$ by HermanAB · · Score: 2, Informative

    You don't need to break RSA - just replace the DLL that handles RSA with one that does nothing. Remember the PC is compromised - so the virus/spyware maker can do that and I think they have done it in the past.

    --
    Oh well, what the hell...
  14. not very effective, indeed! by hackwrench · · Score: 2, Informative

    -Considering the most popular non-microsoft patches are to tcpip.sys and uxtheme.dll

  15. Apple seems to do the same with OS X by Anonymous Coward · · Score: 1, Informative

    Oddly enough, I just noticed this today with OS X.

    Try creating a host entry over configuration.apple.com on 10.4.6.

  16. Re: Wrong Wrong Wrong! by mpapet · · Score: 2, Informative

    If only most applications could run properly with user-level permissions.

    I admin a tiny number of desktops and not one of them worked with user-level permissions.
    -Mysterious errors
    -Application functions that simply did not work.

    These are *very* generic XPSP2/Win2k desktops with Office 2K/2003.

    Initially, I was not deterred. With every hurdle crossed with ugly hacks, there was yet another error with no documented solution.

    Someone posted a link to NIST(?) documentation that I eventually used. It's by far the best way to do a job that the OS was never designed to perform.

    Mod parent way down

    --
    http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
  17. ANYONE can Do this! The Functions are Documented by ZOverLord · · Score: 3, Informative

    Just look Here for more info:

    http://msdn.microsoft.com/library/default.asp?url= /library/en-us/dns/dns/dnsquery.asp

    Also you can defeat a Host file by simply changing the priority of lookups using the registry, more here:

    http://www.dslreports.com/forum/remark,15900699~da ys=9999~start=20#15902844

    --
    Black Gray White Hats Unite to protect http://testing.OnlyTheRightAnswers.com
  18. Use Treewalk DNS instead by Quizo69 · · Score: 2, Informative

    Here' a simple solution to the Microsoft controlled DNS HOSTS file:

    http://treewalkdns.com/

    Allows you to bypass Windows' own DNS server and gives you the useful feature of making DNS queries much quicker than resolving to your ISP all the time, among other benefits.

    Very easy to install for Joe User and just as easy to uninstall.

    HTH