Pappa’s Got A Brand New [Fanti]Bag!
Your anti-virus doesn’t seem to update, Windows update doesn’t work and you can’t get to any of the anti-virus vendor sites. Is the source of this problem ‘WetWare’ [aka an ‘end-user’ problem aka a code ID10T as they say in the help-desk] or Malware or something else?
Well, we have seen many pieces of malware which change the Windows HOSTS file to stop systems being able to connect to security and Microsoft web sites and update servers for some time now. This is done to stop the malware being detected and removed. However, it seems that the malware authors know that a reasonable number of ‘victims’ now know to look at the HOSTS file to see if it has been modified by a piece of scumware. Usually this is done with hosts-file by redirecting hostnames to localhost [127.0.0.1]. To counter this they appear to have come up with a new way to achieve the same result, without having to modify the HOSTS file at all.

The Malware authors seem to have added a new trick to their existing ‘bag-of-tricks-and-scummery’. This is the first malware that we have seen which is known to use this new trick. The malware is known as Fantibag and is a Trojan which uses packet filtering to achieve the same goal. Think of it as a malicious firewall!
Fantibag has been distributed as a PeX-packed Win32 executable. This Trojan may have been automatically downloaded onto machines which were infected by the recent spate of Bagle droppers [which we saw earlier this week] which when installed downloads and executes arbitrary files from particular website addresses encoded in the dropper.
Details:
Installation
When Fantibag’s file is executed, it copies itself to the Windows directory using the filename ‘firewall_anti.exe’. It then adds a call to load itself to registry. This ensures that it will be automatically started when the operating system starts:
[HKLM\Software\Microsoft\Windows\CurrentVersion\Run]
“firewall_anti” = “%WinDir%\firewall_anti.exe”
Fantibag then drops a DLL [Dynamic Loadable Library] file called ‘firewall_anti.dll’ (this file is 139,264 bytes in size) in to the Windows directory and ‘injects’ this file in to the address space of Internet Explorer so that it runs under the guise of Explorer.
Packet filtering
When the firewall_anti.dll file is activated, it modifies the network interface with Microsoft RAS packet filtering API. It adds a filter which effectively blocks access to following AV companies and other security related sites:
212.113.20.69
216.200.68.152
63.210.193.12
84.53.142.22
84.53.142.6
ad.doubleclick.net
ad.fastclick.net
ads.fastclick.net
antivir.de
ar.atwola.com
atdmt.com
avp.ch
avp.com
avp.ru
awaps.net
banner.fastclick.net
banners.fastclick.net
bitdefender.com
ca.com
clamav.net
click.atdmt.com
clicks.atdmt.com
customer.symantec.com
dispatch.mcafee.com
download.mcafee.com
download.microsoft.com
downloads-eu1.kaspersky-labs.com
downloads-us1.kaspersky-labs.com
downloads-us2.kaspersky-labs.com
downloads-us3.kaspersky-labs.com
downloads.microsoft.com
downloads1.kaspersky-labs.com
downloads2.kaspersky-labs.com
downloads3.kaspersky-labs.com
downloads4.kaspersky-labs.com
drweb.com
drweb.ru
engine.awaps.net
f-secure.com
fastclick.net
ftp.avp.ch
ftpav.ca.com
ftp.downloads2.kaspersky-labs.com
ftp.f-secure.com
ftp.kasperskylab.ru
ftp.sophos.com
go.microsoft.com
grisoft.com
ids.kaspersky-labs.com
kaspersky-labs.com
kaspersky.com
kaspersky.ru
liveupdate.symantec.com
liveupdate.symantecliveupdate.com
mast.mcafee.com
mcafee.com
media.fastclick.net
msdn.microsoft.com
my-etrust.com
nai.com
networkassociates.com
office.microsoft.com
pandasoftware.com
phx.corporate-ir.net
rads.mcafee.com
ravantivirus.com
secure.nai.com
securityresponse.symantec.com
service1.symantec.com
sophos.com
spd.atdmt.com
support.microsoft.com
symantec.com
trendmicro.com
update.symantec.com
updates.symantec.com
updates1.kaspersky-labs.com
updates2.kaspersky-labs.com
updates3.kaspersky-labs.com
updates4.kaspersky-labs.com
updates5.kaspersky-labs.com
us.mcafee.com
vil.nai.com
viruslist.com
viruslist.ru
windowsupdate.microsoft.com
www.antivir.de
www.avp.ch
www.avp.com
www.avp.ru
www.awaps.net
www.bitdefender.com
www.ca.com
www.clamav.net
www.drweb.com
www.f-secure.com
www.fastclick.net
www.grisoft.com
www.kaspersky-labs.com
www.kaspersky.com
www.kaspersky.ru
www.mcafee.com
www.my-etrust.com
www.nai.com
www.networkassociates.com
www.pandasoftware.com
www.ravantivirus.com
www.sophos.com
www.symantec.com
www.trendmicro.com
www.viruslist.com
www.viruslist.ru
www3.ca.com
Fantibag blocks access to these sites by creating input and output filters to drop [discard] all network packets [requests] between the infected machine and any of the filtered IP addresses [or DNS names in the list].
For each of the specified domain names, a DNS lookup is performed and Fantibag creates filters for each IP address within the same class C (255.255.255.0) network, if such a filter does not already exist.
Conclusions:
So, to sum it up Fantibag installs a packet filtering policy [effectively a firewall] which will block access to a number of anti-virus companies, certain Microsoft sites, some other security-related sites, and a few other non-security related sites.
Some of you may have noticed that some of the addresses which are included in the list are advert servers, I’m not quite sure why the author decided to include them, but it is an interesting side-effect of being infected by this Trojan. Maybe the malware author responsible for Fantibag despises advertising almost as much as we despise the malware authors, including the author of Fantibag?
Links:
F-Secure’s Description
Computer Associates Description
Please note that this blog has now moved to my own hosted domain here: http://momusings.com/momusings/.
A full RSS/ATOM feed can be found there.
All the data up to the end of December 2006 will be left here, however all postings from the 1st of January 2007 onwards will only be available at this blogs new home.
ALL future postings will only be available at the new site.












