Slashdot Log In
Microsoft Bypasses HOSTS File
Posted by
CmdrTaco
on Sun Apr 16, 2006 11:10 AM
from the they-know-what's-best dept.
from the they-know-what's-best dept.
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."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Not a useful thing for MS to do (Score:5, Interesting)
(Last Journal: Sunday January 22 2006, @06:55AM)
If you are trying to stop MS software from talking to home, then just use an external firewall.
Michael
I couldn't reproduce this on Win2K. (Score:4, Interesting)
I recommend this anyway. In theory it will increase the number of requests your machine does. But in practice it has saved me a lot of "try rebooting" calls.
Anyone out there with XP who can reproduce this?
Re:I couldn't reproduce this on Win2K. (Score:5, Interesting)
(Last Journal: Monday April 03 2006, @07:23PM)
Good idea, but no luck. Same result, though with one slight difference which might prove useful as a workaround - The first attempt timed out, meaning it really performs the query rather than having a hardcoded list of IP mappings. So if you ran a cacheing DNS proxy on your machine (ie, exactly what the built-in DNS service does, but one not containing a built-in Microsoft hack), pointed your machine's DNS to itself, and tell the proxy to use a bogus address for the sites in question, that should successfully block them.
Better to do this at the firewall, though (a real external hardware firewall, not Microsoft's "trust us, this works" crap).
Re:Not a useful thing for MS to do (Score:4, Interesting)
(Last Journal: Thursday September 30 2004, @01:33AM)
Re:Not a useful thing for MS to do (Score:5, Informative)
(http://www.nivot.org/ | Last Journal: Monday March 15 2004, @10:18PM)
>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 [microsoft.com]
- Oisin
Is this necessarily a bad thing? (Score:5, Interesting)
It's a Big Deal because... (Score:5, Insightful)
(Last Journal: Saturday February 25 2006, @11:02PM)
Why? Maybe someone will get a comment from MS.
The point is that mucking around with the inner workings of the OS is BAD, unless it is documented appropriately. Now, documentation doesn't make it good, but if they're departing from the expected behavior, they should let people know.
Re:Is this necessarily a bad thing? (Score:5, Informative)
(http://qmt.ath.cx/)
Re:Is this necessarily a bad thing? (Score:5, Funny)
(http://www.milksucks.com/ | Last Journal: Monday September 15 2003, @12:30PM)
and already you feel qualified to comment
Re:Is this necessarily a bad thing? (Score:5, Insightful)
Microsoft has:
instituted not only License 6, but also "phone home" validation. At any time, MS may
decide to shut down any business worldwide that uses their products, at their (or a
malviolent government's) discretion;
embraced and extended(tm) LDAP with kerberos authentication that is not industry-
standard or cross-platform compatible;
embraced and extended(tm) web browser standards that have made Internet and
platform security a nightmare;
implimented a software firewall (XP SP2) that doesn't actually control/restrict all
incoming and outgoing packets, making the use of a third party (H/W?) firewall
less redundant and more actually necessary;
stripped nearly all OS improvements out of their upcoming flagship OS, excepting
Digital Rights Restrictions -- which may also remotely disable or remove products
and/or services which they choose to disallow for any reason.
Bypassing DNS and the hosts file on the OS platform is their "camel's nose under the
tent flap" for future modifications to the network stack, all in the name of their brand
of "security", which is (frankly) appalling. Given Microsoft's current product direction,
it is not outside the realm of possibility that the future average computer user's
experience will be some cross between a WebTV and an XBox.
So what? (Score:4, Insightful)
Re:So what? (Score:5, Funny)
(http://www.thebedells.org/)
Ad blocking (Score:5, Interesting)
(http://blerg.net/)
Permissions? (Score:5, Insightful)
(http://libtom.org/)
-rw-r--r-- 1 root root 519 Oct 19 12:13
....
Why can't windows just make the host files read only.
Re:Permissions? (Score:5, Insightful)
(http://libtom.org/)
So
Think about it.
Tom
Re:Permissions? (Score:5, Insightful)
(Last Journal: Wednesday March 27 2002, @09:26PM)
Which leads us back to the primordial Windows security problem: users running with admin priviledges.
In the example you provided in the previous post,
As far as I know Windows host file is only writable by Administrator level (dunno, I don't have a Windows machine with me right now). Is it otherwise?
Re:Permissions? (Score:4, Informative)
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.
Re:Permissions? (Score:5, Funny)
Think about it.
Dear Tom,
this is Slashdot and the term "think" does not apply.
Re:Permissions? (Score:5, Insightful)
(http://vftp.net/ | Last Journal: Saturday December 09 2006, @09:52PM)
It'd take the malware makers about an hour to find any of the what, probably 80 holes that would let them go around such windows security. A back-and-forth battle like that could easily go on for months if not years. In unix, security and permissions are the foundation, on top of which everything is built. In windows, security is a hack that was added on later with no due consideration during the initial design phase of windows. It's no wonder it's next to impossible to get it to work the way you want it to.
When you are designing security, the sad truth of it is, the user is the enemy. There's no nicer way to look at it. So it takes a great deal of care to design a security system that can withstand the assult of a user while at the same time being functional and serving the user. It's too late for windows to make those design considerations. They have errored on the side of functionality and sacrificed the security of the system. There is no fixing that.
Re:Permissions? (Score:5, Insightful)
(http://www.liquidshells.net/)
conspiracy-theorists, start your engines! (Score:1)
(http://www.isecore.net/)
Potentially unfair... (Score:5, Insightful)
(Last Journal: Tuesday March 09 2004, @01:55AM)
Let us say that Joe User gets a piece of Malware, so he decides to visit a security company to find a solution to his problem. However, the malware has modified his hosts file to block security company web pages from being accessed, which is extremely typical. Joe User is not experienced enough to even know there is a hosts file that he could change back.
Joe User's first attempt would likely be to norton.com, symantec.com (both go to Symantec's main page), or mcafee.com, since these names are pretty much synonymous with antivirus software. However, all of those are blocked and he can't access them.
However, if he goes to microsoft.com, he can go there since the hosts file is subverted in the OS. Since he can't spend the time to figure out why he can't access the others, he purchases Microsoft's AV solution.
Yet Another Band-Aid? (Score:5, Insightful)
Rather than having to ignore the HOSTS file because it may be malicious, shouldn't the solution be to prevent HOSTS from getting mangled in the first place?
(oh, and on an unrelated note: why on earth is the Win32 HOSTS file buried away under C:\Windows\System32\Drivers\etc\? I mean.... 'drivers'?!!? Bizarre.
Re:Yet Another Band-Aid? (Score:5, Informative)
Re:Yet Another Band-Aid? (Score:5, Interesting)
(http://www.last.fm/user/schmod)
This is one of the telltale remaints of the BSD-derived [kuro5hin.org] TCP/IP stack that NT/XP uses.
Although the stack itself has been heavily modified, using
MSN (Score:2, Insightful)
(http://slashdot.org/ | Last Journal: Monday August 20, @10:21AM)
The other hosts are used in Microsoft's patch distribution network and honestly is not something the average user would ever need to block. It is, however, something a virus/spyware program would love to block. So, if you want to block those hosts, buy a firewall, they're down to about $20.
As for MSN, my only guess is that they don't want to block updates for MSN messenger.
What we have to remember is that these sites are required to fix a broken system, so I don't view this as just an advantage for MS antispyware.
How is this a competitive advantage? (Score:2)
(http://jeke.fdns.net)
Smart move from M$ (Score:3, Insightful)
An automatic update of WMP and your PC gets owned, and nothing can be done to prevent it!
Would be ok... (Score:3, Insightful)
Cheers, Fogger
Route to null (Score:5, Informative)
(http://www.hificans.com/)
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.
Interference with my sig! (Score:4, Funny)
(http://www.xs4all.nl/~dverbeek)
Now I'll have to include a disclaimer...
Just another reason to continue using a more robust system :)
Sensationalism (Score:3, Insightful)
Nothing prevents you from not using the operating system's resolver. Its trivial to implement your OWN DNS client in your programs, bypassing any HOSTS settings and other DNS resolver issues.
I've never seen so many people who were so clueless and misinformed about the technical issues involved here.
Sensationalist Junk (Score:2)
The problems with this (Score:2, Insightful)
Hotels on Park Place (Score:2)
(http://slashdot.org/~Doc%20Ruby/journal | Last Journal: Thursday March 31 2005, @01:48PM)