DNSChanger Trojans v4.0
Thursday December 4, 2008 at 5:28 pm CST
Posted by Craig Schmugar
Earlier today SANS posted an excellent blog on a recent variant of a DNSChanger Trojan. There are some significant implications to this threat, but before I go into those, here’s a brief rundown of the main DNS-changing Trojan tactics used to date:
- Modify Windows Hosts file to map specific domain names to specific IP addresses (McAfee classifies these Trojans as QHOSTS Trojans, more of a precursor to DNSChangers
- Modify Windows registry settings to reference specific (rogue) DNS servers [DNSChanger.f]
- Create a scheduled task under Mac OS X to reference specific (rogue) DNS servers [OSX/Puper]
- Exploit cross-site request forgery vulnerabilities in routers to overwrite the DNS server configuration offered to local area network clients [DNSChanger.f]
We’ve now seen a new tactic, which has the potential of impacting most devices on the local network–independent of the operating system or device (Windows, Linux, Internet-capable MP3 players, digital picture frames, refrigerators, you name it). The tactic involves serving the rogue DNS server configuration over DHCP, the protocol responsible for distributing dynamic IP addresses, as well as other information, including DNS settings.
Here’s a scenario:
- Jill is using the free WiFi access point at her favorite coffee shop from her infected Windows laptop.
- Steve sits down at the next able and fires up his laptop, which requests an IP address over the wireless local area network.
- Jill’s PC injects a DHCP offer command to instruct Steve’s computer to route all DNS requests through a rogue DNS server.
- Steve fires up his web browser and navigates to his favorite social networking site, but while the browser displays the correct URL name, the rogue DNS server has actually directed the browser to another site.
The same applies to any local area network (LAN) where multiple system connect via DHCP.
This is significant for several reasons:
- The DNSChanger/Puper/Zlob gang has been very successful, infecting millions of PCs during the last couple of years. This gang typically uses strong social engineering to entice victims into installing the malware.
- Systems that are not infected with the malware can still have the payload of communicating with the rogue DNS servers delivered to them. This is achieved without exploiting any security vulnerability.
- Locating a poisoned system on a sizable network is often a difficult task.
- Noninfected systems can alter between using approved DNS settings and rogue settings based on an infected system being on the LAN, and a random chance that the infected system will be able to “poison” the DCHP offer.
For those interested in the details, this DNSChanger variant drops the legitimate ArcNet NDIS Protocol Driver in the drivers directory:
- %WinDir%\system32\drivers\ndisprot.sys
The Trojan uses this driver to inject DHCP Offer packets containing the rogue DNS server IPs.

Variants using this functionality are not known to be widespread at this point, though even a single infected system could potentially impact hundreds of other systems on the LAN. Though it’s awkward to check, users could examine their DNS settings to see if they have been impacted. For example, type the following from a Windows command prompt:
ipconfig /all
For insight into some of what the DNSChanger gang is after, see this post.

December 5th, 2008 at 21:09
[...] of communicating with the rogue DNS servers delivered to them,” McAfee’s Craig Schmugar writes here of the new variant. “This is achieved without exploiting any security [...]
December 5th, 2008 at 21:19
Please fix your Website. When I bookmark a blog posting, the bookmark’s name is:
Computer Security Research – McAfee Avert Labs Blog
where it should be the title of that particular blog posting.
This is a long standing, and very annoying problem with your blog. Please fix it.
Thanks
December 7th, 2008 at 03:06
[...] new variant of the DNSChanger trojan capable of poisoning DHCP connections has been identified by [...]
December 7th, 2008 at 13:52
-nice to read, good for understanding the concept, but leaves with no hope for people with insufficient knowledge.
-i worked with a lot of people with mcafee on there comp.s and they have this problem while downloading mcafee or updating it.
-i would suggest you to equip the mcafee Security Center and the mcafee installer with a tool which can do the required step on its own.
December 7th, 2008 at 15:36
@Reporting a problem – still
Instead of complaining maybe you should notice all of the more common blog platforms do this out of the box and leave well enough alone. You are reading a security post, on a security blog, if you cannot figure out how to edit a bookmark title, then maybe you shouldn’t be in INFOSEC at all.
December 8th, 2008 at 13:47
[...] “DNSChanger Trojans v4.0″, Craig Schmugar, McAfee Avert Labs Blog, December 4, 2008, http://www.avertlabs.com/research/blog/index.php/2008/12/04/dnschanger-trojans-v40/ (accessed on December 8, [...]
December 8th, 2008 at 16:01
All the more reason to consider using trusted third party DNS networks, such as OpenDNS.
https://www.opendns.com/smb/start
December 9th, 2008 at 10:58
[...] Batista. Autor: Dan Goodin Fuente: http://www.theregister.co.uk/2008/12/05/new_dnschanger_hijacks/ http://www.avertlabs.com isc.sans.org http://www.symantec.com Digg it Bookmark it Stumble it Float [...]
December 10th, 2008 at 04:00
How do i know if McAfee has a signature for the latest DNSChanger, discoverd on the 5th of December? The symantec name is Trojan.Flush.M but can’t find it under this name at McAfee…
December 13th, 2008 at 17:01
I’ve been infected with this variant, any solutions yet ?
December 15th, 2008 at 13:37
[...] New trojan in mass DNS hijack, more here [...]
December 16th, 2008 at 14:04
[...] The infamous DNSChanger family again got into focus earlier this month, due to the fact that the latest variant is able to inject DHCP “Offer” packets [...]
December 20th, 2008 at 12:26
I call it DNSChanger 2.0, it has changed the tactics now. Here is my writing about it and check out the protection/detection techniques checklist:
http://extremesecurity.blogspot.com/2008/12/dns-chanager-20.html
December 29th, 2008 at 08:15
[...] came across an interesting post on Avert labs site recently. That post pointed to an earlier SANS posting, which in turn, [...]