About InfoWorld : Advertise : Subscribe : Contact Us : Awards : Events : Store
InfoWorld HomeNewsTest CenterOpinionsProduct GuideTechIndex
 COLUMN ARCHIVE  FORUMS
 

COLUMN

 
Security Advisor
Stuart McClure & Joel Scambray

Switched networks lose their security advantage due to packet-capturing tool

THE ART OF "sniffing" network traffic, or capturing packets on the wire, has long been one of the most fruitful parts of any malicious hacker attack. The bad guys can read entire e-mail messages, gain passwords, and obtain complete access by simply running a network sniffer on a shared Ethernet or Token Ring network.

   ADVERTISEMENT
  

Free IT resource

Virtualization Insights from Top Experts - Learn how virtualization gets real!

Sponsored by Dell

Free IT resource

TechNet: More ways to know it, share it, and keep it running.

Sponsored by Microsoft

RELATED LINKS
»  IE 7 bug reopens debate over patch responsibilities
»  Woman ordered to pay for file-sharing will appeal
»  McAfee to buy SafeBoot for $350M
»  Security RSS feed 

IDG ENTERPRISE NETWORK
Research Reports  (CIO)
Ask the Expert  (CIO)

TOP NEWS 


IT SOLUTION SEARCH
Of course, the rich man's countermeasure to this type of attack has always been encryption. But the poor man's countermeasure was always to move away from the traditional shared Ethernet to new network-switching technology. In the book we published recently, many of our packet-capture countermeasures involved recommending a switch to keep the sniffing hounds at bay. But all this has changed with the advent of dsniff (naughty.monkey.org/~dugsong//dsniff/) by Dug Song at CITI, the Center for Information Technology Integration, a research lab at the University of Michigan.

Sniffing traffic allows an unauthorized computer user to view the traffic destined to someone else. In other words, by sending an e-mail message to a colleague at work, you could also be sending it to your cubicle neighbor -- or the whole company -- as well. The technique of sniffing traffic on a switched segment has been discussed in security circles for some time, but Dug has put the theory into practice. With little more than an ARP (address resolution protocol) redirect program and IP forwarding, an attacker can sniff every station on your switched network. The potential damage to your network from a sniffing attack of this nature can be nuclear. Few administrators know about this technology, and even fewer fight the menace. But don't take our word for it, check it out yourself.

Sniffing on a switch

Switching technology, by definition, switches packets from one destination to another without passing them by any of the other stations on a network, thereby reducing the risk of the packets being picked up. But arpredirect, the utility within the dsniff distribution, makes sniffing on a switched network easier than a DDoS (distributed denial of service) attack in February.

This is how it works: The attacker's system sends out a forged ARP packet to the target system, telling it that its default gateway has changed to the attacker's system. This way, whenever the target system sends traffic on the network, it will send it to the attacker's system first, which then forwards the packet on to its original destination as if nothing ever happened.

You will need to use either the kernel-level IP forwarding in /proc/sys/net/ipv4/ip _forward or fragrouter on a Linux system to perform the packet forwarding. So by forging ARP replies for the default gateway of a network, all traffic destined for the default gateway will be sent to and then forwarded by the attack system. Once received at your system, you can grab anything you desire, including passwords such as SNMP, FTP, POP (post office protocol), HTTP, IRC (Internet Relay Chat), Telnet, and many others. In addition to the passwords, you can read all cleartext e-mail as well.

Bag o' goodies

Besides arpredirect, the dsniff distribution comes with its marquee tool: dsniff. The tool is a remarkable password sniffer and collects just about every cleartext and poorly encrypted password. These include all the usual suspects, plus NNTP (Network News Transfer Protocol), IMAP (Internet Message Access Protocol), LDAP, RIP (Routing Information Protocol), OSPF (Open Shortest Path First), NFS (Network File System), YP (Yellow Pages), Socks, X11, CVS (concurrent versions system), IRC, AIM (AOL instant messaging), ICQ, Napster, PostgreSQL, Meeting Maker, Citrix Independent Computing Architecture, Symantec pcAnywhere, NAI Sniffer, Microsoft Server Message Block, and Oracle SQLNet authorization information.

Mailsnarf is another tool for grabbing network data, but this utility reassembles and displays e-mail traffic in a legible manner, thus enabling you to read other users' e-mail in real time. And finally, Webspy is a great utility for watching what your users are doing on the network; it will refresh your browser with the Web pages being viewed on anyone's system.

Solutions

The only real solution to this type of attack is encryption. No matter how much packet sniffing is allowed on your network, by using applications that encrypt the traffic, users can at least be moderately reassured that their information will be safe from prying eyes. The detection solution is to monitor ARP traffic on your network and detect when ARP entries are being changed. You can use a product such as arpwatch, by Craig Leres at ftp://ftp.ee.lbl.gov/arpwatch.tar.Z. Of course neither solution is all that great and makes you wonder how many years we will be dealing with this vulnerability.

What security blanket do you hug? Let us know at security_watch@infoworld.com.


Stuart McClure is president/CTO and Joel Scambray is a managing principal at security consultant Foundstone ( www.foundstone.com ), formerly Rampart Security Group.




RELATED SUBJECTS

Security

MORE >


SPONSORED WHITE PAPERS
EMC - Lower costs and improve reliability-Get the EMC CLARiiON white paper!
Ciphertrust - Are you ready for Sobig.G? Learn how to protect your email systems.
CDW - Personal attention. CDW. The Right Technology. Right Away.
EMC - Explore key performance features and capabilities of EMC ControlCenter 5.1.1.
Intel - Free Intel white paper shows you how to deploy a secure wireless LAN
Cisco - FREE WHITE PAPER: BLUEPRINT to design and implement secure VPNs
Verity, Inc. - "Mass Consolidation Hits the Web-Search Market"
McDATA - Download a FREE storage consolidation white paper from McDATA(R).
Lucent Technologies - Overcoming Common Firewall Limitations
Lucent Technologies - Leverage Your Mobile High Speed Data Access. Download Free White Paper!
Nokia - Get the scoop! Mobilizing business white papers & case studies.
BMC Software - Maximize the Potential of Enterprise Data: Free white paper!
Network Associates - Free white paper - Strategies for Optimizing Network Costs and Benefits
Entrust - Manage identities across applications. Improve productivity.
Stalker Software - CommuniGate Pro - Transform your Email and Calendaring
Remedy - A NEW Gartner Research Note:Producing Quality IT Services

Search the IDG White Paper Library:


SPONSORED LINKS

INFOWORLD MARKETPLACE


» IT Compliance Conference: Nov. 5-7 in San Diego
Best Practices, Peer Experiences, & Expert Advice for Building a Defensible IT Compliance Program
» FREE Sophos Threat Detection Test
Is your AV catching everything it should? Free virus, spyware and adware scan.
» IT Audit Checklists
Prepare for your next internal IT audit. Checklists cover security, risk management, PCI, and more.
» FREE White Paper: Mitigating Rock Phish Attacks
Standard anti-phishing methods cannot defeat complex Rock Phish attacks. Learn how to fight back...
» Apply BPM and ITIL at your IT Help Desk
ServiceWise brings BPM to complete IT service while eliminating integration cost. Learn more here.




 HOME  NEWS  TEST CENTER  OPINIONS  PRODUCT GUIDE  TECHINDEX   About : Advertise : Subscribe : Contact Us : Awards : Events 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy

All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses, phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

Computerworld :: Network World :: CIO :: PC World :: Darwin :: CMO :: CSO
IT Careers :: JavaWorld :: Macworld :: Mac Central :: Playlist :: GamePro :: GameStar :: Gamerhelp
ITWorld Canada :: Computerwoche :: Techworld UK :: tecChannel :: IDG.se :: IDG.no